/* ========== GLOBAL STYLES ========== */
* {
    box-sizing: border-box;
}

html, body { 
    background-color: #050505; 
    color: #ffffff; 
    font-family: 'Space Grotesk', sans-serif; 
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#grapheneCanvas, .graphene-bg { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.25; 
    pointer-events: none;
    contain: strict; 
}

/* Hero Glow Effect */
.hero-glow { 
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 242, 0.08) 0%, rgba(0,0,0,0) 70%); 
    position: absolute; 
    top: -20%; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: -1;
}

/* Glass Morphism Style */
.glass { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========== MODAL STYLES ========== */
.modal { 
    display: none !important; 
    position: fixed; 
    inset: 0; 
    z-index: 100; 
    background: rgba(0, 0, 0, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center; 
    justify-content: center; 
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.modal.active { 
    display: flex !important; 
}

/* Modal children - asegurar que el header con botón de cerrar siempre sea visible */
.modal > div {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.modal .flex.justify-between {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
    margin: -8px -8px 0 -8px;
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== LANGUAGE SYSTEM ========== */
/* NOTA: Los estilos de idioma están en <style> inline en el head de cada HTML */
/* para asegurar máxima prioridad y evitar conflictos con Tailwind CSS */


    
    /* Price & Fine Print */
    .price-fine-print {
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0.5;
        line-height: 1.4;
        margin-top: 8px;
    }
    
    .acceptance-text {
        font-size: 8px;
        opacity: 0.3;
        text-align: center;
        margin-top: 16px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .acceptance-text a { 
        text-decoration: underline; 
        font-weight: bold;
        color: #22d3ee;
        transition: color 0.3s ease;
    }
    
    .acceptance-text a:hover { 
        color: #06b6d4;
    }

    /* ========== BUTTON STYLES ========== */
    button {
        outline: none;
        border: none;
        cursor: pointer;
        font-family: 'Space Grotesk', sans-serif;
        transition: all 0.3s ease;
    }
    
    button:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

    /* Buttons for transmission */
    .btn-transmission {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 2rem;
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s ease;
    }

    .btn-transmission:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .btn-transmission:active:not(:disabled) {
        transform: scale(0.95);
    }

    /* Pack buttons */
    .pack-btn-move, .pack-btn-rest {
        transition: all 0.3s ease;
    }

    /* Stripe buttons (CTA) */
    [id^="btn-stripe-"] {
        background: rgb(6, 182, 212);
        border: 2px solid transparent;
        color: black;
        font-weight: bold;
        font-size: 11px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        padding: 1rem 2rem;
        border-radius: 1rem;
        transition: all 0.3s ease;
    }

    [id="btn-stripe-move"] {
        background: rgb(6, 182, 212);
    }

    [id="btn-stripe-move"]:hover:not(:disabled) {
        background: rgb(34, 211, 238);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
    }

    [id="btn-stripe-rest"] {
        background: rgb(59, 130, 246);
    }

    [id="btn-stripe-rest"]:hover:not(:disabled) {
        background: rgb(96, 165, 250);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    [id="btn-stripe-bundle"] {
        background: white;
        color: black;
    }

    [id="btn-stripe-bundle"]:hover:not(:disabled) {
        background: rgb(229, 231, 235);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    }

    /* ========== CARDS ========== */
    .blog-card {
        transition: all 0.3s ease;
        border-radius: 1.5rem;
    }

    .blog-card:hover {
        border-color: rgba(0, 242, 255, 0.3);
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0, 242, 255, 0.1);
    }

    /* ========== MISSION ROADMAP ========== */
    .mission-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        text-align: left;
    }

    .mission-card {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
        transition: all 0.3s ease;
    }

    .mission-card:hover {
        padding-left: 0.5rem;
    }

    .mission-card h4 {
        margin: 0;
        line-height: 1.2;
        color: #22d3ee;
        font-weight: bold;
        font-style: italic;
        min-width: 80px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mission-card p {
        margin: 0;
        margin-top: 0.25rem;
        opacity: 0.7;
        font-size: 11px;
        line-height: 1.5;
    }

    .mission-active h4 {
        color: #22d3ee;
        text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    }

    /* ========== RESPONSIVE DESIGN ========== */
    @media (max-width: 768px) {
        nav {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        h1 {
            font-size: 2.5rem !important;
        }

        .grid {
            grid-template-columns: 1fr !important;
        }

        .modal {
            padding: 0.75rem;
            align-items: flex-start;
            justify-content: flex-start;
        }

        .modal .glass {
            padding: 1.5rem;
            max-height: 85vh !important;
            overflow-y: auto;
            margin-top: 1rem;
            border-radius: 1.5rem;
        }

        .glass {
            padding: 1.5rem;
        }

        [id^="btn-stripe-"] {
            width: 100%;
        }

        .mission-card {
            gap: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        html, body {
            font-size: 14px;
        }

        h1 {
            font-size: 2rem !important;
        }

        h2 {
            font-size: 1.5rem !important;
        }

        .glass {
            border-radius: 1rem;
            padding: 1rem;
        }

        .modal {
            padding: 0.5rem;
        }

        .modal .glass {
            max-height: 90vh !important;
            overflow-y: auto;
            padding: 1rem;
        }
    }

    /* ========== UTILITY & ANIMATION ========== */
    .animate-pulse {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
    }

    /* Loading state */
    @keyframes shimmer {
        0% {
            background-position: -1000px 0;
        }
        100% {
            background-position: 1000px 0;
        }
    }

    .loading {
        background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
        background-size: 1000px 100%;
        animation: shimmer 2s infinite;
    }

    /* ========== POST CONTENT STYLES ========== */
    .content-body {
        line-height: 1.8;
        font-size: 16px;
    }

    .content-body section {
        display: block;
    }

    .content-body p {
        margin: 1.5rem 0;
        font-size: 15px;
        line-height: 1.85;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.95);
    }

    .content-body h2 {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.5px;
        text-transform: none;
        color: #22d3ee;
        border-bottom: 1px solid rgba(34, 211, 238, 0.2);
        padding-bottom: 0.75rem;
    }

    .content-body h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #ffffff;
    }

    .content-body strong {
        color: #22d3ee;
        font-weight: 700;
    }

    /* Tech boxes for highlights */
    .tech-box {
        background: rgba(34, 211, 238, 0.05);
        border-left: 3px solid #22d3ee;
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 0.5rem;
    }

    .tech-box h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        color: #22d3ee;
    }

    .tech-box p {
        margin: 0.5rem 0;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .content-body {
            font-size: 14px;
        }

        .content-body p {
            font-size: 14px;
            margin: 1.25rem 0;
            line-height: 1.75;
        }

        .content-body h2 {
            font-size: 20px;
            margin-top: 2.5rem;
            margin-bottom: 1.25rem;
        }

        .content-body h3 {
            font-size: 14px;
            margin-top: 1.25rem;
        }

        .tech-box {
            padding: 1.25rem;
            margin: 1.5rem 0;
        }
    }