/* ============================================
   Gehenna Networks · Estilos base
   ============================================ */

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #0a0505;
    color: #d4c5b0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Tipografía */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

/* ============================================
   FONDOS DE SECCIÓN (diferenciación)
   ============================================ */

/* Hero – fondo con textura y partículas */
.section-hero {
    background: #0a0505; /* fallback */
}

/* Features – fondo rojizo oscuro */
.section-features {
    background: #1a0c0c;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

/* Status – fondo gris muy oscuro con matiz azulado */
.section-status {
    background: #0f0f14;
}

/* Newsletter – fondo negro con un toque más cálido */
.section-newsletter {
    background: #120a0a;
    border-top: 1px solid rgba(139, 0, 0, 0.15);
}

/* Footer ya tiene su propio color en línea */

/* ============================================
   HERO – Fondo animado y partículas
   ============================================ */

.gehenna-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(80, 0, 0, 0.3) 0%, transparent 50%),
        #0a0505;
    background-size: cover;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.gehenna-bg-alt {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(100, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        #0a0a10;
    background-size: cover;
    animation: bgPulseAlt 10s ease-in-out infinite alternate;
}

@keyframes bgPulseAlt {
    0% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1.04) rotate(1deg);
    }
}

/* Partículas (CSS) */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(2px 2px at 50% 10%, rgba(212, 175, 55, 0.25), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(212, 175, 55, 0.15), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(2px 2px at 15% 85%, rgba(212, 175, 55, 0.1), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 200px;
    animation: particleFloat 60s linear infinite;
    opacity: 0.6;
}

.particles::after {
    background-image:
        radial-gradient(1px 1px at 25% 15%, rgba(255, 200, 100, 0.2), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(255, 200, 100, 0.15), transparent),
        radial-gradient(2px 2px at 80% 70%, rgba(255, 200, 100, 0.1), transparent);
    background-size: 250px 250px;
    animation-duration: 80s;
    animation-direction: reverse;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-10%, -10%) rotate(360deg);
    }
}

/* ============================================
   TEXTO Y SOMBRAS (mejora de contraste)
   ============================================ */

.text-shadow-glow {
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 0 80px rgba(212, 175, 55, 0.1);
}

.drop-shadow-md {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* ============================================
   BOTONES
   ============================================ */

.gehenna-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #0a0505;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.gehenna-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #e8c84a, #d4af37);
}

.gehenna-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: #d4c5b0;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.gehenna-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: #d4af37;
    color: #f0e6d0;
    transform: translateY(-2px);
}

/* ============================================
   TARJETAS DE CARACTERÍSTICAS
   ============================================ */

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(212, 175, 55, 0.04);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #f0e6d0;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: #d4c5b0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================================
   MODALES LEGALES
   ============================================ */

.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.legal-modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: #150a0a;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 2rem;
    padding: 2rem 2rem 2.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.legal-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #d4c5b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.legal-modal-close:hover {
    color: #d4af37;
}

.legal-modal-content::-webkit-scrollbar {
    width: 6px;
}
.legal-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.legal-modal-content::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 3px;
}

/* ============================================
   UTILIDADES
   ============================================ */

[x-cloak] {
    display: none !important;
}

/* Animación para la barra de progreso */
.animate-progress {
    background-size: 200% 100%;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%,
    100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Ajuste de contraste en enlaces */
a {
    transition: color 0.2s;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}
