:root {
    --bg-dark: #050505;
    --card-white: rgba(255, 255, 255, 0.05);
    --text-dark: #ffffff;
    --text-muted: #999999;
    --glow-color: rgba(212, 175, 55, 0.3);
    --accent: #D4AF37; /* Gold from the flyers */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dotted-surface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.background-car {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg_taos.png') center/cover no-repeat;
    z-index: 0;
    opacity: 1; /* Full opacity */
    filter: brightness(0.85); /* More brightness */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

/* Hamburger & Toggle */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000 !important; /* Solid Black forced */
    z-index: 100;
    padding: 0; /* No space above or below */
    border-bottom: 2px solid var(--accent); /* Gold divider line */
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: auto;
    padding-right: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-width: 90px;
}

.nav-icon {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-label {
    position: absolute;
    bottom: -35px; /* Pushed down a bit more */
    white-space: nowrap;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
    pointer-events: none;
}

.nav-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
    opacity: 1;
}

.nav-item:hover .nav-label {
    opacity: 1;
    transform: translateY(0);
}

.nav-item:hover .nav-label::after {
    width: 100%;
}

.hero-tagline {
    position: fixed;
    top: 180px !important;
    left: 40px !important;
    right: auto !important; /* Force left */
    z-index: 90;
    color: rgba(255, 255, 255, 0.7); /* More transparent text */
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.15); /* More transparent background */
    backdrop-filter: blur(5px); /* Reduced blur for transparency */
    border-radius: 4px;
    border-left: 8px solid rgba(212, 175, 55, 0.6); /* Transparent gold bar */
    max-width: 600px;
    text-transform: uppercase;
    text-align: left;
    animation: fadeInTagline 1s ease-out;
}

@keyframes fadeInTagline {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sparkle {
    from { background-position: 0 0, 0 0; }
    to { background-position: 100px 100px, 200% center; }
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

.header-tagline::after {
    content: '...';
    position: absolute;
    right: -15px;
    top: 0;
    color: var(--accent);
    animation: pulse 1s infinite;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 30px;
    flex-shrink: 0;
}

.header-logo {
    height: 150px;
    width: auto;
    display: block;
    margin: 0;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.top-secondary-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.sec-nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: all 0.3s ease;
    white-space: nowrap !important;
    display: block;
}

.sec-nav-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

main {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Space for header */
}

/* Hero Carousel */
.hero-carousel {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 15;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 50px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(0,0,0,0.3);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}


.hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Push down on desktop too */
    margin-bottom: 40px;
}

.card-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 50px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-area {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(212, 175, 55, 0.15); /* Translucent gold */
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    animation: pulse 2s infinite;
}

.logo-box {
    margin-bottom: 25px;
}

#main-logo {
    max-width: 220px; /* Smaller logo */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.tagline {
    font-size: 15px; /* Smaller text */
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: -2px;
    border-radius: 20px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent) 5%,
        transparent 30%,
        transparent 50%,
        var(--accent) 60%,
        transparent 80%
    );
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    animation: rotateGlow 4s linear infinite;
}

.social-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 1px;
    background: #0a0a0a;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 22px;
    color: #ffffff;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover::after {
    background: #111;
    border-color: var(--accent);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2);
}

.social-btn:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer {
    position: fixed;
    bottom: 30px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 1024px) {
    .header-content {
        padding: 0 20px;
    }
    .header-logo {
        height: 100px;
    }
    .header-nav {
        gap: 15px;
    }
    .nav-icon {
        height: 35px;
    }
    .nav-item {
        min-width: 75px;
    }
    .nav-label {
        font-size: 9px;
    }
    .hero-carousel {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        height: 400px;
        margin: 40px auto;
    }
    main {
        padding-top: 100px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .main-header {
        position: fixed;
    }

    .header-content {
        padding: 5px 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .header-logo {
        height: 90px !important;
    }

    .top-secondary-nav {
        display: none;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 40px;
        gap: 15px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 500;
        border-left: 1px solid rgba(212, 175, 55, 0.3);
        overflow-y: auto; /* Permitir scroll si hay muchos items */
    }

    .menu-toggle:checked ~ .header-nav {
        right: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-item {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-icon {
        height: 40px !important;
        width: auto;
    }

    .nav-label {
        opacity: 1 !important;
        transform: none !important;
        position: static !important;
        font-size: 14px !important;
        letter-spacing: 1px;
        color: #ffffff;
    }

    .hero-carousel {
        display: block !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 400px !important;
        margin: 15px auto !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .carousel-slide {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .carousel-slide img {
        width: auto !important;
        max-width: 95% !important;
        height: 100% !important;
        object-fit: contain !important;
        border: 2px solid rgba(212, 175, 55, 0.8) !important;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        filter: brightness(1);
    }

    .hero-tagline {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 20px auto !important;
        font-size: 22px;
        padding: 0 15px;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
        text-align: center;
        width: 100%;
    }

    .hero-content {
        margin-top: auto !important;
        margin-bottom: 5px !important; /* Right above the footer */
        width: 100%;
        padding: 0;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
    }

    .social-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .social-btn {
        width: 42px !important;
        height: 42px !important;
    }

    .social-btn i {
        font-size: 16px !important;
    }

    .social-btn::before {
        opacity: 0.3;
    }
    .bottom-area {
        margin-top: 0;
        display: none;
    }

    .footer {
        padding: 15px 20px; /* Even more compact */
        background: rgba(0,0,0,0.9);
        position: relative;
        bottom: 0;
    }

    .mobile-only {
        display: flex !important;
        text-decoration: none;
    }
    
    .nav-separator {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        margin: 20px 0;
        opacity: 0.5;
    }

    .header-logo {
        height: 90px !important;
    }

    .top-secondary-nav {
        display: none;
    }
}

.mobile-only {
    display: none !important;
}
