/* ============================================
   REALTOR FABI CAMPOS — ESTILOS GLOBALES
   Paleta: #e05304 naranja | #013765 azul marino | #ffffff blanco
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;600;700;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* VARIABLES */
:root {
  --naranja: #e05304;
  --azul: #013765;
  --blanco: #ffffff;
  --gris-claro: #f7f7f7;
  --gris-medio: #e8e8e8;
  --texto: #2a2a2a;
  --sombra: 0 4px 24px rgba(1,55,101,0.10);
  --radio: 12px;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(1,55,101,0.10);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--azul);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--naranja);
  color: #fff;
}

.nav-links .btn-nav {
  background: var(--azul);
  color: #fff;
  border-radius: 6px;
  padding: 10px 20px;
}
.nav-links .btn-nav:hover {
  background: var(--naranja);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--azul);
  transition: all 0.3s;
}

/* ===== FOOTER ===== */
footer {
  background: var(--azul);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 28px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.footer-licencia {
  display: inline-block;
  background: rgba(224,83,4,0.20);
  border: 1px solid rgba(224,83,4,0.40);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.footer-col h4 {
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--naranja); }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #012a4a 100%);
  color: #fff;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(224,83,4,0.08);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--naranja); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'League Spartan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--naranja);
  color: #fff;
}
.btn-primary:hover {
  background: #c94800;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224,83,4,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.50);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.10);
}

.btn-azul {
  background: var(--azul);
  color: #fff;
}
.btn-azul:hover {
  background: #012a4a;
  transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--gris-claro);
}

.section-naranja {
  background: var(--naranja);
  color: #fff;
}

.section-azul {
  background: var(--azul);
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 12px;
}

.section-azul .section-label { color: rgba(255,255,255,0.60); }

h2.section-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-azul h2.section-title,
.section-naranja h2.section-title {
  color: #fff;
}

h2.section-title span { color: var(--naranja); }
.section-azul h2.section-title span { color: rgba(255,255,255,0.70); }

.section-intro {
  font-size: 17px;
  color: #555;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-azul .section-intro,
.section-naranja .section-intro {
  color: rgba(255,255,255,0.80);
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(1,55,101,0.15);
}

.card-body {
  padding: 24px;
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--naranja);
  color: #fff;
  margin-bottom: 12px;
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ===== WHATSAPP BUBBLE ===== */
.wa-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-bubble a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37,211,102,0.40);
  animation: pulse-wa 2.5s infinite;
}

.wa-bubble svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.40); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.70); }
}

/* ===== TESTIMONIO ===== */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonio-card {
  background: #fff;
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  border-left: 4px solid var(--naranja);
}

.testimonio-estrellas {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonio-texto {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonio-nombre {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--azul);
}

/* ===== DIVIDER ===== */
.divider-naranja {
  width: 56px;
  height: 4px;
  background: var(--naranja);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--gris-medio);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: 'League Spartan', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  font-size: 22px;
  color: var(--naranja);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-answer.open {
  max-height: 600px;
  padding-bottom: 20px;
}

.faq-answer p, .faq-answer ul {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
}

.faq-answer ul { padding-left: 20px; margin-top: 8px; }
.faq-answer ul li { margin-bottom: 6px; }

/* ===== HERO PAGE INTERNO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #012a4a 100%);
  color: #fff;
  padding: 70px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero h1 span { color: var(--naranja); }

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TAG PRECIO ===== */
.precio-tag {
  font-family: 'League Spartan', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--naranja);
}

.proyecto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.proyecto-meta span {
  font-size: 12px;
  background: var(--gris-claro);
  color: var(--azul);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== BLOG ===== */
.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .blog-card-img img {
  transform: scale(1.05);
}

/* ===== STAT BOX ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-box {
  padding: 32px 16px;
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.stat-numero {
  font-family: 'League Spartan', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--azul);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.10); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
