/* Nordic Hygge Vibe - Diseño Premium Elegante */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fondo del área de presentación (videos, PDF, PowerPoint); se puede cambiar desde el catálogo */
    --presentation-bg: #0b162c;
    /* Paleta Nordic Hygge */
    --primary-color: #f5f5dc;
    --secondary-color: #deb887;
    --accent-color: #8b4513;
    --background-color: #000000;
    --text-color: #708090;
    --heading-font: 'Cabin', serif;
    --body-font: 'Fira Sans', sans-serif;
    
    /* Variaciones de colores */
    --primary-light: #fafaf0;
    --primary-dark: #e6e6d0;
    --secondary-light: #f0e6d2;
    --secondary-dark: #c9a870;
    --accent-light: #a0522d;
    --accent-dark: #654321;
    --bg-light: #1a1a1a;
    --bg-dark: #000000;
    --text-light: #a0a8b0;
    --text-dark: #556b7a;
    
    /* Sombras suaves */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(245, 245, 220, 0.3);
    
    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background: #000000;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- Login overlay (Corporate Refresh - azul oscuro y elegancia) --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 120% 80% at 15% 15%, rgba(6, 26, 83, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 85% 85%, rgba(11, 22, 44, 0.6) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(229, 109, 62, 0.04) 0%, transparent 60%),
        linear-gradient(165deg, #0b162c 0%, #061a53 35%, #0a1a3e 65%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: loginFadeIn 0.6s ease-out;
}

/* Patrón sutil de puntos para textura elegante */
.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.login-overlay.hidden {
    display: none;
}

@keyframes loginFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-card {
    position: relative;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 50%, rgba(11, 22, 44, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 52px 56px;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 0 0 1px rgba(6, 26, 83, 0.4),
        0 0 0 1px rgba(229, 109, 62, 0.06) inset,
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 0 100px rgba(6, 26, 83, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    animation: loginCardSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginCardSlide {
    from {
        opacity: 0;
        transform: translateY(-32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(6, 26, 83, 0.5)) drop-shadow(0 8px 32px rgba(6, 26, 83, 0.25));
}

.login-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(6, 26, 83, 0.5);
}

.login-title {
    font-family: 'Manrope', var(--heading-font);
    font-size: 30px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.login-subtitle {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}

.login-form .control-group {
    margin-bottom: 26px;
}

.login-form .control-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 10px;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--body-font);
    background: rgba(6, 26, 83, 0.25);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.login-input::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.login-input:focus {
    outline: none;
    border-color: rgba(6, 26, 83, 0.8);
    background: rgba(6, 26, 83, 0.35);
    box-shadow: 0 0 0 3px rgba(6, 26, 83, 0.25), 0 0 20px rgba(229, 109, 62, 0.08);
}

.login-error {
    color: #f87171;
    font-size: 13px;
    margin-bottom: 16px;
    min-height: 20px;
}

.login-error:empty {
    display: none;
}

.login-btn {
    margin-top: 16px;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #e56d3e 0%, #f08a63 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(229, 109, 62, 0.45) !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(229, 109, 62, 0.25);
    transition: all 0.3s ease;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f08a63 0%, #e56d3e 100%) !important;
    box-shadow: 0 8px 28px rgba(229, 109, 62, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: translateY(-1px);
}

/* Barra vertical azul oscuro - acento elegante */
.login-card::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #061a53 20%, #0b3d91 50%, #061a53 80%, transparent);
    border-radius: 20px 0 0 20px;
    box-shadow: 0 0 20px rgba(6, 26, 83, 0.5);
}

/* Línea naranja superior - acento corporativo */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(229, 109, 62, 0.6) 50%, transparent 90%);
    border-radius: 20px 20px 0 0;
}

/* Efecto de fondo animado sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 245, 220, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(222, 184, 135, 0.02) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Panel lateral - Estilo Nordic Hygge */
.control-panel {
    width: 400px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-right: 2px solid rgba(222, 184, 135, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-medium);
    z-index: 10;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(222, 184, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at top right, rgba(245, 245, 220, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Ocultar scrollbar */
.control-panel::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.control-panel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.control-panel.collapsed {
    transform: translateX(-100%);
    width: 0;
    border-right: none;
}

/* Header del panel */
.panel-header {
    padding: 32px 28px 28px 28px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    z-index: 1;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 245, 220, 0.2) 0%, transparent 70%);
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 245, 220, 0.5) 50%, transparent 100%);
    pointer-events: none;
}

.panel-header h2 {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
    animation: fadeInDown 0.6s ease-out;
}

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

.panel-header h2::before {
    content: '⚙️';
    font-size: 22px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    animation: spinSlow 25s linear infinite;
    opacity: 0.95;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.toggle-panel-btn {
    position: relative;
    z-index: 2;
    background: rgba(245, 245, 220, 0.25);
    border: 2px solid rgba(245, 245, 220, 0.4);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-panel-btn:hover {
    background: rgba(245, 245, 220, 0.4);
    border-color: rgba(245, 245, 220, 0.6);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.toggle-panel-btn:active {
    transform: scale(0.95);
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.control-panel.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* Botón flotante */
.show-panel-btn {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border: 2px solid rgba(245, 245, 220, 0.3);
    color: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    animation: pulseButton 3s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: var(--shadow-strong);
    }
    50% {
        box-shadow: var(--shadow-strong), var(--shadow-glow);
    }
}

.show-panel-btn:hover {
    transform: scale(1.15) translateY(-3px) rotate(5deg);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
}

.show-panel-btn:active {
    transform: scale(0.9);
}

/* Secciones del panel */
.panel-section {
    padding: 36px 32px;
    border-bottom: 1px solid rgba(222, 184, 135, 0.2);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-width: 0;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out backwards;
}

.panel-section:nth-child(1) { animation-delay: 0.1s; }
.panel-section:nth-child(2) { animation-delay: 0.2s; }
.panel-section:nth-child(3) { animation-delay: 0.3s; }

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

.panel-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 6px 6px 0;
}

.panel-section:hover {
    background: linear-gradient(180deg, rgba(245, 245, 220, 0.3) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-bottom-color: rgba(222, 184, 135, 0.4);
    transform: translateX(2px);
}

.panel-section:hover::before {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-light) 100%);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.4);
    width: 6px;
}

.panel-section h3 {
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 28px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.panel-section h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.3) 0%, transparent 100%);
    border-radius: 2px;
}

/* Grupos de control */
.control-group {
    margin-bottom: 28px;
    position: relative;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.control-group:hover label {
    color: var(--accent-color);
}

/* Selects */
.select-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid rgba(222, 184, 135, 0.4);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--body-font);
    background-color: rgba(245, 245, 220, 0.6);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b4513' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.select-input:hover {
    border-color: var(--accent-color);
    background-color: rgba(245, 245, 220, 0.9);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.select-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2), 0 4px 16px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

/* Botones */
.btn {
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--heading-font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-right: 0;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:last-child {
    margin-bottom: 0;
}

.btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(245, 245, 220, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 245, 220, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(245, 245, 220, 0.4);
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(245, 245, 220, 0.7);
    color: var(--accent-dark);
    border: 2px solid rgba(222, 184, 135, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Estado */
.status {
    margin-top: 28px;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.2) 0%, rgba(245, 245, 220, 0.3) 100%);
    border: 2px solid rgba(222, 184, 135, 0.4);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--body-font);
    color: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: 14px;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2), 0 0 0 8px rgba(139, 69, 19, 0.1);
    animation: pulseStatus 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseStatus {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Sliders */
.slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(222, 184, 135, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider:hover {
    background: rgba(222, 184, 135, 0.5);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: 3px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3), 0 0 0 0 rgba(139, 69, 19, 0.2);
    margin-top: -7px;
}

.slider::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4), 0 0 0 8px rgba(139, 69, 19, 0.15);
    border-color: var(--accent-light);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3), 0 0 0 4px rgba(139, 69, 19, 0.2);
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: 3px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
    border-color: var(--accent-light);
}

/* Checkbox */
input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    accent-color: var(--accent-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid rgba(222, 184, 135, 0.5);
}

input[type="checkbox"]:hover {
    transform: scale(1.15);
    border-color: var(--accent-color);
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group .checkbox-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* Más espacio visual cuando se ocultan los subtítulos inferiores */
.presentation-area.lower-subtitles-disabled .presentation-content {
    padding-bottom: 24px;
}

.presentation-area.lower-subtitles-disabled #subtitleOverlaySecondary {
    display: none !important;
}

/* Área de carga de archivos */
.file-upload-area {
    border: 3px dashed rgba(222, 184, 135, 0.5);
    border-radius: var(--radius-lg);
    padding: 48px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.3) 0%, rgba(222, 184, 135, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(222, 184, 135, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.file-upload-area:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.5) 0%, rgba(222, 184, 135, 0.2) 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-area:active {
    transform: translateY(-2px);
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-placeholder {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    margin-bottom: 20px;
    display: inline-block;
}

.upload-icon {
    font-size: 64px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.15) rotate(10deg);
    animation: none;
}

.upload-main-text {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.upload-placeholder p {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--text-dark);
    margin: 6px 0;
}

.upload-hint {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 12px !important;
}

.upload-formats-badge {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.format-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 69, 19, 0.15);
    color: var(--accent-dark);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--body-font);
    letter-spacing: 0.5px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.file-upload-area:hover .format-tag {
    background: rgba(139, 69, 19, 0.25);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

/* Sección de enlaces externos */
.external-link-section {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.4) 0%, rgba(222, 184, 135, 0.2) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(222, 184, 135, 0.4);
    transition: all 0.4s ease;
    overflow: visible;
    min-width: 0;
}

.external-link-section:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.external-link-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.link-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.external-link-label {
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0;
    letter-spacing: 0.3px;
}

.external-link-input-wrapper {
    width: 100%;
    margin-bottom: 16px;
}

.external-link-input {
    width: 100%;
    min-height: 90px;
    padding: 14px 18px;
    border: 2px solid rgba(222, 184, 135, 0.5);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--body-font);
    background-color: rgba(245, 245, 220, 0.7);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    line-height: 1.6;
    box-sizing: border-box;
}

.external-link-input::placeholder {
    color: var(--text-light);
}

.external-link-input:hover {
    border-color: var(--accent-color);
    background-color: rgba(245, 245, 220, 0.9);
}

.external-link-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2);
}

.external-link-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.btn-add-link {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--primary-color);
    border: 2px solid rgba(245, 245, 220, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--heading-font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-link span {
    display: inline-block;
}

.btn-add-link:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(245, 245, 220, 0.5);
}

.btn-add-link:active {
    transform: translateY(0);
}

.external-link-hint {
    font-family: var(--body-font);
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid rgba(222, 184, 135, 0.3);
}

/* Catálogo de colores de fondo de presentación */
.color-catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.color-swatch {
    aspect-ratio: 1;
    min-width: 0;
    border: 2px solid rgba(222, 184, 135, 0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.color-swatch:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-swatch.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.35);
}

/* Lista de archivos */
.files-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(222, 184, 135, 0.3);
}

.files-count {
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.files-list {
    margin-top: 0;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.files-list::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.files-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(245, 245, 220, 0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(222, 184, 135, 0.4);
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.file-item:hover {
    background: rgba(245, 245, 220, 0.8);
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.file-item:hover::before {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.file-item.active {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
}

.file-item.active::before {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-light) 100%);
    width: 5px;
}

.file-icon {
    font-size: 24px;
    margin-right: 14px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.file-type {
    font-family: var(--body-font);
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.file-remove {
    background: rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(139, 69, 19, 0.3);
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.file-remove:hover {
    background: rgba(139, 69, 19, 0.25);
    border-color: var(--accent-color);
    transform: scale(1.15) rotate(90deg);
}

.file-remove:active {
    transform: scale(0.95);
}

/* Barra de progreso de subida */
.upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-sm);
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(222, 184, 135, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

.files-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}

.empty-icon-small {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
    filter: grayscale(0.5);
}

.empty-text {
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.empty-hint-small {
    font-family: var(--body-font);
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Área de presentación */
.presentation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--presentation-bg, var(--background-color)) !important;
    position: relative;
    overflow: hidden;
}

/* Botón de pantalla completa */
.fullscreen-toggle-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 2px solid rgba(245, 245, 220, 0.3);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(101, 67, 33, 0.8) 100%);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-medium);
    animation: fadeInButton 0.6s ease-out 0.3s backwards;
}

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

.fullscreen-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(101, 67, 33, 0.95) 100%);
    border-color: rgba(245, 245, 220, 0.5);
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-strong), 0 0 20px rgba(139, 69, 19, 0.4);
}

.fullscreen-toggle-btn:active {
    transform: scale(0.95);
}

.fullscreen-toggle-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.fullscreen-toggle-btn:hover svg {
    transform: rotate(90deg);
}

.fullscreen-toggle-btn.active {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
    border-color: rgba(245, 245, 220, 0.6);
    box-shadow: var(--shadow-strong), 0 0 30px rgba(139, 69, 19, 0.6);
}

.fullscreen-toggle-btn.active:hover svg {
    transform: rotate(-90deg);
}

.presentation-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.presentation-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    padding-top: 140px; /* Margen superior reducido para que los subtítulos no tapen tanto */
    overflow: auto;
    background: transparent !important; /* Mantener fondo transparente para que se vea el fondo negro */
    position: relative;
    z-index: 1;
}

.empty-state {
    text-align: center;
    color: rgba(245, 245, 220, 0.6);
    animation: fadeIn 1s ease-out;
}

.empty-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 8px 24px rgba(245, 245, 220, 0.4));
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 16px rgba(139, 69, 19, 0.3));
}

/* Animación principal del icono */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 8px 24px rgba(245, 245, 220, 0.4));
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
        filter: drop-shadow(0 12px 32px rgba(245, 245, 220, 0.6));
    }
}

/* Animación del marco de la pantalla */
.empty-icon .screen-frame {
    animation: screenPulse 3s ease-in-out infinite;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
}

@keyframes screenPulse {
    0%, 100% {
        stroke-opacity: 0.8;
        stroke-width: 3;
    }
    50% {
        stroke-opacity: 1;
        stroke-width: 4;
    }
}

/* Animación del contenido de la pantalla */
.empty-icon .screen-content {
    animation: contentFade 2.5s ease-in-out infinite;
}

@keyframes contentFade {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.3;
    }
}

/* Animación de las líneas de contenido */
.empty-icon .content-line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: lineDraw 2s ease-in-out infinite;
}

.empty-icon .line-1 {
    animation-delay: 0.3s;
}

.empty-icon .line-2 {
    animation-delay: 0.6s;
}

.empty-icon .line-3 {
    animation-delay: 0.9s;
}

@keyframes lineDraw {
    0% {
        stroke-dashoffset: 50;
        opacity: 0;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: -50;
        opacity: 0;
    }
}

/* Animación de las partículas */
.empty-icon .particle {
    animation: particleFloat 3s ease-in-out infinite;
}

.empty-icon .particle-1 {
    animation-delay: 0s;
}

.empty-icon .particle-2 {
    animation-delay: 1s;
}

.empty-icon .particle-3 {
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(5px, -8px) scale(1.3);
        opacity: 0.7;
    }
}

/* Animación del brillo */
.empty-icon .shine-overlay {
    animation: shineSweep 3s ease-in-out infinite;
}

@keyframes shineSweep {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.5;
        transform: translateX(0%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Animación de los soportes */
.empty-icon .stand-base {
    animation: standPulse 2s ease-in-out infinite;
}

.empty-icon .stand-leg {
    animation: legGlow 2s ease-in-out infinite;
}

@keyframes standPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: scaleY(1.05);
    }
}

@keyframes legGlow {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 2;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2.5;
    }
}

/* Efecto hover adicional */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.empty-state h2 {
    font-family: var(--heading-font);
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.empty-state p {
    font-family: var(--body-font);
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-light);
}

.empty-hint {
    font-size: 14px !important;
    opacity: 0.7;
    font-style: italic;
}

/* Contenido multimedia */
.media-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    animation: fadeInScale 0.6s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-image {
    max-width: 95%;
    max-height: calc(100vh - 250px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    object-fit: contain;
    border: 3px solid rgba(245, 245, 220, 0.2);
    position: relative;
    z-index: 1;
}

.media-video {
    max-width: 95%;
    max-height: calc(100vh - 250px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    border: 3px solid rgba(245, 245, 220, 0.2);
    position: relative;
    z-index: 1;
}

.media-slide {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    max-width: 95%;
    max-height: calc(100vh - 250px);
    overflow: auto;
    margin: 0 auto;
    border: 3px solid rgba(222, 184, 135, 0.3);
    animation: fadeInScale 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.media-slide h1, .media-slide h2, .media-slide h3 {
    font-family: var(--heading-font);
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.media-slide p {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 16px;
}

.media-slide table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-slide th {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--primary-color);
    padding: 14px;
    text-align: left;
    font-weight: 700;
    font-family: var(--heading-font);
}

.media-slide td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(222, 184, 135, 0.3);
    font-family: var(--body-font);
}

.media-slide tr:hover {
    background: rgba(222, 184, 135, 0.1);
}

/* Iframes y contenido embebido - z-index bajo para que los subtítulos estén por encima */
.presentation-content iframe,
.presentation-content .iframe-wrapper,
.presentation-content .iframe-container,
.presentation-content .office-online-container {
    position: relative;
    z-index: 1 !important;
    max-width: 95%;
    max-height: calc(100vh - 250px);
}

.presentation-content iframe {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 1 !important;
}

/* Optimización para videos en Office Viewer - tamaño máximo */
.office-viewer-container iframe,
.office-online-container iframe {
    width: 100% !important;
    height: calc(100vh - 120px) !important;
    min-height: 85vh !important;
    min-width: 100% !important;
    background: #000000;
    max-width: 100vw;
    max-height: calc(100vh - 120px);
}

/* Mejorar rendimiento de reproducción de video */
.office-viewer-container {
    will-change: contents;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    width: 100%;
    height: 100%;
    min-height: 85vh;
}

/* Asegurar que el contenedor de presentación use todo el espacio disponible */
.presentation-content .office-viewer-container {
    min-height: 85vh;
    width: 100%;
    height: 100%;
}

/* Visor de PDF por páginas (modo presentación) */
.presentation-content .pdf-slide-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.presentation-content .pdf-page-canvas {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Asegurar que PDFs también tengan z-index bajo */
.presentation-content embed,
.presentation-content object {
    position: relative;
    z-index: 1 !important;
}

/* Overlay de subtítulos - Anclado arriba y centrado - Por detrás del menú lateral */
.subtitle-overlay {
    position: fixed !important;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 12px 80px;
    border-radius: var(--radius-lg);
    max-width: 98%;
    min-width: 85%;
    text-align: center;
    z-index: 5 !important; /* Por debajo del panel lateral (z-index: 10) pero por encima del contenido */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: opacity 0.4s;
    opacity: 0;
    pointer-events: auto; /* Permitir interacción cuando está visible */
    user-select: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: default; /* Ya no es arrastrable, está anclado */
}

.subtitle-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.subtitle-text {
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    letter-spacing: 0.3px;
    color: #ffffff;
    margin: 0;
}

/* Pantalla completa */
.presentation-area.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.presentation-area.fullscreen .control-panel {
    display: none;
}

.presentation-area.fullscreen .fullscreen-toggle-btn {
    top: 20px;
    right: 20px;
}

.presentation-area.fullscreen .subtitle-overlay {
    top: 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 80px;
}

.presentation-area.fullscreen .presentation-content {
    padding-top: 130px; /* Margen superior ajustado para pantalla completa */
}

/* Responsive */
@media (max-width: 1024px) {
    .control-panel {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .control-panel {
        width: 100%;
        max-height: 50vh;
    }

    .subtitle-text {
        font-size: 28px;
    }

    .subtitle-overlay {
        min-width: 90%;
        max-width: 95%;
        padding: 10px 30px;
    }
    
    .subtitle-text {
        font-size: 24px;
        line-height: 1.2;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === Corporate Refresh Overrides === */
:root {
    --primary-color: #f8fafc;
    --secondary-color: #e2e8f0;
    --accent-color: #e56d3e;
    --accent-light: #f08a63;
    --accent-dark: #c8582f;
    --background-color: #0b162c;
    --text-color: #e5e7eb;
    --heading-font: 'Manrope', sans-serif;
    --body-font: 'Inter', sans-serif;
    --surface-color: #111827;
    --panel-bg: #0f172a;
    --panel-border: rgba(148, 163, 184, 0.2);
    --muted-color: #94a3b8;
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.35);
    --shadow-medium: 0 12px 40px rgba(15, 23, 42, 0.45);
    --shadow-strong: 0 18px 60px rgba(15, 23, 42, 0.6);
    --shadow-glow: 0 0 30px rgba(229, 109, 62, 0.25);
}

body {
    background: var(--background-color);
    color: var(--text-color);
}

body::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(229, 109, 62, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 26, 83, 0.18) 0%, transparent 55%);
}

.control-panel {
    background: var(--panel-bg);
    border-right: 1px solid var(--panel-border);
    box-shadow: var(--shadow-medium);
}

.panel-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: var(--primary-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    overflow: visible;
    align-items: flex-start;
}

.panel-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    letter-spacing: -0.3px;
}

.panel-header h2::before {
    content: '';
    display: none;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.brand-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 600;
}

.brand-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(6, 26, 83, 0.35));
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.4;
}

.toggle-panel-btn {
    background: rgba(229, 109, 62, 0.18);
    border: 1px solid rgba(229, 109, 62, 0.35);
    color: var(--primary-color);
    box-shadow: none;
    align-self: flex-start;
}

.toggle-panel-btn:hover {
    background: rgba(229, 109, 62, 0.28);
    border-color: rgba(229, 109, 62, 0.5);
    transform: translateY(-1px);
}

.panel-section {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.panel-section h3 {
    color: rgba(226, 232, 240, 0.85);
    font-size: 11px;
}

.panel-section h3::after {
    background: linear-gradient(90deg, rgba(229, 109, 62, 0.35) 0%, transparent 100%);
}

.section-help {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted-color);
    line-height: 1.6;
}

.control-group label {
    color: rgba(226, 232, 240, 0.9);
}

.select-input,
.external-link-input {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--primary-color);
    box-shadow: none;
}

.select-input:hover,
.external-link-input:hover {
    border-color: rgba(229, 109, 62, 0.7);
    background-color: rgba(15, 23, 42, 0.95);
}

.select-input:focus,
.external-link-input:focus {
    border-color: rgba(229, 109, 62, 0.9);
    box-shadow: 0 0 0 3px rgba(229, 109, 62, 0.2);
}

.btn {
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #e56d3e 0%, #f08a63 100%);
    color: #ffffff;
    border: 1px solid rgba(229, 109, 62, 0.4);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    color: var(--primary-color);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.status {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--primary-color);
}

.status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 0 8px rgba(34, 197, 94, 0.1);
}

.status-indicator.error {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 0 0 8px rgba(239, 68, 68, 0.1);
}

.file-upload-area {
    border: 2px dashed rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.5);
}

.file-upload-area.is-dragover {
    border-color: rgba(229, 109, 62, 0.9);
    background: rgba(229, 109, 62, 0.12);
    box-shadow: var(--shadow-soft);
}

.upload-main-text {
    color: var(--primary-color);
}

.upload-placeholder p {
    color: rgba(226, 232, 240, 0.7);
}

.format-tag {
    background: rgba(229, 109, 62, 0.12);
    color: rgba(226, 232, 240, 0.85);
    border: 1px solid rgba(229, 109, 62, 0.3);
}

.external-link-section {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.external-link-label {
    color: var(--primary-color);
}

.btn-add-link {
    background: linear-gradient(135deg, #e56d3e 0%, #f08a63 100%);
    color: #ffffff;
    border: 1px solid rgba(229, 109, 62, 0.4);
    text-transform: none;
    letter-spacing: 0.3px;
}

.external-link-hint {
    color: var(--muted-color);
}

.color-swatch {
    border-color: rgba(148, 163, 184, 0.5);
}

.color-swatch:hover {
    border-color: rgba(229, 109, 62, 0.7);
}

.color-swatch.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(229, 109, 62, 0.3);
}

.files-count {
    color: rgba(226, 232, 240, 0.8);
}

.file-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.file-item:hover {
    border-color: rgba(229, 109, 62, 0.6);
}

.file-name {
    color: var(--primary-color);
}

.file-type {
    color: rgba(226, 232, 240, 0.6);
}

.file-remove {
    background: rgba(229, 109, 62, 0.12);
    border: 1px solid rgba(229, 109, 62, 0.3);
    color: #f5b195;
}

.presentation-area {
    background: var(--presentation-bg, var(--background-color)) !important;
}

.fullscreen-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: var(--shadow-soft);
    z-index: 6;
}

.fullscreen-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.presentation-content {
    padding-top: 90px;
}

.empty-state h2 {
    color: var(--primary-color);
}

.empty-state p {
    color: rgba(226, 232, 240, 0.75);
}

.subtitle-overlay {
    top: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(229, 109, 62, 0.25);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
    width: min(1400px, 96vw);
    min-width: 85%;
    max-width: 98%;
    padding: 12px 36px;
}

.subtitle-overlay.bottom {
    top: auto;
    bottom: 20px;
}

.subtitle-text {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: pre-line;
}


.empty-icon {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: none;
}

.empty-icon::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 197, 169, 0.35), rgba(148, 163, 184, 0.18) 55%, transparent 72%);
    filter: blur(4px);
    z-index: 0;
}

.empty-icon::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(255, 197, 169, 0.45);
    box-shadow: 0 12px 32px rgba(6, 26, 83, 0.25);
    z-index: 0;
}

.empty-logo-shell {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.18), rgba(148, 163, 184, 0.25));
    border: 1px solid rgba(226, 232, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 40px rgba(6, 26, 83, 0.25);
    z-index: 1;
    animation: logoFloat 6s ease-in-out infinite;
}

.empty-logo {
    width: 72%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(6, 26, 83, 0.2));
    animation: none;
}

.show-panel-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    background: linear-gradient(135deg, rgba(6, 26, 83, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(229, 109, 62, 0.4);
    width: auto;
    padding: 11px 18px;
    height: auto;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    z-index: 1200;
    box-shadow: 0 10px 24px rgba(6, 26, 83, 0.35);
}

.show-panel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(6, 26, 83, 0.45);
}

.show-panel-btn span {
    font-weight: 600;
}

.presentation-area.fullscreen .presentation-content {
    padding-top: 90px;
}

.presentation-area.fullscreen .subtitle-overlay {
    top: 16px;
    background: rgba(15, 23, 42, 0.95);
}

.presentation-area.fullscreen .subtitle-overlay.bottom {
    top: auto;
    bottom: 16px;
}

@media (max-width: 1024px) {
    .presentation-content {
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    .subtitle-overlay {
        min-width: 85%;
    }

    .subtitle-overlay.bottom {
        bottom: 14px;
    }
}
