/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== PÁGINA DE LA AUDIENCIA ===== */
.pagina-audiencia {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #4a4a4a;
    font-size: 2.2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

input[type="text"] {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== BOTONES ===== */
.btn-uniforme {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-uniforme:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-uniforme:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-iniciar { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }
.btn-pausar { background: linear-gradient(135deg, #f39c12, #d35400); color: white; }
.btn-parar { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }
.btn-limpiar { background: linear-gradient(135deg, #95a5a6, #7f8c8d); color: white; }
.btn-copiar { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white; padding: 12px 20px; font-size: 14px; }
.btn-cerrar { background: linear-gradient(135deg, #34495e, #2c3e50); color: white; margin-top: 15px; }
.btn-exportar { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }

.btn-enviar-grande {
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 10px;
}

.btn-enviar-grande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-control {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== MENSAJES Y ESTADOS ===== */
.mensaje {
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
}

.estado-conexion {
    text-align: center;
    margin: 20px 0;
}

.estado-activo {
    background: #d4edda;
    color: #155724;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

.estado-pausado {
    background: #fff3cd;
    color: #856404;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

.estado-desconectado {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

.info {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.info ol {
    margin-left: 20px;
    margin-top: 10px;
}

.info li {
    margin-bottom: 8px;
}

/* ===== ESTILOS PARA EL PRESENTADOR ===== */
.presentador-body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
}

.presentador-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

.panel-control {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-control h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.controles {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-grupo {
    margin-bottom: 20px;
}

.control-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.control-grupo input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

.botones-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.estados {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    order: 4;
}

.estado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.estado-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.estado-activo { color: #2ecc71; font-weight: bold; text-shadow: 0 0 10px rgba(46, 204, 113, 0.3); }
.estado-pausado { color: #f39c12; font-weight: bold; }
.estado-inactivo { color: #e74c3c; font-weight: bold; text-shadow: 0 0 10px rgba(231, 76, 60, 0.3); }

.contador {
    font-weight: bold;
    font-size: 1.2em;
    color: #3498db;
}

.qr-section-presentador {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    grid-column: 1;
    order: 3;
}

.qr-container-pequeno {
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.qr-container-pequeno:hover {
    transform: scale(1.05);
}

.qr-leyenda {
    font-size: 0.8em;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.url-alternativa {
    margin-top: 15px;
}

.url-alternativa input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    background: white;
    color: #333;
}

.configuracion {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    order: 5;
}

.configuracion h4 {
    margin-bottom: 15px;
    color: #fff;
}

.config-item {
    margin-bottom: 12px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.config-item input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-gist {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.info-gist p {
    margin: 5px 0;
    font-size: 12px;
}

/* ===== NUBE DE PALABRAS ===== */
.nube-container {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 80vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nube-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.nube-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.controles-nube {
    display: flex;
    gap: 5px;
}

.nube-palabras {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-content: flex-start;
    min-height: 400px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3em;
    text-align: center;
    width: 100%;
    margin-top: 150px;
    font-style: italic;
}

/* ===== SISTEMA DE ARRASTRE ===== */
.area-enunciado-container {
    margin-bottom: 20px;
}

.area-enunciado-container h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-enunciado-container h3::before {
    content: "💡";
    font-size: 1.2em;
}

.area-enunciado {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.area-enunciado.con-palabras {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    border: 2px solid rgba(46, 204, 113, 0.5);
}

.area-enunciado.palabra-zona-objetivo {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    border: 2px dashed #3498db;
    transform: scale(1.02);
}

.enunciado-guia {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px;
}

/* ===== PALABRAS ===== */
.palabra {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    animation: aparecer 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    user-select: none;
    position: relative;
}

.palabra:hover {
    transform: scale(1.05);
}

.palabra:active {
    cursor: grabbing;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.palabra.arrastrando {
    opacity: 0.4;
    transform: scale(0.9) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Palabras usadas */
.palabra.usada {
    opacity: 0.3;
    transform: scale(0.8);
    pointer-events: none;
    cursor: not-allowed;
    text-decoration: line-through;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.palabra.usada:hover {
    transform: scale(0.8);
    cursor: not-allowed;
}

/* Palabras en enunciado */
.palabra-enunciado {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: grab;
    user-select: none;
    animation: suaveAparicion 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.palabra-enunciado:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.palabra-enunciado:active {
    cursor: grabbing;
    transform: scale(1.1) rotate(2deg);
}

.palabra-enunciado.arrastrando {
    opacity: 0.6;
    transform: scale(1.1) rotate(5deg);
}

/* ===== MODAL QR ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 2% auto;
    padding: 40px 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    min-height: 600px;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 15px solid #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.modal-content::before,
.modal-content::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #34495e;
    border-radius: 3px;
}

.modal-content::before {
    top: -10px;
}

.modal-content::after {
    bottom: -10px;
}

.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}

.qr-modal-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    min-height: 400px;
}

.qr-ampliado {
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-ampliado img {
    width: 100%;
    height: auto;
    max-width: 350px;
    border-radius: 10px;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== ANIMACIONES ===== */
@keyframes aparecer {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .presentador-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nube-container {
        grid-column: 1;
        grid-row: auto;
        min-height: 400px;
    }
    
    .container {
        padding: 15px;
    }
    
    input[type="text"] {
        font-size: 16px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .nube-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controles-nube {
        justify-content: center;
        margin-top: 10px;
    }
    
    .area-enunciado {
        min-height: 100px;
        padding: 15px;
    }
    
    .palabra {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .palabra-enunciado {
        padding: 10px 15px;
        font-size: 0.9em;
        margin: 3px;
    }
    
    .nube-palabras {
        min-height: 300px;
    }
    
    .config-item input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .botones-control {
        gap: 8px;
    }
    
    .btn-uniforme {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ===== ESTILOS PARA EL PANEL DEL CAPACITADOR ===== */

/* Cuerpo del panel */
.panel-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Barra superior */
.top-bar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.logo-text h1 {
    font-size: 1.5em;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.9em;
    opacity: 0.7;
    margin: 5px 0 0 0;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-icon, .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.user-info {
    background: rgba(52, 152, 219, 0.2);
}

.btn-logout {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* Contenedor principal */
.panel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Sección de bienvenida */
.welcome-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff;
}

.welcome-text {
    opacity: 0.8;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.session-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.info-card i {
    font-size: 24px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h4 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.info-card p {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

/* Grid de dinámicas */
.dynamics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dynamic-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dynamic-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.dynamic-card.highlight {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.dynamic-card.highlight::before {
    content: "RECOMENDADO";
    position: absolute;
    top: 10px;
    right: -25px;
    background: #667eea;
    color: white;
    padding: 3px 30px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3em;
}

.card-content p {
    margin: 0 0 15px 0;
    opacity: 0.8;
    font-size: 0.95em;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    transition: all 0.3s ease;
}

.dynamic-card:hover .card-arrow {
    color: #667eea;
    transform: translateX(5px);
}

.new-template {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.new-template:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Sesiones recientes */
.recent-sessions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-sessions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: #fff;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.session-item.activo {
    border-left: 4px solid #2ecc71;
}

.session-item.inactivo {
    border-left: 4px solid #95a5a6;
}

.session-item.empty {
    justify-content: center;
    opacity: 0.5;
    cursor: default;
}

.session-item.empty:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
}

.session-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #667eea;
}

.session-info {
    flex: 1;
}

.session-info h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.session-info p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9em;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.activo {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.inactivo {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* Footer del panel */
.panel-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    font-size: 32px;
    color: #667eea;
}

.footer-text h4 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.footer-text p {
    margin: 5px 0 0 0;
    opacity: 0.7;
    font-size: 0.9em;
}

.footer-info {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9em;
}

.footer-info p {
    margin: 5px 0;
}

.footer-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn-modal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .dynamics-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .user-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .panel-container {
        padding: 20px;
    }
    
    .dynamics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.2em;
    }
    
    .session-info {
        grid-template-columns: 1fr;
    }
    
    .dynamic-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .card-tags {
        justify-content: center;
    }
    
    .session-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Botón de inicio */
.btn-home {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Ajustes para la barra superior en lluvia.html */
.presentador-body .top-bar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.presentador-body .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.presentador-body .logo-text h1 {
    font-size: 1.2em;
    margin: 0;
    color: #fff;
}

.presentador-body .logo-subtitle {
    font-size: 0.8em;
    opacity: 0.7;
    margin: 0;
}

/* ===== ESTILOS PARA LA PÁGINA PRINCIPAL ===== */

/* Banner principal */
.main-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    padding: 40px 30px;
    margin: 0;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.banner-text {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* Botón de audiencia */
.btn-audiencia {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-audiencia:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Estadísticas rápidas */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 28px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.stat-content p {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

/* Estilos para card-stats */
.card-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85em;
    opacity: 0.8;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Header de sección */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Footer links */
.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

/* Nota del footer en audiencia */
.footer-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .main-banner {
        padding: 30px 20px;
    }
    
    .banner-content h2 {
        font-size: 2em;
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-text {
        font-size: 1em;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .user-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo-text h1 {
        font-size: 1.3em;
    }
}