/* =========================================
   VARIABLES Y RESETEO GENERAL (VERSIÓN ULTRA-PREMIUM)
   ========================================= */
:root {
    --bg-main: #07080c; /* Fondo oscuro sólido y profundo */
    --bg-card: #0f111a; /* Tarjetas oscuras sólidas estilo dashboard */
    --bg-card-hover: #141724;
    --chile-red: #ff124f; /* Rojo eléctrico neón */
    --chile-blue: #0088ff; /* Azul cyber neón */
    --text-light: #ffffff;
    --text-muted: #8f9cae;
    --border-color: rgba(255, 255, 255, 0.04);
    --border-glow: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0, 136, 255, 0.08), transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255, 18, 79, 0.08), transparent 50%);
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Textos e Inyecciones de Color */
.text-red { color: var(--chile-red); }
.text-blue { color: var(--chile-blue); }
.text-muted { color: var(--text-muted); }
.text-gradient {
    background: linear-gradient(135deg, var(--chile-red), var(--chile-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   BOTONES AJUSTADOS (YA NO SE SEPARAN NI SE ESTIRAN)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    width: max-content; /* Evita que el botón se estire a lo ancho */
}

.btn-primary {
    background: #121622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #181e2e;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-portal {
    background: var(--text-light);
    color: var(--bg-main);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-portal:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

/* =========================================
   NAVBAR (CONFIGURADA PARA TU LOGO)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Adaptación perfecta para tu imagen de 1024x1024 */
.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-light); }

.hamburger { display: none; cursor: pointer; font-size: 1.3rem; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 85%;
}

/* Agrupación compacta de botones */
.hero-buttons { 
    display: flex; 
    gap: 0.75rem; 
    justify-content: flex-start;
}

/* =========================================
   SERVER STATUS CARD
   ========================================= */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 0.4rem;
    animation: pulse 2s infinite;
}

.status-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.status-val { font-weight: 800; }

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.progress-fill { height: 100%; background: var(--chile-red); }
.progress-fill.blue { background: var(--chile-blue); }
.progress-fill.yellow { background: #f59e0b; }

/* =========================================
   SECCIONES Y TARJETAS (ESTILO DASHBOARD MODERNO)
   ========================================= */
.sections { padding: 4rem 0; }

.section-title {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
}

.section-title span {
    width: 6px; height: 6px;
    background: var(--chile-red);
    display: inline-block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.2rem;
    transition: var(--transition);
    display: flex; flex-direction: column;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.7rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--text-light);
}
.card-link i { transition: transform 0.2s; font-size: 0.75rem; }
.card-link:hover i { transform: translateX(4px); }

/* =========================================
   NUEVA SECCIÓN: PASOS PARA UNIRSE
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: #0b0d14;
    border-left: 3px solid var(--chile-blue);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
}
.step-card.red-border { border-left-color: var(--chile-red); }
.step-card.white-border { border-left-color: #ffffff; }

.step-num {
    font-size: 2rem;
    font-weight: 900;
    opacity: 0.2;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* =========================================
   PÁGINAS INTERNAS & FOOTER
   ========================================= */
.page-header { padding-top: 160px; padding-bottom: 40px; text-align: center; }
.page-header h1 { font-size: 3.5rem; font-weight: 900; }
.content-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 2.5rem; margin-bottom: 4rem;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0; margin-top: 4rem;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-flags { display: flex; gap: 3px; }
.flag { width: 16px; height: 5px; border-radius: 1px; }
.flag.white { background: white; }
.flag.blue { background: var(--chile-blue); }
.flag.red { background: var(--chile-red); }

/* =========================================
   ANIMACIONES Y RESPONSIVE
   ========================================= */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-content p { margin: 0 auto 2rem auto; }
    .status-card { max-width: 450px; margin: 0 auto; text-align: left; }
    .cards-grid, .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: #07080c; flex-direction: column; align-items: center; justify-content: center;
    }
    .nav-links.active { left: 0; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}