@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --bg-main: #060913;
    --bg-surface: rgba(13, 20, 38, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* OuttaLocal colors based on purple/indigo logo */
    --accent-outtalocal: #7038F8;
    --accent-outtalocal-glow: rgba(112, 56, 248, 0.15);
    
    /* Me Llegan colors based on red-orange logo and cream text */
    --accent-mellegan: #E04B1D;
    --accent-mellegan-glow: rgba(224, 75, 29, 0.15);
    --text-mellegan-cream: #EAE6DF;
    
    /* Mysterious gold/silver details for secret brand */
    --accent-secret: #8b9bb4;
    --accent-secret-glow: rgba(139, 155, 180, 0.15);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Bilingual visibility toggle */
body.lang-es .lang-en {
    display: none !important;
}
body.lang-en .lang-es {
    display: none !important;
}

/* Background Ambient Glows with parallax preparation */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 56, 248, 0.06) 0%, rgba(112, 56, 248, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    will-change: transform;
}

.ambient-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 75, 29, 0.04) 0%, rgba(224, 75, 29, 0) 70%);
    bottom: 20%;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    will-change: transform;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    pointer-events: none;
}


/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(6, 9, 19, 0.7);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, #fff 60%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    padding: 0 0.15rem;
}

.lang-btn.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.divider {
    color: var(--border-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: sticky;
    top: 0;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    will-change: opacity, transform;
}

.hero * {
    pointer-events: auto;
}

.parallax-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    will-change: transform;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 40%, #8b9bb4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.parallax-hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 3rem;
    font-weight: 300;
    will-change: transform;
}

/* Subsidiaries Grid */
.subsidiaries {
    padding: 6rem 2rem 10rem;
    position: relative;
    z-index: 2;
    background-color: var(--bg-main);
    width: 100%;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -30px 60px rgba(6, 9, 19, 0.95);
}

.section-header, .subs-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Subsidiary Cards */
.sub-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: default;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.sub-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-header {
    z-index: 2;
}

.brand-logo-container {
    height: 70px;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sub-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.sub-card p.description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.98rem;
}

.card-footer {
    z-index: 2;
    margin-top: 2rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-link svg {
    transition: transform 0.3s ease;
}

.btn-link:hover svg {
    transform: translateX(4px);
}

/* Card-Specific Themes */
/* OuttaLocal */
.card-outtalocal .btn-link {
    color: var(--accent-outtalocal);
}
.card-outtalocal:hover {
    box-shadow: 0 15px 40px -15px var(--accent-outtalocal-glow);
    border-color: rgba(112, 56, 248, 0.3);
}

/* Me Llegan */
.card-mellegan {
    background: radial-gradient(circle at bottom left, rgba(224, 75, 29, 0.03), transparent 70%), var(--bg-surface);
}
.card-mellegan h3 {
    color: var(--text-mellegan-cream);
}
.card-mellegan p.description {
    color: #b5b1a9;
}
.card-mellegan .btn-link {
    color: var(--accent-mellegan);
}
.card-mellegan:hover {
    box-shadow: 0 15px 40px -15px var(--accent-mellegan-glow);
    border-color: rgba(224, 75, 29, 0.3);
}

/* Mystery/Secret Brand */
.card-secret {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 70%), var(--bg-surface);
}
.card-secret:hover {
    box-shadow: 0 15px 40px -15px var(--accent-secret-glow);
    border-color: rgba(255, 255, 255, 0.15);
}
.secret-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 19, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
    z-index: 5;
    transition: var(--transition-smooth);
}
.secret-overlay.revealed {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}
.lock-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.decrypt-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.decrypt-btn:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.decrypted-hint {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    min-height: 1.5rem;
}

/* Footer styling */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Media Queries & Responsiveness Upgrades */
@media (max-width: 768px) {
    header {
        padding: 1.25rem 1.5rem;
    }
    .nav-container {
        gap: 1.25rem;
    }
    nav {
        gap: 1.25rem;
    }
    .hero {
        padding-top: 8rem;
    }
    .subs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .sub-card {
        padding: 2rem;
        min-height: auto;
    }
    .footer-content {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: relative;
        text-align: center;
    }
    .nav-container {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    .hero {
        padding: 4rem 1.25rem 2rem;
        min-height: auto;
    }
    .subsidiaries {
        padding: 4rem 1.25rem 6rem;
    }
    .section-header {
        margin-bottom: 3rem;
    }
}
