/*
Theme Name: Integracion Domotica
Theme URI:
Author:
Description: Tema a medida para empresa de integracion y automatizacion de viviendas. Estetica de estudio de arquitectura, orientado a la solicitud de diagnostico. Incluye formularios propios, datos estructurados Schema.org y ajustes de marca desde el Personalizador.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: integracion-domotica
Tags: business, custom-menu, custom-logo, translation-ready
*/

/* =========================================================
   SISTEMA DE DISENO
   Estetica: estudio de arquitectura + consultora tecnica.
   Lenguaje visual: plano tecnico. Lineas finas, sin sombras,
   sin degradados decorativos, mucho aire.
   ========================================================= */

:root {
  /* Color */
  --grafito:        #1C1F21;
  --grafito-suave:  #33383B;
  --gris-texto:     #5A5F62;
  --gris-linea:     #C9C6C1;
  --gris-linea-sut: #E3E0DC;
  --gris-calido:    #F1F0EE;
  --gris-calido-2:  #E8E6E2;
  --blanco:         #FFFFFF;
  --verde:          #12594C;
  --verde-claro:    #1F7A67;
  --verde-tenue:    #E6EFEC;
  --alerta:         #8A3324;

  /* Tipografia */
  --fuente: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   1.4375rem;
  --t-xl:   1.75rem;
  --t-2xl:  clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --t-3xl:  clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);
  --t-4xl:  clamp(2.6rem, 1.7rem + 4.4vw, 4.5rem);

  /* Espacio */
  --e-1: 0.5rem;
  --e-2: 1rem;
  --e-3: 1.5rem;
  --e-4: 2rem;
  --e-5: 3rem;
  --e-6: 4rem;
  --e-7: 6rem;
  --e-8: 8rem;

  --ancho: 1220px;
  --ancho-texto: 68ch;
  --radio: 3px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: var(--t-base);
  line-height: 1.62;
  color: var(--grafito);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 var(--e-3);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.026em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 var(--e-3); max-width: var(--ancho-texto); }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
  border-radius: 2px;
}

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--grafito); color: #fff; padding: var(--e-2) var(--e-3);
}
.saltar:focus { left: 0; }

/* ---------- Layout ---------- */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--e-3);
}
@media (min-width: 768px) { .contenedor { padding: 0 var(--e-5); } }

.seccion { padding: var(--e-6) 0; }
@media (min-width: 768px) { .seccion { padding: var(--e-7) 0; } }
.seccion--compacta { padding: var(--e-5) 0; }
.seccion--gris { background: var(--gris-calido); }
.seccion--oscura { background: var(--grafito); color: #EDECEA; }
.seccion--oscura h2, .seccion--oscura h3 { color: #fff; }
.seccion--linea { border-top: 1px solid var(--gris-linea-sut); }

.medida { max-width: var(--ancho-texto); }
.medida-ancha { max-width: 82ch; }

.encabezado-seccion { margin-bottom: var(--e-5); }
.encabezado-seccion p { font-size: var(--t-md); color: var(--gris-texto); }
.seccion--oscura .encabezado-seccion p { color: #A9AEB0; }

/* ---------- Tipografia utilitaria ---------- */
.plomo { font-size: var(--t-md); color: var(--gris-texto); line-height: 1.58; }
.chico { font-size: var(--t-sm); color: var(--gris-texto); }
.mini  { font-size: var(--t-xs); color: var(--gris-texto); line-height: 1.5; }

/* Referencia de plano: numero tecnico junto a un titulo. Encoded, no decorativo. */
.ref {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--e-2);
}
.seccion--oscura .ref { color: #6FBBA8; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.008em;
  text-decoration: none;
  border: 1px solid var(--grafito);
  border-radius: var(--radio);
  background: var(--grafito);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--verde); border-color: var(--verde); }
.btn--verde { background: var(--verde); border-color: var(--verde); }
.btn--verde:hover { background: var(--grafito); border-color: var(--grafito); }
.btn--linea { background: transparent; color: var(--grafito); border-color: var(--gris-linea); }
.btn--linea:hover { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn--claro { background: #fff; color: var(--grafito); border-color: #fff; }
.btn--claro:hover { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn--fantasma { background: transparent; color: #EDECEA; border-color: #4A5053; }
.btn--fantasma:hover { background: #fff; color: var(--grafito); border-color: #fff; }
.btn--grande { padding: 1.0625rem 2rem; font-size: var(--t-base); }
.btn--bloque { width: 100%; }

.grupo-botones { display: flex; flex-wrap: wrap; gap: var(--e-2); }

/* Enlace de texto */
.enlace {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
  border-bottom: 1px solid rgba(18,89,76,.28);
  padding-bottom: 1px;
}
.enlace:hover { border-bottom-color: var(--verde); }
.seccion--oscura .enlace { color: #6FBBA8; border-bottom-color: rgba(111,187,168,.3); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gris-linea-sut);
}
.header__interior {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--e-3);
}
.logo {
  display: flex; align-items: center; gap: 0.625rem;
  text-decoration: none; color: var(--grafito);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo__marca { flex-shrink: 0; }

.nav { display: none; }

/* Lista del menú generada por WordPress */
.nav__lista {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__lista li { margin: 0; }
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
}
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--grafito-suave);
  border-radius: var(--radio);
  white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--verde); }
.nav__link--activo { color: var(--verde); font-weight: 600; }

.nav__flecha { width: 9px; height: 9px; margin-left: 4px; display: inline-block; vertical-align: middle; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--gris-linea-sut);
  border-radius: var(--radio);
  padding: 0.375rem;
  display: none;
}
.nav__item--abierto .submenu { display: block; }
.submenu a {
  display: block; padding: 0.625rem 0.75rem;
  text-decoration: none; color: var(--grafito-suave);
  font-size: var(--t-sm); border-radius: 2px; line-height: 1.35;
}
.submenu a:hover { background: var(--gris-calido); color: var(--verde); }
.submenu a span { display: block; font-size: var(--t-xs); color: var(--gris-texto); margin-top: 2px; }

.header__cta { display: none; margin-left: var(--e-2); white-space: nowrap; flex-shrink: 0; }
@media (min-width: 1200px) { .header__cta { display: inline-flex; } }

.hamburguesa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--grafito);
}
@media (min-width: 1200px) { .hamburguesa { display: none; } }
.hamburguesa span {
  display: block; width: 20px; height: 1.5px; background: currentColor;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.hamburguesa span::before, .hamburguesa span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px;
  background: currentColor; transition: transform .2s ease, top .2s ease;
}
.hamburguesa span::before { top: -6px; }
.hamburguesa span::after  { top: 6px; }
.hamburguesa[aria-expanded="true"] span { background: transparent; }
.hamburguesa[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburguesa[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Menu movil */
.menu-movil {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; z-index: 99;
  overflow-y: auto;
  padding: var(--e-3) 0 var(--e-6);
  display: none;
}
.menu-movil[data-abierto="true"] { display: block; }
@media (min-width: 1200px) { .menu-movil { display: none !important; } }
.menu-movil__lista { list-style: none; margin: 0; padding: 0; }
.menu-movil__lista > li { margin: 0; }
.menu-movil__lista .menu-movil__grupo { margin-top: 0; }

.menu-movil a {
  display: block; padding: 0.8125rem 0;
  text-decoration: none; color: var(--grafito);
  font-size: var(--t-md); font-weight: 500;
  border-bottom: 1px solid var(--gris-linea-sut);
}
.menu-movil .menu-movil__grupo { margin-top: var(--e-4); }
.menu-movil .menu-movil__titulo {
  font-size: var(--t-xs); color: var(--gris-texto); font-weight: 600;
  padding-bottom: 0.5rem; margin: 0;
}
.menu-movil .menu-movil__grupo a { font-size: var(--t-base); font-weight: 400; }
.menu-movil .btn { margin-top: var(--e-4); }

/* =========================================================
   HERO — pieza distintiva: plano tecnico de vivienda
   ========================================================= */
.hero {
  border-bottom: 1px solid var(--gris-linea-sut);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--e-5);
  padding: var(--e-6) 0 var(--e-5);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: var(--e-6);
    padding: var(--e-7) 0;
  }
}
.hero h1 { margin-bottom: var(--e-3); }
.hero__sub { font-size: var(--t-md); color: var(--gris-texto); max-width: 46ch; margin-bottom: var(--e-4); }
.hero__pie {
  margin-top: var(--e-4);
  padding-top: var(--e-3);
  border-top: 1px solid var(--gris-linea-sut);
  font-size: var(--t-sm);
  color: var(--gris-texto);
  max-width: 46ch;
}

/* Dibujo de plano */
.plano { width: 100%; }
.plano .linea      { stroke: var(--gris-linea); stroke-width: 1; fill: none; }
.plano .muro       { stroke: var(--grafito); stroke-width: 2; fill: none; }
.plano .relleno    { fill: var(--gris-calido); }
.plano .cota       { stroke: var(--gris-linea); stroke-width: .75; stroke-dasharray: 3 3; fill: none; }
.plano .rotulo     { fill: var(--gris-texto); font-size: 9.5px; font-family: var(--fuente); letter-spacing: .01em; }
.plano .nodo circle.punto { fill: var(--verde); }
.plano .nodo circle.halo  { fill: none; stroke: var(--verde); stroke-width: 1; opacity: .35; }
.plano .nodo .cruz        { stroke: var(--verde); stroke-width: 1; }

/* Revelado unico al cargar, solo del plano. Sin animaciones de scroll. */
@media (prefers-reduced-motion: no-preference) {
  .plano .nodo { opacity: 0; animation: aparece .5s ease forwards; }
  .plano .nodo:nth-of-type(1) { animation-delay: .35s; }
  .plano .nodo:nth-of-type(2) { animation-delay: .48s; }
  .plano .nodo:nth-of-type(3) { animation-delay: .61s; }
  .plano .nodo:nth-of-type(4) { animation-delay: .74s; }
  .plano .nodo:nth-of-type(5) { animation-delay: .87s; }
  .plano .nodo:nth-of-type(6) { animation-delay: 1.0s; }
  .plano .nodo:nth-of-type(7) { animation-delay: 1.13s; }
  .plano .nodo:nth-of-type(8) { animation-delay: 1.26s; }
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* Hero interno de paginas secundarias */
.hero-pagina {
  padding: var(--e-6) 0 var(--e-5);
  border-bottom: 1px solid var(--gris-linea-sut);
  background: var(--gris-calido);
}
.hero-pagina h1 { font-size: var(--t-3xl); max-width: 20ch; }
.hero-pagina .plomo { max-width: 58ch; }
.hero-pagina--oscuro { background: var(--grafito); color: #EDECEA; border-bottom: 0; }
.hero-pagina--oscuro h1 { color: #fff; }
.hero-pagina--oscuro .plomo { color: #A9AEB0; }
.hero-pagina--oscuro .ref { color: #6FBBA8; }

/* Migas */
.migas { font-size: var(--t-xs); color: var(--gris-texto); margin-bottom: var(--e-3); }
.migas a { text-decoration: none; color: var(--gris-texto); }
.migas a:hover { color: var(--verde); }
.migas span { margin: 0 .4rem; color: var(--gris-linea); }
.hero-pagina--oscuro .migas, .hero-pagina--oscuro .migas a { color: #8A9093; }

/* =========================================================
   BLOQUES DE CONTENIDO
   ========================================================= */

/* Rejilla generica */
.rejilla { display: grid; gap: var(--e-3); }
@media (min-width: 640px) { .rejilla--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .rejilla--3 { grid-template-columns: repeat(3, 1fr); }
  .rejilla--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Bloque con regla lateral: jerarquia por linea, no por sombra */
.bloque {
  border-left: 2px solid var(--gris-linea);
  padding: 0 0 0 var(--e-3);
}
.bloque h3, .bloque h4 { margin-bottom: 0.5rem; }
.bloque p { font-size: var(--t-sm); color: var(--gris-texto); }
.bloque--verde { border-left-color: var(--verde); }

/* Tarjeta de solucion */
.solucion {
  display: flex; flex-direction: column;
  border: 1px solid var(--gris-linea-sut);
  border-radius: var(--radio);
  padding: var(--e-3);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease;
}
.solucion:hover { border-color: var(--verde); }
.solucion__simbolo { margin-bottom: var(--e-3); color: var(--verde); }
.solucion h3 { font-size: var(--t-lg); margin-bottom: 0.5rem; }
.solucion p { font-size: var(--t-sm); color: var(--gris-texto); flex-grow: 1; margin-bottom: var(--e-3); }
.solucion__ver { font-size: var(--t-sm); font-weight: 600; color: var(--verde); }
@media (min-width: 768px) { .solucion { padding: var(--e-4); } }

/* Lista de verificacion */
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.lista-check li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border: 1px solid var(--verde);
  border-radius: 50%;
}
.lista-check li::after {
  content: "";
  position: absolute; left: 3px; top: calc(0.52em + 3px);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--verde);
}
.seccion--oscura .lista-check li::before { border-color: #6FBBA8; }
.seccion--oscura .lista-check li::after  { background: #6FBBA8; }
.lista-check--2 { columns: 1; }
@media (min-width: 700px) { .lista-check--2 { columns: 2; column-gap: var(--e-4); } }
.lista-check--2 li { break-inside: avoid; }

/* Lista de problemas */
.problemas { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--gris-linea-sut); }
.problemas li {
  padding: 0.9rem 0 0.9rem 1.75rem;
  border-bottom: 1px solid var(--gris-linea-sut);
  font-size: var(--t-sm);
  position: relative;
  color: var(--gris-texto);
}
.problemas li::before {
  content: ""; position: absolute; left: 2px; top: 1.42em;
  width: 11px; height: 1px; background: var(--alerta);
}

/* Proceso numerado — es una secuencia real, el numero encoda orden */
.proceso { counter-reset: paso; border-top: 1px solid var(--gris-linea); }
.paso {
  counter-increment: paso;
  display: grid;
  gap: 0.35rem var(--e-3);
  padding: var(--e-3) 0;
  border-bottom: 1px solid var(--gris-linea-sut);
}
@media (min-width: 760px) {
  .paso { grid-template-columns: 3.5rem 15rem 1fr; align-items: baseline; padding: var(--e-4) 0; }
}
.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-size: var(--t-sm); font-weight: 600; color: var(--verde);
  font-variant-numeric: tabular-nums;
}
.paso h3 { font-size: var(--t-md); margin: 0; font-weight: 600; }
.paso p { font-size: var(--t-sm); color: var(--gris-texto); margin: 0; }

/* Comparador de niveles */
.niveles { display: grid; gap: var(--e-3); }
@media (min-width: 900px) { .niveles { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.nivel {
  border: 1px solid var(--gris-linea-sut);
  border-radius: var(--radio);
  padding: var(--e-4) var(--e-3);
  background: #fff;
}
@media (min-width: 900px) {
  .nivel { border-radius: 0; border-right-width: 0; }
  .nivel:first-child { border-radius: var(--radio) 0 0 var(--radio); }
  .nivel:last-child  { border-radius: 0 var(--radio) var(--radio) 0; border-right-width: 1px; }
}
.nivel--destacado { background: var(--gris-calido); border-color: var(--gris-linea); }
.nivel__nombre { font-size: var(--t-lg); font-weight: 600; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.nivel__para { font-size: var(--t-sm); color: var(--gris-texto); margin-bottom: var(--e-3); padding-bottom: var(--e-3); border-bottom: 1px solid var(--gris-linea-sut); min-height: 4.2em; }
.nivel .lista-check li { font-size: var(--t-sm); }

/* Paquetes */
.paquete {
  border: 1px solid var(--gris-linea-sut);
  border-radius: var(--radio);
  padding: var(--e-4) var(--e-3);
  display: flex; flex-direction: column;
}
.paquete h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.paquete__ideal { font-size: var(--t-sm); color: var(--gris-texto); margin-bottom: var(--e-3); }
.paquete .lista-check { flex-grow: 1; margin-bottom: var(--e-3); }
.paquete__precio {
  font-size: var(--t-sm); font-weight: 600; color: var(--verde);
  padding-top: var(--e-3); border-top: 1px solid var(--gris-linea-sut);
}

/* Casos de uso */
.caso {
  display: grid; gap: var(--e-3);
  padding: var(--e-4) 0;
  border-bottom: 1px solid var(--gris-linea-sut);
}
@media (min-width: 820px) { .caso { grid-template-columns: 1fr 1.4fr; gap: var(--e-5); align-items: start; } }
.caso:last-child { border-bottom: 0; }
.caso h3 { font-size: var(--t-lg); margin-bottom: 0.5rem; }
.caso__meta { font-size: var(--t-xs); color: var(--gris-texto); }
.caso__cuerpo p { font-size: var(--t-sm); color: var(--gris-texto); }

/* Acordeon FAQ */
.faq { border-top: 1px solid var(--gris-linea); }
.faq details { border-bottom: 1px solid var(--gris-linea-sut); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-weight: 500; font-size: var(--t-base);
  position: relative;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 1.5rem;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--verde); border-bottom: 1.5px solid var(--verde);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.72rem; }
.faq summary:hover { color: var(--verde); }
.faq__cuerpo { padding: 0 0 1.25rem; }
.faq__cuerpo p { font-size: var(--t-sm); color: var(--gris-texto); }

/* Tira de tecnologias */
.tecnologias { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tecnologias span {
  border: 1px solid var(--gris-linea);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: var(--t-xs);
  color: var(--grafito-suave);
}
.seccion--oscura .tecnologias span { border-color: #4A5053; color: #C4C8CA; }

/* Cita / mensaje central */
.declaracion {
  font-size: var(--t-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 22ch;
  margin: 0;
}

/* Franja CTA */
.cta-franja { background: var(--grafito); color: #EDECEA; }
.cta-franja h2 { color: #fff; margin-bottom: var(--e-2); }
.cta-franja p { color: #A9AEB0; margin-bottom: var(--e-4); }

/* Aviso legal / nota prudente */
.nota {
  border-left: 2px solid var(--gris-linea);
  padding-left: var(--e-3);
  font-size: var(--t-sm);
  color: var(--gris-texto);
  max-width: var(--ancho-texto);
}

/* Marcador de contenido pendiente */
.pendiente {
  border: 1px dashed var(--gris-linea);
  border-radius: var(--radio);
  padding: var(--e-5) var(--e-3);
  text-align: center;
  color: var(--gris-texto);
  font-size: var(--t-sm);
}

/* Marcador de fotografia a reemplazar */
.foto {
  position: relative;
  background: var(--gris-calido-2);
  border-radius: var(--radio);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto__nota {
  font-size: var(--t-xs); color: var(--gris-texto);
  text-align: center; padding: var(--e-3); line-height: 1.45;
}
.foto--alta { aspect-ratio: 3 / 4; }
.foto--ancha { aspect-ratio: 16 / 9; }

/* =========================================================
   FORMULARIOS
   ========================================================= */
.formulario { max-width: 720px; }
.campo { margin-bottom: var(--e-3); }
.campo > label, .grupo__titulo {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--grafito);
}
.campo__ayuda { font-size: var(--t-xs); color: var(--gris-texto); margin: -0.15rem 0 0.5rem; }
.requerido { color: var(--alerta); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: var(--t-base);
  color: var(--grafito);
  background: #fff;
  border: 1px solid var(--gris-linea);
  border-radius: var(--radio);
  transition: border-color .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--grafito-suave); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(18,89,76,.1);
}
textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A5F62' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
input[type="file"] {
  width: 100%; font-size: var(--t-sm); padding: 0.65rem;
  border: 1px dashed var(--gris-linea); border-radius: var(--radio); background: var(--gris-calido);
}

.fila { display: grid; gap: var(--e-3); }
@media (min-width: 620px) { .fila--2 { grid-template-columns: 1fr 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 var(--e-3); }
legend { padding: 0; }

.opciones { display: grid; gap: 0.5rem; margin-top: 0.25rem; }
@media (min-width: 560px) { .opciones--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .opciones--3 { grid-template-columns: repeat(3, 1fr); } }
.opcion {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gris-linea-sut);
  border-radius: var(--radio);
  font-size: var(--t-sm);
  cursor: pointer;
  line-height: 1.35;
  background: #fff;
}
.opcion:hover { border-color: var(--gris-linea); }
.opcion input { margin: 0.18rem 0 0; accent-color: var(--verde); flex-shrink: 0; width: 15px; height: 15px; }
.opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-tenue); }

.grupo-form {
  border-top: 1px solid var(--gris-linea-sut);
  padding-top: var(--e-4);
  margin-top: var(--e-4);
}
.grupo-form:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.grupo-form__titulo { font-size: var(--t-lg); margin-bottom: 0.35rem; }
.grupo-form__intro { font-size: var(--t-sm); color: var(--gris-texto); margin-bottom: var(--e-3); }

.form-error {
  display: none;
  font-size: var(--t-xs); color: var(--alerta); margin-top: 0.3rem; font-weight: 500;
}
.campo--error input, .campo--error select, .campo--error textarea { border-color: var(--alerta); }
.campo--error .form-error { display: block; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-aviso {
  padding: var(--e-3);
  border-radius: var(--radio);
  font-size: var(--t-sm);
  margin-bottom: var(--e-3);
  display: none;
}
.form-aviso--ok  { background: var(--verde-tenue); color: var(--verde); border: 1px solid rgba(18,89,76,.25); }
.form-aviso--mal { background: #FBEFEC; color: var(--alerta); border: 1px solid rgba(138,51,36,.25); }
.form-aviso[data-visible="true"] { display: block; }

/* =========================================================
   BLOG
   ========================================================= */
.filtros { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--e-5); }
.filtros button {
  padding: 0.35rem 0.85rem;
  font-size: var(--t-xs); font-weight: 500;
  border: 1px solid var(--gris-linea); border-radius: 100px;
  background: #fff; color: var(--grafito-suave); cursor: pointer;
}
.filtros button:hover { border-color: var(--verde); color: var(--verde); }
.filtros button[aria-pressed="true"] { background: var(--grafito); border-color: var(--grafito); color: #fff; }

.articulos { display: grid; gap: 0; border-top: 1px solid var(--gris-linea); }
.articulo {
  display: grid; gap: 0.35rem var(--e-4);
  padding: var(--e-3) 0;
  border-bottom: 1px solid var(--gris-linea-sut);
  text-decoration: none; color: inherit;
}
@media (min-width: 780px) {
  .articulo { grid-template-columns: 11rem 1fr; align-items: baseline; padding: var(--e-4) 0; }
}
.articulo__cat { font-size: var(--t-xs); color: var(--verde); font-weight: 600; }
.articulo h3 { font-size: var(--t-md); margin: 0 0 0.3rem; font-weight: 600; }
.articulo:hover h3 { color: var(--verde); }
.articulo p { font-size: var(--t-sm); color: var(--gris-texto); margin: 0; }

.prosa { max-width: var(--ancho-texto); }
.prosa h2 { font-size: var(--t-xl); margin: var(--e-5) 0 var(--e-2); }
.prosa h3 { font-size: var(--t-md); font-weight: 600; margin: var(--e-4) 0 var(--e-2); }
.prosa p { margin-bottom: var(--e-3); }
.prosa ul, .prosa ol { padding-left: 1.15rem; margin: 0 0 var(--e-3); }
.prosa li { margin-bottom: 0.45rem; }
.prosa > *:first-child { margin-top: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--grafito); color: #A9AEB0; padding: var(--e-6) 0 var(--e-4); font-size: var(--t-sm); }
.footer a { color: #C4C8CA; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--e-4); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--e-5); } }
.footer h4 { color: #fff; font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--e-2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.55rem; line-height: 1.4; }
.footer__marca { color: #fff; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em; margin-bottom: var(--e-2); display: flex; align-items: center; gap: 0.6rem; }
.footer__zonas { font-size: var(--t-xs); line-height: 1.7; }
.footer__base {
  margin-top: var(--e-5); padding-top: var(--e-3);
  border-top: 1px solid #33383B;
  display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-3);
  justify-content: space-between; align-items: center;
  font-size: var(--t-xs);
}
.footer__legales { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-3); }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  background: var(--verde); color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-size: var(--t-sm); font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
}
.wa:hover { background: var(--verde-claro); }
.wa span { display: none; }
@media (min-width: 560px) { .wa span { display: inline; } .wa { right: 1.5rem; bottom: 1.5rem; } }

/* =========================================================
   404
   ========================================================= */
.error404 { padding: var(--e-8) 0; text-align: left; }
.error404 .codigo { font-size: var(--t-sm); font-weight: 600; color: var(--verde); font-variant-numeric: tabular-nums; margin-bottom: var(--e-2); }

/* Utilidades */
.oculto-visual {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-2 { margin-top: var(--e-2); }
.mt-3 { margin-top: var(--e-3); }
.mt-4 { margin-top: var(--e-4); }
.mt-5 { margin-top: var(--e-5); }
.mb-4 { margin-bottom: var(--e-4); }


/* =========================================================
   DIRECCIÓN VISUAL
   Oscuro profundo, verde brillante, esquinas redondeadas,
   botones píldora y fichas de icono.
   ========================================================= */

:root {
  --v:        #2FBF71;   /* verde de acción */
  --v-vivo:   #7BE3A3;   /* verde de titulares sobre oscuro */
  --v-suave:  #E7F7EE;   /* fondo de fichas en claro */
  --v-borde:  #BEE7CF;
  --v-texto:  #0C7A40;   /* verde para texto sobre fondo claro: el brillante no contrasta */

  --osc:      #0C100F;   /* fondo oscuro */
  --osc-2:    #141A18;   /* tarjeta oscura */
  --osc-3:    #1B2320;
  --borde-osc:#222D29;
  --txt-osc:  #E8EFEB;   /* texto sobre oscuro */
  --txt-osc-2:#9BAAA4;

  --claro:    #FFFFFF;
  --claro-2:  #F5F8F6;
  --borde:    #E2E8E5;
  --txt:      #101513;
  --txt-2:    #5A6663;

  --r:        16px;      /* radio de tarjeta */
  --r-chico:  11px;
}

/* ---------- Barra superior ---------- */
.p-barra {
  background: var(--osc);
  color: var(--txt-osc-2);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--borde-osc);
}
.p-barra__interior {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; flex-wrap: wrap;
  padding: 0.55rem var(--e-3);
  text-align: center;
}
.p-barra strong { color: var(--txt-osc); font-weight: 600; }
.p-barra a { color: var(--v-vivo); text-decoration: underline; text-underline-offset: 3px; }
.p-barra__sep { width: 1px; height: 13px; background: var(--borde-osc); }
@media (max-width: 720px) { .p-barra__sep { display: none; } }

/* ---------- Encabezado ---------- */
.header {
  background: var(--osc);
  border-bottom: 1px solid var(--borde-osc);
  backdrop-filter: none;
}
.header__interior { min-height: 76px; }
.logo { color: var(--txt-osc); gap: 0.7rem; align-items: center; }
.logo__marca { color: var(--v); }
.logo__texto { display: flex; flex-direction: column; line-height: 1.1; }
.logo__nombre {
  font-weight: 700; font-size: 1.06rem;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.logo__acento { color: var(--v); font-weight: 500; }
.logo__bajada {
  font-size: 0.5625rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--txt-osc-2); font-weight: 500; margin-top: 3px;
}
@media (max-width: 520px) { .logo__bajada { display: none; } }

.nav__link { color: var(--txt-osc); font-weight: 500; }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link--activo { color: var(--v-vivo); }
.nav__flecha { opacity: .75; }

.submenu {
  background: var(--osc-2);
  border: 1px solid var(--borde-osc);
  border-radius: var(--r-chico);
  padding: 0.4rem;
}
.submenu a { color: var(--txt-osc); border-radius: 7px; }
.submenu a:hover { background: var(--osc-3); color: var(--v-vivo); }
.submenu a span { color: var(--txt-osc-2); }

.hamburguesa { color: var(--txt-osc); }
.menu-movil { background: var(--osc); inset: 0 0 0 0; padding-top: 88px; }
.menu-movil a { color: var(--txt-osc); border-bottom-color: var(--borde-osc); }
.menu-movil__titulo { color: var(--v-vivo); }
.menu-movil__lista { list-style: none; margin: 0; padding: 0; }

/* ---------- Botones píldora ---------- */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.p-btn:hover { transform: translateY(-1px); }
.p-btn .p-flecha { transition: transform .18s ease; }
.p-btn:hover .p-flecha { transform: translateX(3px); }

.p-btn--verde { background: var(--v); color: #04120A; }
.p-btn--verde:hover { background: var(--v-vivo); }

.p-btn--linea-clara { border-color: rgba(255,255,255,.22); color: var(--txt-osc); }
.p-btn--linea-clara:hover { border-color: var(--v); color: var(--v-vivo); }

.p-btn--linea { border-color: rgba(255,255,255,.22); color: var(--txt-osc); }
.p-btn--linea:hover { background: var(--v); border-color: var(--v); color: #04120A; }

.p-btn--oscuro { background: var(--txt); color: #FFFFFF; }
.p-btn--oscuro:hover { background: var(--v); color: #04120A; }

.p-btn--bloque { width: 100%; margin-top: var(--e-4); }

.p-botones { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Hero ---------- */
.p-hero {
  position: relative;
  background: radial-gradient(900px 520px at 68% 42%, #16221D 0%, var(--osc) 62%);
  color: var(--txt-osc);
  overflow: hidden;
  border-bottom: 1px solid var(--borde-osc);
}
.p-hero__trama {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 76px 76px, 76px 76px;
  mask-image: radial-gradient(72% 62% at 60% 45%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 62% at 60% 45%, #000 0%, transparent 78%);
  pointer-events: none;
}
.p-hero__interior { position: relative; padding: clamp(3.5rem, 7vw, 6.5rem) var(--e-3) clamp(3rem, 6vw, 5.5rem); }
@media (min-width: 768px) { .p-hero__interior { padding-left: var(--e-5); padding-right: var(--e-5); } }

.p-hero__titulo {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.038em;
  margin: 0 0 var(--e-3);
  color: #FFFFFF;
}
.p-verde { color: var(--v-vivo); }

.p-hero__bajada {
  font-size: 1.0625rem;
  color: var(--txt-osc-2);
  max-width: 56ch;
  line-height: 1.62;
  margin-bottom: var(--e-4);
}

/* Insignias del pie del hero */
.p-insignias {
  display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  margin-top: var(--e-5);
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--borde-osc);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.p-insignias span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--txt-osc);
}
.p-insignias svg { color: var(--v); width: 17px; height: 17px; }
@media (max-width: 620px) { .p-insignias { border-radius: var(--r); } }

/* ---------- Secciones ---------- */
.p-seccion { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.p-seccion--clara  { background: var(--claro); color: var(--txt); }
.p-seccion--gris   { background: var(--claro-2); color: var(--txt); }
.p-seccion--oscura { background: var(--osc); color: var(--txt-osc); }

.p-eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--txt-2);
  margin: 0 0 var(--e-3);
}
.p-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--v-texto); flex-shrink: 0; }
.p-eyebrow--claro { color: var(--v-vivo); }
.p-eyebrow--claro::before { background: var(--v); }

.p-titulo {
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--e-3);
  color: var(--txt);
}
.p-titulo--claro { color: #FFFFFF; }

.p-bajada {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--txt-2);
  max-width: 62ch;
  margin: 0 0 var(--e-3);
}
.p-bajada--clara { color: var(--txt-osc-2); }

/* ---------- Fichas de icono ---------- */
.p-ficha {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-chico);
  background: var(--v-suave);
  color: var(--v-texto);
  border: 1px solid var(--v-borde);
  margin-bottom: var(--e-3);
  transition: background .2s ease, color .2s ease;
}
.p-ficha--oscura {
  background: rgba(47,191,113,.12);
  border-color: rgba(47,191,113,.28);
  color: var(--v-vivo);
}

/* ---------- Comparador de dos paneles ---------- */
.p-comparador { display: grid; gap: var(--e-3); margin-top: var(--e-5); }
@media (min-width: 900px) { .p-comparador { grid-template-columns: 1fr 1fr; gap: var(--e-4); } }

.p-panel {
  background: var(--claro);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.p-panel--bien { border-color: var(--v-borde); background: linear-gradient(180deg, #F4FBF7 0%, var(--claro) 55%); }
.p-panel__titulo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--e-3);
  color: var(--txt);
}
.p-panel__titulo svg { width: 19px; height: 19px; }
.p-panel .p-panel__titulo svg { color: var(--txt-2); }
.p-panel--bien .p-panel__titulo svg { color: var(--v-texto); }

.p-lista { list-style: none; margin: 0; padding: 0; }
.p-lista li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--txt-2);
}
.p-lista li:last-child { margin-bottom: 0; }
.p-lista li::before {
  content: "";
  position: absolute; left: 0; top: 0.36em;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--borde);
}
.p-lista--bien li::before { border-color: var(--v-texto); }
.p-lista--bien li::after {
  content: "";
  position: absolute; left: 4.5px; top: calc(0.36em + 4.5px);
  width: 4px; height: 4px; border-radius: 50%; background: var(--v-texto);
}

/* ---------- Tarjetas de solución ---------- */
.p-tarjetas { display: grid; gap: var(--e-3); margin-top: var(--e-5); }
@media (min-width: 700px)  { .p-tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .p-tarjetas { grid-template-columns: repeat(3, 1fr); gap: var(--e-4); } }

.p-tarjeta {
  display: flex; flex-direction: column;
  background: var(--claro);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  text-decoration: none;
  color: var(--txt);
  transition: border-color .2s ease, transform .2s ease;
}
.p-tarjeta:hover { border-color: var(--v); transform: translateY(-4px); }
.p-tarjeta:hover .p-ficha { background: var(--v); color: #FFFFFF; }
.p-tarjeta h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.p-tarjeta p { font-size: 0.9375rem; line-height: 1.6; color: var(--txt-2); margin: 0 0 var(--e-3); flex-grow: 1; }
.p-ver {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--v-texto);
}
.p-tarjeta:hover .p-flecha { transform: translateX(3px); }
.p-flecha { transition: transform .18s ease; }

.p-tarjeta--oscura { background: var(--osc); border-color: var(--osc); color: var(--txt-osc); }
.p-tarjeta--oscura h3 { color: #FFFFFF; }
.p-tarjeta--oscura p { color: var(--txt-osc-2); }
.p-tarjeta--oscura .p-ver { color: var(--v-vivo); }
.p-tarjeta--oscura:hover { border-color: var(--v); }
.p-tarjeta--oscura:hover .p-ficha--oscura { background: var(--v); color: #04120A; }

/* ---------- Bloque doble ---------- */
.p-doble { display: grid; gap: var(--e-5); }
@media (min-width: 1000px) {
  .p-doble { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: var(--e-6); align-items: start; }
  .p-doble--invertido { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
.p-doble__grilla { display: grid; gap: var(--e-3); }
@media (min-width: 640px) { .p-doble__grilla { grid-template-columns: 1fr 1fr; } }

.p-mini {
  background: var(--osc-2);
  border: 1px solid var(--borde-osc);
  border-radius: var(--r);
  padding: 1.4rem;
  transition: border-color .2s ease;
}
.p-mini:hover { border-color: rgba(47,191,113,.4); }
.p-mini h4 { font-size: 1rem; font-weight: 600; color: #FFFFFF; margin: 0 0 0.5rem; letter-spacing: -0.012em; }
.p-mini p { font-size: 0.875rem; line-height: 1.6; color: var(--txt-osc-2); margin: 0; }
.p-mini .p-ficha { width: 40px; height: 40px; margin-bottom: 1rem; }

/* ---------- Cita ---------- */
.p-cita {
  margin: var(--e-4) 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--v);
  font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: #FFFFFF;
}

/* ---------- Plano ---------- */
.p-plano {
  margin-top: var(--e-5);
  background: var(--claro);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 2.4rem);
}
.p-plano .plano { width: 100%; max-width: 780px; margin: 0 auto; }
.plano .nodo circle.punto { fill: var(--v); }
.plano .nodo circle.halo  { stroke: var(--v); }
.plano .nodo .cruz        { stroke: var(--v); }
.plano .relleno { fill: var(--claro-2); }

/* ---------- Cierre ---------- */
.p-cierre { text-align: left; }
.p-cierre .p-titulo { max-width: 20ch; }
.p-cierre .p-botones { margin-top: var(--e-4); }

/* =========================================================
   PÁGINAS INTERIORES — coherencia con la portada
   ========================================================= */
.hero-pagina { background: var(--claro-2); border-bottom: 1px solid var(--borde); }
.hero-pagina--oscuro { background: var(--osc); }
.hero-pagina .ref, .hero-pagina--oscuro .ref { color: var(--v-texto); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; }

.seccion--gris { background: var(--claro-2); }
.seccion--oscura, .cta-franja, .footer { background: var(--osc); }
.cta-franja h2, .seccion--oscura h2, .seccion--oscura h3 { color: #FFFFFF; }
.seccion--oscura .encabezado-seccion p, .cta-franja p, .footer { color: var(--txt-osc-2); }
.seccion--oscura .bloque p { color: var(--txt-osc-2) !important; }
.seccion--oscura .ref { color: var(--v-vivo); }
.footer h4 { color: var(--v-vivo); }
.footer a { color: var(--txt-osc); }
.footer__base { border-top-color: var(--borde-osc); }
.btn--fantasma { border-color: rgba(255,255,255,.22); color: var(--txt-osc); border-radius: 999px; }
.btn--fantasma:hover { background: var(--v); border-color: var(--v); color: #04120A; }

.btn { border-radius: 999px; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:not(.btn--linea):not(.btn--claro):not(.btn--fantasma) { background: var(--txt); border-color: var(--txt); }
.btn:not(.btn--linea):not(.btn--claro):not(.btn--fantasma):hover { background: var(--v); border-color: var(--v); color: #04120A; }
.btn--linea { border-color: var(--borde); color: var(--txt); }
.btn--linea:hover { background: var(--v); border-color: var(--v); color: #04120A; }
.btn--claro:hover { background: var(--v); border-color: var(--v); color: #04120A; }

.solucion, .paquete, .nivel, .foto, .pendiente { border-radius: var(--r); }
.solucion { border-color: var(--borde); transition: border-color .2s ease, transform .2s ease; }
.solucion:hover { border-color: var(--v); transform: translateY(-4px); }
.solucion__simbolo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-chico);
  background: var(--v-suave); border: 1px solid var(--v-borde); color: var(--v);
}
.solucion:hover .solucion__simbolo { background: var(--v); color: #FFFFFF; }
.solucion__ver { color: var(--v-texto); }

.paquete { border-color: var(--borde); transition: border-color .2s ease, transform .2s ease; }
.paquete:hover { border-color: var(--v); transform: translateY(-4px); }
.paquete__precio { color: var(--v-texto); }
.nivel { border-color: var(--borde); }
.nivel--destacado { border-color: var(--v); background: linear-gradient(180deg, #F4FBF7 0%, var(--claro) 55%); }
.nivel__nombre { color: var(--v-texto); }

.bloque { border-left-color: var(--v); }
.lista-check li::before { border-color: var(--v-texto); }
.lista-check li::after  { background: var(--v-texto); }
.faq summary::after { border-color: var(--v); }
.faq details[open] summary { color: var(--v-texto); }
.paso::before { color: var(--v-texto); }
.tecnologias span { border-radius: 999px; }
.tecnologias span:hover { background: var(--v); border-color: var(--v); color: #04120A; }
.enlace { color: var(--v-texto); border-bottom-color: rgba(12,122,64,.35); }
.articulo__cat { color: var(--v-texto); }
.articulo:hover h3 { color: var(--v-texto); }
.filtros button { border-radius: 999px; }
.filtros button[aria-pressed="true"] { background: var(--osc); border-color: var(--osc); }
.wa { background: var(--v); color: #04120A; }
.wa:hover { background: var(--v-vivo); }

input:focus, select:focus, textarea:focus { border-color: var(--v); box-shadow: 0 0 0 3px rgba(47,191,113,.18); }
.opcion { border-radius: var(--r-chico); }
.opcion:has(input:checked) { border-color: var(--v); background: var(--v-suave); }
.grupo-form__titulo { color: var(--v-texto); }
input, select, textarea { border-radius: var(--r-chico); }

/* =========================================================
   MOVIMIENTO
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  .plano .muro,
  .plano .linea {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: trazar 1.5s cubic-bezier(.55,.1,.25,1) forwards;
  }
  .plano .linea { animation-delay: .35s; animation-duration: 1.1s; }
  .plano .cota  { opacity: 0; animation: aparece .7s ease .9s forwards; }
  .plano .rotulo { opacity: 0; animation: aparece .6s ease 1.05s forwards; }
  .plano .relleno { opacity: 0; animation: aparece .9s ease .45s forwards; }

  @keyframes trazar { to { stroke-dashoffset: 0; } }

  @supports (animation-timeline: view()) {
    .p-seccion > .contenedor > *,
    .seccion > .contenedor > * {
      animation: entrar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes entrar {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: none; }
    }
  }
}


/* Sobre fondo oscuro vuelve el verde brillante: ahí sí contrasta */
.seccion--oscura .lista-check li::before,
.p-seccion--oscura .p-lista--bien li::before { border-color: var(--v-vivo); }
.seccion--oscura .lista-check li::after,
.p-seccion--oscura .p-lista--bien li::after  { background: var(--v-vivo); }
.p-tarjeta--oscura .p-ver { color: var(--v-vivo); }
.seccion--oscura .enlace { color: var(--v-vivo); border-bottom-color: rgba(123,227,163,.35); }


/* =========================================================
   HERO EN DOS COLUMNAS + SECCIONES REINCORPORADAS
   ========================================================= */

/* ---------- Hero: texto y plano ---------- */
.p-hero__grid { display: grid; gap: var(--e-5); align-items: center; }
@media (min-width: 1000px) {
  .p-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: var(--e-6); }
}
.p-hero__texto { min-width: 0; }
.p-hero__plano { min-width: 0; }
.p-hero__plano .plano { width: 100%; }

/* El plano invertido para leerse sobre fondo oscuro */
.p-hero__plano .plano .muro   { stroke: rgba(255,255,255,.72); }
.p-hero__plano .plano .linea  { stroke: rgba(255,255,255,.30); }
.p-hero__plano .plano .cota   { stroke: rgba(255,255,255,.22); }
.p-hero__plano .plano .rotulo { fill: rgba(255,255,255,.55); }
.p-hero__plano .plano .relleno { fill: rgba(255,255,255,.028); }
.p-hero__plano .plano .nodo circle.punto { fill: var(--v-vivo); }
.p-hero__plano .plano .nodo circle.halo  { stroke: var(--v-vivo); opacity: .5; }
.p-hero__plano .plano .nodo .cruz        { stroke: var(--v-vivo); }
.p-hero__plano .plano .nodo .rotulo      { fill: var(--v-vivo); }

@media (max-width: 999px) {
  .p-hero__plano { margin-top: var(--e-4); }
  .p-insignias { margin-top: var(--e-4); }
}

/* ---------- Niveles ---------- */
.p-niveles { display: grid; gap: var(--e-3); margin-top: var(--e-5); }
@media (min-width: 940px) { .p-niveles { grid-template-columns: repeat(3, 1fr); gap: var(--e-4); align-items: start; } }

.p-nivel {
  position: relative;
  background: var(--claro);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.p-nivel--destacado { border-color: var(--v); box-shadow: 0 0 0 1px var(--v); }
.p-nivel__cinta {
  position: absolute; top: -0.72rem; left: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--v); color: #04120A;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px;
}
.p-nivel__nombre { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 0.35rem; color: var(--txt); }
.p-nivel__para {
  font-size: 0.9375rem; line-height: 1.55; color: var(--txt-2);
  margin: 0 0 var(--e-3); padding-bottom: var(--e-3);
  border-bottom: 1px solid var(--borde);
}

.p-nota {
  margin-top: var(--e-4);
  font-size: 0.9375rem;
  color: var(--txt-2);
}

/* ---------- Casos de uso ---------- */
.p-casos { display: grid; gap: var(--e-3); margin-top: var(--e-5); }
@media (min-width: 900px) { .p-casos { grid-template-columns: repeat(3, 1fr); gap: var(--e-4); } }

.p-caso {
  background: var(--claro-2);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.p-caso h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.25rem; color: var(--txt); }
.p-caso__meta {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--v-texto); margin: 0 0 var(--e-2);
}
.p-caso p { font-size: 0.9375rem; line-height: 1.6; color: var(--txt-2); margin: 0; }

.p-btn--suelto { margin-top: var(--e-4); }

/* ---------- Confianza ---------- */
.p-confianza { display: grid; gap: var(--e-3) var(--e-4); margin-top: var(--e-5); }
@media (min-width: 700px)  { .p-confianza { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .p-confianza { grid-template-columns: repeat(4, 1fr); } }

.p-punto { display: flex; gap: 0.85rem; align-items: flex-start; }
.p-punto > svg { color: var(--v-texto); flex-shrink: 0; margin-top: 2px; width: 21px; height: 21px; }
.p-punto h4 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.3rem; color: var(--txt); letter-spacing: -0.01em; }
.p-punto p { font-size: 0.875rem; line-height: 1.55; color: var(--txt-2); margin: 0; }

/* ---------- Tecnologías ---------- */
.p-seccion--angosta { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.p-titulo--chico { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.1rem); }
.p-tecnologias { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--e-4); }
.p-tecnologias span {
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--txt-2);
  background: var(--claro);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.p-tecnologias span:hover { border-color: var(--v); color: var(--v-texto); background: var(--v-suave); }

/* ---------- Preguntas frecuentes ---------- */
.p-faq { margin-top: var(--e-5); display: grid; gap: 0.65rem; }
.p-faq details {
  background: var(--claro);
  border: 1px solid var(--borde);
  border-radius: var(--r-chico);
  transition: border-color .2s ease;
}
.p-faq details[open] { border-color: var(--v); }
.p-faq summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-size: 1rem; font-weight: 600; color: var(--txt);
  position: relative; line-height: 1.4;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 1.45rem;
  width: 10px; height: 10px;
  border-right: 1.8px solid var(--v-texto);
  border-bottom: 1.8px solid var(--v-texto);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.p-faq details[open] summary::after { transform: rotate(-135deg); top: 1.68rem; }
.p-faq summary:hover { color: var(--v-texto); }
.p-faq__cuerpo { padding: 0 1.25rem 1.25rem; }
.p-faq__cuerpo p { font-size: 0.9375rem; line-height: 1.62; color: var(--txt-2); margin: 0; }


/* =========================================================
   CORRECCIONES DE NAVEGACIÓN Y PÁGINAS INTERIORES
   ========================================================= */

/* ---------- El submenú ya no se pierde al cruzar el hueco ----------
   Un puente invisible cubre el espacio entre el botón y el panel,
   de modo que el puntero nunca sale del elemento.                  */
.nav__item--desplegable { position: relative; }
.nav__item--desplegable::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 14px;
  display: none;
}
.nav__item--desplegable:hover::after,
.nav__item--abierto::after { display: block; }

.submenu { top: calc(100% + 8px); }
.submenu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10px;
  height: 10px;
}

/* ---------- Encabezado de páginas interiores en oscuro ----------
   Antes arrancaban claras y seguían claras hasta el pie. Ahora abren
   en oscuro, igual que la portada, y el cuerpo alterna blanco y gris. */
.hero-pagina {
  position: relative;
  background: radial-gradient(760px 420px at 72% 40%, #16221D 0%, var(--osc) 64%);
  border-bottom: 1px solid var(--borde-osc);
  padding: clamp(2.8rem, 5vw, 4.4rem) 0 clamp(2.6rem, 4.5vw, 3.8rem);
  overflow: hidden;
}
.hero-pagina::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 76px 76px, 76px 76px;
  mask-image: radial-gradient(70% 70% at 62% 45%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 62% 45%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero-pagina > .contenedor { position: relative; }

.hero-pagina h1 { color: #FFFFFF; letter-spacing: -0.032em; }
.hero-pagina .plomo { color: var(--txt-osc-2); }
.hero-pagina .migas,
.hero-pagina .migas a { color: #8A9793; }
.hero-pagina .migas a:hover { color: var(--v-vivo); }
.hero-pagina .migas span { color: #4A5551; }
.hero-pagina .ref,
.hero-pagina--oscuro .ref { color: var(--v-vivo); }

/* Los botones del encabezado, en versión clara */
.hero-pagina .btn:not(.btn--linea) { background: var(--v); border-color: var(--v); color: #04120A; }
.hero-pagina .btn:not(.btn--linea):hover { background: var(--v-vivo); border-color: var(--v-vivo); }
.hero-pagina .btn--linea { border-color: rgba(255,255,255,.24); color: var(--txt-osc); background: transparent; }
.hero-pagina .btn--linea:hover { background: var(--v); border-color: var(--v); color: #04120A; }

/* La primera sección después del encabezado siempre en blanco,
   para que el corte con el oscuro sea nítido. */
.hero-pagina + .seccion { background: var(--claro); }
