/* --- MAGMÁTICA JOYAS - HANDMADE AESTHETIC (Zengue Style) --- */

/* --- 1. Variables y Reset --- */
:root {
    /* Paleta Minimalista (Fondos Blancos, Textos Suaves, Acentos Sutiles) */
    --bg-color: #ffffff;
    --text-main: #333333;
    /* Gris oscuro, más suave que negro puro */
    --text-light: #666666;
    /* Para subtítulos o detalles */
    --accent-color: #c9f5e4;
    /* Verde menta suave (como en zengue) */
    --accent-hover: #a1eacb;
    --border-light: #eaeaea;

    /* Tipografía */
    --font-heading: 'Cardo', serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    /* Inter light para aspecto delicado */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Tipografía Base --- */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Títulos sin demasiada negrita */
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #000;
}

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

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.lowercase {
    text-transform: lowercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container.narrow {
    max-width: 800px;
}

/* --- 3. Componentes Genéricos --- */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: transparent;
}

/* Selecciones de texto */
::selection {
    background-color: var(--accent-color);
    color: var(--text-main);
}

::-moz-selection {
    background-color: var(--accent-color);
    color: var(--text-main);
}


/* --- 4. Navegación (Header Superpuesto) --- */
.site-header {
    background-color: transparent;
    padding: 1.5rem 0;
    position: absolute;
    /* Superpuesto al hero */
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Add position relative for centering absolute ul */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo img {
    height: 90px;
    width: auto;
    filter: invert(1) drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
    display: block;
    transition: height 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    /* Texto blanco para contrastar con imágenes */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Legibilidad extra */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    /* Updated to match catalog (green line) */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Language Switcher (Dropdown) --- */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.current-lang:hover {
    color: var(--accent-hover);
}

.current-lang i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.lang-switcher:hover .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    max-height: 250px;
    /* Make it scrollable on mobile */
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    text-shadow: none;
    transition: background-color 0.2s ease;
}

.main-nav .lang-dropdown a.active {
    background-color: rgba(201, 245, 228, 0.3);
    font-weight: 500;
    color: var(--text-main);
}

.main-nav .lang-dropdown a:hover {
    background-color: #f5f5f7;
    color: var(--text-main);
}

.main-nav .lang-dropdown a::after {
    display: none !important;
}

.lang-dropdown .flag {
    font-size: 1.1rem;
}

/* For pages where header is dark (static) like catalog */
.dark-nav .lang-switcher {
    border-left: none;
}

.dark-nav .current-lang {
    color: #000000;
}

.dark-nav .current-lang:hover {
    color: var(--text-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    /* Hamburguesa blanca */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- 5. Hero Section (Pantalla Completa Slider) --- */
.hero-section {
    position: relative;
    height: 100vh;
    /* Toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Oscurecer un poco las imágenes para que el texto sí o sí se lea */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Capa oscura */
    z-index: 2;
}

.hero-slider img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Transición súper suave */
}

.hero-slider img.slide.active {
    opacity: 1;
}

.hero-text {
    position: relative;
    z-index: 10;
    color: #ffffff;
    padding: 0 5%;
}

.hero-text h1 {
    color: #ffffff;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--spacing-md);
}

.btn-hero-cta {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 14px 35px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    backdrop-filter: blur(2px);
}

.btn-hero-cta:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

/* --- 6. Introducción (Premium Redesign) --- */
.intro-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.intro-section .container {
    max-width: 1200px;
}

.intro-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
}

@media (max-width: 767px) {
    .intro-image-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        /* Strictly for mobile */
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .intro-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 5% !important;
    }

    .intro-image-wrapper {
        flex: 0 0 40% !important;
        aspect-ratio: 1 / 1 !important;
        /* Strictly square for PC/Tablet */
        max-width: 600px !important;
        width: 40% !important;
    }

    .intro-text {
        flex: 0 0 55% !important;
        width: 55% !important;
    }
}

.refined-rectangular-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    /* Focus on the person */
    display: block;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.refined-rectangular-img:hover {
    transform: scale(1.1);
}

.intro-section h2 {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* --- 7. Galería Destacada --- */
.featured-gallery {
    padding: 0 5% var(--spacing-xl);
}

.gallery-container {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-img {
    flex: 1;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* --- 8. Catálogo (Minimal Grid) --- */
.collections-section {
    padding: var(--spacing-xl) 0;
    background-color: #fafafa;
    /* Fondo ligerísimamente gris para separar */
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl) var(--spacing-md);
}

.product-card {
    text-align: center;
}

.product-img-wrapper {
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.product-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.03);
    /* Zoom muy sutil */
}

.product-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-action {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.product-card:hover .product-action {
    color: var(--text-main);
}

.product-card:hover .product-action::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--accent-color);
    z-index: -1;
}

/* --- 9. Servicios / Taller --- */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-intro {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

/* --- Creación Personalizada (Tarjetas) --- */
.custom-jewelry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .custom-jewelry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.custom-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.custom-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    padding: 15px;
    background-color: rgba(201, 245, 228, 0.2);
    /* Accent con opacidad */
    border-radius: 50%;
}

.custom-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.custom-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Taller de Alianzas Premium (Apple Style) --- */
.alianzas-workshop-premium {
    display: flex;
    flex-direction: column;
    margin: var(--spacing-xl) 0;
    background-color: #000000;
    color: #f5f5f7;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

@media (min-width: 900px) {
    .alianzas-workshop-premium {
        flex-direction: row;
        align-items: stretch;
    }
}

.premium-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .premium-image {
        min-height: 100%;
    }
}

.premium-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.alianzas-workshop-premium:hover .premium-image img {
    transform: scale(1.03);
}

.premium-content {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 900px) {
    .premium-content {
        padding: 4rem 4rem;
    }
}

.premium-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    color: #000;
    padding: 6px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 2rem;
    border-radius: 50px;
}

.premium-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.premium-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    color: #86868b;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-transform: none;
}

.alianzas-workshop-premium p {
    color: #a1a1a6;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.premium-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

@media (min-width: 500px) {
    .premium-details {
        flex-direction: row;
        gap: 3rem;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.detail-item i {
    color: #fceabb;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 1rem;
    line-height: 1.4;
    color: #f5f5f7;
    font-weight: 400;
}

.detail-item span strong {
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    color: #86868b;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.detail-item span small {
    font-size: 0.85rem;
    color: #6e6e73;
    display: block;
    margin-top: 4px;
    font-weight: 400;
}

.premium-note {
    font-size: 0.8rem !important;
    color: #6e6e73 !important;
    font-style: normal !important;
    margin-bottom: 0 !important;
    margin-top: 1rem !important;
}

.premium-action {
    margin-top: 2rem;
}

.btn-apple-premium {
    display: inline-block;
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-apple-premium:hover {
    background-color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
    color: #000000;
}

.taller-images.single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.taller-images.single img {
    aspect-ratio: 16/9;
}

/* --- 10. Footer --- */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 90px;
    margin-bottom: var(--spacing-sm);
    filter: grayscale(100%);
    transition: height 0.3s ease;
}

.brand-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.footer-contact p,
.footer-email,
.footer-phone {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.footer-email:hover,
.footer-phone:hover {
    color: var(--accent-color);
    /* Toque de color al pasar el ratón */
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--text-main);
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- 11. Animaciones Suaves de Entrada --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. Responsive & Menú Móvil --- */

/* Menú Móvil a pantalla completa (Apple Style) */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    /* Fondo oscuro casi opaco */
    backdrop-filter: blur(15px);
    /* Desenfoque estilo cristal */
    -webkit-backdrop-filter: blur(15px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.main-nav.active {
    opacity: 1;
    visibility: visible;
}

.main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav.active ul {
    transform: translateY(0);
}

.main-nav a {
    font-size: 1.5rem;
    /* Letra grande y clara */
    letter-spacing: 0.15em;
    color: #f5f5f7;
    text-shadow: none;
    /* Quitamos la sombra en el menú porque el fondo ya es oscuro */
}

/* Hamburguesa animada */
.mobile-menu-toggle {
    position: relative;
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

/* Estado activo de la hamburguesa (X) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 900px) {
    .main-nav {
        position: static;
        height: auto;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex-direction: row;
        gap: 2.5rem;
        margin: 0;
    }

    .lang-switcher {
        position: absolute;
        right: 5%;
        /* matching the header container padding */
        top: 50%;
        transform: translateY(-50%);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 1.5rem;
    }

    .main-nav a {
        font-size: 0.85rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-toggle {
        display: none;
    }

    /* Removed footer-grid single column override for PC, so it stays horizontal */

    .brand-tagline {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Removing .main-nav display: none so standard mobile nav classes work correctly */

    /* Make footer single column on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-contact h4 {
        margin-top: var(--spacing-sm);
    }

    .brand-tagline {
        margin: 0 auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .gallery-container {
        flex-direction: column;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-image img {
        height: 50vh;
    }

    .hero-slider img.slide {
        object-position: center center;
    }
}

/* --- 13. Estilos Específicos del Catálogo --- */
.static-header {
    background-color: var(--bg-color);
    position: relative !important;
    padding: 1rem 0;
    border-bottom: none;
}

.static-header .logo img {
    filter: invert(0) grayscale(100%) contrast(1.2);
    /* Logo oscuro normal */
    height: 90px;
    width: auto;
    /* Logo tamaño coherente con la home */
}

.dark-nav a {
    color: #000000;
    text-shadow: none;
}

.dark-nav a::after {
    background-color: var(--accent-color);
}

.dark-nav a:hover {
    color: #000000;
    opacity: 0.7;
}

.dark-toggle span {
    background-color: #000000 !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {

    /* Mobile menu has dark background, so text must remain contrasting white/light even on dark-nav pages */
    .dark-nav a,
    .dark-nav .current-lang {
        color: #f5f5f7;
    }

    .dark-nav a:hover,
    .dark-nav .current-lang:hover {
        color: #f5f5f7;
    }

    /* Hamburger to X should be white when active overlay is dark */
    .mobile-menu-toggle.dark-toggle.active span {
        background-color: #ffffff;
    }

    /* Make language dropdown open upwards on mobile so it doesn't fall off screen */
    .lang-dropdown {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 10px;
        /* Default mobile state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    /* Hover class disabled in JS, using show-mobile class */
    .lang-switcher:hover .lang-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .lang-dropdown.show-mobile {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(10px) !important;
    }
}

.dark-nav a.active-link {
    font-weight: 500;
}

.dark-nav a.active-link::after {
    transform: scaleX(1);
}

.dark-toggle span {
    background-color: var(--text-main);
    box-shadow: none;
}

.page-title-section {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    text-align: center;
}

.subtitle.dark-text {
    color: var(--text-light);
    text-shadow: none;
    margin-top: 1rem;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.filter-btn:hover {
    color: var(--text-main);
    border-bottom-color: var(--accent-color);
}

.category-section {
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    /* Para el scroll con el sticky header */
}

.category-section h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

/* Base layout for CSS-only masonry */
.masonry-grid {
    column-count: 3;
    column-gap: var(--spacing-md);
}

.masonry-item {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-md);
    display: block;
    break-inside: avoid;
    /* Previene cortes raros entre columnas */
    /* Maintians masonry flow */
    transition: transform 0.4s ease;
    background-color: #f9f9f9;
    border-radius: 4px;
    /* Opcional: un borde muy ligero */
}

.masonry-item:hover {
    transform: scale(1.02);
}

.catalog-cta {
    text-align: center;
    background-color: #fafafa;
    padding: var(--spacing-xl) var(--spacing-md);
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border-light);
}

.catalog-cta h3 {
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .catalog-filters {
        gap: var(--spacing-sm);
    }

    .filter-btn {
        font-size: 0.8rem;
    }
}