@font-face {
    font-family: 'Panton';
    src: url('/assets/fonts/Panton-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Panton';
    src: url('/assets/fonts/Panton-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #f07e2d;
    --orange-dark: #d96a1c;
    --ink: #2b2b2b;
    --ink-soft: #4a4a4a;
    --dark: #1f1f1f;
    --gray-bg: #f3f3f3;
    --gray-line: #e2e2e2;
    --white: #ffffff;
    --maxw: 1200px;
    --header-h: 117px;
    --topbar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
/* clip (no hidden): no crea contenedor de scroll → no rompe position:sticky del header móvil. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
    margin: 0;
    font-family: 'Panton', system-ui, -apple-system, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000;
    background: var(--white);
    line-height: 1.6;
}
@media (max-width: 720px) { body { font-size: 15px; } }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img, svg, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Ancho único del cuerpo (1160 = el del pie) en todas las páginas: nada de max-width propios (RULES §1.14). */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
/* Solo vertical: un `.section.container` (legales, 404) conserva los 20px laterales del .container. */
.section { padding-top: 56px; padding-bottom: 56px; }
.section--center { text-align: center; }
.page-title { font-size: 2rem; }
.page-lead { font-size: 1.15rem; color: var(--ink-soft); }

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background-color .2s ease;
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); color: var(--white); }
.btn--grey { background: #e0e0e0; color: var(--ink); }
.btn--grey:hover { background: #d0d0d0; color: var(--ink); }
.btn--white { background: var(--white); color: var(--orange); transition: color .2s ease, box-shadow .2s ease; }
.btn--white:hover { background: var(--white); color: var(--orange-dark); box-shadow: 0 4px 14px rgba(0,0,0,.18); }

.legal-doc h2 { font-size: 1.2rem; color: var(--ink); margin: 1.6em 0 .5em; }
.legal-doc p, .legal-doc ul { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1em; }
.legal-doc ul { padding-left: 1.3em; list-style: disc; }
.legal-doc li { margin-bottom: .4em; }
.legal-doc a { color: var(--orange); }
.legal-doc a:hover { color: var(--orange-dark); }
.legal-updated { color: #8a8a8a; font-size: .9rem; margin-top: -.4em; }
.legal-qr-link { display: inline-block; margin: .6em 0 1.6em; }
.legal-qr { width: 160px; height: auto; display: block; }
.legal-doc code { background: var(--gray-bg); padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.legal-table th, .legal-table td { border: 1px solid var(--gray-line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-soft); }
.legal-table th { background: var(--gray-bg); color: var(--ink); font-weight: 700; }

.scaffold-note {
    background: var(--gray-bg);
    border: 1px dashed var(--gray-line);
    border-radius: 10px;
    padding: 18px 22px;
    color: var(--ink-soft);
}

.topbar { background: #000; color: #939292; font-size: 14px; font-weight: 400; }
.topbar .container { max-width: none; }
.topbar a { color: #939292; }
.topbar a:hover { color: #939292; }
.topbar__items { display: flex; align-items: center; justify-content: flex-end; min-height: var(--topbar-h); }
.topbar__items > li { display: flex; align-items: center; }
.topbar__items > li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid #9a9a9a; }
.topbar__items a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__social { gap: 12px; }
.topbar__social a { padding: 0; }
.langswitch { font-weight: 400; }
.ico-invert { filter: brightness(0) invert(.85); }

.tb-ico {
    display: inline-block; flex: none; width: 15px; height: 15px;
    background-color: #939292;
    -webkit-mask: var(--m) center / contain no-repeat;
            mask: var(--m) center / contain no-repeat;
    transition: background-color .2s ease;
}
.topbar__items a:hover .tb-ico { background-color: var(--orange); }
.tb-ico--email { --m: url('/assets/img/icono_email_negro.svg');    width: 16.5px; height: 16.5px; }
.tb-ico--phone { --m: url('/assets/img/icono_telefono_negro.svg'); width: 16.5px; height: 16.5px; }
.tb-ico--yt    { --m: url('/assets/img/icono-youtube.svg');  width: 18px; height: 18px; }
.tb-ico--in    { --m: url('/assets/img/icono-linkedin.svg'); width: 18px; height: 18px; }
.tb-ico--globe { --m: url('/assets/img/icono-globo.svg');    width: 17.6px; height: 17.6px; }

.header { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.header .container { max-width: none; }
.page-home .header, .page-contact .header,
.page-satisfaction .header, .page-ai-nut-grading-machine .header { position: absolute; top: var(--topbar-h); left: 0; right: 0; background: #00000082; }
.page-jobs .header { background: #00000082; }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.header__logo { display: inline-flex; align-items: center; }
.header__logo img { height: 85px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 26px; }
.mainnav__list { display: flex; gap: 0; }
.mainnav__list li + li { border-left: 1px solid #9a9a9a; }
.mainnav__link { display: block; padding: 0 18px; color: #CACACA; font-weight: 400; font-size: 16px; }
.mainnav__link:hover, .mainnav__link.is-active { color: var(--orange); }
.header__cta { font-weight: 700; }
.header__cta:hover { background: #656565; color: #fff; box-shadow: 0 0 18px 4px rgba(240,126,45,.65); }

.footer { background: #2E3436; color: #c9c9c9; font-size: 16px; }
.footer a { color: #c9c9c9; transition: color .2s ease; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding: 56px 20px 16px; }
.footer__logo { height: 94px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__tagline { font-size: 16px; line-height: 1.7; margin: 0; padding-right: 20%; }
.footer__social { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer__social a { display: inline-flex; align-items: center; }
.footer__social-ico {
    display: block; flex: none;
    background-color: #d9d9d9;
    -webkit-mask: var(--m) center / contain no-repeat;
            mask: var(--m) center / contain no-repeat;
    transition: background-color .2s ease;
}
.footer__social a:hover .footer__social-ico { background-color: var(--orange); }
.footer__social-ico--yt { --m: url('/assets/img/icono-youtube.svg');  width: 31px; height: 22px; }
.footer__social-ico--in { --m: url('/assets/img/icono-linkedin.svg'); width: 26px; height: 26px; }
.footer__title { font-size: 18px; color: var(--white); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 16px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; }
.footer__contact a { font-size: 16px; }
.footer__contact img { margin-top: 4px; flex: none; filter: brightness(0) invert(.85); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.6); }
.footer__copy { font-size: 12px; margin: 0; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { font-size: 12px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 22px; line-height: 1.2; margin: 0 0 .35em; }
.eyebrow--center { text-align: center; }
.section-title { font-size: 45px; line-height: 1.12; color: #040405; margin: 0 0 .6em; }
.section-title--center { text-align: center; }
@media (max-width: 720px) {
    .eyebrow { font-size: 16px; }
    .section-title { font-size: 25px; }
}
.footer__grant-inner { display: flex; align-items: center; gap: 28px; padding: 14px 20px 28px; flex-wrap: wrap; }
.footer__grant-logo { width: 346px; max-width: 100%; height: auto; flex: none; }
.footer__grant-divider { width: 1px; height: 78px; background: #9a9a9a; flex: none; align-self: center; }
.footer__grant-text { font-size: 12px; color: #9a9a9a; line-height: 1.6; margin: 0; flex: 1; min-width: 240px; text-align: justify; }

body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.78); }
.modal[hidden] { display: none; }
.modal__dialog { position: relative; background: var(--white); border-radius: 12px; max-width: 960px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal__dialog--video { background: #000; line-height: 0; }
.modal__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--orange); color: #fff; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0; }
.modal__close svg { width: 22px; height: 22px; }
.modal__video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.modal__video iframe, .modal__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.modal--legal { background: rgba(0,0,0,.7); padding: 48px 24px; }
.modal__dialog--legal { display: flex; flex-direction: column; max-width: 900px; max-height: calc(100vh - 96px); padding-top: 36px; }
.modal--legal .modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border-radius: 0 0 12px 12px; padding: 0 34px 32px; }
.modal--legal .modal__body .section { padding: 0; }
.modal--legal .page-title { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 0 14px; background: var(--white); }
.modal__body { width: 100%; padding: 0 20px; }
.modal__body .page-title { color: var(--orange); }

.cconsent {
    position: fixed; z-index: 1100; right: 24px; bottom: 24px;
    width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px);
    overflow-y: auto; background: var(--white); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 26px 26px 20px; color: var(--ink);
}
.cconsent[hidden] { display: none; }
.cconsent__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cconsent__icon { width: 42px; height: 42px; flex: none; }
.cconsent__title { font-size: 1.15rem; margin: 0; color: var(--ink); }
.cconsent__intro { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }

.cconsent__prefs { display: none; margin: 0 0 16px; }
.cconsent.is-expanded .cconsent__prefs { display: block; }
.cconsent__cat { background: var(--gray-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cconsent__cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cconsent__cat-name { font-weight: 700; color: var(--ink); }
.cconsent__always { color: #2e9e4f; font-weight: 700; font-size: .9rem; flex: none; }
.cconsent__cat-desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 6px 0 0; }

.cswitch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.cswitch__input { position: absolute; inset: 0; width: 44px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.cswitch__track { display: block; width: 44px; height: 24px; border-radius: 999px; background: #c9c9c9; transition: background-color .2s ease; }
.cswitch__thumb { display: block; width: 18px; height: 18px; margin: 3px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cswitch__input:checked + .cswitch__track { background: var(--orange); }
.cswitch__input:checked + .cswitch__track .cswitch__thumb { transform: translateX(20px); }
.cswitch__input:focus-visible + .cswitch__track { outline: 2px solid var(--orange-dark); outline-offset: 2px; }

.cconsent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cconsent__btn { flex: 1 1 auto; text-align: center; padding: 11px 18px; font-size: .85rem; font-weight: 400; }
.cconsent__save { display: none; }
.cconsent.is-expanded .cconsent__reject,
.cconsent.is-expanded .cconsent__prefs-btn { display: none; }
.cconsent.is-expanded .cconsent__save { display: block; }

.cconsent__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.cconsent__legal a { font-size: .85rem; color: var(--orange); text-decoration: underline; }
.cconsent__legal a:hover { color: var(--orange-dark); }

.footer__legal-btn { background: none; border: none; padding: 0; font-family: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.footer__legal-btn:hover { color: var(--orange); }

@media (max-width: 600px) {
    .cconsent { right: 0; left: 0; bottom: 0; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding: 20px 18px 16px; }
    .cconsent__btn { padding: 11px 8px; }
    .cconsent__accept, .cconsent__reject, .cconsent__save { flex: 0 1 calc(50% - 5px); min-width: 0; }
    .cconsent__prefs-btn { flex: 0 1 100%; }

    .modal__dialog--legal { max-width: none; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; padding-top: 0; }
    .modal--legal .modal__body { border-radius: 0; padding: 0 18px 24px; }
    .modal--legal .page-title { padding: 16px 48px 14px 0; }
}

@media (max-width: 600px) {
    .modal { padding: 0; }
    .modal__dialog--video { max-width: none; border-radius: 0; }
    .modal__video iframe, .modal__video video { border-radius: 0; }
    .modal__close { position: fixed; top: 12px; right: 12px; }
}

.hero { position: relative; min-height: min(86vh, 800px); display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__poster { position: absolute; inset: 0; opacity: 1; transition: opacity .8s ease; }
.hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.hero--playing .hero__poster { opacity: 0; pointer-events: none; }
.hero__shield { position: absolute; inset: 0; z-index: 1; background: transparent; }
@media (max-width: 900px) { .hero { min-height: 0; aspect-ratio: 16 / 9; } }

/* Alto ∝ ancho (un tope fijo en px la volvía una franja en pantallas anchas); 72vh: que el título asome. */
.phero { position: relative; min-height: max(460px, min(40vw, 72vh)); overflow: hidden; background: var(--dark); }
.phero__pic { position: absolute; inset: 0; display: block; }
.phero__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .phero { min-height: 0; aspect-ratio: 16 / 9; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal--zoom { transform: scale(.85); }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

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

    .footer__grid { grid-template-columns: 1fr; gap: 28px; }

    .header, .page-home .header, .page-contact .header, .page-jobs .header,
    .page-satisfaction .header, .page-ai-nut-grading-machine .header {
        position: sticky; top: 0; left: auto; right: auto;
        background: var(--white); box-shadow: 0 5px 14px rgba(0,0,0,.08);
        z-index: 70;
    }
    body.nav-open .header { box-shadow: none; }
    .header__logo img { height: 46px; }

    .nav-toggle { display: block; }
    .nav-toggle span { background: var(--ink); }

    .mainnav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); box-shadow: 0 10px 16px rgba(0,0,0,.08);
        flex-direction: column; align-items: center; gap: 2px;
        padding: 14px 24px 22px;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    }
    body.nav-open .mainnav { opacity: 1; visibility: visible; transform: none; }

    .mainnav__list { display: contents; }
    .mainnav__list li, .mainnav__list li + li { border: 0; }
    .mainnav__link { display: block; padding: 12px 0; color: #33373d; font-size: 18px; line-height: 20px; text-align: center; }
    .mainnav__link:hover, .mainnav__link.is-active { color: var(--orange); }
    .header__cta {
        margin: 0; padding: 12px 0; background: none; box-shadow: none;
        color: var(--orange); font-weight: 700; font-size: 18px; line-height: 20px; text-align: center;
    }
    .header__cta:hover { background: none; box-shadow: none; color: var(--orange-dark); }
}
.topbar__items a { white-space: nowrap; }
@media (max-width: 600px) {
    .topbar { font-size: 10px; }
    .topbar .container { padding: 0 12px; }
    .topbar__items > li + li { margin-left: 8px; padding-left: 8px; }
    .topbar__social { gap: 8px; }
    .tb-ico--email, .tb-ico--phone { width: 13px; height: 13px; }
    .tb-ico--yt, .tb-ico--in { width: 15px; height: 15px; }
    .tb-ico--globe { width: 13px; height: 13px; }
}

@media (max-width: 720px) {
    .footer__logo { height: 78px; }
    .footer__tagline { font-size: 12px; padding-right: 0; }
    .footer__contact li { font-size: 12px; }
    .footer__col a, .footer__contact a { font-size: 14px; }
    .footer__copy, .footer__legal a { font-size: 11px; }
    .footer__grant-logo { width: 398px; max-width: 70%; }
    .footer__grant-divider { display: none; }
    .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; border-top: none; padding-bottom: 20px; }
    .footer__bottom-inner::before { content: ""; align-self: stretch; height: 1px; background: rgba(255,255,255,.6); margin-bottom: 8px; }
    .footer__legal { justify-content: center; }
}
