/* ==========================================
   1. RESET Y ESTRUCTURA BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #0a0a0a;
    color: #f0f0f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* ==========================================
   2. CABECERA Y NAVEGACIÓN (ORDENADA EN MÓVIL)
   ========================================== */
.main-header {
    width: 100%;
    background-color: #000000;
    border-bottom: 1px solid #1a1a1a;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 100;
}

.logo {
    text-align: center;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
}

.logo .subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888888;
    margin-top: 3px;
}

/* Menú en Celular: Lista limpia en dos filas organizadas o columna */
.navigation-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem 1rem;
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 0;
}

.nav-link {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
    white-space: nowrap; /* Evita que el texto de cada botón se parta */
}

.nav-link:hover, 
.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    font-weight: 500;
}

/* Ajuste para Pantallas de Escritorio (Laptops/Monitores) */
@media (min-width: 992px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.8rem 6%;
    }

    .logo {
        text-align: left;
    }

    .logo a {
        font-size: 1.35rem;
    }

    .navigation-menu {
        width: auto;
        max-width: none;
        gap: 1.5rem;
        padding: 0;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0;
        background-color: transparent;
        border-radius: 0;
        border-bottom: 2px solid transparent;
    }

    .nav-link:hover, 
    .nav-link.active {
        background-color: transparent;
        border-bottom-color: #ffffff;
    }
}

/* ==========================================
   3. SECCIONES Y CONTENEDOR PRINCIPAL
   ========================================== */
.portfolio-container,
.store-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem 1.2rem;
}

@media (min-width: 768px) {
    .portfolio-container,
    .store-container {
        padding: 4rem 3rem 5rem 3rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.section-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.section-title p {
    font-size: 0.85rem;
    color: #999999;
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================
   4. GRILLA DE TARJETAS (TRABAJO)
   ========================================== */
.series-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
}

@media (min-width: 600px) {
    .series-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.series-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #121212;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.series-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #050505;
    overflow: hidden;
}

.series-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.series-year {
    font-size: 0.65rem;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.series-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
}

.series-info p {
    font-size: 0.8rem;
    color: #aaaaaa;
    font-weight: 300;
    line-height: 1.4;
}

/* ==========================================
   5. CARRUSEL EN INICIO (HOME)
   ========================================== */
.hero-carousel {
    width: 100%;
    height: 55vh;
    min-height: 320px;
    position: relative;
    background-color: #000000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-carousel {
        height: 75vh;
    }
}

.carousel-container,
.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 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #ffffff;
}

/* ==========================================
   6. FOOTER
   ========================================== */
.main-footer {
    width: 100%;
    background-color: #000000;
    border-top: 1px solid #1f1f1f;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.72rem;
    color: #777777;
}

.oculto {
    display: none !important;
}
