



:root {
    --bg-color: #F7F5EF;
    --paper: #F7F5EF;
    --card: #FFFFFF;
    --tile: #F0ECE3;
    --text-color: #1D1B17;
    --ink: #1D1B17;
    --mute: #7B766B;
    --line: #E6E1D5;
    --border-color: #E6E1D5;
    --accent-color: #C4502D;
    --accent: #C4502D;
    --on-accent: #FFFFFF;
    --accent-soft: rgba(196, 80, 45, 0.08);
    --green: #2F6B52;
    --green-soft: #E4EFE9;
    --amber: #C58A1A;
    --amber-soft: #FBF1DC;
    --rust-soft: #F8E6DF;
    --display: "EB Garamond", Georgia, serif;
    --text: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   Navegaciones (Global del Equipo + Cátedra + Top Sticky)
   ========================================================================== */

.nav-equipo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: #EFEBE2;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
}

.nav-badge {
    background: var(--ink);
    color: var(--bg-color);
    padding: .2rem .55rem;
    font-weight: 600;
    border-radius: 99px;
}

.nav-brand-text {
    color: var(--mute);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--mute);
    text-decoration: none;
    transition: color .3s;
}

.nav-link:hover, .nav-link.activo {
    color: var(--text-color);
}

.nav-link.activo {
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: .1rem;
}

.nav-semestre {
    color: var(--mute);
    text-align: right;
    font-size: .7rem;
    line-height: 1.2;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
}

/* Navegación secundaria */
.nav.nav--secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: .8rem 4rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav.nav--secondary .nav__label {
    color: var(--mute);
    font-weight: 600;
}

.nav.nav--secondary a {
    color: var(--text-color);
    text-decoration: none;
    transition: color .3s ease;
}

.nav.nav--secondary a:hover {
    color: var(--accent-color);
}

/* Barra superior sticky */
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 245, 239, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 56px;
}

.top .brand {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.15rem;
    text-decoration: none;
}

.top nav {
    display: flex;
    gap: clamp(12px, 2.4vw, 28px);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top nav a {
    text-decoration: none;
    color: var(--mute);
}

.top nav a:hover {
    color: var(--text-color);
}

/* ==========================================================================
   Hero & Ticker
   ========================================================================== */

.hero {
    padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
}

.hero .meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--accent-color);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: .95;
    letter-spacing: -1px;
    margin: .25em 0 .35em;
}

.hero h1 span {
    color: var(--accent);
}

.hero .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px clamp(24px, 5vw, 80px);
    align-items: end;
}

.hero .intro p {
    margin: 0;
    max-width: 36ch;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.45;
    color: var(--mute);
}

.hero .intro .where {
    color: var(--mute);
    font-size: .88rem;
    justify-self: end;
    text-align: right;
}

.ticker {
    background: var(--ink);
    color: var(--bg-color);
    overflow: hidden;
    white-space: nowrap;
}

.ticker .track {
    display: inline-flex;
    animation: run 38s linear infinite;
    will-change: transform;
}

.ticker span {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    padding: .5em 1.1em;
    letter-spacing: .3px;
}

.ticker span.lead-in {
    font-style: italic;
    color: #f1b9a6;
}

.ticker span:not(.lead-in) {
    opacity: .85;
}

@keyframes run {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker .track {
        animation: none;
    }
}

/* ==========================================================================
   Sección del Prototipo & Contenedor de Figma
   ========================================================================== */

.sec {
    padding: clamp(32px, 5vw, 64px) 0;
    border-bottom: 1px solid var(--line);
}

.sec .label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mute);
    font-weight: 600;
    margin-bottom: 16px;
}

.sec .label .num {
    color: var(--accent);
}

.sec h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 500;
}

.sec .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--mute);
    margin: 0 0 24px;
    max-width: 65ch;
    line-height: 1.5;
}

.sec .body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(20px, 4vw, 40px);
}

.figure {
    margin: 1.5em 0 0;
}

.figscroll {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.figscroll iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 700px;
}

.figcap {
    margin: .8em 0 0;
    color: var(--mute);
    font-size: .88rem;
    max-width: 68ch;
    line-height: 1.45;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    color: var(--mute);
    font-size: .85rem;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   Responsive & Impresión
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-equipo {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.5rem 2rem;
    }
    .nav-right {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }
    .nav-semestre {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: .5rem;
        width: 100%;
        text-align: left;
    }
    .nav.nav--secondary {
        padding: 1rem 2rem;
    }
}

@media (max-width: 700px) {
    .hero .intro {
        grid-template-columns: 1fr;
    }
    .hero .intro .where {
        justify-self: start;
        text-align: left;
    }
    .figscroll iframe {
        min-height: 500px;
    }
    footer .wrap {
        flex-direction: column;
        gap: 8px;
    }
}

@media print {
    .nav-equipo, .nav.nav--secondary, .top, .ticker {
        display: none;
    }
}