/* Importar fuentes personalizadas */
@font-face {
    font-family: 'CircularStd';
    src: url('fonts/CircularStd-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CircularStd';
    src: url('fonts/CircularStd-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    background: #0b090a;
    min-height: 100vh;
    font-weight: 400;
}

/* Header */
header {
    background: #000000;
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2d3748;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Botón hamburger para móviles */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navegación principal */
#main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: CircularStd, sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-btn.active:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

/* Iconos de navegación */
.nav-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
}

/* Iconos de imagen en navegación */
.nav-btn img.nav-icon {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}

/* Contenido principal */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    background: #0b090a;
}

/* Comportamiento de las secciones */
.content-section {
    display: none;
    padding: 2rem 0;
    background: #0b090a;
}

.content-section.active {
    display: block;
}

/* Sección de diapositivas específica */
#diapositivas.active {
    display: block;
}

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

/* Sección de diapositivas */
.diapositiva-container {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.diapositiva-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-btn {
    background: #2d3748;
    color: #ffffff;
    border: 1px solid #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'CircularStd', sans-serif;
    transition: all 0.2s ease;
}

.control-btn:hover:not(:disabled) {
    background: #161a1d;
    transform: translateY(-1px);
}

.control-btn:disabled {
    background: #b1a7a6;
    cursor: not-allowed;
    transform: none;
}

/* Contador de diapositivas */
.diapositiva-counter {
    background: rgba(45, 55, 72, 0.8);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'CircularStd', sans-serif;
    text-align: center;
    min-width: 80px;
    border: 1px solid #4a5568;
    user-select: none;
    transition: all 0.2s ease;
}

.diapositiva-counter:hover {
    background: rgba(45, 55, 72, 1);
    border-color: #718096;
}

.diapositiva-counter.updating {
    background: rgba(45, 55, 72, 1);
    border-color: #a4161a;
    transform: scale(1.05);
}

/* Botón de pantalla completa */
.fullscreen-btn {
    background: #a4161a !important;
    position: relative;
}

.fullscreen-btn:hover {
    background: #ba181b !important;
}

.fullscreen-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Estilos para modo pantalla completa */
.diapositiva-container.fullscreen,
.diapositiva-container.fullscreen-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000000;
    border: none;
    border-radius: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

/* Modo fallback para navegadores sin soporte nativo */
body.fullscreen-fallback {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.diapositiva-container.fullscreen-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000000;
    border: none;
    border-radius: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.diapositiva-container.fullscreen .diapositiva-viewer,
.diapositiva-container.fullscreen-fallback .diapositiva-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border: none;
    padding: 0;
    margin: 0;
}

.diapositiva-container.fullscreen #diapositiva-img,
.diapositiva-container.fullscreen-fallback #diapositiva-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.diapositiva-container.fullscreen .diapositiva-thumbnails,
.diapositiva-container.fullscreen-fallback .diapositiva-thumbnails {
    display: none;
}

.diapositiva-container.fullscreen .diapositiva-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Contador en modo pantalla completa */
.diapositiva-container.fullscreen .diapositiva-counter,
.diapositiva-container.fullscreen-fallback .diapositiva-counter {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Indicadores de toque para pantalla completa */
.fullscreen-touch-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fullscreen-touch-indicator.left {
    left: 40px;
}

.fullscreen-touch-indicator.right {
    right: 40px;
}

.fullscreen-touch-indicator span {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.fullscreen-touch-indicator.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.fullscreen-touch-indicator.active span {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Solo mostrar indicadores en pantalla completa */
.diapositiva-container:not(.fullscreen):not(.fullscreen-fallback) .fullscreen-touch-indicator {
    display: none;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
    .fullscreen-touch-indicator {
        width: 100px;
        height: 100px;
    }
    
    .fullscreen-touch-indicator span {
        font-size: 2.5rem;
    }
    
    .fullscreen-touch-indicator.left {
        left: 20px;
    }
    
    .fullscreen-touch-indicator.right {
        right: 20px;
    }
    
    .diapositiva-counter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .diapositiva-controls {
        gap: 0.5rem;
    }
}

/* Indicador sutil de que la navegación por toques está activa */
.diapositiva-container.fullscreen::before,
.diapositiva-container.fullscreen-fallback::before {
    content: "Toca los lados para navegar";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 9998;
}

.diapositiva-container.fullscreen:hover::before,
.diapositiva-container.fullscreen-fallback:hover::before {
    opacity: 1;
}



.diapositiva-viewer {
    text-align: center;
    margin-bottom: 2rem;
    background: #000000;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #d3d3d3;
    position: relative;
    overflow: hidden;
}

#diapositiva-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(11, 9, 10, 0.1);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

#diapositiva-img:hover {
    transform: scale(1.01);
}

/* Estilos para la transición entre diapositivas */
.diapositiva-viewer.transitioning {
    background: #000000;
}

.diapositiva-viewer.transitioning::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.diapositiva-thumbnails {
    margin-top: 2rem;
}

#thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f5f3f4;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
}

.thumbnail {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #ffffff;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 9, 10, 0.15);
}

.thumbnail.active {
    border-color: #0b090a;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0b090a;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Secciones de contenido */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(11, 9, 10, 0.05);
    transition: all 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(11, 9, 10, 0.1);
    border-color: #b1a7a6;
}

.content-card h3 {
    color: #0b090a;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.content-card p {
    color: #161a1d;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
}

.btn {
    display: inline-block;
    background: #0b090a;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-family: 'CircularStd', sans-serif;
    border: 1px solid #0b090a;
}

.btn:hover {
    background: #ffffff;
    color: #0b090a;
    border-color: #0b090a;
}

.btn-tertiary {
    background: #660708;
    color: #ffffff;
    border-color: #660708;
}

.btn-tertiary:hover {
    background: #ffffff;
    color: #660708;
    border-color: #660708;
}

/* Estilos para botones deshabilitados */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Estilos específicos para la sección de EPUBs */
.section-description {
    text-align: left;
    color: #161a1d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.epub-library {
    margin-top: 2rem;
}

.epub-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f5f3f4;
    color: #0b090a;
    border: 1px solid #d3d3d3;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'CircularStd', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0b090a;
    color: #ffffff;
    border-color: #0b090a;
}

.epub-card {
    display: flex;
    flex-direction: row;
    height: auto;
    align-items: flex-start;
    text-align: left;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.epub-cover {
    position: relative;
    width: 150px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
}

.epub-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.epub-card:hover .epub-cover-img {
    transform: scale(1.05);
}

.epub-icon {
    font-size: 2rem;
    color: #ffffff;
    background: rgba(11, 9, 10, 0.8);
    padding: 0.5rem;
    border-radius: 50%;
}

.epub-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    text-align: left;
}

.epub-info h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
}

.author {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.description {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    text-align: left;
}

.epub-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.epub-year,
.epub-pages,
.epub-language {
    background: #a4161a;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #a4161a;
    text-align: left;
}

.epub-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    text-align: left;
}

.ebiblio-logo {
    width: 50px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
    filter: brightness(0) invert(1);
}

.ebiblio-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) brightness(1.2);
}

.todostuslibros-logo {
    width: 50px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
    filter: brightness(0) saturate(100%) invert(84%) sepia(31%) saturate(638%) hue-rotate(359deg) brightness(103%) contrast(107%);
}

.todostuslibros-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) saturate(100%) invert(84%) sepia(31%) saturate(638%) hue-rotate(359deg) brightness(120%) contrast(107%);
}

/* Estilos para el nuevo diseño simple de tarjetas EPUB */
.epub-card-simple {
    display: flex;
    flex-direction: row;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    gap: 1.5rem;
    align-items: flex-start;
}

.epub-card-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.epub-cover-simple {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(11, 9, 10, 0.1);
    flex-shrink: 0;
}

.epub-content-simple {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.epub-content-simple h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.author-simple {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: left;
}

.epub-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-primary {
    background: #a4161a;
    color: #ffffff;
    flex: 1;
    min-width: 100px;
}

.btn-secondary {
    background: #2d3748;
    color: #ffffff;
    border: 1px solid #4a5568;
    flex: 1;
    min-width: 100px;
}

.btn-primary:hover {
    background: #ba181b;
    border-color: #ba181b;
}

.btn-secondary:hover {
    background: #4a5568;
    border-color: #4a5568;
}

/* Modal para EPUB */
.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(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 9, 10, 0.3);
}

.epub-modal {
    width: 95%;
    max-width: 1200px;
    height: 95vh;
    margin: 1% auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #d3d3d3;
    background: #f5f3f4;
    flex-wrap: wrap;
    gap: 1rem;
}

.epub-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.epub-nav-btn {
    background: #0b090a;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epub-nav-btn:hover:not(:disabled) {
    background: #161a1d;
    transform: scale(1.1);
}

.epub-nav-btn:disabled {
    background: #b1a7a6;
    cursor: not-allowed;
}

.epub-location {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0b090a;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #d3d3d3;
    min-width: 60px;
    text-align: center;
}

.epub-actions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.epub-btn {
    background: #f5f3f4;
    color: #0b090a;
    border: 1px solid #d3d3d3;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epub-btn:hover {
    background: #0b090a;
    color: #ffffff;
    border-color: #0b090a;
}

.modal-header h3 {
    margin: 0;
    color: #0b090a;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.close {
    color: #b1a7a6;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #0b090a;
}

.modal-body {
    padding: 0;
    height: calc(95vh - 140px);
    overflow: hidden;
}

#epub-viewer {
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.epub-loading {
    text-align: center;
    color: #161a1d;
    font-size: 1.1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f5f3f4;
    border-top: 4px solid #0b090a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.epub-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #d3d3d3;
    background: #f5f3f4;
}

.epub-progress {
    margin-bottom: 1rem;
}

.epub-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

.epub-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0b090a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.epub-slider::-webkit-slider-thumb:hover {
    background: #161a1d;
    transform: scale(1.1);
}

.epub-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0b090a;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.epub-slider::-moz-range-thumb:hover {
    background: #161a1d;
    transform: scale(1.1);
}

.epub-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #161a1d;
}

/* Estilos para el contenido EPUB renderizado */
#epub-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* Estilos para errores y estados del EPUB */
.epub-error {
    text-align: center;
    color: #e5383b;
    padding: 2rem;
}

.epub-error h3 {
    color: #e5383b;
    margin-bottom: 1rem;
}

.epub-error p {
    color: #161a1d;
    margin-bottom: 1.5rem;
}

/* Estilos para la tabla de contenidos y configuración */
.epub-toc, .epub-settings {
    padding: 1rem;
}

.epub-toc h4, .epub-settings h4 {
    color: #0b090a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.epub-toc ul {
    list-style: none;
    padding: 0;
}

.epub-toc li {
    margin-bottom: 0.5rem;
}

.epub-toc a {
    color: #0b090a;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.epub-toc a:hover {
    background-color: #f5f3f4;
}

.setting-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.setting-group label {
    color: #0b090a;
    font-weight: 600;
    min-width: 120px;
}

.setting-group input[type="range"] {
    flex: 1;
    max-width: 150px;
}

.setting-group select {
    padding: 0.5rem;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    background: #ffffff;
    color: #0b090a;
    font-family: 'CircularStd', sans-serif;
}

.setting-group span {
    color: #161a1d;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Mejoras para la navegación por teclado */
.epub-modal:focus-within {
    outline: 2px solid #660708;
    outline-offset: 2px;
}

/* Estilos para el contenido EPUB renderizado */
#epub-viewer .epub-container {
    font-family: 'CircularStd', serif;
    line-height: 1.6;
    color: #0b090a;
}

#epub-viewer .epub-container h1,
#epub-viewer .epub-container h2,
#epub-viewer .epub-container h3 {
    color: #0b090a;
    font-weight: 700;
}

#epub-viewer .epub-container p {
    margin-bottom: 1rem;
    text-align: justify;
}

#epub-viewer .epub-container blockquote {
    border-left: 4px solid #660708;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #161a1d;
}

/* Responsive para el modal EPUB */
@media (max-width: 768px) {
    .epub-modal {
        width: 98%;
        height: 98vh;
        margin: 1% auto;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .epub-controls {
        order: 1;
    }
    
    .modal-header h3 {
        order: 2;
        font-size: 1.1rem;
    }
    
    .epub-actions-header {
        order: 3;
    }
    
    .epub-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .epub-location {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 50px;
    }
    
    .modal-body {
        height: calc(98vh - 180px);
    }
    
    .epub-footer {
        padding: 0.75rem 1rem;
    }
}

/* Responsive para EPUBs */
@media (max-width: 768px) {
    .epub-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .epub-cover {
        height: 180px;
    }
    
    .epub-info {
        padding: 1rem;
    }
    
    .epub-meta {
        gap: 0.5rem;
    }
    
    .epub-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        min-width: auto;
    }
    
    .epub-info h3 {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .epub-cover {
        height: 160px;
    }
    
    .epub-info {
        padding: 0.75rem;
    }
    
    .epub-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .epub-year,
    .epub-pages,
    .epub-language {
        text-align: center;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .epub-actions {
        gap: 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Estilos específicos para la sección de videos */
.video-library {
    margin-top: 2rem;
}

.video-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Noticia informativa para la sección de visionados */
.content-notice {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-notice p {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.content-notice strong {
    color: #ffffff;
}

.video-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.video-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    flex: 1;
    margin-right: 1rem;
}

.video-duration {
    background: #a4161a;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000000;
    overflow: hidden;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para el reproductor Kaltura */
.video-player-container iframe {
    transition: all 0.3s ease;
}

.video-card:hover .video-player-container iframe {
    transform: scale(1.02);
}

.video-info {
    padding: 1.5rem;
}

.video-description {
    color: #161a1d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.video-year,
.video-language,
.video-quality {
    background: #f5f3f4;
    color: #0b090a;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d3d3d3;
}

.video-quality {
    background: #660708;
    color: #ffffff;
    border-color: #660708;
}

.video-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature {
    background: #ffffff;
    color: #0b090a;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d3d3d3;
    cursor: help;
    transition: all 0.2s ease;
}

.feature:hover {
    background: #f5f3f4;
    border-color: #b1a7a6;
    transform: translateY(-1px);
}

/* Responsive para videos */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-header h3 {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }
    
    .video-player-container {
        height: 180px;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-meta {
        gap: 0.5rem;
    }
    
    .video-features {
        gap: 0.5rem;
    }
    
    .feature {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .video-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .video-player-container {
        height: 180px;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-meta {
        gap: 0.5rem;
    }
    
    .video-features {
        gap: 0.5rem;
    }
    
    .feature {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Estilos específicos para la sección de recursos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.resource-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.resource-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.resource-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Estilo específico para el logo de Elcano en la tarjeta de Presencia Global */
.resource-card:first-child .resource-logo-img {
    filter: brightness(0) invert(1);
}

/* Estilos para logos que deben ser blancos en modo oscuro */
.resource-card:nth-child(2) .resource-logo-img,
.resource-card:nth-child(3) .resource-logo-img {
    filter: brightness(0) invert(1);
}

/* Estilos específicos para logos con fondos que necesitan tratamiento especial */
.resource-card:nth-child(4) .resource-logo-img,
.resource-card:nth-child(5) .resource-logo-img,
.resource-card:nth-child(6) .resource-logo-img {
    filter: invert(1);
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.resource-content p {
    color: #e2e8f0;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.resource-card .btn {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive para recursos */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-card {
        padding: 1.25rem;
    }
    
    .resource-icon {
        font-size: 1.75rem;
    }
    
    .resource-logo {
        width: 40px;
        height: 40px;
    }
}

/* Estilos para la sección de podcasts */
.podcasts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.podcast-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.podcast-embed {
    margin-bottom: 1rem;
}

.podcast-embed iframe {
    border-radius: 12px;
    width: 100%;
    height: 352px;
}

.podcast-info {
    text-align: center;
}

.podcast-info h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.podcast-info p {
    color: #e2e8f0;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    font-style: italic;
}

/* Estilos para tarjetas de podcast sin iframe (con logo y botón) */
.podcast-card:has(.podcast-logo) {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.podcast-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.podcast-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.podcast-content {
    flex: 1;
}

.podcast-content h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.podcast-content p {
    color: #e2e8f0;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.podcast-date {
    color: #a4161a !important;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem !important;
}

.podcast-content .btn {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}



/* Responsive para podcasts */
@media (max-width: 768px) {
    .podcasts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .podcast-card {
        padding: 1.25rem;
    }
    
    .podcast-embed iframe {
        height: 300px;
    }
    
    .podcast-logo {
        width: 40px;
        height: 40px;
    }
}

/* Estilos para la sección de análisis académico */
.analysis-intro {
    text-align: center;
    margin: 2rem auto 1.5rem auto;
    max-width: 800px;
    padding: 0 1rem;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 3rem 0 2rem 0;
    text-align: center;
    border-top: 2px solid #2d3748;
    padding-top: 2rem;
}

.analysis-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.analysis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.analysis-date {
    color: #ffffff;
    font-weight: 600;
    background: #a4161a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.analysis-author {
    color: #e2e8f0;
    font-style: italic;
}

.analysis-source {
    color: #ffffff;
    font-weight: 600;
    background: #a4161a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-card h3 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.analysis-card h3 a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.analysis-card h3 a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.analysis-card h3 a:visited {
    color: #fbbf24;
}

.analysis-description {
    color: #e2e8f0;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.analysis-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* Responsive para análisis */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .analysis-card {
        padding: 1.25rem;
    }
    
    .analysis-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Estilos para las tarjetas de películas */
.movie-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #a4161a;
}

.movie-poster {
    flex-shrink: 0;
    width: 120px;
    height: 180px;
    background: #f5f3f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d3d3d3;
}

.movie-poster-placeholder {
    font-size: 3rem;
    color: #b1a7a6;
}

.movie-platform {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    background: #2d3748;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4a5568;
    padding: 1rem;
}

.platform-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-info h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.movie-director {
    color: #fbbf24;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.movie-meta {
    color: #e2e8f0;
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 400;
}

.movie-description {
    color: #cbd5e0;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
    flex: 1;
}

.movie-card .btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
}

.movie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.movie-buttons .btn {
    align-self: flex-start;
    width: auto;
}

/* Responsive para películas */
@media (max-width: 768px) {
    .movie-card {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .movie-poster {
        width: 100px;
        height: 150px;
        align-self: center;
    }
    
    .movie-info h3 {
        text-align: left;
    }
    
    .movie-card .btn {
        align-self: flex-start;
        width: auto;
        text-align: center;
    }
    
    .movie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .movie-buttons .btn {
        width: auto;
    }
}

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

.modal-content {
    background-color: #000000;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #0b090a;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

#trailer-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#video-container, #error-container {
    width: 100%;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error-message p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.error-message .btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000000;
    color: #ffffff;
    margin-top: 3rem;
    border-top: 1px solid #2d3748;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .logo {
        height: 50px;
    }
    
    #main-nav ul {
        gap: 0.5rem;
    }
    
    #main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .diapositiva-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .epub-card {
        flex-direction: column;
    }
    
    .epub-cover {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
    
    .diapositiva-container {
        padding: 1.5rem;
    }
    
    main {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 0.75rem;
    }
    
    .diapositiva-container {
        padding: 1rem;
    }
    
    #thumbnails-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        padding: 1rem;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
}

/* Responsive para navegación */
@media (max-width: 768px) {
    #main-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    #main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Estilos para el modal de información EPUB */
.epub-info-modal {
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

/* Estilos para el modal de libros web */
.web-book-modal {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.web-book-modal .modal-body {
    padding: 2rem;
}

/* Estilos para el modal del primer capítulo */
.first-chapter-modal {
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.first-chapter-modal .modal-body {
    padding: 0;
}

#first-chapter-content {
    width: 100%;
    height: 100%;
}

#first-chapter-content iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 0 0 8px 8px;
}

.book-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f5f3f4;
}

.book-header h2 {
    color: #0b090a;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.book-author {
    color: #660708;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-year {
    color: #161a1d;
    font-size: 1rem;
    background: #f5f3f4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

.book-chapters {
    text-align: left;
}

.book-chapters h3 {
    color: #0b090a;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    border-left: 4px solid #a4161a;
    padding-left: 1rem;
}

.book-chapters p {
    color: #161a1d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

.epub-book-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.epub-book-cover {
    flex-shrink: 0;
}

.book-cover-large {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
}

.epub-book-details {
    flex: 1;
}

.epub-book-details h4 {
    color: #0b090a;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.epub-book-details p {
    color: #161a1d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.epub-book-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.epub-book-meta span {
    background: #f5f3f4;
    color: #660708;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.epub-actions-modal {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.epub-actions-modal .btn {
    flex: 1;
    text-align: center;
}

.epub-help {
    background: #f5f3f4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #a4161a;
}

.epub-help p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #0b090a;
}

.epub-help ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #161a1d;
}

.epub-help li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Responsive para modal EPUB */
@media (max-width: 768px) {
    .epub-book-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .epub-actions-modal {
        flex-direction: column;
    }
    
    .epub-book-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Estilos para pantalla completa */
.diapositiva-container:fullscreen {
    background: #000000;
    padding: 0;
    border-radius: 0;
}

.diapositiva-container:fullscreen .diapositiva-viewer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.diapositiva-container:fullscreen #diapositiva-img {
    max-height: 100vh;
    max-width: 100vw;
    object-fit: contain;
}

.diapositiva-container:fullscreen .diapositiva-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 1rem;
    z-index: 10000;
}

.diapositiva-container:fullscreen .diapositiva-thumbnails {
    display: none;
}

/* Soporte para webkit (Safari, Chrome) */
.diapositiva-container:-webkit-full-screen {
    background: #000000;
    padding: 0;
    border-radius: 0;
}

.diapositiva-container:-webkit-full-screen .diapositiva-viewer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.diapositiva-container:-webkit-full-screen #diapositiva-img {
    max-height: 100vh;
    max-width: 100vw;
    object-fit: contain;
}

.diapositiva-container:-webkit-full-screen .diapositiva-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 1rem;
    z-index: 10000;
}

.diapositiva-container:-webkit-full-screen .diapositiva-thumbnails {
    display: none;
}

/* ===== ESTILOS PARA LA SECCIÓN DE MÚSICA ===== */

.music-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b090a;
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.music-platform-section {
    margin-bottom: 4rem;
    background: #1a202c;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid #2d3748;
}

.platform-header {
    background: #a4161a;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.platform-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spotify-logo {
    width: 48px;
    height: 48px;
    color: #1DB954;
}

.apple-music-logo {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1) contrast(1.5);
}

.platform-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.platform-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.music-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.music-card {
    background: #2d3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a5568;
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.music-embed {
    width: 100%;
    background: #4a5568;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.music-embed iframe {
    display: block;
    border: none;
}

.music-info {
    padding: 1.5rem;
}

.music-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.music-info p {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para música */
@media (max-width: 768px) {
    .music-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .music-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .platform-header {
        padding: 1.5rem;
    }
    
    .platform-header h3 {
        font-size: 1.5rem;
    }
}

/* Responsive para navegación */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: row;
        gap: 1rem;
        position: relative;
    }
    
    header h1 {
        font-size: 1.5rem;
        flex: 1;
        text-align: center;
    }
    
    .logo {
        height: 40px;
    }
    
    /* Mostrar botón hamburger */
    .hamburger-btn {
        display: flex;
    }
    
    /* Ocultar navegación por defecto */
    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-top: 1px solid #2d3748;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    #main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    }
    
    /* Overlay para el menú móvil */
    #main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-btn {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 0.75rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .nav-btn:last-child {
        margin-bottom: 0;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* Añadir texto a los botones en móvil */
    .nav-btn::after {
        content: attr(title);
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 500;
        margin-left: 0.5rem;
    }
}
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .hamburger-btn {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-btn span {
        height: 2px;
    }
    
    #main-nav {
        padding: 0.75rem;
    }
    
    .nav-btn {
        min-height: 44px;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .music-container {
        padding: 0.5rem;
    }
    
    .music-content-grid {
        padding: 1rem;
    }
    
    .platform-header {
        padding: 1rem;
    }
    
    .platform-logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos para la sección de Ayuda */
.help-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.help-header {
    text-align: center;
    margin-bottom: 3rem;
}

.help-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-subtitle {
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.help-section {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.help-section h3 {
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilos para el contenedor QR */
.qr-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.qr-code {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-info {
    flex: 1;
}

.qr-info p {
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.qr-note {
    color: #a0aec0;
    font-size: 0.9rem;
    font-style: italic;
}

/* Estilos para la descripción de secciones */
.sections-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #2d3748;
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a5568;
    border-radius: 8px;
    padding: 0.5rem;
}

.help-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.section-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-details p {
    color: #cbd5e0;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.section-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #4a5568;
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #718096;
}

/* Estilos para las tarjetas de consejos */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.tip-card h4 {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

/* Estilos para la guía de diapositivas */
.slides-guide {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-item {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1.5rem;
}

.guide-item h4 {
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-item ul {
    color: #e2e8f0;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.guide-item li {
    margin-bottom: 0.5rem;
}

.device-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.device-type {
    background: #4a5568;
    border: 1px solid #718096;
    border-radius: 8px;
    padding: 1rem;
}

.device-type h5 {
    color: #fbbf24;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.device-type p {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Estilos para la sección de derechos de autor */
.copyright-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.copyright-warning {
    background: #7c2d12;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.copyright-warning h4 {
    color: #fbbf24;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.copyright-warning p {
    color: #fecaca;
    line-height: 1.6;
    margin: 0;
}

.copyright-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.copyright-item {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1.5rem;
}

.copyright-item h5 {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.copyright-item ul {
    color: #e2e8f0;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.copyright-item li {
    margin-bottom: 0.5rem;
}

.copyright-note {
    background: #1e3a8a;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.copyright-note p {
    color: #dbeafe;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para la sección de ayuda */
@media (max-width: 768px) {
    .help-container {
        padding: 1rem 0;
    }
    
    .help-header h2 {
        font-size: 2rem;
    }
    
    .help-section {
        padding: 1.5rem;
    }
    
    .qr-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .section-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .device-recommendations {
        grid-template-columns: 1fr;
    }
    
    .copyright-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .help-header h2 {
        font-size: 1.8rem;
    }
    
    .help-section {
        padding: 1rem;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .qr-placeholder span {
        font-size: 2rem;
    }
}

/* Estilos para el botón de descarga de PDF */
.pdf-download-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-pdf-download {
    background: #a4161a;
    color: #ffffff;
    border: 1px solid #a4161a;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(164, 22, 26, 0.3);
}

.btn-pdf-download:hover {
    background: #ba181b;
    border-color: #ba181b;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(164, 22, 26, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-pdf-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(164, 22, 26, 0.3);
}

.pdf-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* Responsive para el botón PDF */
@media (max-width: 768px) {
    .pdf-download-container {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .btn-pdf-download {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .pdf-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .btn-pdf-download {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pdf-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===== LOGIN OVERLAY STYLES ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 9, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(11, 9, 10, 0.3);
    padding: 0;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-form {
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.login-logo:hover {
    opacity: 1;
}

.login-header h2 {
    color: #0b090a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'CircularStd', sans-serif;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    font-family: 'CircularStd', sans-serif;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#password-input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'CircularStd', sans-serif;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

#password-input:focus {
    outline: none;
    border-color: #660708;
    box-shadow: 0 0 0 3px rgba(102, 7, 8, 0.1);
}

#login-btn {
    padding: 1rem;
    background: #0b090a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'CircularStd', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login-btn:hover {
    background: #660708;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 9, 10, 0.3);
}

#login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'CircularStd', sans-serif;
    min-height: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Responsive design para login */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        margin: 1rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.3rem;
    }
    
    .input-group {
        gap: 0.8rem;
    }
    
    #password-input,
    #login-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}
