/* --- RESETEO Y TIPOGRAFÍA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- REGISTRO DE FUENTES --- */
/* Fredoka One */
@font-face {
    font-family: 'FredokaOne';
    src: url('FredokaOne-Regular.ttf') format('truetype');
}

/* Títulos principales */
h1 {
    font-family: 'FredokaOne', sans-serif;
    text-transform: uppercase;
}

/* Ajuste para los números de las unidades de Kawaii */
.numero-unidad {
    font-family: 'FredokaOne', sans-serif;
}

/* --- SECCIÓN ESTRELLA (VIDEO DE PORTADA) --- */
.libro-estrella {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Fondo negro profesional */
}

.video-bg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
    top: 0;
    left: 0;
    transform: none;
    object-fit: cover; /* Cambiado de fill a cover para evitar deformación visual */
}

.contenido-estrella {
    position: absolute;
    z-index: 1;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    padding: 20px;
    width: 100%;
}

.novedad {
    color: #e74c3c;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

h1 { font-size: 2rem;  margin: 10px 0; }

.btn-principal {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none; /* Quita el subrayado */
    display: inline-block;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #2c3e50;
    line-height: 1.2;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center; /* Centrado directo para mayor control */
}

/* --- MENÚ --- */
.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; 
}

/* --- CONTENEDORES GENERALES --- */
.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;
}

.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;
}

.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;
}

.enlace-foto img:hover {
    transform: scale(1.02);
}

/* --- ESTILO EXCLUSIVO PARA VIDEOS EN PRODUCTOS (9:16) --- */
.enlace-video-vertical {
    flex: 0 0 225px;
    width: 225px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.enlace-video-vertical .video-producto {
     width: 225px;
    height: 400px;
    object-fit: contain;
    display: block;
}

/* Ajuste para pantallas más pequeñas */
@media (max-width: 1100px) {
    .enlace-video-vertical {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 9 / 16;
        margin: 0 auto;
    }
}

.enlace-video-vertical .video-producto:hover {
    transform: scale(1.02);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
}

/* --- RESPONSIVO (Móviles y Tablets) --- */
@media (max-width: 1100px) {
    .contenedor-coleccion {
        flex-direction: column;
        text-align: center;
    }

    .enlace-foto, .enlace-video-vertical {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        height: auto;
    }
    
    .enlace-video-vertical { max-width: 320px; }
}

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

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

@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }

    .menu-principal {
        padding: 14px 10px;
    }

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

    .btn-principal {
        padding: 12px 22px;
        font-size: 1rem;
    }

    .texto-coleccion p {
        max-width: 100%;
        text-align: left;
    }
}
