/* estilos.css adicionales (Vanilla CSS) para potenciar Tailwind */

/* Comportamiento global */
html.scroll-smooth {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
    /* Para que el menú sticky no tape el contenido al navegar */
}

/* Glassmorphism para el Navbar cuando se hace scroll */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Efectos visuales de botones (Gradient Backgrounds) */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
    background-size: 200% auto;
    transition: 0.5s;
}

.btn-primary:hover {
    background-position: right center;
}

/* Estado activo para botones de filtro */
.filter-btn.active {
    background-color: #14b8a6;
    /* teal-500 */
    color: white;
    border-color: #14b8a6;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

/* Animaciones personalizadas */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar personalizada para sensación premium */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Animaciones Cinematográficas para Artemis */

#rocket-overlay {
    background: radial-gradient(circle at center, #0b0f19 0%, #05070a 100%);
}

/* Capas de Estrellas */
.stars-container,
.stars-container-2 {
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.star-twinkle {
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Humo del Lanzamiento */
.smoke {
    position: absolute;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.4) 0%, rgba(100, 100, 100, 0) 70%);
    border-radius: 50%;
    filter: blur(15px);
    pointer-events: none;
    animation: rise-and-fade 2s ease-out forwards;
}

@keyframes rise-and-fade {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--tx, 0), var(--ty, -50px)) scale(2);
        opacity: 0;
    }
}

/* Reflejo y fuego */
.engine-flare {
    box-shadow: 0 0 40px rgba(255, 100, 50, 0.6);
}

@keyframes flicker {

    0%,
    100% {
        transform: translateX(-50%) scaleY(1);
        opacity: 0.9;
    }

    50% {
        transform: translateX(-50%) scaleY(1.2);
        opacity: 1;
    }

    75% {
        transform: translateX(-50%) scaleY(0.95);
        opacity: 0.8;
    }
}

.animate-flicker {
    animation: flicker 0.1s infinite alternate;
}

/* Tipografía de Título */
#intro-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#intro-subtitle {
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    #intro-title {
        letter-spacing: 0.1em;
    }
}

/* 🍪 SISTEMA DE COOKIES PROFESIONAL 🍪 */

.cookie-banner {
    position: fixed;
    bottom: -100%; /* Iniciamos fuera de pantalla */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-glass {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

/* Switches para configuración */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #14b8a6;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: #1e293b;
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}