/* ==========================================================================
   J.A. Mora — hoja de estilos principal
   ========================================================================== */

/* Fuentes alojadas en el propio servidor (sin peticiones a Google). Licencia OFL. */
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Azul del logo (#002f91) y rojo de las etiquetas HANNA / rótulo de la nave */
    --brand-950:   #031a4a;
    --brand-900:   #06246b;
    --brand-700:   #002f91;
    --brand-500:   #2554b8;
    --brand-light: #9dc0ee;
    --tint:        #e7eef8;
    --accent:      #d2382b;
    --sun:         #eda23a;
    --cream:       #f8f5ef;
    --cream-2:     #efe9de;
    --white:       #ffffff;
    --ink:         #18212e;
    --muted:       #586477;
    --line:        #e1ddd4;

    --font-display: "Newsreader", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(13, 31, 58, .06), 0 8px 24px rgba(13, 31, 58, .08);
    --shadow-lg: 0 2px 4px rgba(13, 31, 58, .06), 0 20px 48px rgba(13, 31, 58, .14);
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--brand-950);
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .95em 1.6em;
    border-radius: 999px;
    font-weight: 600; font-size: .98rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
    cursor: pointer;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-900); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: .65em 1.25em; font-size: .92rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .8rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-500);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--brand-light); }

/* ---------- Marcadores de imagen ---------- */
.img-placeholder {
    display: grid; place-items: center;
    width: 100%; height: 100%; min-height: 160px;
    background:
        repeating-linear-gradient(135deg, rgba(0,47,145,.07) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, var(--tint), var(--cream-2));
    color: var(--brand-700);
    font: 500 .78rem/1.3 ui-monospace, Consolas, monospace;
    text-align: center;
    padding: 12px;
}
.img-placeholder span { background: rgba(255,255,255,.75); padding: 4px 10px; border-radius: 6px; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13, 31, 58,.06); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-950); }
.brand-logo { height: calc(var(--header-h) - 14px); width: auto; }
.brand-mark {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brand-700); color: #fff;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint); }
.site-nav .lang-switch a {
    padding: 5px 10px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    color: var(--muted);
}
.site-nav .lang-switch a:hover { background: #fff; color: var(--brand-900); }
.site-nav .lang-switch a[aria-current] { background: var(--brand-700); color: #fff; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem;
    transition: background-color .2s, color .2s;
}
.site-nav ul a:hover { background: var(--tint); color: var(--brand-900); }

.nav-toggle {
    display: none;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--brand-950);
    cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 100% 0%, var(--tint) 0%, transparent 70%),
        var(--cream);
    padding-block: clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 52ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* La foto se muestra sin recortar (formato panorámico) dentro de un marco */
.hero-media { position: relative; animation: heroIn 1s var(--ease) both; }
.hero-media::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
    border-radius: calc(var(--radius) + 6px);
    background: var(--brand-700);
}
.hero-media img, .hero-media .img-placeholder {
    position: relative; z-index: 1;
    width: 100%; height: auto; min-height: 0;
    aspect-ratio: 868 / 395; object-fit: cover;
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow-lg);
}

@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.btn-outline { border-color: var(--brand-700); color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-700); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--brand-900); }

/* ---------- Cifras ---------- */
.stats { background: var(--brand-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--brand-light); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .93rem; color: rgba(255,255,255,.78); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-slim { padding-block: 0 clamp(72px, 10vw, 128px); }
.section-tint { background: var(--cream); }
.section-dark { background: var(--brand-950); color: rgba(255,255,255,.85); }
.section-dark h2 { color: #fff; }
.section-dark strong { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-text > p { color: var(--muted); }
.section-dark .split-text > p { color: rgba(255,255,255,.78); }

.split-media { position: relative; }
.media-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow-lg); }
.media-frame img, .media-frame .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
    position: absolute; right: -24px; bottom: -28px;
    background: var(--accent); color: #fff;
    padding: 22px 26px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; line-height: 1.1;
}
.media-badge strong { font-family: var(--font-display); font-size: 2.6rem; }
.media-badge span { font-size: .85rem; font-weight: 600; }

/* Historia: foto panorámica a todo el ancho, sin recortar */
.about-media { position: relative; margin-bottom: clamp(48px, 6vw, 80px); }
.about-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-frame img { width: 100%; height: auto; }
.about-frame .img-placeholder { aspect-ratio: 1880 / 836; }
.about-media .media-badge { right: 32px; bottom: -28px; }
.about-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-body .timeline { margin: 0; }

/* Línea de tiempo */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--tint); }
.timeline li { position: relative; padding: 0 0 18px 24px; color: var(--ink); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand-500);
}
.timeline span { display: block; font-family: var(--font-display); font-weight: 600; color: var(--brand-700); font-size: 1.15rem; }

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.product-media img, .product-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.season-pill {
    position: absolute; left: 16px; top: 16px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.94); color: var(--brand-900);
    font-size: .8rem; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.season-pill .icon { color: var(--sun); }
.product-body { padding: 26px 28px 30px; }
.product-body h3 { font-size: 1.6rem; margin-bottom: .35em; }
.product-body p { color: var(--muted); margin-bottom: 1.2em; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-700); font-weight: 600; font-size: .95rem; }
.more .icon { transition: transform .25s var(--ease); }
.product-card:hover .more .icon { transform: translateX(5px); }


/* ---------- Pasos / servicios ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative; padding: 32px 26px 28px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff;
    transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.step:hover { border-color: var(--brand-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
    counter-increment: step; content: "0" counter(step);
    position: absolute; right: 22px; top: 22px;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--line);
}
.step-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint); color: var(--brand-700); margin-bottom: 20px; }
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brand-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brand-card img, .brand-card .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--radius-sm); }
.brand-card figcaption { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--brand-950); }

/* ---------- Calidad ---------- */
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--brand-700); }
.cert-logos { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.cert { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert a { display: block; border-radius: var(--radius-sm); transition: transform .25s var(--ease), opacity .25s; }
.cert a:hover { transform: translateY(-2px); opacity: .85; }
.cert figcaption { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.cert-logos img, .cert-logos .img-placeholder { width: 130px; height: 80px; min-height: 0; object-fit: contain; border-radius: var(--radius-sm); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.funding-logos { margin-top: 40px; padding: clamp(20px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.funding-logos img { width: 100%; height: auto; }

/* ---------- Banner ---------- */
.banner {
    display: flex; align-items: center; gap: 24px;
    padding: 28px 32px; border-radius: var(--radius);
    background: linear-gradient(120deg, #fff6e4, var(--tint));
    color: var(--ink); text-decoration: none;
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.banner-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); color: #fff; flex-shrink: 0; }
.banner-icon .icon { width: 30px; height: 30px; }
.banner-text { flex: 1; display: flex; flex-direction: column; }
.banner-text strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand-950); }
.banner-text span { color: var(--muted); }
.banner-arrow { color: var(--brand-700); }
.banner-arrow .icon { width: 28px; height: 28px; transition: transform .25s var(--ease); }
.banner:hover .banner-arrow .icon { transform: translateX(5px); }

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.location-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--brand-700); box-shadow: var(--shadow); }
.contact-list li span, .contact-list li a { padding-top: 8px; }
.contact-list a { color: var(--ink); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map { display: grid; }
.map-consent {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 32px; text-align: center; color: var(--muted); font-size: .95rem;
    background:
        repeating-linear-gradient(135deg, rgba(0,47,145,.05) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, var(--tint), var(--cream-2));
}
.map-consent > .icon { width: 44px; height: 44px; color: var(--brand-700); }
.map-consent p { max-width: 40ch; margin: 0; }
.map-consent a { font-weight: 600; font-size: .9rem; }
.map-link { margin-top: 14px; }
.map-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.map-link a:hover { text-decoration: underline; }

/* ---------- Páginas interiores ---------- */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(80px, 12vw, 140px) clamp(56px, 8vw, 88px);
    background: var(--brand-950); color: rgba(255,255,255,.85);
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; margin: 0; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img, .page-hero-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 31, 58,.92) 0%, rgba(13, 31, 58,.6) 60%, rgba(13, 31, 58,.35) 100%); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--brand-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose strong { color: var(--ink); }

.product-detail { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lead { font-size: 1.2rem; color: var(--ink) !important; }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--cream); border-radius: var(--radius); padding: 32px; }
.aside-card h2 { font-size: 1.4rem; }
.variety-list { list-style: none; padding: 0; margin: 0 0 24px; }
.variety-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.variety-list li:last-child { border-bottom: 0; }
.variety-list .v-name { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.variety-list .v-name .icon { color: var(--sun); fill: var(--sun); width: 1em; height: 1em; }
.variety-list .v-when { color: var(--muted); font-size: .92rem; text-align: right; }

.see-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; font-size: .92rem; }
.see-also span { width: 100%; font-weight: 600; color: var(--muted); }
.see-also a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, background-color .2s; }
.see-also a:hover { border-color: var(--brand-500); background: var(--tint); }

.mini-cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 8px 0 24px; }
.mini-cal span { display: grid; place-items: center; height: 34px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: #fff; color: var(--muted); }
.mini-cal span.on { background: var(--brand-500); color: #fff; }

.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius-sm); background: #fff6e4; border-left: 4px solid var(--sun); margin: 28px 0; }
.callout .icon { color: var(--sun); width: 26px; height: 26px; margin-top: 2px; }
.callout p { margin: 0; color: var(--ink) !important; }


/* ---------- Formulario ---------- */
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
    font: inherit; font-size: 1rem; color: var(--ink);
    padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(0,47,145,.18); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-bottom: 22px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand-700); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 500; }
.alert-ok { background: var(--tint); color: var(--brand-900); }
.alert-error { background: #fbe9e3; color: #8a3517; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-950); color: rgba(255,255,255,.7); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.footer-logo .icon { color: var(--brand-light); }
.footer-logo-img { display: inline-block; margin-bottom: 20px; }
.footer-logo-img img { width: auto; height: 110px; }
.footer-brand p:last-child { max-width: 38ch; }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand-light); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .87rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .media-badge { right: 16px; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: grid; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        flex-direction: column; align-items: stretch; gap: 20px;
        padding: 24px 20px 32px;
        background: #fff;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
        overflow-y: auto;
    }
    .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
    .site-nav ul { flex-direction: column; gap: 2px; }
    .site-nav ul a { font-size: 1.2rem; padding: 14px 12px; border-radius: 12px; border-bottom: 1px solid var(--line); }
    .site-nav .btn { justify-content: center; padding: 1em; font-size: 1.05rem; }
    .nav-open { overflow: hidden; }

    .nav-actions { flex-direction: column; align-items: stretch; }
    .site-nav .lang-switch { flex-direction: row; align-self: center; }
    .site-nav .lang-switch a { font-size: .95rem; padding: 8px 18px; border: 0; }
    .nav-actions .btn { width: 100%; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { margin-right: 18px; }

    .split, .location, .product-detail, .contact-layout, .about-body { grid-template-columns: 1fr; }
    .about-media .media-badge { right: 16px; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat { border-top: 1px solid rgba(255,255,255,.12); }
    .stat:nth-child(-n+2) { border-top: 0; }
    .aside-card { position: static; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .container { width: calc(100% - 32px); }
    .brand-text small { display: none; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .product-grid, .steps, .brands, .form-row { grid-template-columns: 1fr; }
    .stat { padding: 26px 16px 26px 0; }
    .stat:nth-child(even) { padding-left: 16px; }
    
    .banner { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; }
    .banner-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .media-badge { padding: 16px 18px; bottom: 16px; }
    .media-badge strong { font-size: 2rem; }
    .map, .map iframe { min-height: 320px; }
}
