/* ==========================================
   VARIABLES DE COLOR Y FUENTE (Estilo COD)
   ========================================== */
:root {
    --bg-primary: #0d0e10;       /* Negro absoluto / militar */
    --bg-secondary: #141619;     /* Gris oscuro de paneles */
    --accent-orange: #ff7900;    /* Naranja Warzone / Ámbar táctico */
    --text-main: #ffffff;
    --text-muted: #8a8d90;
    --border-color: #22252a;
    --alert-red: #d9534f;
}

/* ==========================================
   RESETS & GENERALS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace, 'Segoe UI', sans-serif; /* Toque de tipografía tipo terminal */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   HEADER / NAVBAR (Flotante sobre el vídeo)
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background: linear-gradient(to bottom, rgba(13, 14, 16, 0.95), rgba(13, 14, 16, 0));
    position: absolute; /* Clave para que flote sobre el vídeo de fondo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 121, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-orange);
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav ul li {
    margin: 0 20px;
}

.navbar nav ul li a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.navbar nav ul li a:hover, 
.navbar nav ul li a.active {
    color: var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
}

.btn-tactical {
    background-color: transparent;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 8px 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.btn-tactical:hover {
    background-color: var(--accent-orange);
    color: var(--bg-primary);
}

/* ==========================================
   BANNER CON VÍDEO EN PANTALLA COMPLETA
   ========================================== */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la pantalla al entrar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Contenedor que estira el vídeo por detrás de todo */
.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none; /* Evita que el usuario haga clic en pausar el vídeo de YouTube */
    overflow: hidden;
}

/* Fuerza al iframe de YouTube a tapar toda la pantalla como un fondo real */
.video-background-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Proporción 16:9 calculada (9 / 16 * 100) */
    min-height: 100vh;
    min-width: 177.77vh; /* Proporción 16:9 calculada (16 / 9 * 100) */
    transform: translate(-50%, -50%);
}

/* Capa de oscurecimiento y tinte cinemático */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13,14,16,0.6) 0%, rgba(13,14,16,0.85) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-content .subtitle {
    color: var(--accent-orange);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    color: var(--text-main);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Botones con estilo corchete/militar */
.hero-buttons a {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 10px;
    transition: color 0.3s, transform 0.2s;
}

.hero-buttons .btn-primary {
    color: var(--accent-orange);
}

.hero-buttons .btn-primary:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.hero-buttons .btn-secondary {
    color: var(--text-muted);
}

.hero-buttons .btn-secondary:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* Línea HUD inferior decorativa */
.hud-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(transparent, rgba(255, 121, 0, 0.15));
    border-top: 1px solid rgba(255, 121, 0, 0.3);
}

/* ==========================================
   SECCIONES DE CONTENIDO
   ========================================== */
.section-title {
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
}

.section-title span {
    color: var(--accent-orange);
}

.news-container {
    padding: 80px 10%;
    background-color: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    transition: border-color 0.3s;
}

.news-card:hover {
    border-color: var(--accent-orange);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #22252a;
    color: var(--accent-orange);
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.card-tag.alert {
    color: var(--alert-red);
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.read-more {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 700;
}

/* ==========================================
   TABLA DE MIEMBROS
   ========================================== */
.clan-section {
    padding: 80px 10%;
    background-color: #090a0b;
}

.clan-container {
    max-width: 1200px;
    margin: 0 auto;
}

.table-responsive {
    overflow-x: auto;
}

.clan-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-align: left;
}

.clan-table th {
    background-color: #1a1d21;
    padding: 15px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.clan-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.operator-name {
    font-weight: 700;
    color: var(--accent-orange);
}

.status.online {
    color: #39b54a;
    font-weight: bold;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}