:root {
    --primary-color: #005cc8;   /* Azul oficial JuegAgs */
    --accent-color: #004494;    /* Azul profundo para hover y estados activos */
    --light-accent: #e6f0fa;   /* Azul suave para resaltados/fondos */
    --bg-color: #f4f7fa;       /* Fondo gris frío claro */
    --card-bg: #ffffff;
    --text-color: #1e293b;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header enfocado únicamente en el Logotipo */
header {
    background-color: #ffffff; /* Fondo blanco para que el logo resalte impecable */
    text-align: center;
    padding: 25px 20px;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.site-logo {
    max-width: 260px; /* Tamaño destacado para el logo */
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.15));
}

/* Marquesina de Cumpleañeros (Estilo suavizado) */
.birthday-ticker {
    background-color: var(--light-accent);
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 1px solid #d0e1f9;
}

/* Navegación con los tonos oficiales */
nav {
    background-color: #003370; /* Azul oscuro corporativo para la barra */
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ffffff;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    border-bottom: 4px solid transparent;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Pestaña activa resaltada en azul vibrante */
nav a.active {
    background-color: var(--primary-color);
    border-bottom: 4px solid #ffffff;
    color: #ffffff;
}

/* Contenedor de Contenido */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-panel {
    display: none; /* Controlado por jQuery */
}

.section-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Componentes de Tarjetas e Interfaz */
.card {
    background: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 8px;
    margin-top: 0;
}

/* Buscador de Ludoteca */
.search-box {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.grid-ludoteca {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: #fff;
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.game-meta {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Eventos y Formularios */
.event-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 15px 0;
}
.event-item:last-child { border-bottom: none; }

/* Botones con el azul oficial */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* Q/A Estilo Acordeón */
.qa-item {
    margin-bottom: 15px;
}

.qa-question {
    background-color: var(--light-accent);
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.qa-answer {
    padding: 15px;
    background: #fff;
    border: 1px solid #eaedf0;
    border-top: none;
    display: none;
    white-space: pre-line;
}

.form-registro {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 10px;
}
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 8px; box-sizing: border-box; }

/* Modal de Confirmación Personalizado */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-top: 5px solid var(--primary-color);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.modal-card p {
    color: var(--text-color);
    font-size: 0.95em;
    margin: 15px 0 25px 0;
}

/* Estado de Error para el Modal */
.modal-card.modal-error {
    border-top-color: #e74c3c; /* Rojo para alertas de error */
}

.modal-card.modal-error h3 {
    color: #c0392b;
}

/* Resaltado de inputs con error */
.input-error {
    border: 1.5px solid #e74c3c !important;
    background-color: #fdf2f2;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 50px;
}
