/* --- RESETEO Y IDENTIDAD VISUAL (UNIFICADO CON INDEX) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Registro de Fuentes Locales */
@font-face {
    font-family: 'FredokaOne';
    src: url('FredokaOne-Regular.ttf') format('truetype');
}

/* --- TIPOGRAFÍA GLOBAL --- */
h1 {
    font-family: 'FredokaOne', sans-serif;
    text-transform: uppercase;
    color: #2c3e50;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #2c3e50;
    line-height: 1.2;
    text-align: center;
}

/* Estilo para los párrafos de descripción */
.texto-coleccion p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #555555;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}


/* --- MENÚ PRINCIPAL (IDÉNTICO A INDEX) --- */
.menu-principal {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-principal ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
}

.menu-principal ul li {
    margin: 0;
}

.menu-principal ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    /* AGREGA ESTA LÍNEA */
    font-family: 'Inter', sans-serif; 
}

/* --- ESTRUCTURA DE PRODUCTOS --- */
.coleccion-presentacion {
    padding: 10px 10px;
    max-width: 1200px; /* Corregido de 1g1200px */
    margin: auto;
    border-bottom: 1px solid #eee;
}

.contenedor-coleccion {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
}

.texto-coleccion {
    flex: 1;
    max-width: 800px;
    padding: 20px;
}

/* Ajuste para los títulos de cada libro en productos */
h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c; /* Color distintivo para nombres de productos */
    margin-bottom: 10px;
}

/* --- CONTENEDORES DE MEDIA --- */
.enlace-foto {
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.enlace-foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

/* Estilo para videos verticales (9:16) */
.enlace-video-vertical {
    flex: 0 0 auto;
    width: 100%;
    max-width: 225px;
    aspect-ratio: 9 / 16;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}

.enlace-video-vertical .video-producto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
}

/* --- RESPONSIVO --- */
@media (max-width: 1100px) {
    .enlace-video-vertical {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 9/16;
    }
    
    h1 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .menu-principal {
        padding: 14px 10px;
    }

    .menu-principal ul li a {
        font-size: 0.85rem;
    }

    .texto-coleccion {
        padding: 12px;
    }

    .texto-coleccion p {
        max-width: 100%;
        text-align: left;
    }
}
/* --- AJUSTE PARA REDUCIR ESPACIOS EN PRODUCTOS --- */

.titulo-seccion h1 {
    padding: 30px 0 10px 0 !important;
}

.contenedor-categoria > h2 {
    margin: 8px 0 4px 0 !important;
}

.coleccion-presentacion {
    padding: 0 10px 8px 10px;
}

.enlace-video-vertical {
    margin: 0 0 8px 0;
}

.texto-coleccion {
    padding: 8px 20px 16px 20px;
}

.texto-coleccion h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.texto-coleccion p {
    margin-top: 0;
}