@font-face {
    font-family: 'Chronicle Display';
    src: url('../fonts/Chronicle%20Display%20Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'NeuzeitOfficePro';
    src: url('../fonts/NeuzeitOfficePro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'NeuzeitOfficePro';
    src: url('../fonts/NeuzeitOfficePro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Standard Theme (Minimalist Black & White) */
    --primary-color: #FBFAFA;
    --secondary-color: #121212;
    --accent-color: #121212;
    --accent-hover: #333333;
    --text-muted: #555555;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(251, 250, 250, 0.95);
    --body-bg: #FBFAFA;
    --text-color: #121212;

    /* Brand Colors (Official from PDF) */
    --color-vazza: #D32F2F;
    --color-trender: #FF6B6B;
    --color-marcha: #121212;
    --color-flexi: #757575;

    /* Typography */
    --font-heading: 'Chronicle Display', serif;
    --font-subheading: 'NeuzeitOfficePro', sans-serif;
    --font-body: 'NeuzeitOfficePro', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
    /* Space for fixed header */
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h3,
h4,
.brand-font {
    font-family: var(--font-subheading);
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: var(--header-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Hero Pages (Transparent Header) */
.transparent-header header:not(.scrolled) {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

header.scrolled {
    padding: 1rem 0;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: none;
    mix-blend-mode: multiply;
    transition: var(--transition-smooth);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0);
    mix-blend-mode: multiply;
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Force contrast on transparent header over dark hero */
.transparent-header header:not(.scrolled) .nav-links a,
.transparent-header header:not(.scrolled) .mobile-menu-btn {
    color: #ffffff !important;
}

.transparent-header header:not(.scrolled) .header-logo {
    filter: invert(1) brightness(10) !important;
    mix-blend-mode: screen !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Align to the bottom */
    justify-content: flex-end;
    /* Align to the right */
    text-align: right;
    padding: 0 5% 10vh 0;
    /* Padding: Top Right Bottom Left */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../img/lobby.png');
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.hero-content {
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Light mode transparent header contrast (Legacy cleanup, ensured uniform behavior) */
.transparent-header header:not(.scrolled) .nav-links a,
.transparent-header header:not(.scrolled) .mobile-menu-btn {
    color: #ffffff !important;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    animation: fadeInUp 1.2s ease;
}

.hero-content .btn {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-content .btn:hover {
    background: #ffffff;
    color: #000000;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

.btn:hover {
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn:hover::before {
    width: 100%;
}

/* Animations & Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover::after {
    height: 100%;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}

footer {
    padding: 80px 0 40px;
    background: rgba(0, 0, 0, 0.04);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 40px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.copy {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--body-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 85vh;
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        padding: 0 1.5rem 2rem 1.5rem;
        /* Reduced bottom padding to push content lower */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0) 70%), url('../img/lobbymovil.png') no-repeat;
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .hero-content .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjust grids that might be 1:1 */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Brand Individual Pages */
.brand-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-width: min(420px, calc(100vw - 3rem));
    box-sizing: border-box;
}

.brand-logo-box img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
}

@media (max-width: 480px) {
    .brand-logo-box {
        padding: 1.5rem 1.5rem;
    }

    .brand-logo-box img {
        max-height: 110px;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding: 0 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 700;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left !important;
        margin-bottom: 3rem;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
}