/* =========================================
   1. CONFIGURACIÓN BASE Y TIPOGRAFÍA
   ========================================= */
body { 
    background: #122; 
    color: white; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-align: center; 
    margin: 0; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. CABECERA (BANDA NEGRA Y LOGO)
   ========================================= */
.header-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    width: 100%;
    box-sizing: border-box;
}

.header-left { display: flex; align-items: center; flex: 1; justify-content: flex-start; }
.mini-logo { height: 35px; width: auto; margin-right: 15px; }
.header-name { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }
.header-name small { color: rgba(255, 255, 255, 0.4); letter-spacing: 1px; }

.header-social { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.social-icon { 
    width: 22px !important; height: auto !important; 
    filter: brightness(0) invert(0.7); transition: 0.3s; 
    margin-left: 20px; display: inline-block;
}
.header-social a:hover .social-icon { 
    filter: brightness(0) invert(1) drop-shadow(0 0 5px #00d1ff); 
}

/* =========================================
   3. HERO BANNER (PIXELS WITH ATTITUDE)
   ========================================= */
.hero-banner { 
    position: relative; 
    width: 100%; height: 35vh; 
    overflow: hidden; background: #000; 
}
.video-background { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(80% 50% at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%); 
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.hero-text h1 {
    font-size: 1.4rem; letter-spacing: 8px; color: rgba(255, 255, 255, 1);
    margin: 0 0 15px 0; text-transform: uppercase; font-weight: 500;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}
.hero-text p {
    font-size: 0.85rem; letter-spacing: 2px; color: rgba(255, 255, 255, 0.6);
    max-width: 900px; margin: 0 auto; text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9); line-height: 1.8;
}

/* =========================================
   4. DIVISORES Y GRIDS
   ========================================= */
.section-divider {
    width: 100%; background: #0a0a0a; padding: 20px 0;
    margin: 60px 0 30px 0; border-top: 1px solid #222; border-bottom: 1px solid #222;
}

.section-divider h2 { 
    margin: 0; font-size: 1.1rem; letter-spacing: 6px; 
    color: rgba(255, 255, 255, 0.4); text-transform: uppercase; 
}

/* SUBTÍTULO POÉTICO R2 */
.section-subtitle {
    font-style: italic;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6); /* Un poco más tenue para que sea elegante */
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 300;
    display: block; /* Asegura que baje a la siguiente línea */
}

.grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; padding: 20px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.grid-drafts { grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-drafts .card img { aspect-ratio: 4 / 5 !important; }
@media (min-width: 768px) { .grid-drafts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid-drafts { grid-template-columns: repeat(6, 1fr); } }

/* CARDS (TUS "BOTONES" PRINCIPALES) */
.card { position: relative; cursor: pointer; background: #222; border-radius: 12px; overflow: hidden; transition: 0.3s ease; }
.card img { width: 100%; display: block; transition: 0.4s; aspect-ratio: 16 / 9; object-fit: cover; }
.card:hover { transform: translateY(-5px); }
.card:hover img { filter: brightness(50%); transform: scale(1.05); }

.info-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); display: flex; flex-direction: column; 
    justify-content: center; align-items: center; opacity: 0; transition: 0.3s; 
}
.card:hover .info-overlay { opacity: 1; }

/* AQUÍ EL CAMBIO QUE BUSCÁBAMOS: TEXTO FINO EN LAS CARDS */
.info-overlay h3 { 
    margin: 0; font-size: 1.1rem; text-transform: uppercase; 
    font-weight: 300 !important; letter-spacing: 2px;
}
.info-overlay p { 
    font-size: 0.8rem; color: #00d1ff; margin-top: 8px; letter-spacing: 1px; 
    font-weight: 300 !important;
}

/* =========================================
   5. MODAL Y LIGHTBOX
   ========================================= */
.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); justify-content: center; align-items: center; z-index: 9999; 
}
.modal-content { 
    width: 95vw; max-width: 1920px; background: #1a1a1a; border-radius: 15px; 
    overflow: hidden; box-shadow: 0 0 50px #000; display: flex; flex-direction: column; 
}
#videoContainer { width: 100%; aspect-ratio: 16 / 9; background: #000; }
#videoContainer iframe, #videoContainer video { width: 100%; height: 100%; display: block; border: none; }
#videoContainer img { max-height: 90vh; width: auto; display: block; margin: 0 auto; }

#btnGroup { width: 100%; background: #111; text-align: center; }
#btnGroup button {
    background: #222; color: #00d1ff; border: 1px solid #00d1ff; 
    padding: 10px 20px; margin: 10px 5px; cursor: pointer; border-radius: 5px; 
    font-family: inherit; font-weight: bold; text-transform: uppercase; font-size: 11px; transition: 0.3s;
}
#btnGroup button:hover, .active-video-btn {
    background: #00d1ff !important; color: #000 !important; box-shadow: 0 0 15px #00d1ff;
}

.info { padding: 30px; text-align: left; }
#modalTitle { color: #00d1ff; margin: 0; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 10px; }
#modalDesc { color: #bbb; font-size: 0.85rem; line-height: 1.8; margin-top: 15px; }
#modalDesc strong { color: #00d1ff; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; margin-right: 5px; }

.close-btn { position: absolute; top: 20px; right: 30px; font-size: 45px; color: white; cursor: pointer; z-index: 10000; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 60px; color: rgba(255,255,255,0.3); cursor: pointer; padding: 20px; z-index: 10001; transition: 0.3s; user-select: none; }
.nav-arrow:hover { color: #00d1ff; }
.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

/* =========================================
   6. CONTACTO Y FOOTER
   ========================================= */
.contact-stripe { background: #0d0d0d; padding: 80px 20px; border-top: 1px solid #222; }
.location-text { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; }
.contact-link { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 1.8rem; display: block; margin: 10px 0; transition: 0.3s; font-weight: 300; }
.contact-link:hover { color: #00d1ff; transform: translateX(10px); }

.social-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 40px; background: #0a0a0a; border-top: 1px solid #222; width: 100%; box-sizing: border-box;
}
.footer-left { display: flex; align-items: center; flex: 1; justify-content: flex-start; }
.mini-logo-footer { height: 35px; width: auto; margin-right: 15px; opacity: 0.5; filter: grayscale(100%); transition: 0.3s; }
.mini-logo-footer:hover { opacity: 1; }
.footer-left p { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; letter-spacing: 1px; margin: 0; }
.footer-links { display: flex; align-items: center; flex: 1; justify-content: flex-end; }

@media (max-width: 768px) {
    .header-band { padding: 15px 20px; }
    .header-name { font-size: 0.7rem; }
    .hero-banner { height: 25vh; }
    .hero-text h1 { font-size: 1.1rem; letter-spacing: 4px; }
    .hero-text p { font-size: 0.65rem; letter-spacing: 1px; padding: 0 20px; }
    .nav-arrow { font-size: 40px; padding: 10px; }
    .social-bottom { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .contact-link { font-size: 1.3rem; }
}

/* EASTER EGG KAPREKAR */
.kaprekar-hint {
    color: rgba(255, 255, 255, 0.15); /* Muy sutil, casi invisible */
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-top: 10px;
    transition: 0.3s;
}

.kaprekar-hint span {
    color: #00d1ff; /* Color cian para que destaque como interactivo */
    cursor: pointer;
    text-decoration: underline;
}

.kaprekar-hint span:hover {
    color: white;
    text-shadow: 0 0 5px #00d1ff;
}

/* ESTILO CONSOLA GLITCH PARA EL MODAL */
.glitch-console {
    background: #000; /* Fondo negro puro */
    color: #00d1ff; /* Texto cian típico de consola retro */
    font-family: 'Courier New', Courier, monospace; /* Fuente monoespaciada */
    padding: 30px;
    text-align: left;
    white-space: pre-wrap; /* Mantiene saltos de línea y espacios */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
