/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Druk Wide';
    src: url('WEB/TIPOGRAFÍAS/PARA TITULO _STEEL FRAME_/DRUKWIDEBOLD.TTF') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Syncopate';
    src: url('WEB/TIPOGRAFÍAS/PARA TÍTULO NARANJA/SYNCOPATE-BOLD.TTF') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('WEB/TIPOGRAFÍAS/Para textos/SWEETSANSPROREGULAR.OTF') format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('WEB/TIPOGRAFÍAS/Para textos/SWEETSANSPROBOLD.OTF') format('opentype');
    font-weight: 700;
}
@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('WEB/TIPOGRAFÍAS/Para textos/SWEET SANS PRO HEAVY.OTF') format('opentype');
    font-weight: 900;
}
@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('WEB/TIPOGRAFÍAS/Para textos/SWEETSANSPROITALIC.OTF') format('opentype');
    font-style: italic;
}


/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary:       #E25638;
    --dark:          #1a1a1a;
    --light:         #ffffff;
    --nav-solid:     #4E3A4C;
    --ease:          cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Sweet Sans Pro', sans-serif;
    background: #111;
    color: var(--dark);
    overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
}
#navbar.scrolled {
    background: var(--nav-solid);
    padding: 0.8rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    transition: transform 0.3s var(--ease);
}
.logo:hover img { transform: scale(1.06); }

.nav-links {
    display: flex;
    gap: 3rem;
}
.nav-links li a {
    color: var(--light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}
.nav-links li a:hover { color: var(--primary); }
.nav-links li a:hover::after { width: 100%; }

/* Hamburger */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}
.menu-icon span {
    display: block;
    width: 30px; height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s;
}
.menu-icon.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-icon.active span:nth-child(2) { opacity: 0; }
.menu-icon.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* ============================================
   HERO – SCROLL SCRUB
   ============================================ */

/* Wrapper: the tall container that gives the scroll room to scrub */
.hero-scroll-wrapper {
    /* JS will set a CSS var --hero-height; fallback 100vh */
    height: var(--scroll-section-height, 5000px);
    position: relative;
}

/* The actual hero sticks to the viewport while the wrapper scrolls */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas fills the hero */
.hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* vignette radial: oscurece los bordes */
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%),
        /* capa base uniforme suave */
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.50) 0%,
            rgba(0,0,0,0.28) 45%,
            rgba(0,0,0,0.55) 100%
        );
    pointer-events: none;
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light);
    text-align: center;
    padding: 0 2rem;
    /* Base state: will be animated via JS classes / CSS transitions */
    will-change: transform, opacity;
}

/* --- Text elements – individual transitions --- */
.hero-subtitle {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 2rem);
    letter-spacing: 4px;  /* JS will override this dynamically */
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    white-space: nowrap;   /* prevent wrapping while JS measures */
    transition: none;
}

.hero-title {
    font-family: 'Druk Wide', sans-serif;
    font-size: clamp(1.75rem, 4.9vw, 4.9rem);  /* 30% smaller than original 7vw */
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    white-space: nowrap;
    transition: none;
}

.hero-text {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 2px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---- Hero text entrance animation ---- */
/* All text starts hidden; JS adds .hero-animated to trigger the keyframes */

.hero-subtitle,
.hero-title,
.hero-text {
    opacity: 0;
    /* Reset transition – animation is keyframe-driven */
    transition: none;
}

.hero-content.hero-animated .hero-subtitle {
    animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-content.hero-animated .hero-title {
    animation: textSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero-content.hero-animated .hero-text {
    animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Once animated, keep the text fully visible at all times */
.hero-content.hero-animated .hero-subtitle,
.hero-content.hero-animated .hero-title,
.hero-content.hero-animated .hero-text {
    /* Fill-mode forwards keeps opacity:1 after animation ends */
    animation-fill-mode: forwards;
}

/* --- Scroll indicator (bouncing arrow) --- */
.scroll-indicator {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
}
.scroll-arrow {
    width: 22px; height: 22px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 1.6s infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(6px); }
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }


/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    padding: 8rem 2rem;
    min-height: 720px;
    display: flex;
    align-items: center;
    background: #f0ede8;
}
.about-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.88;
}
.about-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}
.about-left { flex: 1; max-width: 780px; }

.about-title {
    font-family: 'Syncopate', sans-serif;
    color: var(--primary);
    font-size: clamp(1.1rem, 2.2vw, 2.1rem);
    line-height: 1.45;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}
.about-text {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.7;
    color: #111;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: right;
}
.stat {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 1rem;
}
.stat-number {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 700;
    color: #222;
    line-height: 1;
}
.stat-text {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.8rem);
    font-weight: 700;
    color: #222;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.stat-subtext { font-size: 0.7em; }


/* ============================================
   SCROLL ANIMATION – fade-in on enter viewport
   ============================================ */
.anim-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-right {
        flex-direction: row;
        text-align: left;
        width: 100%;
        justify-content: space-around;
    }
    .stat { justify-content: flex-start; flex-direction: column; }
    .stat-text { text-align: center; }
}

@media (max-width: 768px) {
    .menu-icon { display: flex; }

    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-solid);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        box-shadow: -8px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { transform: translateX(0); }

    .about-right {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    .stat { flex-direction: row; }
    .stat-text { font-size: 1.3rem; text-align: left; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
}
