/* =============================================================
   ALLAN FUENTES TOVAR — Personal Site
   Editorial · Dark · Refined
   ============================================================= */

/* -------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
    /* Colors — Dark editorial palette */
    --bg-base:        #0B0D10;
    --bg-elevated:    #11151A;
    --bg-surface:     #161B22;
    --bg-light:       #F2EDE4;
    --bg-light-alt:   #E8E1D4;

    --text-primary:   #F5F2EC;
    --text-secondary: #B5B0A6;
    --text-muted:     #6B6E76;
    --text-dark:      #1A1816;
    --text-dark-soft: #4A4640;

    --accent:         #C9A961;   /* Antique gold */
    --accent-bright:  #E0C078;
    --accent-deep:    #8C7440;

    --line:           #1E232B;
    --line-light:     #C7BFAE;

    /* Type */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body:    'Manrope', 'Helvetica Neue', sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  8rem;
    --space-2xl: 12rem;

    /* Container */
    --container: 1280px;
    --container-narrow: 960px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* -------------------------------------------------------------
   3. BASE TYPOGRAPHY & BODY
   ------------------------------------------------------------- */
body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--bg-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms var(--ease-out);
}

img, svg, video {
    max-width: 100%;
    display: block;
}

ul, ol { list-style: none; }

/* -------------------------------------------------------------
   4. UTILITIES
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent);
    color: var(--bg-base);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
    font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   5. HEADINGS
   ------------------------------------------------------------- */
.h2 {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    font-variation-settings: "opsz" 96, "SOFT" 30;
}
.h2--light { color: var(--text-dark); }
.h2__italic {
    font-style: italic;
    color: var(--accent);
    font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}

.h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    letter-spacing: -0.015em;
}
.h3--light { color: var(--text-dark); }

/* -------------------------------------------------------------
   6. SECTION HEAD (numbered marker)
   ------------------------------------------------------------- */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.section-head__num {
    color: var(--accent);
    font-weight: 500;
}
.section-head--light {
    border-bottom-color: var(--line-light);
    color: var(--text-dark-soft);
}

/* -------------------------------------------------------------
   7. NAVIGATION
   ------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out), border-color 300ms var(--ease-out);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line);
}
.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    font-weight: 500;
}
.nav__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50%;
}
.nav__brand-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 200ms var(--ease-out);
    position: relative;
}
.nav__link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 250ms var(--ease-out);
}
.nav__link:hover {
    color: var(--text-primary);
}
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
    border: 1px solid var(--line);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--text-primary);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
}

.nav__toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav__toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--text-primary);
    transition: transform 250ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.nav__mobile {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out), visibility 250ms;
}
.nav__mobile.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.nav__mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 350;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}
.nav__mobile-link:hover { color: var(--accent); }

@media (max-width: 880px) {
    .nav__menu { display: none; }
    .nav__toggle { display: flex; }
}

/* -------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem var(--gutter) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 80% 10%, rgba(201, 169, 97, 0.08), transparent 60%),
        radial-gradient(50% 40% at 10% 90%, rgba(201, 169, 97, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__grid {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: end;
    flex-grow: 1;
    padding-bottom: 6rem;
}

@media (min-width: 960px) {
    .hero__grid {
        grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr) minmax(220px, 1.3fr);
        gap: 3rem;
    }
}

.hero__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.hero__eyebrow {
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: left top;
    white-space: nowrap;
}
@media (max-width: 959px) {
    .hero__eyebrow {
        transform: none;
    }
}

.hero__role {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1.75rem;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title-line {
    display: block;
}
.hero__title-line--italic {
    font-style: italic;
    color: var(--accent);
    font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
    padding-left: clamp(2rem, 8vw, 6rem);
}
.hero__title-line--last {
    text-align: right;
    padding-right: 0;
}
@media (min-width: 960px) {
    .hero__title-line--last {
        padding-right: 8%;
    }
}

.hero__lede {
    max-width: 38rem;
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.hero__lede em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-primary);
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--line);
    padding-left: 1.75rem;
}
@media (max-width: 959px) {
    .hero__side {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem 3rem;
    }
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.hero__stat-num {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 350;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    font-variation-settings: "opsz" 96;
}
.hero__stat-plus {
    color: var(--accent);
    font-style: italic;
    font-weight: 300;
}
.hero__stat-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.hero__bottom {
    position: relative;
    z-index: 2;
    margin: 0 calc(-1 * var(--gutter));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
    background: rgba(11, 13, 16, 0.4);
}
.hero__marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.hero__marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* -------------------------------------------------------------
   9. BUTTONS
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 100px;
    transition: all 250ms var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
}
.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 300ms var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    box-shadow: 0 8px 24px -8px rgba(201, 169, 97, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--line);
}
.btn--ghost:hover {
    border-color: var(--text-primary);
}

/* -------------------------------------------------------------
   10. ABOUT
   ------------------------------------------------------------- */
.about {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 880px) {
    .about__grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 5rem;
    }
}

.about__lede {
    align-self: flex-start;
    position: sticky;
    top: 6rem;
}

.about__body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.about__body p strong {
    color: var(--text-primary);
    font-weight: 600;
}
.about__body p em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-bright);
    font-weight: 400;
}
.about__body a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.about__body a:hover { color: var(--accent-bright); }

.about__list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.about__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.about__list-bullet {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.625rem;
}

/* -------------------------------------------------------------
   11. EXPERTISE
   ------------------------------------------------------------- */
.expertise {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
}

.expertise__title {
    margin-bottom: var(--space-lg);
    max-width: 22ch;
}

.expertise__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
@media (min-width: 720px) {
    .expertise__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
    .expertise__grid { grid-template-columns: repeat(3, 1fr); }
}

.exp-card {
    background: var(--bg-base);
    padding: 2.5rem 2rem;
    transition: background 350ms var(--ease-out);
    position: relative;
}
.exp-card:hover {
    background: var(--bg-elevated);
}
.exp-card__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 1.5rem;
}
.exp-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 72, "SOFT" 30;
}
.exp-card__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.exp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.exp-card__tags li {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--line);
    border-radius: 100px;
}

/* -------------------------------------------------------------
   12. CREDENTIALS — Light section
   ------------------------------------------------------------- */
.credentials {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}

.credentials__intro {
    max-width: var(--container-narrow);
    margin: 0 0 var(--space-lg);
}

.credentials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}
@media (min-width: 720px) {
    .credentials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
    .credentials__grid { grid-template-columns: 2fr 2fr 1.4fr; }
}

.cred-card {
    background: var(--bg-light-alt);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}
.cred-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(0,0,0,0.15);
}
.cred-card--featured {
    background: var(--text-dark);
    color: var(--text-primary);
    border-color: var(--text-dark);
}
.cred-card--featured .cred-card__institution span {
    color: var(--text-secondary);
}

.cred-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dark-soft);
}
.cred-card--featured .cred-card__head { color: var(--text-secondary); }

.cred-card__badge {
    color: var(--accent);
    font-weight: 500;
}
.cred-card__badge--alt { color: var(--text-dark); }
.cred-card--featured .cred-card__badge--alt { color: var(--text-primary); }

.cred-card__degree {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 72, "SOFT" 30;
}
.cred-card--featured .cred-card__degree { color: var(--text-primary); }

.cred-card__institution {
    font-size: 0.9375rem;
    line-height: 1.55;
    font-weight: 500;
}
.cred-card__institution span {
    display: block;
    font-weight: 400;
    color: var(--text-dark-soft);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.cred-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-dark-soft);
    margin-top: auto;
}
.cred-card--featured .cred-card__desc { color: var(--text-secondary); }

.credentials__certs {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2.5rem;
}
.credentials__certs .h3 {
    margin-bottom: 1.5rem;
}
.certs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cert-pill {
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-dark-soft);
    transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.cert-pill:hover {
    background: var(--text-dark);
    color: var(--text-primary);
    border-color: var(--text-dark);
}

/* -------------------------------------------------------------
   13. TIMELINE / TRAYECTORIA
   ------------------------------------------------------------- */
.trayectoria {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}
.trayectoria .h2 {
    margin-bottom: var(--space-lg);
    max-width: 24ch;
}

.timeline {
    position: relative;
    border-left: 1px solid var(--line);
    margin-left: 0.5rem;
    padding-left: 0;
}
@media (min-width: 760px) {
    .timeline { margin-left: 0; padding-left: 0; border-left: none; }
}

.timeline__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 0 2rem 2rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.timeline__item::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 2.625rem;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

@media (min-width: 760px) {
    .timeline__item {
        grid-template-columns: 220px 1fr;
        gap: 4rem;
        padding: 2.5rem 0;
        align-items: start;
    }
    .timeline__item::before {
        left: 200px;
        top: 3rem;
    }
    .timeline__item {
        position: relative;
    }
    .timeline__item::after {
        content: "";
        position: absolute;
        left: 202px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--line);
    }
}

.timeline__date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    padding-top: 0.5rem;
}

.timeline__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 0.375rem;
    font-variation-settings: "opsz" 72, "SOFT" 30;
}

.timeline__role {
    font-size: 0.875rem;
    color: var(--accent-bright);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* -------------------------------------------------------------
   14. SERVICIOS
   ------------------------------------------------------------- */
.servicios {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
}
.servicios .h2 {
    margin-bottom: var(--space-lg);
    max-width: 18ch;
}

.servicios__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
    .servicios__grid { grid-template-columns: repeat(2, 1fr); }
}

.servicio {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: padding-left 300ms var(--ease-out);
}
.servicio:hover { padding-left: 1rem; }

@media (min-width: 760px) {
    .servicio:nth-child(odd) { padding-right: 3rem; border-right: 1px solid var(--line); }
    .servicio:nth-child(even) { padding-left: 3rem; }
    .servicio:nth-child(even):hover { padding-left: 4rem; }
}

.servicio__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 72, "SOFT" 30;
}
.servicio__desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 48ch;
}

/* -------------------------------------------------------------
   15. INTERNATIONAL — Light accent section
   ------------------------------------------------------------- */
.international {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}

.international__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.international__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-deep);
    margin-bottom: 2rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line-light);
    border-radius: 100px;
}

.international .h2 {
    margin-bottom: 2rem;
}

.international__desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark-soft);
    max-width: 50ch;
    margin: 0 auto 3rem;
}
.international__desc strong {
    color: var(--text-dark);
    font-weight: 600;
}

.international__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.international__flags li {
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.04);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.06);
}

/* -------------------------------------------------------------
   16. CONTACTO — Form-driven layout
   ------------------------------------------------------------- */
.contacto {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}

.contacto__intro {
    max-width: 60ch;
    margin-bottom: 4rem;
}
.contacto__intro .h2 {
    margin-bottom: 1.5rem;
}

.contacto__sub {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 50ch;
}

.contacto__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 960px) {
    .contacto__grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 5rem;
    }
}

/* ----------------------------------------
   FORM
   ---------------------------------------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form__honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 600px) {
    .form__row { grid-template-columns: 1fr 1fr; }
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
}

.form__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 500;
}

.form__optional {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}

.form__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.625rem 0;
    transition: border-color 250ms var(--ease-out), color 250ms var(--ease-out);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.form__input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.form__input:hover {
    border-bottom-color: var(--text-secondary);
}

.form__input:focus {
    outline: none;
    border-bottom-color: var(--accent);
    color: var(--text-primary);
}

.form__input:focus-visible {
    outline: none;
}

/* Autofill — keep our dark aesthetic */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-base) inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

/* Validation styling */
.form__input:user-invalid {
    border-bottom-color: #C46B5C;
}

.form__textarea {
    resize: vertical;
    min-height: 7rem;
    padding-top: 0.875rem;
}

/* Custom select */
.form__select-wrap {
    position: relative;
}
.form__select {
    padding-right: 2.5rem;
    cursor: pointer;
    color: var(--text-primary);
}
.form__select:invalid,
.form__select option[value=""] {
    color: var(--text-muted);
}
.form__select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0.5rem;
}
.form__select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 250ms var(--ease-out);
}
.form__select:focus + .form__select-arrow {
    color: var(--accent);
}

/* Footer with submit + legal */
.form__footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}
@media (min-width: 720px) {
    .form__footer {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.form__legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 36ch;
}

/* Submit button states */
.form__submit {
    position: relative;
    min-width: 200px;
    justify-content: center;
}
.form__submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}
.form__submit-loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}
.form__submit.is-loading .form__submit-text { opacity: 0.5; }
.form__submit.is-loading .form__submit-loading { display: block; }
.form__submit.is-loading svg { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Status messages */
.form__status {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: padding 300ms var(--ease-out), border-color 300ms var(--ease-out);
    color: var(--text-secondary);
}
.form__status:empty {
    display: none;
}
.form__status.is-success {
    border-left-color: var(--accent);
    padding: 1rem 0 1rem 1.25rem;
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(201,169,97,0.08), transparent 60%);
}
.form__status.is-error {
    border-left-color: #C46B5C;
    padding: 1rem 0 1rem 1.25rem;
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(196,107,92,0.10), transparent 60%);
}

/* ----------------------------------------
   DIRECT CHANNELS — sidebar
   ---------------------------------------- */
.contacto__channels-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.contacto__channels {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
@media (min-width: 960px) {
    .contacto__channels {
        border-top: none;
        padding-top: 0;
        align-self: end;
    }
}

.channel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-primary);
    transition: padding 300ms var(--ease-out), color 200ms var(--ease-out);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.channel:hover {
    padding-left: 0.75rem;
    color: var(--accent);
}
.channel__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}
.channel__value {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* -------------------------------------------------------------
   16b. COOKIE CONSENT BANNER
   ------------------------------------------------------------- */
.consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(11, 13, 16, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
    padding: 1.25rem var(--gutter);
    transform: translateY(100%);
    transition: transform 350ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-visible { transform: translateY(0); }

.consent__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 720px) {
    .consent__inner {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }
}

.consent__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
    flex: 1;
}

.consent__actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.consent__btn {
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 200ms var(--ease-out);
    border: 1px solid transparent;
    flex: 1;
    white-space: nowrap;
}
@media (min-width: 720px) {
    .consent__btn { flex: 0 0 auto; }
}

.consent__btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--line);
}
.consent__btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.consent__btn--primary {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
}
.consent__btn--primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
}

/* -------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------- */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
}
@media (min-width: 760px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer__brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}
.footer__tag {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer__loc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.footer__col--right {
    text-align: left;
}
@media (min-width: 760px) {
    .footer__col--right { text-align: right; }
}
.footer__copy,
.footer__legal {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer__legal a:hover { color: var(--accent); }

/* -------------------------------------------------------------
   18. PRINT
   ------------------------------------------------------------- */
@media print {
    .nav, .noise, .hero__marquee { display: none; }
    body { background: white; color: black; }
}
