/* ==========================================
   1. RESET Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d; /* Fondo oscuro para dar profundidad a las fotos */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================
   2. CABECERA FLOTANTE (Sobre las fotos)
   ========================================== */
.main-header {
    position: absolute; /* Clave: flota por encima de todo el contenido */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5%;
    z-index: 100; /* Asegura que esté por encima de las imágenes */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); /* Sutil sombra superior para legibilidad */
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Hace legible el texto sobre cualquier fondo */
}

.logo .subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #cccccc;
    margin-top: 2px;
}

/* MENÚ DE NAVEGACIÓN FLOTANTE */
.navigation-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================
   3. CARRUSEL EN PANTALLA COMPLETA
   ========================================== */
.hero-carousel {
    width: 100vw;
    height: 100vh; /* Ocupa exactamente el alto total de la ventana */
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Transición de fundido súper suave */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: ajusta la foto al 100% de la pantalla sin deformarla */
    object-position: center; /* Centra el encuadre de tus imágenes */
}

/* FLECHAS DE NAVEGACIÓN MINIMALISTAS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2rem;
    padding: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.carousel-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* PUNTITOS INDICADORES */
.carousel-dots {
    position: absolute;
    bottom: 40px; /* Separado del borde inferior */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ==========================================
   4. PIE DE PÁGINA FLOTANTE
   ========================================== */
.main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem 5%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    font-size: 0.75rem;
    color: #a0a0a0;
    letter-spacing: 1px;
    z-index: 90;
    border: none;
}

/* ==========================================
   5. RESPONSIVE DESIGN (Móviles)
   ========================================== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 5%;
        background: rgba(0, 0, 0, 0.5); /* Fondo sólido sutil para mejorar legibilidad en pantallas chicas */
    }

    .navigation-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .carousel-btn {
        display: none; /* Escondemos flechas en celulares para que se use el gesto táctil o los puntitos */
    }
}
/* ==========================================
   GRILLA DE TRABAJO COMPACTA (SIN RECORTES)
   ========================================== */
.series-grid {
    display: grid;
    /* Mantiene 4 columnas en pantallas grandes para que las tarjetas sean chicas */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    align-items: start; /* Alinea las tarjetas arriba por si varían sutilmente de altura */
}

.series-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: none;
}

.series-image-wrapper {
    position: relative;
    width: 100%;
    /* Limitamos la altura máxima para que no se hagan gigantes si son verticales */
    max-height: 180px; 
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Un fondo sutil muy oscuro por si alguna foto es más angosta que el contenedor */
    background-color: rgba(255, 255, 255, 0.02); 
    border-radius: 2px;
}

.series-image-wrapper img {
    width: 100%;
    height: 100%;
    /* 'contain' hace que la foto se encoja para mostrarse ENTERA sin recortar nada */
    object-fit: contain; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto hover sutil */
.series-card:hover .series-image-wrapper img {
    transform: scale(1.03);
}

.series-info {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.series-year {
    font-size: 0.7rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.series-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; /* Título refinado y compacto */
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.2px;
}

.series-info p {
    font-size: 0.8rem; /* Texto descriptivo pequeño */
    color: #a0a0a0;
    font-weight: 300;
    line-height: 1.4;
	text-align: justify; /* Alinea el texto de manera justificada */
}

/* AJUSTES PARA DISPOSITIVOS MÓVILES */
@media (max-width: 768px) {
    .series-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    .series-image-wrapper {
        max-height: 150px;
    }
}

/* Clase para ocultar temporalmente cualquier tarjeta o sección */
.oculto {
    display: none !important;
}

/* CONTENEDOR TIENDA */
.store-container {
    padding: 8rem 5% 4rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.header-static {
    position: relative !important;
    background: #0d0d0d !important;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.store-card {
    background: #141414;
    border: 1px solid #222222;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: #333333;
}

.store-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #000000;
}

.store-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card:hover .store-image-wrapper img {
    transform: scale(1.05);
}

.store-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.store-info p {
    font-size: 0.88rem;
    color: #a0a0a0;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

/* BOTÓN DE WHATSAPP */
.ws-btn {
    display: inline-block;
    text-align: center;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ws-btn:hover {
    background-color: #1ebd56;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .store-container {
        padding-top: 3rem;
    }
    .store-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

