/* ==========================================================
   AllPower Energy — hoja de estilos compartida (2026)
   Colores corporativos: amarillo · negro · blanco
   ========================================================== */

:root {
    --y: #FFD700;
    --y-hover: #FFC700;
    --y-deep: #F5BE18;
    --y-soft: #FFF6C9;
    --ink: #0b0b0b;
    --ink-2: #151515;
    --ink-3: #1f1f1f;
    --text: #2b2b2b;
    --muted: #6a6a64;
    --cream: #FFFBEF;
    --paper: #F6F4EE;
    --line: #E8E5DA;
    --green: #15803D;
    --green-soft: #E4F5E9;
    --radius: 20px;
    --radius-s: 12px;
    --shadow: 0 14px 40px -18px rgba(0, 0, 0, .28);
    --shadow-s: 0 6px 20px -10px rgba(0, 0, 0, .2);
    --hh: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--y-deep); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.skip {
    position: absolute; left: -999px; top: 0;
    background: var(--y); color: #000; padding: .6rem 1rem; z-index: 3000; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--yellow { background: var(--y); color: var(--ink); }

.section-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--ink); color: var(--y);
    padding: .4rem .9rem; border-radius: 50px; margin-bottom: 1rem;
}
.section--dark .eyebrow { background: var(--y); color: var(--ink); }
.h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; font-weight: 800;
    color: var(--ink); letter-spacing: -.01em;
}
.section--dark .h2 { color: #fff; }
.h2 .hl, .hl {
    background: linear-gradient(transparent 62%, var(--y) 62%);
    padding: 0 .15em;
}
.section--dark .h2 .hl, .section--dark .hl { background: none; color: var(--y); padding: 0; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 1rem; }
.section--dark .lead { color: rgba(255, 255, 255, .72); }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: 1rem 1.9rem; border-radius: 14px;
    font-weight: 700; font-size: 1rem; line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    border: 2px solid transparent; text-align: center;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--y); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(245, 190, 24, .8); }
.btn--primary:hover { background: var(--y-hover); box-shadow: 0 14px 28px -10px rgba(245, 190, 24, .95); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-w { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-w:hover { background: #fff; color: var(--ink); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1fb858; }
.btn--sm { padding: .65rem 1.2rem; font-size: .9rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--hh); background: #fff; color: var(--ink);
    border-bottom: 4px solid var(--y);
    transition: height .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { height: 64px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex-shrink: 0; z-index: 1002; }
.brand img { height: 54px; width: auto; object-fit: contain; transition: height .3s; }
.site-header.scrolled .brand img { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a:not(.btn) {
    font-size: .93rem; font-weight: 500; color: var(--ink); position: relative; padding: .4rem 0;
    transition: color .2s;
}
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--y); transition: width .3s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: .6rem; z-index: 1002; }
.menu-toggle span { display: block; width: 25px; height: 3px; border-radius: 2px; background: var(--ink); transition: all .3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--hh) + 3.5rem) 0 5.5rem;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 215, 0, .35), transparent 38%),
        radial-gradient(circle at 5% 90%, rgba(255, 215, 0, .18), transparent 40%),
        var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: #fff; border: 1px solid var(--line); border-radius: 50px;
    padding: .45rem 1rem; font-size: .82rem; font-weight: 600; color: var(--ink);
    box-shadow: var(--shadow-s); margin-bottom: 1.4rem;
}
.badge i { color: var(--green); }
.hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.12; font-weight: 800;
    color: var(--ink); letter-spacing: -.02em; margin-bottom: 1.3rem;
}
.hero p.sub { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: #4a4a45; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: #3d3d38; }
.chip i {
    width: 24px; height: 24px; border-radius: 50%; background: var(--y); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: .65rem;
}

.hero-visual { position: relative; padding: 0 0 1.5rem 1.2rem; }
.hero-visual::before {
    content: ''; position: absolute; inset: 1.5rem .5rem 0 2.2rem;
    background: var(--y); border-radius: 28px; transform: rotate(3deg);
}
.hero-photo {
    position: relative; border-radius: 26px; overflow: hidden;
    border: 5px solid #fff; box-shadow: var(--shadow); background: var(--ink-2);
}
.hero-photo img { width: 100%; aspect-ratio: 1008 / 729; object-fit: cover; }
.float-card {
    position: absolute; background: #fff; border-radius: 16px; padding: .9rem 1.1rem;
    box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: center; z-index: 2;
    border: 1px solid var(--line); max-width: 270px;
    animation: bob 5s ease-in-out infinite;
}
.float-card .ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--y);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.float-card strong { display: block; font-size: .82rem; color: var(--ink); line-height: 1.3; }
.float-card span { font-size: .74rem; color: var(--muted); line-height: 1.3; display: block; margin-top: .15rem; }
.fc1 { left: -8px; bottom: 6px; }
.fc2 { right: -6px; top: 14px; animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--ink); color: #fff; padding: 1.6rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; font-size: .9rem; font-weight: 500; }
.trust-item i { color: var(--y); font-size: 1.3rem; width: 28px; text-align: center; }
.trust-item small { display: block; color: rgba(255, 255, 255, .6); font-weight: 400; font-size: .78rem; }

/* ---------- Carrusel de logos ---------- */
.logos { background: var(--paper); padding: 3rem 0 3.2rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.logos-title {
    text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; padding: 0 1rem;
}
.logos-wrap { position: relative; }
.logos-wrap::before, .logos-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logos-wrap::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.logos-wrap::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.logos-track { display: flex; width: max-content; animation: scrollLogos 42s linear infinite; }
.logos-wrap:hover .logos-track, .logos-track:focus-within { animation-play-state: paused; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
    display: flex; align-items: center; justify-content: center;
    margin: 0 .8rem; min-width: 170px; height: 92px; padding: .6rem 1.1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-s); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.logo-item:hover { transform: translateY(-4px) scale(1.04); border-color: var(--y); }
.logo-item img { max-height: 58px; max-width: 135px; object-fit: contain; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--y); }
.card h3 { font-size: 1.15rem; line-height: 1.3; color: var(--ink); margin: 1.1rem 0 .6rem; font-weight: 700; }
.card p { font-size: .95rem; color: #5a5a54; }
.card p b, .card p strong { color: var(--ink); }
.icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--y); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: 0 8px 18px -8px rgba(245, 190, 24, .9);
}
.card--dark { background: var(--ink-2); border-color: rgba(255, 255, 255, .1); }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .72); }
.card--dark p b, .card--dark p strong { color: var(--y); }

/* ---------- Regla de oro ---------- */
.verdict { position: relative; padding-top: 2.4rem; }
.verdict .tag {
    position: absolute; top: -14px; left: 1.6rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 50px;
}
.tag--a { background: #3ddc84; color: #04290f; }
.tag--b { background: var(--y); color: var(--ink); }
.tag--c { background: #fff; color: var(--ink); }
.golden-quote {
    margin: 3rem auto 0; max-width: 820px; text-align: center;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.5; color: #fff;
}
.golden-quote em { font-style: normal; color: var(--y); }

/* ---------- Factura anotada ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.invoice {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 1.6rem; box-shadow: var(--shadow); max-width: 440px; margin: 0 auto; width: 100%;
    transform: rotate(-1.5deg);
}
.invoice::before {
    content: ''; position: absolute; inset: 14px -14px -14px 14px; background: var(--y);
    border-radius: 18px; z-index: -1;
}
.inv-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 1rem; border-bottom: 2px dashed var(--line); margin-bottom: 1rem;
    font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.inv-head i { color: var(--y-deep); font-size: 1.2rem; }
.inv-row {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem .9rem; border-radius: 12px; margin-bottom: .55rem;
    background: #fafaf6; font-size: .82rem; color: #55554f; font-weight: 500;
}
.inv-row.hot { background: var(--y-soft); outline: 2px solid var(--y); color: var(--ink); font-weight: 600; }
.inv-row .bar { height: 8px; border-radius: 6px; background: #e1ded2; width: 80px; flex-shrink: 0; }
.inv-row.hot .bar { background: var(--ink); }
.marker {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ink); color: var(--y); font-size: .78rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.inv-row .l { display: flex; align-items: center; gap: .65rem; }
.inv-foot { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 1rem; font-style: italic; }
.legend { counter-reset: n; display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.legend li { display: flex; gap: 1rem; }
.legend li .marker { width: 34px; height: 34px; font-size: .95rem; margin-top: .15rem; }
.legend h3 { font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.legend p { font-size: .92rem; color: #5a5a54; }

/* ---------- Audiencias ---------- */
.aud h3 { font-size: 1.45rem; margin: 1.1rem 0 .5rem; }
.ticks { margin-top: 1.1rem; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; font-size: .94rem; color: #4b4b46; }
.ticks li i { color: var(--green); margin-top: .35rem; font-size: .85rem; }

/* ---------- Chat WhatsApp ---------- */
.chat {
    background: #ECE5DD; border-radius: 26px; padding: 1.2rem; max-width: 430px; margin: 0 auto;
    box-shadow: var(--shadow); border: 6px solid var(--ink);
}
.chat-top {
    display: flex; align-items: center; gap: .7rem; background: #075E54; color: #fff;
    margin: -1.2rem -1.2rem 1rem; padding: .9rem 1.2rem; border-radius: 18px 18px 0 0;
}
.chat-top .av {
    width: 38px; height: 38px; border-radius: 50%; background: var(--y); color: var(--ink);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.chat-top strong { font-size: .92rem; display: block; line-height: 1.2; }
.chat-top small { font-size: .72rem; opacity: .85; }
.bubble {
    max-width: 82%; padding: .65rem .9rem; border-radius: 14px; font-size: .86rem; line-height: 1.45;
    margin-bottom: .6rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); color: #222;
}
.bubble.out { background: #DCF8C6; margin-left: auto; border-top-right-radius: 4px; }
.bubble.in { background: #fff; border-top-left-radius: 4px; }
.bubble small { display: block; text-align: right; font-size: .66rem; color: #888; margin-top: .2rem; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.1; color: var(--ink); }
.stat span { display: block; font-weight: 600; margin-top: .3rem; }
.stat small { display: block; font-size: .85rem; opacity: .75; margin-top: .2rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; position: relative; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.2rem 1.6rem 1.8rem; transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num {
    position: absolute; top: -22px; left: 1.4rem; width: 46px; height: 46px; border-radius: 14px;
    background: var(--y); color: var(--ink); font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(245, 190, 24, .9);
}
.step h3 { font-size: 1.1rem; color: var(--ink); margin: .3rem 0 .5rem; }
.step p { font-size: .92rem; color: #5a5a54; }

/* ---------- Opiniones ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.review::before {
    content: '“'; position: absolute; top: .4rem; right: 1.4rem; font-size: 5rem; line-height: 1;
    color: var(--y); font-family: Georgia, serif; opacity: .8;
}
.stars { color: var(--y-deep); letter-spacing: 3px; margin-bottom: .8rem; }
.review p { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 1rem; }
.review .who { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .92rem; }
.review .who i {
    width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--y);
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .9rem; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: var(--y); box-shadow: var(--shadow-s); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.3rem 1.6rem; font-weight: 600; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--y); color: var(--ink); font-size: 1.3rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.6rem 1.4rem; color: #5a5a54; font-size: .96rem; }

/* ---------- Banda CTA con foto ---------- */
.cta-band {
    position: relative; color: #fff; text-align: center; padding: 90px 0; overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .7)), url("../../img/fondos/fondo2.jpeg") center / cover no-repeat, var(--ink);
}
.cta-band::before {
    content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px;
    background: radial-gradient(circle, rgba(255, 215, 0, .35), transparent 65%);
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: .8rem; }
.cta-band h2 span { color: var(--y); }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contacto + formulario ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list a, .contact-list div.row {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px;
    background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.contact-list a:hover { border-color: var(--y); transform: translateX(4px); }
.contact-list .ic {
    width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--y);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-list small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-list b { color: var(--ink); font-size: 1rem; font-weight: 700; word-break: break-word; }
.promise {
    margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--y-soft); border-left: 5px solid var(--y);
    border-radius: 0 14px 14px 0; font-size: .93rem; color: #3d3d38;
}

.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 2.4rem;
    box-shadow: var(--shadow); position: relative;
}
.form-card::before {
    content: ''; position: absolute; left: 2.4rem; right: 2.4rem; top: -1px; height: 5px;
    background: var(--y); border-radius: 0 0 6px 6px;
}
.form-card h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: .3rem; font-weight: 800; }
.form-card .sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.15rem; }
.field label.lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--ink); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field select {
    width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px;
    background: #fcfcfa; color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--y-deep); box-shadow: 0 0 0 4px rgba(255, 215, 0, .25); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.file { position: relative; }
.file input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file label.drop {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; cursor: pointer;
    border: 2px dashed var(--y-deep); border-radius: 14px; background: var(--y-soft);
    transition: background .2s, transform .2s; color: #4b4b46; font-size: .93rem;
}
.file label.drop:hover { background: #fff0a8; }
.file input:focus-visible + label.drop { outline: 3px solid var(--y-deep); outline-offset: 2px; }
.file label.drop i { font-size: 1.6rem; color: var(--ink); }
.file label.drop b { color: var(--ink); display: block; }
.file-name { margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--green); }
.captcha {
    background: var(--cream); border: 2px solid var(--y); border-radius: 14px; padding: 1rem 1.2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.captcha .q { font-weight: 700; color: var(--ink); font-size: .95rem; }
.captcha small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.captcha input[type=number] { width: 110px !important; text-align: center; font-weight: 700; }
.captcha-error { display: none; width: 100%; color: #c0261b; font-weight: 600; font-size: .85rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: #55554f; margin: 1.2rem 0 1.4rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.form-alert {
    background: #fdecea; border: 1px solid #f5b5af; color: #8a1f17; border-radius: 12px;
    padding: .85rem 1rem; font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem;
}
.form-alert[hidden] { display: none; }
.form-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1rem; }
.field.invalid input, .field.invalid select { border-color: #d9372b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 4rem 0 1.6rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer h4 { color: var(--y); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer a:hover { color: var(--y); }
.foot-brand img { height: 64px; margin-bottom: 1rem; background: #fff; padding: 6px 12px; border-radius: 12px; }
.foot-brand p { font-size: .9rem; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-top: 1.4rem; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center; z-index: 999;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .5); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
    animation: pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-float img { width: 32px; height: 32px; filter: brightness(0) invert(1); }

/* ---------- Cookies ---------- */
#cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2000; max-width: 760px; margin: 0 auto;
    background: var(--ink); color: #fff; border: 1px solid rgba(255, 215, 0, .35); border-radius: 18px;
    padding: 1.1rem 1.3rem; display: none; align-items: center; gap: 1rem; flex-wrap: wrap;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-size: .88rem;
}
#cookie-banner span { flex: 1; min-width: 230px; }
#cookie-banner a { color: var(--y); text-decoration: underline; }
#cookie-banner .btns { display: flex; gap: .6rem; }
#cookie-banner button { padding: .6rem 1.2rem; border-radius: 10px; font-weight: 700; font-size: .85rem; }
#accept-cookies { background: var(--y); color: var(--ink); }
#reject-cookies { background: #333; color: #fff; }

/* ---------- Páginas interiores ---------- */
.page-hero {
    position: relative; color: #fff; text-align: center; overflow: hidden;
    padding: calc(var(--hh) + 4.5rem) 0 4.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .72)), url("../../img/fondos/fondo2.jpeg") center / cover no-repeat, var(--ink);
}
.page-hero::before {
    content: ''; position: absolute; width: 560px; height: 560px; left: -200px; bottom: -300px;
    background: radial-gradient(circle, rgba(255, 215, 0, .3), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
.page-hero h1 span { color: var(--y); }
.page-hero p { margin: 1rem auto 0; max-width: 640px; color: rgba(255, 255, 255, .82); font-size: 1.1rem; }
.page-hero--plain { background: var(--ink); padding-bottom: 3.4rem; }

.crumbs { font-size: .85rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, .65); }
.crumbs a:hover { color: var(--y); }

.legal { max-width: 860px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; display: grid; gap: 1.4rem; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; }
.legal-card h2 { font-size: 1.4rem; color: var(--ink); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.legal-card h2 i { width: 38px; height: 38px; border-radius: 11px; background: var(--y); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.legal-card p { color: #55554f; margin-bottom: .9rem; font-size: .98rem; }
.legal-card ul { display: grid; gap: .6rem; margin: .4rem 0 1rem; }
.legal-card li { color: #55554f; font-size: .96rem; padding-left: 1.7rem; position: relative; }
.legal-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: .1rem; color: var(--green); font-size: .8rem; }
.legal-card a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--y); text-underline-offset: 3px; }
.legal-card a:hover { background: var(--y-soft); }
.callout { background: var(--y-soft); border-left: 5px solid var(--y); border-radius: 0 14px 14px 0; padding: 1.1rem 1.3rem; margin: 1rem 0; }
.callout h3 { font-size: 1rem; color: var(--ink); margin-bottom: .4rem; }
.callout p { margin-bottom: .3rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 1rem 0; }
table.t { width: 100%; border-collapse: collapse; min-width: 520px; }
table.t th { background: var(--ink); color: var(--y); text-align: left; padding: .9rem 1rem; font-size: .85rem; }
table.t td { padding: .9rem 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: #55554f; }
.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.rights div { background: var(--paper); border-radius: 14px; padding: 1.1rem; border-top: 3px solid var(--y); }
.rights h3 { font-size: .98rem; color: var(--ink); margin-bottom: .3rem; }
.rights p { font-size: .86rem; margin: 0; }
.legal-cta { max-width: 860px; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.legal-cta .box { background: var(--ink); color: #fff; border-radius: 24px; padding: 2.6rem 2rem; text-align: center; }
.legal-cta h2 { color: var(--y); font-size: 1.7rem; margin-bottom: .6rem; }
.legal-cta p { color: rgba(255, 255, 255, .8); margin-bottom: 1.5rem; }
.legal-cta .cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.legal-end { height: 4.5rem; }

/* Quiénes somos */
.about-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.about-intro p { font-size: 1.12rem; color: #55554f; margin-bottom: 1.1rem; }
.about-intro strong { color: var(--ink); }
.team-fig { margin: 2.5rem auto 0; max-width: 820px; border-radius: 24px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); }
.team-fig img { width: 100%; }
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 2.4rem; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--y); border-radius: 3px; }
.t-item { position: relative; margin-bottom: 1.6rem; }
.t-item::before {
    content: ''; position: absolute; left: -2.4rem; top: .9rem; width: 24px; height: 24px; border-radius: 50%;
    background: var(--ink); border: 5px solid var(--y);
}
.t-item .card { padding: 1.5rem 1.7rem; }
.t-year { display: inline-block; background: var(--ink); color: var(--y); font-weight: 700; font-size: .8rem; padding: .25rem .8rem; border-radius: 50px; }
.steps-v { max-width: 860px; margin: 0 auto; display: grid; gap: 1.2rem; }
.sv { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; }
.sv .n {
    width: 56px; height: 56px; border-radius: 16px; background: var(--y); color: var(--ink);
    font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(245, 190, 24, .9);
}
.sv .card { padding: 1.4rem 1.6rem; }
.sv .card h3 { margin-top: 0; }
.sv .card ul { margin-top: .7rem; display: grid; gap: .35rem; }
.sv .card li { font-size: .9rem; color: #55554f; padding-left: 1.5rem; position: relative; }
.sv .card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--green); font-size: .75rem; top: .2rem; }

/* ---------- Animaciones de entrada (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .g4, .steps { grid-template-columns: repeat(2, 1fr); }
    .g3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .steps { row-gap: 2.4rem; }
}

@media (max-width: 860px) {
    :root { --hh: 62px; }
    .section { padding: 68px 0; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: var(--hh); right: -100%; width: min(320px, 85%); height: calc(100vh - var(--hh));
        background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem;
        transition: right .4s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, .3); overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a:not(.btn) { padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links .btn { margin-top: 1.2rem; }
    body.menu-open::before { content: ''; position: fixed; inset: var(--hh) 0 0 0; background: rgba(0, 0, 0, .65); z-index: 999; }

    .hero { padding-top: calc(var(--hh) + 2rem); padding-bottom: 3.5rem; }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
    .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .g2, .g3 { grid-template-columns: 1fr; }
    .rights { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 1.8rem 1.3rem; }
    .form-card::before { left: 1.3rem; right: 1.3rem; }
    .field input, .field select { font-size: 16px !important; }
    .logo-item { min-width: 120px; height: 72px; margin: 0 .5rem; padding: .4rem .7rem; }
    .logo-item img { max-height: 46px; max-width: 92px; }
    .float-card { max-width: 220px; padding: .7rem .8rem; }
    .fc1 { left: -2px; }
    .fc2 { right: -2px; top: 6px; }
    .foot-bottom { flex-direction: column; }
    .legal-card { padding: 1.5rem 1.3rem; }
    .sv { grid-template-columns: 44px 1fr; gap: .9rem; }
    .sv .n { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
}

@media (max-width: 560px) {
    .g4, .steps, .stats, .trust-grid { grid-template-columns: 1fr; }
    .stats { gap: 1.6rem; }
    .foot-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .fc2 { display: none; }
    #cookie-banner .btns { width: 100%; }
    #cookie-banner button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .logos-wrap { overflow-x: auto; }
    .logos-track { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
}
