/* =====================================================================
   Inversiones El Pino — Landing de alta conversión
   Diseño mobile-first (base 380px). Paleta de marca: verde #009849 +
   naranja #FF8000. Motivo visual propio: retícula de "plano de
   lotización" (líneas punteadas) usada con sobriedad en fondos oscuros.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --verde: #009849;
  --verde-osc: #046a37;
  --verde-deep: #06301d;
  --verde-deep2: #0a2417;
  --naranja: #ff8000;
  --naranja-osc: #e56f00;
  --wa: #25d366;
  --wa-osc: #1da851;
  --tinta: #12211a;
  --gris: #5b6b62;
  --gris-cl: #7d8b83;
  --linea: #e3e9e5;
  --crema: #f4f8f4;
  --blanco: #ffffff;
  --radio: 16px;
  --radio-sm: 12px;
  --sombra: 0 10px 30px -12px rgba(6, 48, 29, .25);
  --sombra-sm: 0 4px 14px -6px rgba(6, 48, 29, .18);
  --max: 1180px;
  --display: "Poppins", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Utilidades ---------- */
.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.seccion { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 12px;
}
.eyebrow.claro { color: #7be0a6; }
.titulo-seccion { font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.titulo-seccion .acento { color: var(--verde); }
.sub-seccion { color: var(--gris); font-size: 17px; margin-top: 12px; max-width: 620px; }
.centrado { text-align: center; }
.centrado .sub-seccion { margin-left: auto; margin-right: auto; }

/* Motivo de plano de lotización para fondos oscuros */
.plano {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-align: center; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.05;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-naranja { background: var(--naranja); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 128, 0, .7); }
.btn-naranja:hover { background: var(--naranja-osc); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-osc); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-osc); }
.btn-linea { background: #fff; color: var(--verde); border: 2px solid var(--verde); }
.btn-linea:hover { background: var(--crema); }
.btn-bloque { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; color: var(--tinta); }
.nav a:hover { color: var(--verde); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { display: none; font-family: var(--display); font-weight: 700; color: var(--verde); font-size: 15px; white-space: nowrap; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.logo { flex: none; }
.header-cta .btn-wa { display: none; }
@media (min-width: 560px) { .header-cta .btn-wa { display: inline-flex; } }
.header-wa-icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  background: var(--wa); color: #fff; align-items: center; justify-content: center;
}
.header-wa-icon svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--verde-deep); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 152, 73, .38), transparent 60%),
    linear-gradient(180deg, rgba(10, 36, 23, .90), rgba(6, 48, 29, .93)),
    url("../assets/img/hero.webp") center / cover no-repeat;
}
.hero-eyebrow svg { width: 15px; height: 15px; flex: none; color: #ffcf8a; }
/* Evita que contenido con nowrap ensanche las columnas del grid (blowout) */
.hero-grid > *, .proyectos-grid > *, .beneficios-grid > *, .pasos > *,
.testimonios-grid > *, .cta-final-grid > * { min-width: 0; }
.hero-eyebrow { max-width: 100%; white-space: normal; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 28px; padding: 34px 0 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  font-weight: 600; font-size: 13px; letter-spacing: .02em; color: #bff0d3;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 8.5vw, 52px); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.05;
}
.hero h1 .marca { color: #ffb15c; }
.hero-sub { margin-top: 16px; font-size: 17px; color: #d6e7dd; max-width: 540px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  color: #eafff2; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  padding: 8px 13px; border-radius: 999px;
}
.hero-chip svg { width: 16px; height: 16px; color: #6fe6a0; flex: none; }

/* Media del hero */
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 16 / 12; object-fit: cover; border-radius: var(--radio);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .12);
}
.hero-media .badge-flotante {
  position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--tinta);
  border-radius: 14px; padding: 12px 15px; box-shadow: var(--sombra); display: flex; gap: 11px; align-items: center;
}
.hero-media .badge-flotante .num { font-family: var(--display); font-weight: 800; color: var(--verde); font-size: 26px; line-height: 1; }
.hero-media .badge-flotante small { display: block; color: var(--gris); font-size: 12px; font-weight: 600; }

/* Formulario del hero */
.hero-form {
  background: #fff; color: var(--tinta); border-radius: var(--radio); padding: 20px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .55);
}
.hero-form h2 { font-size: 20px; font-weight: 800; }
.hero-form p.mini { font-size: 13.5px; color: var(--gris); margin-top: 4px; margin-bottom: 14px; }
.campo { margin-bottom: 11px; }
.campo label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gris); margin-bottom: 5px; }
.campo input, .campo select {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--linea);
  border-radius: var(--radio-sm); font-size: 16px; font-family: inherit; background: #fff; color: var(--tinta);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo select { padding-right: 34px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046a37' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.campo input:focus, .campo select:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0, 152, 73, .16);
}
.form-nota { font-size: 12px; color: var(--gris-cl); margin-top: 10px; text-align: center; }
.form-ok {
  display: none; background: #eafaf0; border: 1.5px solid #a6e6c0; color: var(--verde-osc);
  border-radius: var(--radio-sm); padding: 16px; font-weight: 600; text-align: center;
}
.form-ok.visible { display: block; }

/* ---------- Barra de confianza ---------- */
.barra-confianza { background: var(--naranja); color: #fff; }
.barra-confianza .contenedor {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 8px; padding: 22px 20px; text-align: center;
}
.dato-duro .num { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7vw, 34px); line-height: 1; }
.dato-duro small { display: block; font-size: 12.5px; font-weight: 600; opacity: .95; margin-top: 5px; letter-spacing: .01em; }

/* ---------- Beneficios ---------- */
.beneficios-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
.beneficio {
  display: flex; gap: 14px; align-items: flex-start; background: var(--crema);
  border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px;
}
.beneficio .ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: #e2f4ea; color: var(--verde);
  display: flex; align-items: center; justify-content: center;
}
.beneficio .ico svg { width: 24px; height: 24px; }
.beneficio h3 { font-size: 16.5px; font-weight: 700; }
.beneficio p { font-size: 14px; color: var(--gris); margin-top: 3px; }

/* ---------- Proyectos ---------- */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; margin-top: 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--linea);
  background: #fff; color: var(--gris); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: all .15s ease;
}
.filtro:hover { border-color: var(--verde); color: var(--verde); }
.filtro.activo { background: var(--verde); border-color: var(--verde); color: #fff; }

.proyectos-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea);
  border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card-foto { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #dfe7e1; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; }
.card-zona {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .95); color: var(--verde); font-weight: 700; font-size: 12px;
  padding: 6px 11px; border-radius: 999px;
}
.card-zona svg { width: 14px; height: 14px; }
.card-badge {
  position: absolute; top: 12px; right: 12px; background: var(--naranja); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11.5px; padding: 6px 11px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(255, 128, 0, .8);
}
.card-cuerpo { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; font-weight: 700; color: var(--tinta); }
.card .distrito { display: flex; align-items: center; gap: 5px; color: var(--gris); font-size: 13.5px; margin-top: 3px; }
.card .distrito svg { width: 14px; height: 14px; color: var(--naranja); }
.card-precio { margin: 13px 0 4px; padding-top: 13px; border-top: 1px dashed var(--linea); }
.card-precio .etq { font-size: 12px; color: var(--gris); font-weight: 600; }
.card-precio .monto { font-family: var(--display); font-weight: 800; color: var(--verde); font-size: 25px; line-height: 1; margin-top: 2px; }
.card-precio .monto span { font-size: 14px; font-weight: 600; color: var(--gris); }
.card-precio .usd { font-size: 12.5px; color: var(--gris-cl); margin-top: 3px; }
.card-metraje { font-size: 13.5px; color: var(--tinta); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.card-metraje svg { width: 15px; height: 15px; color: var(--verde); }
.card .btn { margin-top: auto; }
.card .btn-wa { min-height: 48px; font-size: 15px; }

.proyectos-extra { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--gris); }
.proyectos-extra a { color: var(--verde); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Financiamiento ---------- */
.financiamiento { background: var(--verde-deep); color: #fff; }
.financiamiento .titulo-seccion .acento { color: #ffb15c; }
.financiamiento .sub-seccion { color: #cbe0d3; }
.pasos { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
.paso {
  position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radio); padding: 22px 20px 20px;
}
.paso .n {
  font-family: var(--display); font-weight: 800; font-size: 15px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--naranja); color: #fff; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.paso h3 { font-size: 18px; font-weight: 700; }
.paso p { font-size: 14.5px; color: #cbe0d3; margin-top: 6px; }
.finan-destacado {
  margin-top: 26px; background: #fff; color: var(--tinta); border-radius: var(--radio); padding: 24px;
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
}
.finan-cuota .etq { font-weight: 700; color: var(--gris); font-size: 14px; }
.finan-cuota .grande { font-family: var(--display); font-weight: 800; color: var(--verde); font-size: clamp(40px, 12vw, 58px); line-height: 1; margin: 4px 0; }
.finan-cuota .grande small { font-size: 20px; color: var(--gris); font-weight: 600; }
.finan-cuota p { font-size: 14px; color: var(--gris); }
.finan-opciones { display: grid; gap: 12px; }
.finan-op { display: flex; gap: 12px; align-items: flex-start; }
.finan-op .check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e2f4ea; color: var(--verde); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.finan-op .check svg { width: 15px; height: 15px; }
.finan-op b { font-weight: 700; }
.finan-op span { font-size: 14.5px; color: var(--gris); }

/* ---------- Ubicación ---------- */
.ubicacion-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
.mapa-wrap { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); box-shadow: var(--sombra-sm); background: #eef2ef; }
.mapa-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }
.ubicacion-info h3 { font-size: 22px; font-weight: 800; }
.ubicacion-info p { color: var(--gris); margin-top: 10px; font-size: 15.5px; }
.ubicacion-lista { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.ubicacion-lista li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.ubicacion-lista svg { flex: none; width: 20px; height: 20px; color: var(--verde); margin-top: 2px; }

/* ---------- Testimonios ---------- */
.testimonios-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.testi {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra-sm); display: flex; flex-direction: column;
}
.testi-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7e1; }
.testi-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.testi-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(6,48,29,0) 40%, rgba(6,48,29,.55));
}
.testi-play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--verde); display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra); }
.testi-play span svg { width: 26px; height: 26px; margin-left: 3px; }
.testi-cuerpo { padding: 15px 16px 17px; }
.testi-cuerpo b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.testi-cuerpo p { color: var(--gris); font-size: 13.5px; margin-top: 2px; }
.testi-cuerpo .etq-video { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--verde); font-weight: 700; font-size: 13px; }
.testi-cuerpo .etq-video svg { width: 15px; height: 15px; }
.embajador {
  margin-top: 26px; background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 18px 20px; text-align: center; font-size: 15px; color: var(--gris);
}
.embajador b { color: var(--tinta); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 30px auto 0; }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; padding: 20px 44px 20px 0;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--tinta); position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--verde); border-bottom: 2.5px solid var(--verde);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item.abierto .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 10px 20px 0; color: var(--gris); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--verde-deep); color: #fff; }
.cta-final-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.cta-final h2 { font-size: clamp(26px, 7vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.cta-final h2 .marca { color: #ffb15c; }
.cta-final .sub { color: #cbe0d3; margin-top: 14px; font-size: 16.5px; }
.cta-canales { display: grid; gap: 12px; margin-top: 24px; }
.canal { display: flex; align-items: center; gap: 13px; color: #eafff2; font-size: 15px; }
.canal .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.canal .ci svg { width: 20px; height: 20px; }
.canal b { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; }
.canal span { font-size: 13px; color: #bcd4c5; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 84px; z-index: 70; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8);
}
.wa-flotante svg { width: 32px; height: 32px; }
.wa-flotante::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  z-index: -1; animation: pulso 2.2s ease-out infinite;
}
@keyframes pulso { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Barra inferior móvil ---------- */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--linea); border-top: 1px solid var(--linea); box-shadow: 0 -6px 20px -10px rgba(6,48,29,.25);
}
.barra-movil a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px;
  font-family: var(--display); font-weight: 700; font-size: 15px; background: #fff;
}
.barra-movil a svg { width: 20px; height: 20px; }
.barra-movil .m-llamar { color: var(--verde); }
.barra-movil .m-wa { background: var(--wa); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--verde-deep2); color: #b9cdc0; padding: 44px 0 92px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer .logo-f img { height: 38px; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .redes { display: flex; gap: 12px; margin-top: 14px; }
.footer .redes a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: #cfe0d5; }
.footer .redes a:hover { background: var(--verde); color: #fff; }
.footer .redes svg { width: 20px; height: 20px; }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8ba597; display: grid; gap: 8px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ===================================================================
   Breakpoints
   =================================================================== */
@media (min-width: 640px) {
  .barra-confianza .contenedor { grid-template-columns: repeat(4, 1fr); }
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .seccion { padding: 76px 0; }
  .nav { display: flex; }
  .header-tel { display: inline-flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; padding: 60px 0 66px; }
  .hero-form-col { order: 2; }
  .hero .col-texto { max-width: 560px; }
  .hero-media-wrap { display: grid; gap: 18px; }
  .beneficios-grid { grid-template-columns: repeat(4, 1fr); }
  .proyectos-grid { grid-template-columns: repeat(3, 1fr); }
  .finan-destacado { grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 34px 40px; }
  .ubicacion-grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  .mapa-wrap iframe { height: 100%; min-height: 360px; }
  .testimonios-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-final-grid { grid-template-columns: 1fr 1fr; gap: 52px; }
  .wa-flotante { bottom: 26px; width: 62px; height: 62px; }
  .wa-flotante svg { width: 34px; height: 34px; }
  .barra-movil { display: none; }
  .footer { padding-bottom: 44px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* En desktop el hero muestra dos fotos apiladas */
.hero-media-2 { display: none; }
@media (min-width: 900px) {
  .hero-media-2 { display: block; }
  .hero-media-2 img { aspect-ratio: 16 / 7; }
}

/* Accesibilidad: respetar reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .wa-flotante::before { animation: none; }
  .card, .btn { transition: none; }
}

/* Foco visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px;
}

/* =====================================================================
   Páginas internas (multipágina): subhero, breadcrumb, detalle de
   proyecto, nosotros, refiere y gana, contacto.
   ===================================================================== */
.subhero { position: relative; background: var(--verde-deep); color: #fff; overflow: hidden; padding: 40px 0 44px; }
.subhero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -20%, rgba(0,152,73,.4), transparent 60%), linear-gradient(180deg, var(--verde-deep2), var(--verde-deep)); }
.subhero.con-foto::before {
  background: linear-gradient(180deg, rgba(6,48,29,.72), rgba(6,48,29,.88)), var(--foto) center/cover no-repeat; }
.subhero .contenedor { position: relative; }
.subhero h1 { font-size: clamp(28px, 7vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.subhero p { color: #d6e7dd; margin-top: 12px; font-size: 17px; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #9fc4ac; margin-bottom: 14px; }
.breadcrumb a { color: #cfe7d8; } .breadcrumb a:hover { color: #fff; }

.nav a.activo { color: var(--verde); }
.nav-toggle { display: none; }

/* Detalle de proyecto */
.detalle-top { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 22px; position: relative; z-index: 3; }
.detalle-foto { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 4px solid #fff; background: #dfe7e1; }
.detalle-foto img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.detalle-panel { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-sm); padding: 22px; }
.detalle-panel .zona-pill { display: inline-flex; align-items: center; gap: 6px; background: #e2f4ea; color: var(--verde); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.detalle-panel .zona-pill svg { width: 15px; height: 15px; }
.detalle-panel .precio-grande { font-family: var(--display); font-weight: 800; color: var(--verde); font-size: 40px; line-height: 1; margin: 6px 0 2px; }
.detalle-panel .precio-grande span { font-size: 17px; color: var(--gris); font-weight: 600; }
.detalle-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.detalle-datos .d { background: var(--crema); border: 1px solid var(--linea); border-radius: 12px; padding: 12px; }
.detalle-datos .d small { display: block; color: var(--gris); font-size: 12px; font-weight: 600; }
.detalle-datos .d b { font-family: var(--display); font-size: 17px; color: var(--tinta); }
.detalle-cuerpo { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
.bloque h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.bloque p { color: var(--gris); font-size: 15.5px; margin-bottom: 10px; }
.obras-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.obras-lista li { display: flex; gap: 9px; align-items: center; font-size: 14.5px; font-weight: 500; }
.obras-lista svg { flex: none; width: 20px; height: 20px; color: var(--verde); }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.galeria .cap { grid-column: 1 / -1; font-size: 12.5px; color: var(--gris-cl); }

/* Valores / nosotros */
.mvp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.mvp { background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; }
.mvp .ico { width: 48px; height: 48px; border-radius: 12px; background: #e2f4ea; color: var(--verde); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mvp .ico svg { width: 26px; height: 26px; }
.mvp h3 { font-size: 20px; font-weight: 800; color: var(--verde); }
.mvp p { color: var(--gris); font-size: 15px; margin-top: 8px; }
.regiones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.regiones span { background: #fff; border: 1.5px solid var(--linea); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; color: var(--tinta); }

/* Refiere y gana */
.refiere-pasos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; counter-reset: rp; }
.refiere-paso { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px 22px 22px; box-shadow: var(--sombra-sm); }
.refiere-paso::before { counter-increment: rp; content: counter(rp,decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 34px; color: #dfeee6; position: absolute; top: 12px; right: 18px; }
.refiere-paso h3 { font-size: 18px; font-weight: 700; }
.refiere-paso p { color: var(--gris); font-size: 14.5px; margin-top: 6px; }
.premio { margin-top: 26px; background: linear-gradient(120deg, var(--verde), var(--verde-osc)); color: #fff; border-radius: var(--radio); padding: 26px; text-align: center; }
.premio .monto { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.premio p { opacity: .95; margin-top: 6px; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
.contacto-tarjeta { background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; }
.contacto-tarjeta h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.contacto-tarjeta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contacto-tarjeta li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contacto-tarjeta li svg { flex: none; width: 20px; height: 20px; color: var(--verde); margin-top: 2px; }
.contacto-tarjeta li b { display: block; font-family: var(--display); }

@media (min-width: 720px) {
  .detalle-top { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .obras-lista { grid-template-columns: 1fr 1fr; }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .mvp-grid { grid-template-columns: repeat(3, 1fr); }
  .refiere-pasos { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .detalle-cuerpo { grid-template-columns: 1.5fr 1fr; }
  .subhero { padding: 56px 0 90px; }
  .detalle-top { margin-top: -64px; }
}

/* ---------- Navegación móvil (hamburguesa) ---------- */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--linea);
  background: #fff; color: var(--verde);
}
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 899px) {
  .nav {
    display: block; position: fixed; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--linea); box-shadow: var(--sombra);
    padding: 8px 20px 16px; transform: translateY(-140%); transition: transform .25s ease;
    max-height: calc(100vh - 66px); overflow-y: auto; margin: 0;
  }
  .nav.abierto { transform: translateY(0); }
  .nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--crema); font-size: 16px; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Iconos inline dentro de párrafos del subhero (evita SVG gigante) */
.subhero p svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Ofertas ---------- */
.ofertas-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
.oferta { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); display: flex; flex-direction: column; }
.oferta-foto { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #dfe7e1; }
.oferta-foto img { width: 100%; height: 100%; object-fit: cover; }
.oferta-cinta { position: absolute; top: 14px; left: 0; background: var(--naranja); color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; padding: 8px 16px 8px 14px; border-radius: 0 999px 999px 0; box-shadow: 0 6px 14px -6px rgba(255,128,0,.8); }
.oferta-cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.oferta-cuerpo h3 { font-size: 20px; font-weight: 700; }
.oferta-cuerpo .distrito { display: flex; align-items: center; gap: 5px; color: var(--gris); font-size: 13.5px; margin-top: 3px; }
.oferta-cuerpo .distrito svg { width: 14px; height: 14px; color: var(--naranja); }
.oferta-cuerpo .cuota { margin: 12px 0 14px; font-family: var(--display); font-weight: 800; color: var(--verde); font-size: 22px; }
.oferta-cuerpo .cuota span { font-size: 13px; color: var(--gris); font-weight: 600; }
.oferta-cuerpo .btn { margin-top: auto; }
.oferta-contado { margin-top: 26px; background: linear-gradient(120deg, var(--naranja), var(--naranja-osc)); color: #fff; border-radius: var(--radio); padding: 26px; text-align: center; }
.oferta-contado h3 { font-size: 24px; font-weight: 800; }
.oferta-contado p { opacity: .95; margin-top: 6px; }

/* ---------- Blog / Noticias ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.blog-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.blog-card .foto { aspect-ratio: 16/9; overflow: hidden; background: #dfe7e1; }
.blog-card .foto img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .cuerpo { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-tag { align-self: flex-start; background: #e2f4ea; color: var(--verde); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.blog-card h3 { font-size: 19px; font-weight: 700; line-height: 1.2; }
.blog-card p { color: var(--gris); font-size: 14.5px; margin-top: 8px; }
.blog-card .leer { margin-top: 14px; color: var(--verde); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.pilares { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.pilar { background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; }
.pilar h3 { font-size: 18px; font-weight: 700; color: var(--verde); }
.pilar p { color: var(--gris); font-size: 14.5px; margin-top: 6px; }

@media (min-width: 720px) {
  .ofertas-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pilares { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .ofertas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Simulador de cuota ---------- */
.simulador { background: linear-gradient(135deg, var(--verde-deep2), var(--verde-osc)); color: #fff; border-radius: var(--radio); padding: 22px; margin-bottom: 22px; box-shadow: var(--sombra); }
.sim-head { display: flex; gap: 14px; align-items: flex-start; }
.sim-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); color: #baf5d3; display: flex; align-items: center; justify-content: center; }
.sim-ico svg { width: 26px; height: 26px; }
.sim-head h3 { font-size: 20px; font-weight: 800; }
.sim-head p { color: #d6ecdf; font-size: 14px; margin-top: 3px; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 18px; }
.sim-label { display: block; font-size: 12.5px; font-weight: 600; color: #bfe6cd; margin-bottom: 6px; }
.sim-input { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--radio-sm); padding: 0 14px; min-height: 52px; }
.sim-input span { font-family: var(--display); font-weight: 800; color: var(--verde); font-size: 18px; }
.sim-input input { border: 0; outline: none; font-size: 20px; font-family: var(--display); font-weight: 700; color: var(--tinta); width: 130px; background: transparent; }
.sim-controls .btn { min-height: 52px; }
.sim-out { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: #eafff2; }
.sim-out b { color: #ffd9a8; }
.card.sim-oculta { display: none !important; }
@media (min-width: 560px) { .sim-controls { flex-wrap: nowrap; } .sim-input input { width: 100%; } .sim-campo-monto { flex: 1; } }

/* ---------- Validación de formularios (campos obligatorios) ---------- */
.campo.error input, .campo.error select {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
}
.campo-error {
  color: #c0392b;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.campo-error::before { content: "⚠"; font-size: 13px; }

/* ---------- "Ver más proyectos" (límite de 10 en Todos) ---------- */
.card.mas-oculta { display: none !important; }
.ver-mas-wrap { text-align: center; margin-top: 28px; }
.ver-mas-wrap .btn { min-width: 240px; }
