/* ==========================================================================
   IONEXIA - ESTILOS PRINCIPALES (Premium Dark Mode with Gold Accents)
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    --bg-primary: #020b1e;
    --bg-secondary: #051433;
    --bg-glass: rgba(10, 15, 30, 0.55);
    --border-glass: rgba(255, 160, 16, 0.12);
    --border-glass-hover: rgba(255, 160, 16, 0.4);
    
    /* Acentos Dorados/Ámbar extraídos de image.jpeg */
    --accent-gold-light: #ffa010;
    --accent-gold-dark: #e08000;
    --accent-gold-glow: rgba(255, 160, 16, 0.25);
    --accent-gold-gradient: linear-gradient(135deg, #ffa010 0%, #e08000 100%);
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a0a6b5;
    --text-muted: #626875;
    
    /* Fuentes */
    --font-title: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Animaciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Fondos Ambientales */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 160, 16, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    pointer-events: none;
    filter: blur(100px);
    animation: drift 25s infinite alternate ease-in-out;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0),
        radial-gradient(rgba(255, 160, 16, 0.01) 1.5px, transparent 0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -2;
    pointer-events: none;
}

/* Contenedor General */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Insignia de Estado */
.status-badge {
    background: rgba(255, 160, 16, 0.08);
    border: 1px solid rgba(255, 160, 16, 0.25);
    color: var(--accent-gold-light);
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold-light);
    animation: pulse 1.5s infinite;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Logo Centrado */
.hero-logo-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 160, 16, 0.18) 0%, transparent 70%);
    z-index: -1;
    filter: blur(25px);
    pointer-events: none;
}

.hero-logo-main {
    width: 220px;
    height: 220px;
    border-radius: 36px;
    object-fit: cover;
    border: 2px solid rgba(255, 160, 16, 0.25);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7), 
        0 0 40px rgba(255, 160, 16, 0.08);
    transition: var(--transition-bounce);
    background-color: #000000;
}

.hero-logo-main:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(255, 160, 16, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.9), 
        0 0 50px rgba(255, 160, 16, 0.25);
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

/* Contador Regresivo */
.countdown-container {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 1.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 160, 16, 0.2);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-divider {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent-gold-light);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* Seccion Pilares */
.pillars-section {
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 3.5rem;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-gold-gradient);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.pillar-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 160, 16, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pillar-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 35px rgba(255, 160, 16, 0.08), 0 0 1px 1px rgba(255, 160, 16, 0.15);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon-wrapper {
    background: rgba(255, 160, 16, 0.08);
    border: 1px solid rgba(255, 160, 16, 0.2);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon-wrapper {
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px var(--accent-gold-glow);
}

.pillar-icon {
    width: 26px;
    height: 26px;
}

.pillar-name {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pillar-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Footer */
.app-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 160, 16, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 160, 16, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 160, 16, 0);
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15%, 15%) scale(1.1);
    }
    100% {
        transform: translate(-10%, 5%) scale(0.95);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1.12);
    }
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .pillar-name {
        font-size: 1.45rem;
    }

    .pillar-desc {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.95rem;
    }
    
    .countdown-container {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 55px;
    }
    
    .countdown-divider {
        font-size: 1.5rem;
    }
    
    .app-footer {
        text-align: center;
    }
}
