/* ==========================================================
   IVEMA Enseñanza · hoja de estilos principal
   Colores tomados del logotipo: verde #67BD46 y naranja #F26522
   ========================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/jakarta.woff2") format("woff2");
}

:root {
    --green: #67bd46;          /* verde del logo */
    --green-50: #f2f9ee;
    --green-100: #e2f2d9;
    --green-200: #c6e6b6;
    --green-600: #3d8a26;      /* verde accesible para texto y botones */
    --green-700: #2f6d1d;
    --green-900: #173d10;
    --orange: #f26522;         /* naranja del logo */
    --orange-50: #fff3eb;
    --orange-100: #ffe2cf;
    --orange-600: #d4520c;
    --ink: #16241a;
    --text: #344238;
    --muted: #5f6e63;
    --line: #e3e9df;
    --cream: #fbfaf5;
    --white: #ffffff;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(22, 36, 26, .06), 0 2px 8px rgba(22, 36, 26, .05);
    --shadow: 0 10px 30px -10px rgba(22, 36, 26, .18), 0 2px 6px rgba(22, 36, 26, .05);
    --shadow-lg: 0 30px 60px -20px rgba(23, 61, 16, .28);

    --container: 1180px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Resaltado tipo rotulador */
.mark {
    background: linear-gradient(transparent 62%, var(--orange-100) 62%, var(--orange-100) 92%, transparent 92%);
}
.text-green { color: var(--green-600); }
.text-orange { color: var(--orange-600); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(61, 138, 38, .7); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--accent { background: var(--orange-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(212, 82, 12, .7); }
.btn--accent:hover { background: #b9450a; color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--green); color: var(--green-700); }
.btn--light { background: #fff; color: var(--green-700); }
.btn--light:hover { color: var(--green-900); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: .7em 1.2em; font-size: .95rem; }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; color: #fff; }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--green-900); color: #d9ead2; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; }
.topbar__item, .topbar a { display: inline-flex; align-items: center; gap: .4em; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 1.4rem; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 36, 26, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 82px; }
.brand img { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: .5rem .8rem; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none;
    transition: background-color .2s, color .2s;
}
.main-nav ul a:hover { background: var(--green-50); color: var(--green-700); }
.main-nav ul a[aria-current="page"] { background: var(--green-100); color: var(--green-700); }

.nav-toggle {
    display: none; background: var(--green-50); border: 0; border-radius: 12px;
    width: 46px; height: 46px; align-items: center; justify-content: center;
    color: var(--green-700); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--green-50); }
.section--cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* ---------- Hero de inicio ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
    background:
        radial-gradient(900px 500px at 95% 10%, var(--green-100), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, var(--orange-50), transparent 60%),
        var(--cream);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 600; color: var(--ink); font-size: .97rem; }
.hero__checks li { display: inline-flex; align-items: center; gap: .45em; }
.hero__checks .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 1.3em; height: 1.3em; }

.hero__visual { position: relative; }
.hero__visual::before {
    content: ""; position: absolute; inset: 8% -6% -6% 10%;
    background: var(--green); border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
    transform: rotate(-6deg); opacity: .95;
}
.hero__visual::after {
    content: ""; position: absolute; width: 110px; height: 110px; right: -10px; top: -18px;
    background: radial-gradient(circle, var(--orange) 2.5px, transparent 3px) 0 0 / 16px 16px;
    opacity: .55;
}
.hero__photo {
    position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
    padding: 1rem; box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
}
.hero__photo img { border-radius: calc(var(--radius-lg) - 10px); width: 100%; }
.float-badge {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem;
    background: #fff; border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--shadow);
    font-size: .9rem; line-height: 1.25; color: var(--ink); font-weight: 600;
    animation: bob 6s ease-in-out infinite;
}
.float-badge strong { display: block; font-size: 1.05rem; font-weight: 800; }
.float-badge small { color: var(--muted); font-weight: 500; }
.float-badge__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.float-badge__icon .icon { width: 22px; height: 22px; }
.float-badge--a { left: -28px; bottom: 14%; }
.float-badge--a .float-badge__icon { background: var(--orange-50); color: var(--orange-600); }
.float-badge--b { right: -14px; top: 10%; animation-delay: -3s; }
.float-badge--b .float-badge__icon { background: var(--green-100); color: var(--green-700); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Cifras ---------- */
.stats { margin-top: -2.5rem; position: relative; z-index: 3; }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.6rem 1.5rem; display: flex; gap: 1rem; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-600); flex: none; }
.stat__icon .icon { width: 24px; height: 24px; }
.stat strong { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.stat div > span { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.service-card {
    --c: var(--green-600); --c-bg: var(--green-50);
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem; text-decoration: none; color: var(--text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    overflow: hidden;
}
.service-card::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c);
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card:hover::after { transform: scaleX(1); }
.service-card--orange { --c: var(--orange-600); --c-bg: var(--orange-50); }
.service-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--c-bg); color: var(--c); margin-bottom: 1.4rem; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.service-card__tags li { font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--c-bg); color: var(--c); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--c, var(--green-600)); }
.service-card:hover .link-arrow .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Bloques texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; width: 100%; }
.split__media--framed::before {
    content: ""; position: absolute; inset: -16px 16px 16px -16px; border-radius: var(--radius-lg);
    background: var(--green-100); z-index: -1;
}
.split__media--orange::before { background: var(--orange-50); }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { color: var(--green-600); background: var(--green-100); border-radius: 50%; padding: 4px; width: 1.55em; height: 1.55em; margin-top: .1em; }
.check-list strong { color: var(--ink); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem; border: 1px solid var(--line); }
.step::before {
    counter-increment: step; content: "0" counter(step);
    display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 1rem;
    color: transparent; -webkit-text-stroke: 1.5px var(--green);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #e8f3e2;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 70%, #4a9c2f 100%);
}
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: rgba(103, 189, 70, .35); }
.page-hero::after { width: 180px; height: 180px; right: 18%; bottom: -110px; background: var(--orange); opacity: .9; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 15em; }
.page-hero .lead { color: #d3e8c9; }
.page-hero .eyebrow { color: #bfe3ad; }
.breadcrumb { font-size: .88rem; margin-bottom: 1.2rem; color: #b8d6ab; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Niveles / grupos ---------- */
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.level {
    background: #fff; border-radius: var(--radius); padding: 1.9rem 1.75rem;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.level__tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); margin-bottom: 1rem; }
.level--orange .level__tag { background: var(--orange-100); color: #a9420a; }
.level h3 { margin-bottom: .5rem; }
.level p { color: var(--muted); font-size: .98rem; }
.level ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .96rem; }
.level ul li { display: flex; gap: .55rem; }
.level ul li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: .62em; }
.level--orange ul li::before { background: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.chips li { padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.feature { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--orange-50); color: var(--orange-600); flex: none; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Pasos horizontales numerados (formación bonificada) */
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 1rem; }
.numbered li { counter-increment: n; display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1px solid var(--line); }
.numbered li::before {
    content: counter(n); flex: none; display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; background: var(--orange-600); color: #fff; font-weight: 800;
}
.numbered strong { display: block; color: var(--ink); }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* Cita / destacado */
.highlight {
    background: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
}
.highlight__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--orange-600); color: #fff; }
.highlight__icon .icon { width: 40px; height: 40px; }
.highlight h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.highlight p { margin: 0; color: var(--muted); }

/* ---------- Banda CTA ---------- */
.cta-band { padding: clamp(3rem, 6vw, 5rem) 0; }
main > .section:last-child:not(.section--tint):not(.section--cream) { padding-bottom: 0; }
.cta-band__inner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    background: linear-gradient(115deg, var(--orange-600), var(--orange) 60%, #f7893f);
    color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band__inner::after {
    content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px;
    border-radius: 50%; border: 40px solid rgba(255, 255, 255, .12);
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: #fff5ee; max-width: 36em; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn--light { color: var(--orange-600); }
.cta-band .btn--light:hover { color: #a9420a; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-900); color: #c3d8bb; font-size: .95rem; padding-top: 4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.site-footer__brand img { background: #fff; border-radius: 14px; padding: .55rem .8rem; height: auto; width: 150px; margin-bottom: 1.2rem; }
.site-footer__brand p { max-width: 26em; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #e6f1e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list .icon { color: var(--green); margin-top: .3em; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.4rem 0; font-size: .85rem; }
.site-footer__bottom p { margin: 0; display: flex; gap: 1.4rem; }

/* WhatsApp flotante */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 10px 25px -6px rgba(0, 0, 0, .35);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: start; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 1rem; color: var(--ink);
    padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
    transition: border-color .2s, box-shadow .2s, background-color .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(103, 189, 70, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c62828; }
.field__error { color: #b71c1c; font-size: .85rem; font-weight: 600; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent span { font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: .2em; accent-color: var(--green-600); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; }
.alert .icon { margin-top: .2em; }
.alert--ok { background: var(--green-100); color: var(--green-900); }
.alert--error { background: #fdecea; color: #8e1b1b; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

.info-card { background: var(--green-900); color: #d7e8cf; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.info-card h2 { color: #fff; font-size: 1.5rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(103, 189, 70, .2); color: var(--green); flex: none; }
.info-list small { display: block; color: #a9c79c; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.info-list a, .info-list span { color: #fff; font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-card .btn { width: 100%; }

.map {
    margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; position: relative;
    min-height: 340px; background: var(--green-50);
    display: grid; place-items: center; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { padding: 2rem; max-width: 30rem; }
.map__placeholder .icon { width: 42px; height: 42px; color: var(--orange-600); margin: 0 auto 1rem; }
.map__placeholder p { color: var(--muted); font-size: .92rem; }
.map__placeholder .btn { margin: .3rem; }

/* ---------- Páginas legales ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--text); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav ul a { padding: .5rem .55rem; font-size: .93rem; }
    .main-nav { gap: .8rem; }
}
@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 1rem;
        background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(22, 36, 26, .35);
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: .85rem 1rem; font-size: 1.05rem; }
    .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .hero__visual { max-width: 560px; margin: 1rem auto 0; width: 100%; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .topbar__item { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__links { gap: 1rem; font-size: .8rem; }
    .site-header__inner { min-height: 70px; }
    .brand img { height: 48px; }
    .stats { margin-top: -1.5rem; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .float-badge { font-size: .8rem; padding: .55rem .75rem; }
    .float-badge__icon { width: 34px; height: 34px; }
    .float-badge--a { left: -6px; }
    .float-badge--b { right: -6px; }
    .form-grid { grid-template-columns: 1fr; }
    .highlight { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero__actions .btn, .page-hero__actions .btn { flex: 1 1 100%; }
}
