/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-Italic-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-Italic-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/InstrumentSans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Sora-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Sora-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Sora-latinext.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;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Sora-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ════════════════════════════════════════════════════════════════
   FlexiEnergy · styles.css
   Paleta y variables globales: edita los colores y fuentes AQUÍ
   y toda la web se actualiza.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Verdes de marca */
  --verde:        #178A4C;   /* principal (botones, acentos) */
  --verde-oscuro: #106B3A;   /* hover y texto verde pequeño */
  --verde-noche:  #0E2C1E;   /* secciones oscuras */
  --verde-negro:  #0B241A;   /* footer */
  --lima:         #B9E48B;   /* acento sobre fondos oscuros */
  --lima-claro:   #DFF0D2;   /* fondo del simulador */
  --arena:        #E8C77D;   /* acento cálido (solar) */
  /* Neutros */
  --tinta:        #122B20;   /* titulares y texto principal */
  --texto:        #42594E;   /* párrafos */
  --texto-suave:  #5C7267;
  --texto-mute:   #8AA192;
  --fondo:        #F6F8F4;   /* fondo general */
  --blanco:       #FFFFFF;
  --borde:        #DCE7DA;
  --borde-input:  #D5E0D6;
  --error:        #C2453A;
  /* Tipografías */
  --f-titulos: 'Sora', sans-serif;
  --f-texto: 'Instrument Sans', system-ui, sans-serif;
}

/* ═══ Base ═══ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--f-texto);
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--verde-oscuro); }
a:hover { color: #0A5A2F; }
::selection { background: var(--lima); color: var(--verde-negro); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, label:focus-visible {
  outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 6px;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Enlace de salto (accesibilidad teclado) */
.salto-contenido {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--blanco); color: var(--verde-oscuro); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--verde);
  text-decoration: none; transform: translateY(-300%); transition: transform .15s;
}
.salto-contenido:focus { transform: translateY(0); }

/* ═══ Tipografía común ═══ */
h1, h2, h3 { font-family: var(--f-titulos); letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; color: var(--tinta); margin: 0 0 16px; }
.sobretitulo {
  font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde); margin: 0 0 14px;
}
.sobretitulo.lima { color: var(--lima); }
.entradilla { font-size: 17px; line-height: 1.65; color: var(--texto); margin: 0 0 28px; text-wrap: pretty; }
.encabezado-seccion { max-width: 620px; margin-bottom: 52px; }
.encabezado-seccion .entradilla { margin-bottom: 0; }
section { padding: 100px 24px; }

/* ═══ Botones ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-texto); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer; transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn-primario { background: var(--verde); color: #fff; }
.btn-primario:hover { background: var(--verde-oscuro); color: #fff; transform: translateY(-2px); }
.btn-fantasma { border: 1.5px solid #C9D8CB; color: var(--tinta); background: transparent; }
.btn-fantasma:hover { border-color: var(--verde); color: var(--verde-oscuro); }
.btn-lima { background: var(--lima); color: var(--verde-negro); font-weight: 700; }
.btn-lima:hover { transform: translateY(-2px); color: var(--verde-negro); }
.btn-grande { font-size: 16px; padding: 15px 28px; }
.btn-bloque { width: 100%; font-size: 16.5px; padding: 16px 28px; margin-top: 24px; }

/* ═══ Cabecera fija ═══ */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246, 248, 244, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2EADF; transition: box-shadow .25s;
}
.cabecera.con-sombra { box-shadow: 0 8px 30px -18px rgba(12,43,29,.35); }
.cabecera-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-marca {
  width: 38px; height: 38px; border-radius: 11px; background: var(--verde);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.logo-texto { font-family: var(--f-titulos); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--tinta); }
.logo-texto em { font-style: normal; color: var(--verde); }
.logo-texto.claro { color: #fff; font-size: 19px; }
.logo-texto.claro em { color: var(--lima); }
.menu { display: flex; align-items: center; gap: 32px; }
.menu > a:not(.menu-cta) { color: #3A5147; text-decoration: none; font-weight: 500; font-size: 15px; }
.menu > a:not(.menu-cta):hover { color: var(--verde-oscuro); }
.menu-cta { padding: 11px 22px; }
.cabecera-acciones { display: none; align-items: center; gap: 12px; }
.cta-movil { font-size: 14px; padding: 10px 16px; }
.boton-menu {
  width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--borde-input);
  background: var(--blanco); color: var(--tinta); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.boton-menu .icono-cerrar { display: none; }
.boton-menu[aria-expanded="true"] .icono-abrir { display: none; }
.boton-menu[aria-expanded="true"] .icono-cerrar { display: block; }

/* ═══ Hero ═══ */
.hero { padding: 150px 24px 90px; background: var(--fondo); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--tinta); margin: 0 0 20px;
}
.hero h1 span { color: var(--verde); }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--texto); margin: 0 0 30px; max-width: 480px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-ctas .btn-primario { box-shadow: 0 12px 28px -12px rgba(23,138,76,.55); }
.hero-micro { margin: 18px 0 0; font-size: 14px; color: var(--texto-suave); }
.hero-cifras {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid #DFE8DC;
}
.hero-cifras .cifra { font-family: var(--f-titulos); font-weight: 700; font-size: 34px; color: var(--tinta); margin: 0; }
.hero-cifras p:last-child { font-size: 14px; color: var(--texto-suave); margin: 4px 0 0; }

/* Tarjeta comparativa del hero */
.hero-visual { position: relative; padding: 24px 0; }
.halo {
  position: absolute; inset: -30px -50px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(23,138,76,.14), transparent 72%);
}
.tarjeta-factura {
  position: relative; background: var(--blanco); border: 1px solid var(--borde);
  border-radius: 22px; padding: 28px; max-width: 440px; margin: 0 auto;
  box-shadow: 0 30px 70px -35px rgba(12,43,29,.4);
}
.etiqueta-mini {
  font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--texto-mute); margin: 0 0 20px;
}
.etiqueta-mini.clara { color: #7FA18C; font-size: 13px; letter-spacing: .12em; margin: 0 0 12px; }
.fila-factura { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--texto-suave); margin: 0 0 8px; }
.fila-factura.verde { color: var(--verde-oscuro); }
.barra { height: 44px; border-radius: 12px; }
.barra-antes { background: #EAF0E8; margin-bottom: 20px; }
.barra-despues { background: linear-gradient(90deg, var(--verde), #2FA662); width: 70%; }
.factura-pie {
  display: flex; align-items: center; gap: 10px; margin-top: 24px;
  padding-top: 20px; border-top: 1px dashed var(--borde);
}
.factura-pie p { margin: 0; font-size: 15px; color: var(--tinta); }
.chip-flotante {
  position: absolute; top: -18px; right: 22px;
  background: var(--tinta); color: var(--lima);
  font-family: var(--f-titulos); font-weight: 600; font-size: 15px;
  padding: 9px 16px; border-radius: 999px;
  animation: flotar 6s ease-in-out infinite;
}
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ═══ Servicios ═══ */
.servicios { background: var(--blanco); }
.tarjetas-servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.tarjeta {
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 18px; padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tarjeta:hover { transform: translateY(-5px); border-color: #9CC7AA; box-shadow: 0 20px 45px -28px rgba(12,43,29,.35); }
.tarjeta-icono {
  width: 46px; height: 46px; border-radius: 13px; background: #EAF5EE;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.tarjeta h3 { font-weight: 600; font-size: 19px; color: var(--tinta); margin: 0 0 10px; }
.tarjeta p { font-size: 15px; line-height: 1.6; color: var(--texto-suave); margin: 0; }

/* Tarjeta destacada: autoconsumo solar */
.tarjeta-solar {
  margin-top: 20px; background: var(--verde-noche); border-radius: 20px; padding: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.solar-texto { display: flex; gap: 20px; align-items: flex-start; }
.icono-sol { width: 52px; height: 52px; border-radius: 14px; background: rgba(232,199,125,.16); flex: none; margin: 0; }
.tarjeta-solar h3 { font-family: var(--f-titulos); font-weight: 600; font-size: 22px; color: #fff; margin: 0 0 8px; }
.tarjeta-solar p { font-size: 15.5px; line-height: 1.6; color: #A8C4B2; margin: 0; max-width: 520px; }

/* ═══ Cómo trabajamos (sección oscura) ═══ */
.proceso { background: var(--verde-noche); }
.proceso h2 { color: #fff; }
.proceso .entradilla { color: #A8C4B2; }
.pasos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 28px;
}
.paso { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; }
.paso-num {
  font-family: var(--f-titulos); font-weight: 700; font-size: 15px;
  color: var(--verde-negro); background: var(--lima);
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.paso h3 { font-weight: 600; font-size: 19px; color: #fff; margin: 0 0 10px; }
.paso p { font-size: 15px; line-height: 1.6; color: #A8C4B2; margin: 0; }
.enlace-lima {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 52px;
  color: var(--lima); font-weight: 600; font-size: 17px; text-decoration: none;
  border-bottom: 1.5px solid rgba(185,228,139,.4); padding-bottom: 4px;
}
.enlace-lima:hover { color: #D5F0B0; }

/* ═══ Ventajas ═══ */
.ventajas { background: var(--fondo); }
.ventajas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start; }
.lista-ventajas { list-style: none; margin: 0; padding: 0; }
.ventaja { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid #DFE8DC; }
.ventaja:last-child { border-bottom: 1px solid #DFE8DC; }
.ventaja-dato { font-family: var(--f-titulos); font-weight: 700; font-size: 30px; color: var(--verde); margin: 0; min-width: 96px; }
.ventaja h3 { font-weight: 600; font-size: 18px; color: var(--tinta); margin: 0 0 6px; }
.ventaja p { font-size: 15px; line-height: 1.6; color: var(--texto-suave); margin: 0; }

/* ═══ Simulador / CTA de ahorro ═══ */
.simulador { background: var(--blanco); }
.simulador-caja {
  position: relative; overflow: hidden; background: var(--lima-claro);
  border-radius: 26px; padding: clamp(36px, 6vw, 72px); text-align: center;
}
.burbuja { position: absolute; border-radius: 50%; pointer-events: none; }
.burbuja-1 { top: -120px; right: -100px; width: 340px; height: 340px; background: radial-gradient(closest-side, rgba(23,138,76,.18), transparent 70%); }
.burbuja-2 { bottom: -140px; left: -110px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(232,199,125,.28), transparent 70%); }
.simulador-contenido { position: relative; max-width: 640px; margin: 0 auto; }
.simulador h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.simulador-contenido > p { font-size: 17px; line-height: 1.65; color: #3A5147; margin: 0 0 30px; text-wrap: pretty; }
.simulador-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.simulador .btn-fantasma { border-color: #9CC7AA; background: rgba(255,255,255,.5); }
.boton-archivo { position: relative; }
.boton-archivo input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estado-factura {
  margin: 22px auto 0; display: inline-flex; align-items: center; gap: 10px;
  background: var(--blanco); border: 1px solid #9CC7AA; color: var(--verde-oscuro);
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 12px;
}
.estado-factura[hidden] { display: none; }
.nota-privacidad { margin: 24px 0 0; font-size: 13px; color: var(--texto-suave); }

/* ═══ Testimonios ═══ */
.opiniones { background: var(--fondo); }
.tarjetas-opiniones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.opinion {
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 18px;
  padding: 30px; margin: 0; display: flex; flex-direction: column; gap: 16px;
}
.estrellas { color: #E8B54A; font-size: 16px; letter-spacing: 2px; margin: 0; }
.opinion blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tinta); text-wrap: pretty; }
.opinion figcaption { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opinion strong { display: block; font-weight: 600; font-size: 15px; color: var(--tinta); }
.opinion small { display: block; font-size: 13.5px; color: var(--texto-suave); }
.chip-ahorro {
  background: #EAF5EE; color: var(--verde-oscuro); font-weight: 700; font-size: 13.5px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}

/* ═══ Sobre nosotros ═══ */
.nosotros { background: var(--blanco); }
.nosotros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.foto-placeholder {
  aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid #C9DCC6;
  background: linear-gradient(135deg, #DCEBD2, #B9DCC4 60%, #9CC7AA);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.foto-placeholder p { margin: 0; font-size: 13.5px; font-weight: 600; color: #4E7A5E; }
.parrafo { font-size: 17px; line-height: 1.7; color: var(--texto); margin: 0 0 16px; text-wrap: pretty; }
.valores { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.valores li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #C9D8CB; border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: 14px; color: var(--tinta);
}

/* ═══ Contacto / formulario ═══ */
.contacto { background: var(--fondo); }
.contacto-caja {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 26px;
  overflow: hidden; box-shadow: 0 40px 90px -50px rgba(12,43,29,.4);
}
.panel-contacto { background: var(--verde-noche); padding: clamp(32px, 5vw, 52px); display: flex; flex-direction: column; }
.panel-contacto h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.panel-contacto > p { font-size: 16px; line-height: 1.65; color: #A8C4B2; margin: 0 0 30px; }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--lima-claro); font-size: 15px; line-height: 1.5; }
.lista-check svg { flex: none; margin-top: 2px; }
.panel-alternativas { margin-top: auto; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; }
.panel-alternativas .tel { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; margin-bottom: 10px; }
.panel-alternativas .mail { display: flex; align-items: center; gap: 10px; color: #A8C4B2; font-size: 15px; text-decoration: none; }
.panel-alternativas a:hover { color: var(--lima); }
.panel-formulario { padding: clamp(32px, 5vw, 52px); }

.fila-doble { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.campo { margin-bottom: 18px; }
.fila-doble .campo { margin-bottom: 0; }
.fila-doble { margin-bottom: 18px; }
.campo label, .campo legend { display: block; font-weight: 600; font-size: 14px; color: var(--tinta); margin: 0 0 6px; padding: 0; }
.campo .opcional { font-weight: 400; color: var(--texto-mute); }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--borde-input); background: #FBFCFA;
  font-family: var(--f-texto); font-size: 15px; color: var(--tinta);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo textarea:focus {
  border-color: var(--verde); background: #fff; box-shadow: 0 0 0 4px rgba(23,138,76,.12);
}
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: 13px; margin: 6px 0 0; min-height: 0; }
fieldset.campo { border: none; margin: 0 0 18px; padding: 0; }
.pills { display: flex; gap: 12px; }
.pill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border-radius: 12px; border: 1.5px solid var(--borde-input);
  background: var(--blanco); color: var(--texto); font-weight: 600; font-size: 15px;
  cursor: pointer; position: relative; transition: all .15s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { border-color: var(--verde); background: #EAF5EE; color: var(--verde-oscuro); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; font-weight: 400 !important; color: var(--texto) !important; cursor: pointer; line-height: 1.5 !important; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--verde); flex: none; }
.check a { font-weight: 600; }
.nota-formulario { margin: 14px 0 0; font-size: 12.5px; color: var(--texto-mute); text-align: center; }

/* Mensaje de éxito tras enviar */
.form-exito { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.form-exito[hidden] { display: none; }
.exito-icono { width: 72px; height: 72px; border-radius: 50%; background: #EAF5EE; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.form-exito h3 { font-weight: 600; font-size: 26px; color: var(--tinta); margin: 0; }
.form-exito p { font-size: 16px; line-height: 1.65; color: var(--texto); margin: 0; max-width: 380px; }

/* ═══ Footer ═══ */
.pie { background: var(--verde-negro); padding: 64px 24px 32px; }
.pie-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.pie-marca { max-width: 280px; }
.pie-marca .logo { margin-bottom: 14px; }
.pie-marca .logo-marca { width: 34px; height: 34px; border-radius: 10px; }
.pie-marca > p { font-size: 14.5px; line-height: 1.65; color: #7FA18C; margin: 0 0 18px; }
.redes { display: flex; gap: 10px; }
.redes a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: #A8C4B2;
}
.redes a:hover { color: var(--lima); border-color: var(--lima); }
.pie-titulo { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #7FA18C; margin: 0 0 16px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.pie ul a { color: var(--lima-claro); text-decoration: none; }
.pie ul a:hover { color: var(--lima); }
.pie .mute { color: #7FA18C; }
.pie-inferior { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 26px; }
.pie-inferior p { margin: 0; font-size: 13.5px; color: #7FA18C; }
.lema { display: flex; align-items: center; gap: 8px; }

/* ═══ Botón flotante de WhatsApp ═══ */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(11,36,26,.5); transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }

/* ═══ Micro-animaciones de aparición al hacer scroll ═══
   Solo se activan si hay JavaScript (clase .js en <html>).   */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 920px) {
  /* La navegación pasa a menú desplegable a pantalla completa */
  .menu {
    position: fixed; inset: 0; z-index: 150; background: var(--verde-noche);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 8px; padding: 110px 24px 24px; display: none;
  }
  .menu.abierto { display: flex; }
  .menu > a:not(.menu-cta) {
    color: #fff; font-family: var(--f-titulos); font-weight: 600; font-size: 28px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .menu > a:not(.menu-cta):hover { color: var(--lima); }
  .menu-cta { margin-top: 24px; background: var(--lima); color: var(--verde-negro); font-weight: 700; font-size: 17px; padding: 16px 24px; justify-content: center; }
  .menu-cta:hover { background: var(--lima); color: var(--verde-negro); }
  .cabecera-acciones { display: flex; position: relative; z-index: 160; }
  .cabecera.menu-abierto { background: var(--verde-noche); border-bottom-color: transparent; }
  .cabecera.menu-abierto .logo-texto { color: #fff; }
  .cabecera.menu-abierto .logo-texto em { color: var(--lima); }
  .cabecera.menu-abierto .boton-menu { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
  .cabecera.menu-abierto .cta-movil { display: none; }

  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  section { padding: 76px 24px; }
  .tarjeta-solar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-cifras { gap: 24px; }
  .hero-cifras .cifra { font-size: 28px; }
  .ventaja { flex-direction: column; gap: 8px; }
  .ventaja-dato { min-width: 0; }
  .solar-texto { flex-direction: column; }
  .pie-inferior { justify-content: center; text-align: center; }
}

/* ═══ Fondo animado de naturaleza en el hero ═══ */
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }
.hero-fondo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob-1 { top: -180px; left: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(23,138,76,.13), transparent 70%); animation: deriva 18s ease-in-out infinite alternate; }
.blob-2 { top: 40px; right: -200px; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(185,228,139,.32), transparent 70%); animation: deriva2 24s ease-in-out infinite alternate; }
.blob-3 { bottom: -260px; left: 30%; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(232,199,125,.18), transparent 70%); animation: deriva 28s ease-in-out infinite alternate-reverse; }
.hoja { position: absolute; top: 0; animation: hojaCae linear infinite; }
.hoja-1 { left: 8%;  animation-duration: 18s; }
.hoja-2 { left: 26%; animation-duration: 25s; animation-delay: -9s; }
.hoja-3 { left: 48%; animation-duration: 21s; animation-delay: -14s; }
.hoja-4 { left: 68%; animation-duration: 27s; animation-delay: -5s; }
.hoja-5 { left: 86%; animation-duration: 20s; animation-delay: -11s; }
@keyframes deriva  { 0%, 100% { transform: translate(0,0) scale(1); }    50% { transform: translate(50px,-34px) scale(1.1); } }
@keyframes deriva2 { 0%, 100% { transform: translate(0,0) scale(1.06); } 50% { transform: translate(-44px,28px) scale(1); } }
@keyframes hojaCae {
  0%   { transform: translate3d(0,-70px,0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: translate3d(38px,24vh,0) rotate(75deg); }
  60%  { transform: translate3d(-16px,48vh,0) rotate(160deg); }
  88%  { opacity: 1; }
  100% { transform: translate3d(32px,76vh,0) rotate(280deg); opacity: 0; }
}

/* Respeto a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
