/* ============================================================
   UALC: UNIDAD DE ANÁLISIS LINGÜÍSTICO CRIMINALÍSTICO
   HOJA DE ESTILO INTEGRAL (SISTEMA DE DISEÑO NOIR-TECNOLÓGICO)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* Paleta de Colores Forense */
    --cyan: #00d4ff;
    --yellow: #FFD600;
    --red: #ff4b4b;
    --bg-noir: #05070a;
    --panel-dark: #0d1117;
    --panel-border: rgba(0, 212, 255, 0.3);
    
    /* Fuentes */
    --font-main: 'Rajdhani', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* 1. CONFIGURACIÓN GENERAL */
body {
    background-color: var(--bg-noir) !important;
    color: #ffffff;
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* 2. CONTENEDOR DE TERMINAL (ESTRUCTURA DE CADA PANTALLA) */
.terminal-ualc {
    max-width: 900px;
    margin: 20px auto;
    background: var(--panel-dark);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 3. BOTONERA DE MANDO SUPERIOR (Consigna, Pista, Instrucciones) */
.header-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid var(--panel-border);
}

/* Estilo de Botón de Mando */
.btn-mando {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Look tecnológico */
}

.btn-mando:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px var(--cyan);
}

/* 4. ÁREA DE JUEGO / ESCENARIO */
.escenario-interaccion {
    padding: 40px 20px;
    text-align: center;
    min-height: 350px;
}

.titulo-neon {
    font-size: 1.8rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

/* 5. SISTEMA DE MODALES (POP-UPS DE BOTONES) */
.overlay-ualc {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.modal-ualc {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    max-width: 90%;
    background: var(--panel-dark);
    border: 2px solid var(--yellow);
    padding: 30px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.modal-ualc h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: var(--yellow);
    text-transform: uppercase;
}

.modal-ualc p {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

/* 6. SELECCIÓN DE PERSONAJE (CARTAS) */
.contenedor-agentes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-mini {
    position: relative;
    width: 200px;
    height: 300px;
    border: 1px solid var(--cyan);
    background: #000;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tarjeta-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: 0.5s;
}

.tarjeta-mini:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.05);
}

.tarjeta-mini:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 20px var(--cyan);
}

.desc-pokemon {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 212, 255, 0.9);
    color: #000;
    padding: 15px;
    box-sizing: border-box;
    transition: 0.4s ease-in-out;
}

.tarjeta-mini:hover .desc-pokemon {
    bottom: 0;
}

/* 7. FOOTER DE ACCIÓN (Comprobar, Reiniciar, Salir) */
.footer-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--panel-border);
}

.btn-accion {
    font-family: var(--font-main);
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #444;
    background: #1a1d23;
    color: #fff;
}

.btn-accion.principal {
    background: var(--yellow);
    color: #000;
    border-color: var(--yellow);
}

.btn-accion:hover {
    filter: brightness(1.2);
}

/* 8. RESPONSIVIDAD */
@media (max-width: 600px) {
    .header-controls { flex-direction: column; align-items: center; }
    .btn-mando { width: 80%; }
    .footer-actions { flex-direction: column; gap: 10px; }
}