/* 
   UNIFIED FRAME STYLES 
   Source of truth for Header and Legal Warning Overlay.
   Loaded dynamically by frame_loader.js
*/

/* --- UNIFIED FOOTER --- */
/* --- UNIFIED FOOTER --- */
.unified-footer {
    background-color: #000;
    padding: 3rem 0 6rem 0;
    /* Reduced padding from 8rem/3rem to be tighter */
    border-top: 1px solid #111;
    margin-top: 0;
    /* Removed large margin to reduce gap */
}

.unified-footer .container {
    display: flex;
    justify-content: flex-start;
    /* Left Align */
    align-items: center;
    max-width: 100%;
    /* Unlock max-width */
    margin: 0;
    padding: 0 12vw;
    /* Deep Grid 12vw */
}

.footer-copy {
    color: #444;
    /* Match styles.css color */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    border-color: #FF0000;
    color: #FF0000;
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}



@media (max-width: 768px) {
    .unified-footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- OVERLAY CONTAINER --- */
#frame-overlay {
    font-family: 'Inter', sans-serif;
    /* Enforce global font for frame */
    line-height: 1.6;
    /* Enforce standard line-height */
}

/* --- GLOBAL SCROLLBAR STABILIZATION --- */
html {
    scrollbar-gutter: stable;
}

/* --- PAGE TRANSITION OVERLAY --- */
#transition-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    /* Highest z-index to cover everything */
    pointer-events: none;
    /* Allow clicks when transparent (though we handle opacity manually) */
    opacity: 1;
    /* Start black */
    transition: opacity 0.5s ease-in-out;
}

/* --- HEADER --- */
#frame-overlay .header {
    padding: 1.5rem 0;
    /* Increased height */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2002;
    /* FIXED: Increased to sit ABOVE the mobile menu (2000) */
    background-color: rgba(0, 0, 0, 0.95);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    /* Ensure clickable */
}

/* ... existing code ... */

/* Mobile Menu Overlay (Hidden by default) */
#frame-overlay .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 2000;
    /* Behind header (2002), above content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    align-items: center;
    padding-top: 80px;
    /* FIXED: Ensure content clears the header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: auto;
    /* Enable clicks inside menu */
}

#frame-overlay .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    /* Full width */
    margin: 0 auto;
    padding: 0 12vw;
    /* ALIGNMENT: DEEP GRID 12vw */
    width: 100%;
}

#frame-overlay .logo img {
    height: 45px;
    /* Slightly larger logo to match new height */
    display: block;
}

/* --- NAVIGATION & SOCIALS --- */
#frame-overlay .nav-social {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased gap for cleaner look */
    margin: 0 !important;
    width: auto !important;
    flex-wrap: nowrap;
}

/* Navigation Links */
#frame-overlay .nav-item {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    /* For pseudo-element absolute positioning */
    padding-bottom: 5px;
    /* Space for underline */
    transition: opacity 0.3s;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
}

#frame-overlay .nav-item:hover {
    opacity: 1;
}

/* Smooth Red Underline Effect */
#frame-overlay .nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF0000;
    transition: width 0.3s ease-in-out;
}

#frame-overlay .nav-item:hover::after {
    width: 100%;
}

/* Social Icons (Keeping specific styles if needed, but we might be removing them or keeping them separate) */
/* The user asked to remove Email, but keep others? "de los botones sociales vamos a sacar boton de correo" */
/* Also "los botones van a ser.: Products - Join as Partner - contac - Verify pack." This implies REPLACING the social icons with text links? */
/* "3. de los botones sociales vamos a sacar boton de correo." -> implying others stay? */
/* "4. los botones van a ser.: Products... etc" -> This sounds like the MAIN navigation. */
/* Current layout has SVG icons. The user lists TEXT buttons. */
/* I will assume the Social Icons (IG, TikTok, YT) remain, and the TEXT buttons are the main nav. */
/* Wait, currently there ARE no text buttons except "PARTNERS". */
/* I will implement a mixed approach: Text Buttons for the new menu, + remaining Social Icons. */

#frame-overlay .nav-social a.social-icon {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex !important;
    align-items: center;
    text-decoration: none;
}

#frame-overlay .nav-social a.social-icon:hover {
    opacity: 1;
}

#frame-overlay .nav-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Highlighted "Join as Partner" */
#frame-overlay .nav-item.bold-highlight {
    font-weight: 700;
    color: #fff;
}



#frame-overlay .btn-partners:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- LANGUAGE SELECTOR --- */
#frame-overlay .lang-selector {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

#frame-overlay .lang-selector span {
    transition: color 0.3s ease;
}

#frame-overlay .lang-selector span:hover {
    color: #fff !important;
    /* Hover White - Force override inactive */
    cursor: pointer;
}

#frame-overlay .lang-selector .active {
    color: #FF0000 !important;
    /* Active Red */
    font-weight: 700;
}

#frame-overlay .lang-selector .inactive {
    color: #666;
    /* Inactive Gray */
    transition: color 0.3s ease;
}

#frame-overlay .lang-selector .divider {
    margin: 0 0.3rem;
    opacity: 0.5;
}

/* --- LEGAL WARNING BAR --- */
#frame-overlay .legal-warning-bar {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    /* Force bold */
    letter-spacing: 1px;
    border-top: 4px solid #FF0000 !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
    line-height: normal;
    text-transform: uppercase;
}

#frame-overlay .legal-warning-bar p {
    margin: 0;
    padding: 0;
}

/* --- RESPONSIVE HEADER & MOBILE MENU --- */

/* Hamburger Menu Button (Hidden on Desktop) */
#frame-overlay .hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    /* Above everything */
    padding: 0;
}

#frame-overlay .hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay (Hidden by default) */
#frame-overlay .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 2000;
    /* Behind hamburger, above header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#frame-overlay .mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

#frame-overlay .mobile-menu .nav-item {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#frame-overlay .mobile-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay for items */
#frame-overlay .mobile-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

#frame-overlay .mobile-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
}

#frame-overlay .mobile-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
}

#frame-overlay .mobile-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hamburger Animation when Active */
#frame-overlay .hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#frame-overlay .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

#frame-overlay .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



/* Navigation Container Spacing Fix */
#frame-overlay .nav-social-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

#frame-overlay .separator {
    width: 1px;
    height: 15px;
    background: #333;
    margin: 0 5px;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    /* 1. Proportional Logo Scaling */
    #frame-overlay .logo img {
        height: 35px;
        /* Smaller on mobile */
        transition: height 0.3s ease;
    }

    #frame-overlay .header {
        padding: 1rem 0;
        /* Reduced padding */
    }

    /* 2. Hide Desktop Nav Items */
    #frame-overlay .nav-social .nav-item,
    #frame-overlay .nav-social .separator,
    #frame-overlay .nav-social .lang-selector {
        display: none;
    }

    /* 3. Show Hamburger */
    #frame-overlay .hamburger-btn {
        display: flex;
    }

    /* Ensure Header container uses full width correctly */
    #frame-overlay .header-container {
        padding: 0 20px;
        /* ALIGNMENT: STRICTLY 20px to match content */
    }
}

/* Even smaller for very small screens */
}
}

/* --- UNIFIED FOOTER STYLES --- */
.unified-footer {
    width: 100%;
    background-color: var(--bg-black);
    /* Assume same as body */
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
    position: relative;
    z-index: 10;
}

.unified-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    /* Override .container default */
    margin: 0 auto;
    padding: 0 12vw;
    /* MATCH HEADER ALIGNMENT */
    flex-wrap: wrap;
    gap: 20px;
}

.unified-footer .footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unified-footer .footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.unified-footer .footer-legal a {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.unified-footer .footer-legal a:hover {
    color: #fff;
}

.unified-footer .footer-divider {
    color: #333;
    font-size: 0.8rem;
}

.unified-footer .footer-socials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.unified-footer .footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: #666;
    transition: fill 0.3s ease;
}

.unified-footer .footer-social-icon:hover svg {
    fill: #fff;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .unified-footer .footer-container {
        flex-direction: column;
        padding: 0 20px;
        /* Match mobile header padding */
        gap: 30px;
        text-align: center;
    }

    .unified-footer .footer-copy {
        order: 3;
        /* Copy at bottom on mobile */
    }
}
/* --- AGE GATE --- */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Slight dark overlay */
    z-index: 99999; /* Highest Z-Index */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(0px); /* Transition start */
    transition: backdrop-filter 0.5s ease;
}

.blur-content {
    filter: blur(8px);
    transition: filter 0.5s ease;
}

.age-gate-modal {
    background-color: #ffffff;
    border: 4px solid #FF0000;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    color: #000;
    font-family: 'Inter', sans-serif;
}

.age-gate-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

.age-gate-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.age-gate-body {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.age-gate-warning {
    background-color: #f8f8f8;
    border-left: 4px solid #000;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-align: left;
}

.age-gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-age {
    padding: 1rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-red {
    background-color: #FF0000;
    color: #fff;
}

.btn-red:hover {
    background-color: #cc0000;
}

.btn-black {
    background-color: #000;
    color: #fff;
}

.btn-black:hover {
    background-color: #333;
}

@media (max-width: 600px) {
    .age-gate-modal {
        padding: 2rem;
    }
    .age-gate-title {
        font-size: 2rem;
    }
    .age-gate-actions {
        flex-direction: column;
    }
    .btn-age {
        width: 100%;
    }
}