:root {
    --zoom-nivel: 1;
}

/* Reset global y configuración base */
* {
    box-sizing: border-box;
}

body {
    background: #0a0a0b;
    color: #f0f0f0;
    font-family: 'Outfit', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100vh;
}

/* Área de contenido con Zoom de Fuente */
#admin-slide-viewer,
#slide-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    padding: 40px;
    /* Reducido de 60px para ganar espacio vertical */
    background: rgba(30, 30, 35, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Base para el escalado em */
    font-size: calc(1rem * var(--zoom-nivel));
    transition: font-size 0.2s ease-in-out;
}

/* Tipografía Gamificada - Usamos 'em' para que el zoom funcione */
#admin-slide-viewer h1,
#slide-container h1 {
    font-size: 2.5em;
    /* Título principal */
    color: #00ffcc;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    text-align: center;
}

#admin-slide-viewer h2,
#slide-container h2 {
    font-size: 2em;
    /* Subtítulo, ahora más pequeño que el H1 */
    color: #fff;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 300;
}

/* El div de contenido ya no tiene font-size para no multiplicar el de sus hijos */
#admin-slide-viewer div,
#slide-container div {
    line-height: 1.4;
}

/* Aplicamos el tamaño de contenido a los elementos de texto directos */
#admin-slide-viewer p,
#slide-container p,
#admin-slide-viewer li,
#slide-container li,
#admin-slide-viewer span,
#slide-container span {
    font-size: 1.6em;
    /* Contenido legible pero balanceado */
}



ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

li::before {
    content: '🚀';
    position: absolute;
    left: 0;
}

/* Contador de Slide (Inferior Derecha) */
#slide-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    z-index: 500;
    font-family: 'Inter', sans-serif;
}

/* Navegación Vertical (Superior Derecha) */
.floating-nav {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.floating-nav button {
    width: 42px;
    /* Reducido 30% de 60px */
    height: 42px;
    font-size: 1.1rem;
    /* Reducido 30% de 1.5rem */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
}

/* Botones de Opción Dinámicos */
.options-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vote-btn {
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 1.2em;
    /* Cambiado de 2rem a em para habilitar el zoom */
    font-weight: bold;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
    min-width: 250px;
    text-transform: none;
    /* Quitamos uppercase para permitir minúsculas */
}

.vote-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.3);
}

.vote-btn:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Paleta de Colores */
.c0 {
    background: linear-gradient(135deg, #ae00ff, #7000ff);
}

/* Morado */
.c1 {
    background: linear-gradient(135deg, #00d2ff, #0095ff);
}

/* Azul */
.c2 {
    background: linear-gradient(135deg, #ff930f, #ff5e3a);
}

/* Naranja */
.c3 {
    background: linear-gradient(135deg, #ff00cc, #ff0066);
}

/* Rosa */
.c4 {
    background: linear-gradient(135deg, #00ff00, #009900);
}

/* Verde */

/* Modal de Avance (Admin) */
#modal-avance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.98);
    z-index: 2000;
    display: none;
    padding: 0;
}

#canvas-participantes {
    position: absolute;
    top: 15vh;
    left: 5vw;
    width: 90vw;
    height: 75vh;
    overflow: hidden;
}

.tag-docente {
    position: absolute;
    padding: 10px 20px;
    background: #222;
    border: 2px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2em;
    white-space: nowrap;
    transition: all 0.5s ease;
}

.tag-docente.ready {
    border-color: #00ffcc;
    box-shadow: 0 0 20px #00ffcc;
    color: #00ffcc;
}

/* Gráfico de Barras */
#contenedor-grafico {
    display: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 12vh;
    width: 100%;
    height: 60vh;
    gap: 60px;
}

.barra {
    width: 140px;
    border-radius: 15px 15px 0 0;
    position: relative;
    transition: height 1s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-weight: 900;
    font-size: 2.5em;
    padding-bottom: 20px;
}

.barra-label {
    position: absolute;
    bottom: -50px;
    /* Un poco más abajo para que no choque con la base */
    text-align: center;
    width: 130px;
    /* Reducido drásticamente para evitar solapamiento */
    color: #00ffcc;
    font-weight: bold;
    font-size: 0.8em;
    /* Reducido para que quepa en el ancho */
    line-height: 1.1;
    word-wrap: break-word;
}

/* General Buttons */
button {
    background: #333;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

button:hover {
    background: #555;
}

/* Menú Overlay horizontal a vertical */
#menu-overlay {
    position: fixed;
    top: 100px;
    right: 100px;
    background: #1a1a1b;
    border-radius: 20px;
    padding: 25px;
    width: 300px;
    display: none;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #333;
}

.bloque-titulo {
    color: #00ffcc;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.slide-item {
    display: block;
    padding: 8px 10px;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 2px 0;
}

/* Botón y Modal de Información Extra */
.btn-info-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Cambiado de right a left */
    right: auto;
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    border: 2px solid #00ffcc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    transition: all 0.3s;
    z-index: 100;
}

.opcion-btn {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 15px 25px;
    /* Ajustado de 20px */
    margin: 10px auto;
    border-radius: 15px;
    font-size: 0.7em;
    /* Cambiado de 1.2rem a 0.7em para el zoom */
    cursor: pointer;
    transition: all 0.3s;
    width: 90%;
    max-width: 600px;
    text-align: center;
    text-transform: none;
    /* Quitamos uppercase para frases largas */
    font-weight: 500;
}

.btn-info-modal:hover {
    background: #00ffcc;
    color: #000;
    transform: scale(1.1);
}

#modal-info-generic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

#modal-info-generic .modal-content {
    background: #1e1e23;
    width: 80%;
    max-width: 900px;
    padding: 40px;
    border-radius: 30px;
    border: 2px solid #00ffcc;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.copy-box {
    background: #111;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    border: 1px dashed #444;
}

.copy-box pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 1.2rem;
    color: #00ffcc;
}

.btn-copy {
    background: #00ffcc;
    color: #000;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.btn-copy:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn-close-modal {
    background: #ff4b2b;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}