/* ====================================
   VARIABLES CSS
   ==================================== */
:root {
    --color-bg-dark: #0a0a0f;
    --color-bg-light: #1a1a2e;
    --color-accent-cyan: #00d4ff;
    --color-accent-gold: #ffd700;
    --color-text-primary: #ffffff;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #a0a0b0;
    --font-main: 'Montserrat', sans-serif;
}

/* ====================================
   RESET Y BASE
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ====================================
   CANVAS DE PARTÍCULAS
   ==================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ====================================
   OVERLAY DE BRILLO
   ==================================== */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 212, 255, 0.1) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ====================================
   LOGO SATÉLITE
   ==================================== */
.satellite-logo {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    width: 200px;
    height: 200px;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 212, 255, 0.15);
    animation: float-in 1.5s ease-out;
    transition: all 0.3s ease;
}

.satellite-logo:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.satellite-logo .logo {
    max-width: 170px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    transition: filter 0.3s ease;
}

.satellite-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    animation: pulse-ring 3s infinite;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translate(100px, -100px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}


/* ====================================
   CONTENEDOR PRINCIPAL
   ==================================== */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 212, 255, 0.1);
    animation: fade-in-up 1.2s ease-out;
    transition: all 0.3s ease;
}

.content:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 212, 255, 0.2);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====================================
   TÍTULO PRINCIPAL CON EFECTO GLITCH
   ==================================== */
.main-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    position: relative;
    color: var(--color-text-primary);
    text-transform: uppercase;
    animation: fade-in 1.5s ease-out 0.6s backwards;
}

.main-title::before,
.main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.main-title::before {
    color: var(--color-accent-cyan);
    animation: glitch-1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.main-title::after {
    color: var(--color-accent-gold);
    animation: glitch-2 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    92% {
        opacity: 0.8;
        transform: translateX(-2px);
    }
}

@keyframes glitch-2 {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    92% {
        opacity: 0.8;
        transform: translateX(2px);
    }
}

/* ====================================
   SUBTÍTULO
   ==================================== */
.subtitle {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: fade-in 1.5s ease-out 0.9s backwards;
}

/* ====================================
   LÍNEA DECORATIVA
   ==================================== */
.divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-accent-cyan), 
        var(--color-accent-gold),
        transparent);
    margin: 1.5rem auto;
    animation: expand-width 1.5s ease-out 1.2s backwards;
}

@keyframes expand-width {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

/* ====================================
   CALL TO ACTION
   ==================================== */
.cta-text {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    animation: fade-in 1.5s ease-out 1.5s backwards;
}

/* ====================================
   LOADING DOTS ANIMADOS
   ==================================== */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    animation: fade-in 1.5s ease-out 1.8s backwards;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent-cyan);
    animation: bounce-dot 1.4s infinite ease-in-out;
    box-shadow: 0 0 10px var(--color-accent-cyan);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .content {
        padding: 3rem 2rem;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .divider {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-text {
        font-size: 0.85rem;
    }
}

/* ====================================
   ANIMACIÓN DE HOVER INTERACTIVO
   ==================================== */
.content {
    transition: all 0.3s ease;
}

.content:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 212, 255, 0.2);
}
