/* ==========================================================================
   SOLAR LEVANTE — Sistema de diseño
   Placas solares fotovoltaicas · Comunidad Valenciana
   --------------------------------------------------------------------------
   Tipografías autoalojadas (no dependemos de Google Fonts): más rápido,
   sin parpadeo y sin peticiones a terceros.
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fuentes/sora-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fuentes/sora-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/sora-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/sora-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fuentes/sora-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fuentes/sora-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/figtree-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/figtree-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fuentes/figtree-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fuentes/figtree-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fuentes/figtree-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fuentes/figtree-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/space-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/space-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Azules */
  --azul-noche: #0B2239;
  --azul: #14406B;
  --azul-700: #1C5288;
  --azul-900: #071829;

  /* Sol */
  --sol: #F4A62A;
  --sol-claro: #FFD27A;
  --sol-oscuro: #D9871A;

  /* Neutros */
  --cal: #F7F5EF;
  --niebla: #EDEFF2;
  --blanco: #FFFFFF;
  --tinta: #12212F;
  --tinta-suave: #5B6B7B;

  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-oscuro: #1DA851;

  /* Tokens */
  --radio-s: 8px;
  --radio: 14px;
  --radio-l: 26px;
  --borde: 1px solid rgba(18, 33, 47, 0.10);
  --borde-azul: 1px solid rgba(255, 255, 255, 0.14);
  --sombra-s: 0 2px 10px rgba(11, 34, 57, 0.06);
  --sombra-m: 0 18px 46px rgba(11, 34, 57, 0.13);

  --ancho: 1200px;
  --pad-lat: 24px;
  --alto-cab: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }

/* ---------- Utilidades ---------- */
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--pad-lat); }
.seccion { padding: 100px 0; }
.seccion--cal { background: var(--cal); }
.seccion--niebla { background: var(--niebla); }
.seccion--oscura { background: var(--azul-noche); color: var(--cal); }
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }
.seccion--oscura p { color: rgba(247, 245, 239, 0.76); }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .705rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--sol-oscuro);
  margin: 0 0 14px;
  display: block;
}
.seccion--oscura .eyebrow { color: var(--sol); }

.lede { font-size: 1.12rem; color: var(--tinta-suave); max-width: 62ch; }
.seccion--oscura .lede { color: rgba(247, 245, 239, 0.78); }
.acento { color: var(--sol); }
.centrado { text-align: center; }
.centrado .lede { margin-left: auto; margin-right: auto; }

.cab-seccion { max-width: 720px; margin-bottom: 54px; }
.cab-seccion.centrado { margin-left: auto; margin-right: auto; }

/* Textura fotovoltaica */
.fotovoltaica { position: relative; }
.fotovoltaica::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 82, 136, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 82, 136, 0.055) 1px, transparent 1px);
  background-size: 44px 26px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 42%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 68% at 50% 42%, #000 30%, transparent 100%);
}
.seccion--oscura.fotovoltaica::before {
  background-image:
    linear-gradient(rgba(255, 210, 122, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 210, 122, 0.075) 1px, transparent 1px);
}
.fotovoltaica > * { position: relative; z-index: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 27px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--sol { background: var(--sol); color: var(--azul-noche); box-shadow: 0 8px 22px rgba(244, 166, 42, 0.32); }
.btn--sol:hover { background: var(--sol-claro); box-shadow: 0 12px 28px rgba(244, 166, 42, 0.4); }

.btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3); }
.btn--wa:hover { background: var(--whatsapp-oscuro); }

.btn--linea { border-color: rgba(18, 33, 47, 0.2); color: var(--tinta); background: transparent; }
.btn--linea:hover { border-color: var(--azul); background: var(--azul); color: #fff; }

.btn--linea-clara { border-color: rgba(255, 255, 255, 0.32); color: var(--blanco); background: transparent; }
.btn--linea-clara:hover { background: var(--blanco); color: var(--azul-noche); border-color: var(--blanco); }

.grupo-btn { display: flex; flex-wrap: wrap; gap: 12px; }
.centrado .grupo-btn { justify-content: center; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--alto-cab);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(18, 33, 47, 0.07);
  transition: box-shadow .25s ease;
}
.cabecera.scrolled { box-shadow: 0 6px 24px rgba(11, 34, 57, 0.08); }
.cabecera__interior {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 40px; width: auto; }
.logo__texto {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
  color: var(--azul-noche);
}
.logo__texto span { color: var(--sol-oscuro); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--tinta);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sol);
  transition: width .25s ease;
}
.nav a:hover { color: var(--azul-700); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.cab__acciones { display: flex; align-items: center; gap: 12px; flex: none; }
.cab__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--azul-noche);
}
.cab__tel svg { width: 17px; height: 17px; color: var(--sol-oscuro); }
.cab__tel:hover { color: var(--sol-oscuro); }

.hamburguesa {
  display: none;
  width: 44px; height: 44px;
  border: var(--borde);
  border-radius: var(--radio-s);
  background: transparent;
  padding: 0;
  position: relative;
}
.hamburguesa span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--azul-noche);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.hamburguesa span:nth-child(1) { top: 15px; }
.hamburguesa span:nth-child(2) { top: 21px; }
.hamburguesa span:nth-child(3) { top: 27px; }
.hamburguesa.abierta span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburguesa.abierta span:nth-child(2) { opacity: 0; }
.hamburguesa.abierta span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Desplegable de zonas (inyectado por JS) ---------- */
.tiene-menu { position: relative; }
.tiene-menu > a { display: inline-flex; align-items: center; gap: 6px; }
.flecha {
  width: 10px; height: 10px;
  flex: none;
  transition: transform .25s ease;
}
.tiene-menu:hover .flecha, .tiene-menu:focus-within .flecha { transform: rotate(180deg); }

.panel-zonas {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: max-content;
  max-width: 640px;
  background: var(--blanco);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-m);
  padding: 24px 26px;
  display: grid;
  grid-auto-flow: column;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.panel-zonas::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.tiene-menu:hover .panel-zonas,
.tiene-menu:focus-within .panel-zonas {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.panel-zonas__col { min-width: 168px; }
.panel-zonas__titulo {
  font-family: 'Space Mono', monospace;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sol-oscuro);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: var(--borde);
}
.panel-zonas__col a {
  display: block;
  padding: 6px 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--tinta-suave);
}
.panel-zonas__col a::after { display: none; }
.panel-zonas__col a:hover { color: var(--azul-700); }
.panel-zonas__col a.es-provincia { color: var(--azul-noche); font-weight: 700; }
.panel-zonas__proximo {
  font-size: .9rem;
  color: #9AA7B3;
  padding: 6px 0;
}
.panel-zonas__proximo em { font-style: normal; font-size: .74rem; opacity: .8; display: block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, var(--azul-noche) 0%, var(--azul) 62%, var(--azul-700) 100%);
  color: var(--cal);
  padding: 84px 0 90px;
  overflow: hidden;
}
.hero__rejilla {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 62px;
  align-items: center;
}
.hero h1 { color: var(--blanco); margin-bottom: 22px; }
.hero__lede { font-size: 1.15rem; color: rgba(247, 245, 239, 0.8); max-width: 52ch; margin-bottom: 30px; }
.hero .grupo-btn { margin-bottom: 38px; }

.garantias { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.garantias li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .87rem;
  color: rgba(247, 245, 239, 0.72);
}
.garantias svg { width: 16px; height: 16px; color: var(--sol); flex: none; }

.hero__marco {
  position: relative;
  border-radius: var(--radio-l);
  overflow: visible;
}
.hero__foto {
  border-radius: var(--radio-l);
  overflow: hidden;
  aspect-ratio: 4 / 3.35;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  background: var(--azul-900);
}
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }

.cartel {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radio);
  padding: 14px 18px;
  box-shadow: var(--sombra-m);
  color: var(--tinta);
}
.cartel__dato {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--azul-noche);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cartel__etq {
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinta-suave);
  margin-top: 5px;
  display: block;
}
.cartel--sol { top: 26px; left: -26px; border-left: 4px solid var(--sol); }
.cartel--ahorro { bottom: 30px; right: -22px; border-left: 4px solid var(--azul-700); }

/* ---------- Tarjetas ---------- */
.rejilla { display: grid; gap: 22px; }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }

.tarjeta {
  background: var(--blanco);
  border: var(--borde);
  border-radius: var(--radio);
  padding: 32px 28px;
  box-shadow: var(--sombra-s);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-m);
  border-color: rgba(244, 166, 42, 0.4);
}
.tarjeta h3 { margin-bottom: .5em; }
.tarjeta p { color: var(--tinta-suave); font-size: .96rem; margin: 0; }
.tarjeta__icono {
  width: 50px; height: 50px;
  border-radius: var(--radio-s);
  background: rgba(244, 166, 42, 0.13);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.tarjeta__icono svg { width: 25px; height: 25px; color: var(--sol-oscuro); }

/* ---------- Pasos ---------- */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.paso {
  position: relative;
  padding: 32px 24px 30px;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, 0.045);
  border: var(--borde-azul);
}
.paso__num {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--sol);
  display: block;
  margin-bottom: 16px;
}
.paso h3 { font-size: 1.1rem; color: var(--blanco); }
.paso p { font-size: .93rem; margin: 0; }

/* ---------- Calculadora ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radio-l);
  overflow: hidden;
  border: var(--borde);
  box-shadow: var(--sombra-m);
  background: var(--blanco);
}
.calc__entrada { padding: 46px 44px; }
.calc__salida {
  padding: 46px 44px;
  background: var(--azul-noche);
  color: var(--cal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campo { margin-bottom: 24px; }
.campo label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 9px;
}
.campo__ayuda { font-size: .82rem; color: var(--tinta-suave); margin: 6px 0 0; }
.entrada-euro { position: relative; }
.entrada-euro::after {
  content: "€/mes";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: var(--tinta-suave);
  pointer-events: none;
}
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(18, 33, 47, 0.15);
  border-radius: var(--radio-s);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--blanco);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sol);
  box-shadow: 0 0 0 4px rgba(244, 166, 42, 0.16);
}
textarea { resize: vertical; min-height: 128px; }

input[type="range"] { width: 100%; accent-color: var(--sol); }

.calc__fila {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.calc__fila:last-of-type { border-bottom: 0; }
.calc__etq { font-size: .9rem; color: rgba(247, 245, 239, 0.7); }
.calc__val {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--sol);
  letter-spacing: -0.03em;
}
.calc__nota {
  font-size: .78rem;
  color: rgba(247, 245, 239, 0.5);
  margin: 22px 0 0;
  line-height: 1.5;
}

/* ---------- Proyectos ---------- */
.proyecto {
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--blanco);
  border: var(--borde);
  box-shadow: var(--sombra-s);
  transition: transform .3s ease, box-shadow .3s ease;
}
.proyecto:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); }
.proyecto__foto { aspect-ratio: 3 / 2; overflow: hidden; background: var(--niebla); }
.proyecto__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proyecto:hover .proyecto__foto img { transform: scale(1.05); }
.proyecto__cuerpo { padding: 26px 24px 28px; }
.proyecto__lugar {
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--sol-oscuro);
}
.proyecto h3 { font-size: 1.14rem; margin: 10px 0 16px; }
.proyecto__datos { display: flex; gap: 24px; border-top: var(--borde); padding-top: 16px; }
.proyecto__dato strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.14rem;
  color: var(--azul-noche);
  letter-spacing: -0.02em;
}
.proyecto__dato span { font-size: .74rem; color: var(--tinta-suave); }

/* ---------- Galería mosaico ---------- */
.mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 175px;
  gap: 14px;
  margin-bottom: 42px;
}
.mosaico figure { margin: 0; border-radius: var(--radio); overflow: hidden; background: var(--niebla); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaico figure:hover img { transform: scale(1.06); }
.mosaico .alto { grid-row: span 2; }
.mosaico .ancho { grid-column: span 2; }

/* ---------- Banda equipo ---------- */
.banda-equipo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.banda-equipo__foto {
  border-radius: var(--radio-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--azul-900);
  box-shadow: var(--sombra-m);
}
.banda-equipo__foto img { width: 100%; height: 100%; object-fit: cover; }
.datos-linea { display: flex; gap: 40px; margin: 30px 0 32px; flex-wrap: wrap; }
.dato-linea strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--sol);
  letter-spacing: -0.03em;
  line-height: 1;
}
.dato-linea span {
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(247, 245, 239, 0.6);
  margin-top: 8px;
  display: block;
}

/* ---------- Testimonios ---------- */
.testimonio {
  background: var(--blanco);
  border: var(--borde);
  border-radius: var(--radio);
  padding: 30px 28px;
  box-shadow: var(--sombra-s);
}
.testimonio__estrellas { color: var(--sol); font-size: 1rem; letter-spacing: 3px; margin-bottom: 14px; }
.testimonio p { font-size: .97rem; color: var(--tinta); }
.testimonio footer {
  border-top: var(--borde);
  padding-top: 15px;
  margin-top: 18px;
  font-size: .85rem;
  color: var(--tinta-suave);
}
.testimonio footer strong { color: var(--azul-noche); display: block; font-family: 'Sora', sans-serif; }

.aviso-marcador {
  background: rgba(244, 166, 42, 0.1);
  border: 1px dashed var(--sol-oscuro);
  border-radius: var(--radio-s);
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--sol-oscuro);
  font-family: 'Space Mono', monospace;
  margin-bottom: 30px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: var(--borde); }
.faq__boton {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 46px 24px 0;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--azul-noche);
  position: relative;
  transition: color .2s ease;
}
.faq__boton:hover { color: var(--sol-oscuro); }
.faq__boton::after,
.faq__boton::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--sol-oscuro);
  transition: transform .3s ease, opacity .3s ease;
}
.faq__boton::after { width: 14px; height: 2px; transform: translateY(-50%); }
.faq__boton::before { width: 2px; height: 14px; right: 12px; transform: translateY(-50%); }
.faq__boton[aria-expanded="true"]::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq__panel p { padding: 0 40px 24px 0; color: var(--tinta-suave); font-size: .97rem; margin: 0; }

/* ---------- Migas ---------- */
.migas { padding: 22px 0 0; }
.migas ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
  color: var(--tinta-suave);
  margin: 0; padding: 0; list-style: none;
}
.migas li { display: flex; align-items: center; gap: 8px; }
.migas li:not(:last-child)::after { content: "·"; color: rgba(18, 33, 47, 0.3); }
.migas a { color: var(--azul-700); }
.migas a:hover { color: var(--sol-oscuro); text-decoration: underline; }
.migas [aria-current="page"] { color: var(--tinta); font-weight: 600; }

.cabecera-pagina { background: var(--cal); padding: 0 0 84px; }
.cabecera-pagina h1 { margin: 30px 0 20px; }

/* ---------- Zonas ---------- */
.provincia-bloque { margin-bottom: 62px; }
.provincia-bloque:last-child { margin-bottom: 0; }
.provincia-bloque__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--azul-noche);
  padding-bottom: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.provincia-bloque__cab h2 { margin: 0; font-size: 1.7rem; }
.enlace-flecha {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--azul-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.enlace-flecha:hover { color: var(--sol-oscuro); gap: 11px; transition: gap .2s ease; }

.rejilla-ciudades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ciudad-enlace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border: var(--borde);
  border-radius: var(--radio-s);
  background: var(--blanco);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .96rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ciudad-enlace:hover {
  border-color: var(--sol);
  transform: translateX(4px);
  box-shadow: var(--sombra-s);
}
.ciudad-enlace svg { width: 15px; height: 15px; color: var(--sol-oscuro); flex: none; }

.tarjeta-ciudad {
  display: block;
  background: var(--blanco);
  border: var(--borde);
  border-radius: var(--radio);
  padding: 28px 26px;
  box-shadow: var(--sombra-s);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tarjeta-ciudad:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); border-color: rgba(244, 166, 42, 0.45); }
.tarjeta-ciudad h3 { margin-bottom: 10px; }
.tarjeta-ciudad p { font-size: .93rem; color: var(--tinta-suave); margin: 0 0 16px; }
.tarjeta-ciudad .enlace-flecha { font-size: .85rem; }

.proximamente {
  padding: 17px 20px;
  border: 1px dashed rgba(18, 33, 47, 0.2);
  border-radius: var(--radio-s);
  color: #9AA7B3;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.proximamente em {
  font-style: normal;
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- Formulario ---------- */
.formulario {
  background: var(--blanco);
  border: var(--borde);
  border-radius: var(--radio-l);
  padding: 44px 42px;
  box-shadow: var(--sombra-m);
}
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-legal { font-size: .78rem; color: var(--tinta-suave); margin: 18px 0 0; }
.form-aviso {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radio-s);
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-oscuro);
  font-size: .88rem;
  font-weight: 600;
  display: none;
}
.form-aviso.visible { display: block; }

.bloque-nap { display: grid; gap: 26px; }
.nap-item { display: flex; gap: 15px; align-items: flex-start; }
.nap-item svg { width: 20px; height: 20px; color: var(--sol); flex: none; margin-top: 3px; }
.nap-item strong { display: block; font-family: 'Sora', sans-serif; font-size: .95rem; margin-bottom: 3px; }
.nap-item p { font-size: .93rem; color: var(--tinta-suave); margin: 0; }
.nap-item a:hover { color: var(--sol-oscuro); }

/* ---------- Banda CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--azul-noche) 0%, var(--azul) 100%);
  color: var(--cal);
  padding: 82px 0;
}
.cta h2 { color: var(--blanco); max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta p { color: rgba(247, 245, 239, 0.75); max-width: 56ch; margin: 0 auto 30px; }

/* ---------- Pie ---------- */
.pie { background: var(--azul-900); color: rgba(247, 245, 239, 0.62); padding: 72px 0 0; font-size: .92rem; }
.pie__rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 46px; padding-bottom: 52px; }
.pie__logo img { height: 42px; margin-bottom: 20px; }
.pie h4 {
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sol);
  margin: 0 0 18px;
}
.pie ul li { margin-bottom: 10px; }
.pie a:hover { color: var(--sol-claro); }
.pie__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(247, 245, 239, 0.42);
}
.pie__fuente { font-size: .74rem; color: rgba(247, 245, 239, 0.34); margin-top: 14px; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
}
.wa-flotante__etq {
  background: var(--blanco);
  color: var(--azul-noche);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .84rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--sombra-m);
  margin-right: 10px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.wa-flotante:hover .wa-flotante__etq { opacity: 1; transform: translateX(0); }
.wa-flotante__btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.42);
  position: relative;
  transition: transform .25s ease;
}
.wa-flotante__btn:hover { transform: scale(1.07); }
.wa-flotante__btn svg { width: 30px; height: 30px; color: #fff; }
.wa-flotante__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulso 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulso {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
/* Red de seguridad: si el JS falla, nada queda invisible */
.sin-js .reveal { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .rejilla--4 { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .pie__rejilla { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 900px) {
  :root { --pad-lat: 20px; }
  .seccion { padding: 72px 0; }

  .hamburguesa { display: block; }
  .cab__tel span { display: none; }

  .nav {
    position: fixed;
    top: var(--alto-cab);
    left: 0; right: 0;
    bottom: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--pad-lat) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,.61,.36,1);
    border-top: var(--borde);
  }
  .nav.abierto { transform: translateX(0); }
  .nav > a, .nav > .tiene-menu > a {
    padding: 17px 0;
    font-size: 1.05rem;
    font-family: 'Sora', sans-serif;
    border-bottom: var(--borde);
    justify-content: space-between;
    width: 100%;
  }
  .nav a::after { display: none; }

  .tiene-menu { width: 100%; }
  .tiene-menu > a .flecha { width: 12px; height: 12px; }
  .panel-zonas {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .34s ease;
  }
  .tiene-menu:hover .panel-zonas, .tiene-menu:focus-within .panel-zonas { transform: none; }
  .panel-zonas::before { display: none; }
  .tiene-menu.acordeon-abierto .panel-zonas { max-height: 900px; }
  .tiene-menu.acordeon-abierto > a .flecha { transform: rotate(180deg); }
  .panel-zonas__col { padding: 14px 0 8px 14px; border-bottom: var(--borde); min-width: 0; }
  .panel-zonas__titulo { border: 0; padding-bottom: 4px; margin-bottom: 6px; }

  .hero { padding: 56px 0 68px; }
  .hero__rejilla { grid-template-columns: 1fr; gap: 46px; }
  .hero__marco { order: -1; }
  .cartel--sol { left: 12px; top: 14px; }
  .cartel--ahorro { right: 12px; bottom: 16px; }

  .rejilla--3, .rejilla--2, .rejilla-ciudades { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__entrada, .calc__salida { padding: 36px 28px; }
  .banda-equipo { grid-template-columns: 1fr; gap: 38px; }
  .mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .formulario { padding: 32px 26px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .seccion { padding: 60px 0; }
  .cabecera-pagina { padding-bottom: 58px; }

  .rejilla--3, .rejilla--4, .rejilla--2, .rejilla-ciudades, .pasos { grid-template-columns: 1fr; }
  .grupo-btn { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero .grupo-btn { margin-bottom: 30px; }
  .garantias { flex-direction: column; gap: 9px; }

  .cartel { padding: 11px 14px; }
  .cartel__dato { font-size: 1.2rem; }
  .cartel--sol { left: 8px; top: 8px; }
  .cartel--ahorro { right: 8px; bottom: 8px; }

  .form-fila { grid-template-columns: 1fr; }
  .datos-linea { gap: 26px; }
  .dato-linea strong { font-size: 1.6rem; }
  .mosaico { grid-template-columns: 1fr 1fr; grid-auto-rows: 118px; }
  .mosaico .ancho { grid-column: span 2; }

  .wa-flotante { right: 16px; bottom: 16px; }
  .wa-flotante__etq { display: none; }
  .wa-flotante__btn { width: 54px; height: 54px; }

  .pie__rejilla { grid-template-columns: 1fr; gap: 34px; }
  .pie__legal { flex-direction: column; gap: 8px; }
  .provincia-bloque__cab h2 { font-size: 1.4rem; }
}
