/* ==========================================================================
   Total Transfer Tecnology — sistema de diseño (PHP puro)
   Identidad: navy + verde de marca · Fraunces (display) + Inter (texto)
   ========================================================================== */

:root {
    /* Marca */
    --navy-900: #0b1b2b;
    --navy-800: #10263a;
    --navy-700: #1e3a52;
    --navy-600: #2c5273;

    --brand-700: #37811f;
    --brand-600: #479626;
    --brand-500: #5cb531;
    --brand-400: #78c754;
    --brand-050: #f2faee;

    --gold-500: #c9a24b;

    --ink-900: #0c1116;
    --slate-600: #475569;
    --slate-500: #5b6b7a;
    --paper-50: #f6f8fa;
    --paper-0:  #ffffff;
    --line-200: #e2e8ef;
    --invert:   #e8edf2;

    /* Tipografía */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Escala de espacio (base 8) */
    --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
    --sp-5: 1.5rem; --sp-6: 2rem; --sp-8: 3rem; --sp-10: 4rem;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 40px -15px rgba(11, 27, 43, .25);
    --shadow-lift: 0 18px 50px -20px rgba(11, 27, 43, .35);
    --container: 1200px;
    --nav-h: 64px;
}

/* ── Reset ligero ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--paper-0);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy-900); overflow-wrap: break-word; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--navy-900); color: var(--invert);
    padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Utilidades ────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }

.balance { text-wrap: pretty; }
.center { text-align: center; display: flex; justify-content: center; }
.mt-sm { margin-top: var(--sp-3); } .mt-md { margin-top: var(--sp-5); }
.mt-lg { margin-top: var(--sp-6); } .mt-xl { margin-top: var(--sp-8); }
.mb-sm { margin-bottom: var(--sp-3); } .mb-md { margin-bottom: var(--sp-5); }
.mb-lg { margin-bottom: var(--sp-6); } .mb-xl { margin-bottom: var(--sp-8); }
.anchor { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

.icon { width: 20px; height: 20px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 40px; height: 40px; }

.pic-img { height: 100%; width: 100%; object-fit: cover; }
.pic-fallback { display: block; height: 100%; width: 100%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }

.kicker {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
    font-weight: 600; color: var(--brand-600); margin-bottom: var(--sp-3);
}
.kicker--light { color: var(--brand-400); }

.ph { color: var(--slate-500); font-style: italic; }

/* ── Botones ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    border-radius: var(--radius-pill); padding: .8rem 1.5rem;
    font-size: .9rem; font-weight: 600; border: 1px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--brand-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--secondary { border-color: var(--brand-500); color: var(--brand-400); }
.btn--secondary:hover { background: rgba(92, 181, 49, .12); }
.btn--ghost { border-color: var(--line-200); color: var(--navy-900); background: var(--paper-0); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }

/* ── Navbar ────────────────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: rgba(11, 27, 43, .82);
    backdrop-filter: saturate(140%) blur(10px);
    color: var(--invert);
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-scrolled { background: rgba(11, 27, 43, .95); border-bottom-color: var(--navy-700); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
main { padding-top: var(--nav-h); }

.brand__pill { display: inline-flex; align-items: center; background: var(--paper-0);
    border-radius: var(--radius-sm); padding: 6px 12px; box-shadow: var(--shadow-soft); }
.brand__img { height: 30px; width: auto; }
@media (min-width: 768px) { .brand__img { height: 34px; } }

.nav__links { display: none; align-items: center; gap: 1.5rem; font-size: .9rem; }
.nav__links a { color: var(--invert); transition: color .2s ease; }
.nav__links > a:hover { color: var(--brand-400); }
.nav__lang { font-weight: 600; letter-spacing: .05em; opacity: .85; }
.nav__lang:hover { opacity: 1; color: var(--brand-400); }
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--invert); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav__toggle { display: none; } }

.nav__mobile { background: var(--navy-900); padding: .5rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { color: var(--invert); padding: .7rem 0; border-bottom: 1px solid var(--navy-700); }
.nav__mobile a:hover { color: var(--brand-400); }
.nav__mobile-foot { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border: 0; }
.nav__mobile-foot a:first-child { border: 0; padding: 0; }

/* ── Secciones ─────────────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper-0); }
.section--alt { background: var(--paper-50); }
.section--dark { background: var(--navy-900); color: var(--invert); }
.section--dark .kicker { color: var(--brand-400); }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: var(--sp-4); }
.section--dark .section__title { color: var(--invert); }
.section__intro { color: var(--slate-500); max-width: 78ch; margin-bottom: var(--sp-6); }
.section--dark .section__intro { color: rgba(232, 237, 242, .8); }

.prose { max-width: 80ch; }
.prose--lead { font-size: 1.12rem; color: var(--ink-900); }
.prose--muted { color: var(--slate-600); }
.prose-stack { display: grid; gap: var(--sp-5); max-width: 80ch; }
.section--dark .prose { color: rgba(232, 237, 242, .85); }

/* ── Rejillas ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Héroe ─────────────────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; min-height: 68vh; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; height: 100%; width: 100%; }
.hero__overlay { position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(11, 27, 43, .94) 0%, rgba(11, 27, 43, .6) 55%, rgba(30, 58, 82, .28) 100%); }
.hero__inner { position: relative; min-width: 0; padding-block: clamp(4rem, 9vw, 7rem); }
.hero__title { color: var(--invert); font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 16ch; }
.hero__subtitle { color: rgba(232, 237, 242, .88); font-size: 1.1rem; max-width: 52ch; margin-top: var(--sp-5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--sp-6); }

/* ── Barra de pilares ──────────────────────────────────────────────── */
.pillars { background: var(--navy-800); color: var(--invert); }
.pillars__grid { display: grid; gap: 2rem; padding-block: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pillars__grid { grid-template-columns: repeat(4, 1fr); } }
.pillar { display: flex; flex-direction: column; gap: .35rem; padding-left: 1rem; border-left: 2px solid rgba(92, 181, 49, .6); }
.pillar__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand-400); }
.pillar__text { font-size: .88rem; color: rgba(232, 237, 242, .72); }

/* ── Paneles (tarjetas de texto) ───────────────────────────────────── */
.panel { background: var(--paper-0); border: 1px solid var(--line-200); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-soft); transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.panel:hover { border-color: var(--brand-500); background: var(--brand-050); transform: translateY(-3px); }
.panel__icon { color: var(--brand-600); margin-bottom: var(--sp-4); }
.panel__title { color: var(--navy-900); font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }
.panel__title--lg { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--sp-4); }
.panel__text { margin-top: var(--sp-2); font-size: .92rem; color: var(--slate-500); }

/* ── Tarjeta de división ───────────────────────────────────────────── */
.divcard { position: relative; display: block; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; }
.divcard__bg { position: absolute; inset: 0; height: 100%; width: 100%; transition: transform .4s ease; }
.divcard:hover .divcard__bg { transform: scale(1.06); }
.divcard__overlay { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 27, 43, .15) 0%, rgba(11, 27, 43, .9) 100%); }
.divcard::after { content: ""; position: absolute; inset: 0; background: rgba(11, 27, 43, .35); transition: background-color .3s ease; }
.divcard:hover::after { background: rgba(11, 27, 43, .1); }
.divcard__accent { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--brand-500); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; z-index: 2; }
.divcard:hover .divcard__accent { transform: scaleX(1); }
.divcard__body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; z-index: 2; }
.divcard__title { color: var(--invert); font-size: 1.35rem; transition: color .2s ease; }
.divcard:hover .divcard__title { color: var(--brand-400); }
.divcard__excerpt { color: rgba(232, 237, 242, .82); font-size: .85rem; margin-top: .3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Tiles de ventaja ──────────────────────────────────────────────── */
.tile { background: var(--paper-0); border: 1px solid var(--line-200); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-soft); transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.tile:hover { border-color: var(--brand-500); background: var(--brand-050); transform: translateY(-3px); }
.tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: var(--radius-pill); background: rgba(92, 181, 49, .12); color: var(--brand-600); margin-bottom: var(--sp-4); }
.tile__title { color: var(--navy-900); font-size: 1.08rem; font-weight: 600; font-family: var(--font-sans); }
.tile__text { margin-top: var(--sp-2); font-size: .9rem; color: var(--slate-500); }

/* ── Listas con marca (listcard / ticklist) ────────────────────────── */
.listcard { display: flex; gap: .75rem; align-items: flex-start; background: var(--paper-0);
    border: 1px solid var(--line-200); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.listcard__icon { color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.listcard span { font-size: .92rem; }

.ticklist { display: grid; gap: .6rem; }
.ticklist li { position: relative; padding-left: 1.35rem; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
    background: var(--brand-500); border-radius: 2px; }
@media (min-width: 768px) { .ticklist--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }

/* ── Tabla de datos ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-200); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.fact-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
.fact-table thead th { background: var(--paper-50); padding: 1rem 1.15rem; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); font-weight: 600; }
.fact-table td { padding: 1rem 1.15rem; border-top: 1px solid var(--line-200); vertical-align: top; }
.fact-table tbody, .fact-table tr { transition: background-color .2s ease; }
.fact-table tbody tr:hover { background: var(--brand-050); }
.fact-table__key { font-weight: 600; color: var(--navy-900); }
@media (min-width: 768px) { .fact-table__key { white-space: normal; } }

/* ── Catálogo ──────────────────────────────────────────────────────── */
.catalog { margin-bottom: 3.5rem; }
.catalog__title { color: var(--navy-900); font-size: 1.35rem; }
.catalog__text { color: var(--slate-500); margin: .6rem 0 1.5rem; max-width: 82ch; }
.catalog__groups { display: grid; gap: 2rem; }
@media (min-width: 768px) { .catalog__groups--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.catalog__heading { font-weight: 600; color: var(--navy-800); margin-bottom: .75rem; }

/* ── Nota destacada ────────────────────────────────────────────────── */
.note { margin-top: var(--sp-6); background: var(--navy-900); color: var(--invert);
    border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-soft); border-left: 4px solid var(--brand-500); }
.note__title { color: var(--brand-400); font-weight: 600; margin-bottom: .4rem; font-size: 1.05rem; }
.note__text { color: rgba(232, 237, 242, .86); }
.note--band { display: flex; gap: 1rem; align-items: flex-start; margin-top: 0; }
.note__band-icon { color: var(--brand-400); flex-shrink: 0; }

.lema { display: inline-block; margin-top: var(--sp-5); background: var(--navy-900); color: var(--brand-400);
    border-radius: var(--radius-pill); padding: .5rem 1.25rem; font-size: .9rem; font-weight: 500; }

/* ── Chips ─────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line-200);
    border-radius: var(--radius-pill); padding: .45rem 1rem; font-size: .88rem; color: var(--navy-800);
    transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }
.chip__icon { color: var(--brand-500); }

/* ── Pasos del proceso ─────────────────────────────────────────────── */
.step { position: relative; background: var(--paper-0); border: 1px solid var(--line-200);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); height: 100%;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.step:hover { border-color: var(--brand-500); background: var(--brand-050); transform: translateY(-3px); }
.step__head { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--sp-4); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: var(--radius-pill); background: var(--navy-900); color: var(--brand-400);
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; flex-shrink: 0; }
.step__title { font-size: 1.08rem; font-weight: 600; font-family: var(--font-sans); color: var(--navy-900); }
.step__do { font-size: .92rem; }
.step__receive { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-200); }
.step__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); margin-bottom: .25rem; }
.step__receive p:last-child { font-size: .9rem; color: var(--slate-500); }

/* ── Presencia: mapa compacto (abstracto) + leyenda de mercados ─────── */
.presence { display: grid; gap: 1.25rem; align-items: center; background: var(--navy-900);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 720px) { .presence { grid-template-columns: 220px 1fr; gap: 2rem; padding: 1.75rem 2rem; } }

.presence__map { display: flex; justify-content: center; }
.presence__svg { width: 100%; max-width: 200px; height: auto; }
.pm__lines line { stroke: rgba(92, 181, 49, .55); stroke-width: .5; stroke-dasharray: 2 2; }
.pm__flow { animation: pm-flow var(--d, 3s) linear infinite; }
@keyframes pm-flow { to { stroke-dashoffset: -8; } }
.pm__dot { fill: var(--brand-400); }
.pm__core { fill: var(--brand-500); }
.pm__pulse { fill: none; stroke: var(--brand-500); stroke-width: .5; transform-origin: 50px 50px; animation: pm-pulse 2.8s ease-out infinite; }
@keyframes pm-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(3); opacity: 0; } }

.presence__legend { display: grid; gap: .35rem; }
.presence__item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .6rem;
    padding: .55rem .25rem; border-bottom: 1px solid rgba(232, 237, 242, .1); }
.presence__item:last-child { border-bottom: 0; }
.presence__dot { grid-row: span 2; align-self: center; width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand-400); box-shadow: 0 0 0 3px rgba(92, 181, 49, .18); }
.presence__item.is-hub .presence__dot { background: var(--brand-500); box-shadow: 0 0 0 4px rgba(92, 181, 49, .28); }
.presence__name { color: var(--invert); font-weight: 600; font-size: .95rem; }
.presence__item.is-hub .presence__name { color: var(--brand-400); }
.presence__role { grid-column: 2; color: rgba(232, 237, 242, .68); font-size: .82rem; }

/* ── Banda de cumplimiento (home) ──────────────────────────────────── */
.compliance-band { background: var(--navy-900); color: var(--invert); }
.compliance-band__inner { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .compliance-band__inner { flex-direction: row; align-items: flex-start; gap: 1.5rem; } }
.compliance-band__icon { color: var(--brand-400); flex-shrink: 0; }
.compliance-band__title { color: var(--invert); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.compliance-band__text { color: rgba(232, 237, 242, .82); max-width: 82ch; margin-top: .75rem; }

/* ── Banner ────────────────────────────────────────────────────────── */
.banner { position: relative; overflow: hidden; }
.banner__bg { position: absolute; inset: 0; height: 100%; width: 100%; }
.banner__overlay { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 27, 43, .38) 0%, rgba(11, 27, 43, .78) 55%, rgba(11, 27, 43, .95) 100%); }
.banner__inner { position: relative; text-align: center; padding-block: clamp(4rem, 8vw, 7rem); }
.banner__title { color: var(--invert); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 24ch; margin-inline: auto; }
.banner__text { color: rgba(232, 237, 242, .86); max-width: 60ch; margin: 1rem auto 0; }
.banner__cta { margin-top: var(--sp-6); display: flex; justify-content: center; }

/* ── Cabeceras de página (sin héroe) ───────────────────────────────── */
.pagehead__title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: var(--sp-4); }
.pagehead__intro { color: var(--slate-500); max-width: 80ch; }
.subhead { font-size: 1.25rem; color: var(--navy-900); margin-bottom: var(--sp-5); }
.othernav__title { font-size: 1.35rem; color: var(--navy-900); margin-bottom: var(--sp-5); }

.callout { border-left: 4px solid var(--brand-500); background: var(--paper-50);
    border-radius: var(--radius); padding: 1.5rem 1.75rem; }

/* ── Migas de pan ──────────────────────────────────────────────────── */
.breadcrumb { background: var(--paper-0); border-bottom: 1px solid var(--line-200); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-block: 1rem; font-size: .85rem; color: var(--slate-500); }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb span[aria-current] { color: var(--navy-800); }
.breadcrumb__sep { color: var(--line-200); }

/* ── CTA final ─────────────────────────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final__title { color: var(--invert); font-size: clamp(1.5rem, 3vw, 2.3rem); }
.cta-final__text { color: rgba(232, 237, 242, .82); max-width: 60ch; margin: .75rem auto 0; }
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: var(--sp-6); }

/* ── Contacto / formulario ─────────────────────────────────────────── */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.form { display: grid; gap: 1.25rem; }
.form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--navy-900); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink-900); background: var(--paper-0);
    border: 1px solid var(--line-200); border-radius: var(--radius-sm); padding: .7rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(92, 181, 49, .18);
}
.field .is-invalid, .field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #dc7070; }
.field__err { color: #b42318; font-size: .78rem; }
.form__note { font-size: .8rem; color: var(--slate-500); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .9rem; margin-bottom: 1.25rem; }
.alert--ok { border: 1px solid var(--brand-500); background: rgba(92, 181, 49, .1); color: var(--navy-900); }
.alert--err { border: 1px solid #f0c4c4; background: #fdf2f2; color: #b42318; }

/* ── Página 404 ────────────────────────────────────────────────────── */
.error404 { position: relative; background: var(--navy-900); color: var(--invert); overflow: hidden; }
.error404__overlay { position: absolute; inset: 0; opacity: .6;
    background: linear-gradient(115deg, rgba(11, 27, 43, .94), rgba(30, 58, 82, .3)); }
.error404__inner { position: relative; text-align: center; padding-block: clamp(6rem, 14vw, 9rem); }
.error404__code { font-family: var(--font-display); color: var(--brand-400); font-size: clamp(3rem, 10vw, 6rem); }
.error404__title { color: var(--invert); font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-top: .5rem; }
.error404__text { color: rgba(232, 237, 242, .8); max-width: 42ch; margin: 1rem auto 0; }
.error404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: var(--sp-6); }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer { background: var(--navy-900); color: var(--invert); }
.footer__grid { display: grid; gap: 2.5rem; padding-block: var(--sp-10); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr 1fr; } }
.footer__tagline { margin-top: 1rem; font-size: .88rem; color: rgba(232, 237, 242, .7); max-width: 30ch; }
.footer__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-400); margin-bottom: 1rem; font-weight: 600; }
.footer__title--mt { margin-top: 1.5rem; }
.footer__list { display: grid; gap: .55rem; font-size: .9rem; color: rgba(232, 237, 242, .8); }
.footer__list a:hover { color: var(--brand-400); }
.footer__eu { font-size: .9rem; color: rgba(232, 237, 242, .8); }
.footer__links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; font-size: .9rem; }
.footer__links a:hover { color: var(--brand-400); }
.footer__bar { border-top: 1px solid var(--navy-700); }
.footer__bar-inner { display: flex; flex-direction: column; gap: .5rem; padding-block: 1.5rem; font-size: .78rem; color: rgba(232, 237, 242, .6); }
@media (min-width: 640px) { .footer__bar-inner { flex-direction: row; justify-content: space-between; } }

/* ── Movimiento reducido ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
