/* ===========================
   Reset y Variables
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #E91E63;
    --primary-hover: #C2185B;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Eliminar el gradiente de fondo para que la imagen se vea completa */
}

/* ===========================
   Página Principal
   =========================== */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    /* Transición suave para cuando cambie la imagen */
    transition: background-image 0.3s ease-in-out;
}

/* Asegurar que cubra toda la pantalla en cualquier dispositivo */
@media screen and (max-width: 768px) {
    .background-image {
        background-size: cover;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
        /* Evitar zoom automático en iOS */
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
    }
}

/* Para tablets en modo horizontal */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .background-image {
        background-size: cover;
        background-position: center center;
    }
}

/* Para pantallas muy anchas (ultrawide) */
@media screen and (min-width: 1920px) {
    .background-image {
        background-size: cover;
        background-position: center center;
    }
}

/* Para móviles en modo portrait */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .background-image {
        background-size: cover;
        background-position: center center;
    }
}

#youtube-player-container {
    position: fixed;
    bottom: -1000px;
    left: -1000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.content-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.welcome-text, .goodbye-text {
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.8;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.content-box h1 {
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.pregunta-item {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 2px solid rgba(233, 30, 99, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pregunta-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pregunta-texto {
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.opciones-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opcion-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(233, 30, 99, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05em;
    backdrop-filter: blur(5px);
}

.opcion-label:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.1);
    transform: translateX(5px);
}

.opcion-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.opcion-label span {
    flex: 1;
}

/* ===========================
   Formularios
   =========================== */
.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(233, 30, 99, 0.5);
    border-radius: 10px;
    font-size: 1.05em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ===========================
   Botones
   =========================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-success {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2em;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* ===========================
   Admin Login
   =========================== */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===========================
   Admin Dashboard
   =========================== */
.admin-dashboard {
    background: #f0f2f5;
}

.admin-header {
    background: white;
    padding: 20px 40px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0;
    color: var(--dark-color);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.readonly-badge {
    background: linear-gradient(135deg, #607D8B, #455A64);
    color: white;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-theme {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-theme:hover .theme-icon {
    transform: rotate(20deg);
}

/* ===========================
   Modo Oscuro
   =========================== */
.admin-dashboard.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

.dark-mode .admin-header {
    background: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dark-mode .admin-header h1 {
    color: #e0e0e0;
}

.dark-mode .user-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dark-mode .admin-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.dark-mode .readonly-badge {
    background: linear-gradient(135deg, #78909C, #546E7A);
}

.dark-mode .stat-card {
    background: #0f3460;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .stat-card:hover {
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3);
}

.dark-mode .stat-label {
    color: #b0b0b0;
}

.dark-mode .admin-nav {
    background: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-btn {
    border-color: #0f3460;
    color: #b0b0b0;
    background: transparent;
}

.dark-mode .nav-btn:hover {
    background: #0f3460;
    color: #e0e0e0;
}

.dark-mode .nav-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dark-mode .admin-section {
    background: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .admin-section h2,
.dark-mode .admin-section h3,
.dark-mode .admin-section p {
    color: #e0e0e0;
}

.dark-mode .form-group label {
    color: #e0e0e0;
}

.dark-mode .form-control,
.dark-mode .form-control[readonly] {
    background: #0f3460;
    border-color: #1a1a2e;
    color: #e0e0e0;
}

.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    background: #0f3460;
}

.dark-mode .tabla-preguntas {
    background: #0f3460;
    border-color: #1a1a2e;
}

.dark-mode .tabla-preguntas th {
    background: #16213e;
    color: #e0e0e0;
    border-color: #1a1a2e;
}

.dark-mode .tabla-preguntas td {
    border-color: #1a1a2e;
    color: #e0e0e0;
}

.dark-mode .tabla-preguntas tbody tr:hover {
    background: #16213e;
}

.dark-mode .respuestas-agrupadas {
    background: transparent;
}

.dark-mode .sesion-card {
    background: #0f3460;
    border-color: #1a1a2e;
}

.dark-mode .sesion-header {
    background: #16213e;
    border-color: #1a1a2e;
}

.dark-mode .sesion-info {
    color: #b0b0b0;
}

.dark-mode .sesion-badge {
    background: var(--primary-color);
    color: white;
}

.dark-mode .respuesta-item {
    background: #16213e;
    border-color: #1a1a2e;
}

.dark-mode .respuesta-item strong {
    color: #e0e0e0;
}

.dark-mode .imagen-preview {
    background: #0f3460;
    border-color: #1a1a2e;
}

.dark-mode .imagen-preview img {
    border-color: #1a1a2e;
}

.dark-mode .text-info {
    color: #64b5f6 !important;
}

.dark-mode .btn-secondary {
    background: #424242;
    border-color: #424242;
}

.dark-mode .btn-secondary:hover {
    background: #616161;
}

.dark-mode .badge {
    background: #0f3460;
    color: #e0e0e0;
}

.dark-mode .badge.badge-success {
    background: #2e7d32;
    color: white;
}

.dark-mode .badge.badge-inactive {
    background: #616161;
    color: white;
}

.dark-mode .alert {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .alert-error {
    background: #4a1a1a;
    color: #ff5252;
    border-left-color: #ff1744;
}

.dark-mode .alert-success {
    background: #1b4d1b;
    color: #69f0ae;
    border-left-color: var(--primary-color);
}

.dark-mode .alert-warning {
    background: #4d3a1a;
    color: #ffb74d;
    border-left-color: var(--warning-color);
}

.dark-mode .text-success {
    color: #69f0ae;
}

/* ===========================
   Admin Container
   =========================== */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

/* ===========================
   Dashboard de Estadísticas
   =========================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.2);
}

.stat-icon {
    font-size: 3em;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   Navegación del Admin
   =========================== */
.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.nav-btn {
    padding: 15px 30px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.nav-btn.active:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Sistema de mostrar/ocultar secciones */
.admin-section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-section.active-section {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.admin-form {
    max-width: 800px;
}

/* ===========================
   Preguntas Cards
   =========================== */
.pregunta-card {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.pregunta-card:hover {
    box-shadow: var(--shadow);
}

.pregunta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pregunta-numero {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
}

.pregunta-actions {
    display: flex;
    gap: 10px;
}

.pregunta-body p {
    margin-bottom: 10px;
}

/* ===========================
   Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.modal-content form {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

#opciones-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.opcion-input-group {
    display: flex;
    gap: 10px;
}

.opcion-input-group input {
    flex: 1;
}

/* ===========================
   Alertas y Mensajes
   =========================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--warning-color);
}

.text-success {
    color: var(--primary-color);
    font-weight: 600;
}

.text-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* ===========================
   Error Container
   =========================== */
.error-container {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin: 50px auto;
    box-shadow: var(--shadow-lg);
}

.error-container h1 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.error-container p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}

.error-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.error-container a:hover {
    text-decoration: underline;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .content-box {
        padding: 25px;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-header-left {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .admin-header h1 {
        font-size: 1.5em;
    }
    
    .user-badge {
        font-size: 0.75em;
    }
    
    .admin-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-theme {
        order: -1;
        width: 100%;
    }
    
    .admin-container {
        padding: 0 20px 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .pregunta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content {
        margin: 20px;
    }
}

/* ===========================
   Respuestas Agrupadas
   =========================== */
.respuestas-agrupadas {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.sesion-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sesion-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.2);
}

.sesion-header {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(233, 30, 99, 0.05) 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(233, 30, 99, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.sesion-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.sesion-numero {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
}

.sesion-fecha {
    color: #666;
    font-size: 0.95em;
}

.sesion-ip {
    color: #999;
    font-size: 0.9em;
    font-family: monospace;
}

.sesion-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.sesion-respuestas {
    padding: 25px;
}

.respuesta-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.respuesta-item:last-child {
    margin-bottom: 0;
}

.respuesta-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.respuesta-pregunta {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.5;
}

.respuesta-pregunta strong {
    color: var(--primary-color);
    font-weight: 700;
}

.respuesta-texto {
    color: #444;
    font-size: 1.1em;
    line-height: 1.6;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Responsive para respuestas */
@media (max-width: 768px) {
    .sesion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sesion-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sesion-badge {
        align-self: flex-start;
    }
    
    .respuesta-item {
        padding: 15px;
    }
}


/* ===========================
   Animaciones adicionales
   =========================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===========================
   Imagen Preview y Upload
   =========================== */
.imagen-preview {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.imagen-preview img {
    display: block;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

input[type="file"].form-control {
    padding: 10px;
    cursor: pointer;
}

input[type="file"].form-control::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: var(--primary-hover);
}

#preview-nueva-imagen img {
    box-shadow: var(--shadow);
}

/* ===========================
   Botones del Formulario
   =========================== */
.botones-formulario {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.botones-formulario .btn {
    min-width: 200px;
    font-size: 1.1em;
    padding: 15px 35px;
}

@media (max-width: 768px) {
    .botones-formulario {
        flex-direction: column;
    }
    
    .botones-formulario .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===========================
   Estilos adicionales para las preguntas
   =========================== */
.pregunta-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.4);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(233, 30, 99, 0.8);
}

/* Scrollbar personalizado para el contenedor */
.content-box::-webkit-scrollbar {
    width: 10px;
}

.content-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.content-box::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.8);
    border-radius: 10px;
}

.content-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Mejora visual del título principal */
#pantalla-preguntas h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
}

/* Efecto de selección de radio button */
.opcion-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Borde fucsia cuando está checked */
.opcion-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.08);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* ===========================
   Responsive Adicional
   =========================== */

/* Móviles pequeños (portrait) */
@media (max-width: 480px) {
    .content-box {
        padding: 20px;
        border-radius: 10px;
        max-width: 100%;
    }
    
    .welcome-text, .goodbye-text {
        font-size: 1em;
    }
    
    h1 {
        font-size: 1.5em !important;
    }
    
    h2, h3 {
        font-size: 1.2em !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pregunta-item {
        padding: 20px;
    }
    
    .botones-formulario {
        flex-direction: column;
        gap: 10px;
    }
    
    .botones-formulario .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Tablets (portrait) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-box {
        max-width: 750px;
        padding: 40px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Pantallas grandes */
@media (min-width: 1440px) {
    .content-box {
        max-width: 1200px;
        padding: 60px;
    }
    
    .container {
        padding: 30px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .content-box {
        max-height: 85vh;
        padding: 20px;
    }
    
    .container {
        padding: 10px;
    }
    
    .pregunta-item {
        padding: 15px;
    }
}
