/* =====================================================
   ESTILO.CSS — Sistema de Diseño Global
   Star Citizen España (SCESP)
   ===================================================== */

/* Variables de Diseño (Tokens) */
:root {
    /* Tipografía */
    --font-main: "Electrolize", sans-serif;
    
    /* Colores Base */
    --color-bg: #0a0a0f;
    --color-accent: #43edf8;
    --color-text: #e0e0e0;
    --color-text-dim: #a8bccd;
    --color-white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 15, 15, 0.60);
    --glass-border: rgba(67, 237, 248, 0.15);
    --glass-blur: 12px;
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    
    /* Estados */
    --status-operational: #28a745;
    --status-degraded: #ffc107;
    --status-partial: #fd7e14;
    --status-major: #dc3545;
    --status-maintenance: #17a2b8;
    --status-custom-degraded: #969AE8; /* Lavanda para la web */

    /* Espaciado y Bordes */
    --radius-main: 12px;
    --radius-card: 10px;
    --content-width: 1200px;
}

/* ---------- Reset y Base Global ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Fondo fijo compartido */
#bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 1s ease-in-out;
    pointer-events: none;
}

/* ---------- Componentes Comunes ---------- */

/* Contenedor Principal (Marco de Cristal) */
.content-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-main);
    margin: 20px auto 50px auto;
    max-width: var(--content-width);
    padding: 0 20px 30px 20px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(67, 237, 248, 0.08);
}

/* Barra de Navegación */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-toggle, .nav-title {
    display: none; /* Ocultar en escritorio (Windows) */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.nav-logo {
    height: 45px;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #a0b4c8;
    text-decoration: none;
    font-size: 14px;
    padding: 14px 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

/* Secciones y Títulos */
.section {
    padding: 40px 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(67, 237, 248, 0.3);
    margin-bottom: 10px;
}

.section-title .line {
    width: 40%; /* 40% para encabezados principales */
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 12px auto;
}

.section-title h3 + .line,
.section-title h4 + .line {
    width: 30%; /* 30% para encabezados pequeños */
}

/* Botón Estándar de Cristal */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(15, 22, 36, 0.4);
    border: 1px solid rgba(67, 237, 248, 0.25);
    color: #c0d0e0;
    white-space: nowrap;
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(15, 22, 36, 0.6);
    border-color: rgba(67, 237, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(67, 237, 248, 0.1);
    color: var(--color-white);
}

/* ---------- Footer y Pie de Página ---------- */
footer {
    background: rgba(5, 10, 15, 0.84);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 30px 20px;
    margin-top: 50px;
}

.footer-main {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 100px;
    opacity: 0.8;
}

.footer-privacidad {
    flex: 2;
}

.footer-privacidad h4 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-privacidad p {
    font-size: 0.85rem;
    color: #8a9aaa;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-privacidad a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.8rem;
    color: #667788;
}
