/* =========================================================
   Energie Consultores — estilos del sitio
   Basado en el sistema visual de Solaaar (Pitch Deck 2026)
   ========================================================= */

/* ---------- Tipografía ---------- */
@font-face { font-family: "NeueKabel"; src: url("../assets/fonts/NeueKabel-Book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NeueKabel"; src: url("../assets/fonts/NeueKabel-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NeueKabel"; src: url("../assets/fonts/NeueKabel-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NeueKabel"; src: url("../assets/fonts/NeueKabel-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --navy: #123262;
  --navy-2: #1A447B;
  --green: #288440;
  --green-dark: #175126;
  --text: #5C6B78;
  --gray: #F5F6F8;
  --sky: #94C5E8;
  --sky-soft: #D5EBFC;
  --line: #E3E7EC;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(18, 50, 98, 0.14);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "NeueKabel", "Helvetica Neue", Arial, sans-serif; font-weight: 400; color: var(--navy); background: #fff; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.bg-gray { background: var(--gray); }
.bg-sky { background: linear-gradient(135deg, #C8DBF0 0%, var(--sky-soft) 100%); }
.bg-navy { background: var(--navy); color: #fff; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.on-dark .eyebrow { color: #fff; opacity: .85; }
.title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; color: var(--navy); max-width: 820px; }
.on-dark .title { color: #fff; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 720px; margin-top: 18px; }
.on-dark .lead { color: #fff; opacity: .9; }
.section-head { margin-bottom: 48px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: 10px; font-family: inherit; font-size: 17px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--gray); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.link-arrow { font-weight: 700; color: var(--green); }
.link-arrow:hover { color: var(--green-dark); }

/* ---------- Navegación ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background-color .3s, box-shadow .3s; }
.nav.nav-scrolled, .nav.nav-open { background: #fff; box-shadow: 0 2px 16px rgba(18,50,98,.12); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 15px; font-weight: 500; color: #fff; opacity: .9; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-scrolled .nav-link, .nav-open .nav-link { color: var(--navy); }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--navy); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; box-shadow: 0 12px 24px rgba(18,50,98,.12); }
  .nav-open .nav-menu { display: flex; }
  .nav-menu .nav-link { color: var(--navy); width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-menu .nav-cta { margin-top: 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-short { min-height: 78vh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,50,98,.82) 0%, rgba(18,50,98,.55) 50%, rgba(18,50,98,.15) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 160px 24px 110px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 800; max-width: 900px; }
.hero .lead { color: #fff; opacity: .92; font-size: 20px; max-width: 640px; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card-glass { background: rgba(255,255,255,.45); }
.card h3 { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.card p { font-size: 16px; line-height: 1.6; color: var(--text); }
.card .strong { color: var(--navy); font-weight: 700; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
a.card { transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tag { align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--navy); padding: 9px 18px; border-radius: 999px; background: #DBD2DE; }
.tag-cream { background: #DFE3DD; }
.tag-mint { background: #C7DEDE; }
.step-num { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--green); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.note-box { background: var(--gray); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--navy); }

/* ---------- Video ---------- */
.video-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.video-card video { width: 100%; height: auto; }

/* ---------- Pestañas (videos BESS) ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab { font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; min-height: 46px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 28px; line-height: 1.15; font-weight: 800; }
.tab-panel p { font-size: 17px; line-height: 1.6; color: var(--text); margin-top: 14px; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Banda con foto ---------- */
.photo-band { position: relative; color: #fff; overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,50,98,.86) 0%, rgba(18,50,98,.6) 50%, rgba(18,50,98,.25) 100%); }
.photo-band > .container { position: relative; z-index: 1; }

/* ---------- Cifras ---------- */
.stat { background: rgba(255,255,255,.16); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat img { width: 44px; height: 44px; margin-bottom: 10px; }
.stat-value { font-size: 34px; font-weight: 800; line-height: 1.05; }
.stat-label { font-size: 16px; font-weight: 500; }
.stat-note { font-size: 14px; opacity: .85; }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; list-style: none; }
.clients li { border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: #fff; }
.clients strong { font-size: 18px; color: var(--navy); }
.clients span { font-size: 13px; color: var(--text); }

/* ---------- Dividido (foto + texto) ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(40,132,64,.5); } 50% { box-shadow: 0 0 0 8px rgba(40,132,64,0); } }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; }
.partner-logos img { height: 48px; width: auto; }

/* ---------- Calculadora ---------- */
.calc { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; color: var(--navy); }
.calc input, .calc select { font-family: inherit; font-size: 16px; color: var(--navy); padding: 12px; min-height: 48px; border: 1px solid #C9D1DA; border-radius: 10px; background: #fff; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.calc-result { background: var(--gray); border-radius: 12px; padding: 18px; }
.calc-result p { font-size: 14px; color: var(--text); }
.calc-result strong { display: block; font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.calc-small { font-size: 14px; line-height: 1.5; color: var(--text); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; color: #fff; overflow: hidden; }
.cta-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final::after { content: ""; position: absolute; inset: 0; background: rgba(18,50,98,.72); }
.cta-final .container { position: relative; z-index: 1; padding-top: 130px; padding-bottom: 130px; }
.cta-final h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; font-weight: 800; max-width: 860px; }

/* ---------- Pie de página ---------- */
.footer { background: var(--navy); color: #fff; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.footer-logo { height: 54px; width: auto; }
.footer p, .footer a { font-size: 15px; line-height: 1.6; }
.footer a:hover { text-decoration: underline; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--navy-2); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; opacity: .8; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 700px) {
  .section { padding: 76px 0; }
  .hero-content { padding: 130px 24px 80px; }
  .card, .calc { padding: 26px; }
}

/* Tarjetas sobre fondo gris */
.card.bg-gray { background: var(--gray); }

/* Logos de clientes: si existe assets/clientes/<nombre>.png se muestra el logo; si no, el nombre */
.clients li { position: relative; }
.clients img { max-height: 56px; max-width: 80%; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients li.has-logo { align-items: center; }
.clients li.has-logo:hover img { filter: none; opacity: 1; }
.clients li.has-logo strong, .clients li.has-logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fotos de casos y equipo: se muestran solas si existe el archivo */
.case-photo { position: relative; height: 220px; background: #DBF5EE; display: flex; align-items: center; justify-content: center; font-weight: 500; color: var(--green-dark); }
.case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Tarjetas de proyecto con galería deslizable */
.project-card { padding: 0; overflow: hidden; gap: 0; position: relative; border: 1px solid var(--line); }
.case-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--gray); }
.case-gallery::-webkit-scrollbar { display: none; }
.case-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-count { position: absolute; top: 12px; right: 12px; background: rgba(18,50,98,.78); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.project-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.project-body h3 { font-size: 22px; }
video.hero-bg { object-fit: cover; }
.project-data { margin-top: 6px; font-size: 18px !important; font-weight: 800; color: var(--green-dark) !important; }

/* Aviso de privacidad */
.legal-hero{padding-top:140px}
.legal{max-width:780px}
.legal h1{color:var(--navy,#123262);margin-bottom:12px}
.legal h2{color:var(--navy,#123262);font-size:1.25rem;margin:36px 0 10px}
.legal p,.legal li{color:#5C6B78;line-height:1.65}
.legal p{margin:0 0 12px}
.legal .check-list{margin:6px 0 14px}
.legal a{color:#288440}
.legal-draft{background:#DBF5EE;color:#175126!important;padding:12px 16px;border-radius:8px;font-weight:500}
.legal-date{font-size:.9rem}
.footer-bottom a{color:inherit}

/* Visor de fotos y videos */
[data-lightbox] img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,22,44,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: 1200px; width: 100%; display: flex; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lb-video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.lb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; opacity: .8; font-size: 15px; margin: 0; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 8px 14px; opacity: .85; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { font-size: 36px; top: auto; bottom: 40px; transform: none; } }
.video-btn { margin-top: 14px; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.video-btn:hover { background: var(--green); }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--navy); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video-facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; padding-left: 5px; }
.video-facade:hover .play { background: var(--green-dark); }

/* Logos de clientes */
.logo-wall-wrap { margin-top: 64px; }
.logo-wall { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-wall li { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-wall img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.logo-wall { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
.calc label[hidden] { display: none; }

/* Calculadora de media tensión */
.calc [data-solo-gdmth][hidden] { display: none; }
.mt-h { color: var(--navy); font-size: 1.15rem; margin: 36px 0 14px; }
.mt-barra { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 18px; background: var(--gray); }
.mt-barra .seg { display: block; height: 100%; }
.seg-energia { background: #1F63A0; } .seg-capacidad { background: #F9B42B; } .seg-distribucion { background: #FA394C; } .seg-fijo { background: #5C6B78; }
.mt-leyenda { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--text); }
.mt-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.mt-card { background: #fff; border: 1px solid var(--line); align-items: flex-start; }
.mt-card[hidden] { display: none; }
.mt-dato { font-size: 24px; font-weight: 800; color: var(--navy); margin: 8px 0 0; }
.mt-ahorro { margin-top: 6px; } .mt-ahorro strong { color: var(--green-dark); font-size: 20px; }
#mt-recs li { margin-bottom: 8px; }
.mt-card p.mt-dato { font-size: 24px; font-weight: 800; color: var(--navy); margin: 10px 0 0; }

/* Formularios de contacto de las calculadoras */
.lead-box { margin-top: 24px; }
.lead-box[hidden], #mt-mas[hidden] { display: none; }
#mt-mas { margin-top: 24px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 14px 0; font-size: 15px; }
.lead-check input { width: auto; }
.lead-form label[hidden] { display: none; }
.lead-check { display: block !important; }
.lead-check input { margin-right: 8px; vertical-align: -2px; }
.split-img.screen img { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.screen-caption { font-size: 13px; color: var(--text); margin-top: 8px; }
.container.section { padding-left: 24px; padding-right: 24px; }

/* Equipo sin fotos: ícono por función */
.persona { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 18px; }
.persona-icono { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: #DBF5EE; color: var(--green); display: flex; align-items: center; justify-content: center; }
.persona h3 { margin: 0 0 4px; font-size: 19px; }
.persona p { margin: 0; }
@media (max-width: 640px) { .calc-results { grid-template-columns: 1fr 1fr !important; } .calc-result strong { font-size: 22px; } }
@media (min-width: 641px) { .persona { flex-direction: column !important; align-items: flex-start !important; } }

/* Subir recibo CFE */
.recibo-drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: #DBF5EE; border-radius: 12px; padding: 20px 22px; margin-bottom: 8px; }
.recibo-drop h3 { color: var(--navy); font-size: 20px; }
.recibo-btn { cursor: pointer; white-space: nowrap; }
.recibo-datos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.recibo-datos li { background: var(--gray); border-radius: 10px; padding: 10px 14px; }
.recibo-datos span { display: block; font-size: 13px; color: var(--text); }
.recibo-datos strong { color: var(--navy); }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 0 2px; }
.hist .hb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hist .hb span { width: 100%; background: #1F63A0; border-radius: 4px 4px 0 0; }
.hist .hb em { font-style: normal; font-size: 11px; color: var(--text); margin-top: 4px; }

/* Formulario de Contacto */
.split-top { align-items: start; }
.contacto-box { margin-top: 0; padding: 32px; border-radius: var(--radius); background: #fff; }
.contacto-box .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contacto-box .span-2 { grid-column: 1 / -1; }
.lead-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9D1DA; border-radius: 10px; resize: vertical; background: #fff; color: var(--navy); }
.lead-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
@media (max-width: 640px) { .contacto-box { padding: 22px; } .contacto-box .calc-fields { grid-template-columns: 1fr; } }

/* Ahorro certificado: pantalla de PolarMON a todo lo ancho */
.cert-head { gap: 48px; align-items: end; }
.cert-head .partner-logos { margin-top: 24px; }
.cert-screen { margin: 48px 0 0; }
.cert-screen .split-img img { aspect-ratio: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.zoom-hint { display: none; }
@media (max-width: 900px) { .zoom-hint { display: inline; } }
.cert-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; margin-top: 40px; }
.calc .lead-check input { min-height: 0; padding: 0; width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; }
.contacto-box .calc-fields > label { min-width: 0; }
.contacto-box input, .contacto-box select, .contacto-box textarea { width: 100%; box-sizing: border-box; }
.mt-ajustar { background: none; border: 0; padding: 0; margin: 16px 0 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
#mt-manual[hidden], .mt-ajustar[hidden] { display: none; }
.recibo-btn, .recibo-btn:hover { color: #fff; }
.fin-head { height: 52px; display: flex; align-items: center; margin-bottom: 16px; }
.card img.fin-logo { display: block; width: auto; max-width: 100%; height: 44px; object-fit: contain; margin: 0; border-radius: 0; aspect-ratio: auto; }
.card img.fin-red-girasol { height: 30px; }
.card img.fin-nafin { height: 52px; }
