/* --- RESET & BASES (Original) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Tu paleta exacta original */
    --bg-pink2: #d09da4;
    --bg-pink: #fae0eb; 
    --gold-text: #B89C6A; 
    --gold-bright: #D4AF37; 
    --text-dark: #5A5A5A; 
    /* Fuentes originales */
    --font-main: 'Cormorant Garamond', serif; 
    --font-sub: 'Montserrat', sans-serif; 
}

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

body {
    background-color: var(--bg-pink);
    font-family: var(--font-sub);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ELEMENTOS COMUNES (Originales con tus sombras y divisores) --- */
.section-title {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--gold-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Tu sombra original */
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.diamond-divider {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold-text);
    margin: 0 auto 40px;
    transform: rotate(45deg);
    position: relative;
}
.diamond-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-text);
    top: 5px; left: 5px;
}

/* --- NUEVA NAVEGACIÓN (Insertada sin afectar lo demás) --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(250, 224, 235, 0.95);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(184, 156, 106, 0.2);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo a {
    font-family: var(--font-main);
    color: var(--gold-text);
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: 600;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-sub);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-text); }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--gold-text); cursor: pointer; }

/* --- SECCIÓN 1: HÉROE (Tu estilo original intacto) --- */
.hero-section {
    background-image: url('../images/hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 0;
    

    
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img {
    max-width: 650px;
    height: auto;
}
.logo-img-nav {
    max-width: 100px;
    height: auto;
}

.hero-text .main-title {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 4rem;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 1); /* Tu sombra original */
    color: #fde7da;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-text .sub-title {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /* Tu sombra original */
    color: white;
    margin-bottom: 50px;
    line-height: 1.4;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid rgba(255,255,255,0.7);
    background: #f7dcd3;
    color: #8a715b;
    font-family: var(--font-main);
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Tu sombra original */
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: white;
    color: #C19A9F;
}

/* --- SECCIÓN 2: MATERIALES (Original) --- */
.materials-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.materials-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../images/material-bg.webp');
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Desenfoque ligeramente más fuerte */
    transform: scale(1.1);
    z-index: 1;
    box-shadow: inset 0 100px 100px 0px rgba(0,0,0,0.8);
}

/* Opcional: Si quieres oscurecerlo un poco para que el texto resalte más */
.materials-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Un gradiente oscuro sutil ayuda a que el dorado resalte */
    background: rgba(0, 0, 0, 0.25); 
    z-index: 2;
}
.materials-section .container {
    position: relative;
    z-index: 3;
}
/* Mejora de Contraste en Títulos */
.materials-section .section-title, 
.materials-section .material-col h3 {
    color: #fff; /* Cambiamos a blanco o un dorado muy claro */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Sombra más fuerte */
}

/* Mejora de Contraste en Listas */
.materials-section .check-list li {
    color: #ffffff; /* Blanco puro para máxima legibilidad */
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.materials-section .check-list li::before {
    color: var(--gold-bright); /* Usamos el dorado brillante para el check */
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

/* El divisor también necesita resaltar */
.materials-section .diamond-divider {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.materials-section .diamond-divider::after {
    background: var(--gold-bright);
}

.materials-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.material-col {
    flex: 1;
    text-align: center;
    padding: 0 40px;
}

.material-col h3 {
    font-family: var(--font-main);
    color: var(--gold-text);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.material-divider-v {
    width: 1px;
    height: 180px;
    background-color: #EEE;
    align-self: center;
}

.check-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.check-list li {
    font-family: var(--font-sub);
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-text);
    font-weight: bold;
}

/* --- SECCIÓN 3: CATEGORÍAS (Visual - Original) --- */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-pink);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
    margin-top: 50px;
}

.category-item {
    background: white;
    border: 1px solid #EEE;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.category-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.category-name {
    font-family: var(--font-main);
    color: var(--gold-text);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* --- SECCIÓN 4: QUIÉNES SOMOS (Original) --- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-pink);
    text-align: center;
}

.about-text {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* --- SECCIÓN 5: CATÁLOGO (Original) --- */
.catalog-section {
    background-color: white;
    padding: 80px 0;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #EEE;
    color: var(--text-dark);
    padding: 10px 25px;
    font-family: var(--font-sub);
    font-size: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Tu sombra original */
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    color: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.jewelry-card {
    background: white;
    border: 1px solid #EEE;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease;
}

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

.card-image {
    height: 300px;
    overflow: hidden;
    padding: 10px;
}

.card-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.card-details {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #EEE;
}

.card-details h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold-text);
    margin-bottom: 8px;
}

.card-price {
    font-family: var(--font-sub);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1rem;
}

.view-btn {
    font-family: var(--font-sub);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #999;
    text-transform: uppercase;
    border-bottom: 1px solid #DDD;
    padding-bottom: 3px;
}

/* --- MODAL (Original con ajustes para Galería de Miniaturas y Scroll) --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
}

.modal-content {
    position: relative;
    background: white;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden; 
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        height: 550px;
    }
}

.modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .modal-body { flex-direction: row; }
}

/* --- ESTILOS DE SWIPER (Miniaturas) --- */
.swiper-container-main { width: 100%; display: flex; flex-direction: column; }
@media (min-width: 768px) { .swiper-container-main { width: 55%; } }

.mainSwiper { width: 100%; height: 75%; background: #F9F9F9; }
.thumbsSwiper { width: 100%; height: 25%; padding: 10px 0; background: #fdfdfd; }
.thumbsSwiper .swiper-slide { opacity: 0.4; cursor: pointer; }
.thumbsSwiper .swiper-slide-thumb-active { opacity: 1; border: 1px solid var(--gold-text); }
.thumbsSwiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.swiper-slide img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 10px;
}

.modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
}

.modal-text h2 { 
    font-family: var(--font-main); 
    color: var(--gold-text); 
    margin-bottom: 10px; 
    font-size: 1.8rem;
    font-weight: 500;
}

.modal-price {
    display: block;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: var(--font-sub);
    font-weight: 600;
}

.modal-real-desc { 
    font-family: var(--font-sub);
    font-weight: 300;
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.close-btn {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 2rem; color: #333;
    cursor: pointer; z-index: 20;
}

.btn-wa {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    font-family: var(--font-sub);
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-wa:hover {
    background: #128C7E;
}

.swiper-button-next, .swiper-button-prev { 
    color: var(--gold-text) !important; 
    background: rgba(255,255,255,0.8);
    width: 40px !important; height: 40px !important;
    border-radius: 50%;
    transform: scale(0.7);
}

/* --- NUEVO FOOTER --- */
.main-footer {
    background-color: #f4d4db; 
    padding: 70px 0 30px;
    border-top: 1px solid rgba(184, 156, 106, 0.2);
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-col h3, .footer-col h4 {
    font-family: var(--font-main);
    color: var(--gold-text);
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.footer-col p, a, .footer-col ul {
    font-size: 0.9rem;
    color: var(--text-dark);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: inherit; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--gold-text); padding-left: 5px; }

.social-links { display: flex; gap: 15px; margin-bottom: 20px; }
.social-links a {
    font-size: 1.5rem;
    color: white;
    background: var(--gold-text);
    text-decoration: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s;
}
.social-links a:hover { transform: translateY(-5px); background: var(--gold-bright); }
.footer-copy { margin-top: 20px; font-size: 0.75rem; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; }

/* --- RESPONSIVE MEDIA QUERIES (Combinados con tu original) --- */

@media (max-width: 992px) {
    .hero-text .main-title { font-size: 2.2rem; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .materials-grid { flex-direction: column; align-items: center; gap: 30px; }
    .material-divider-v { display: none; }
    .material-col { padding: 0; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }

    /* Fix para el Modal en móviles */
    .modal-content { 
        width: 95%; 
        max-height: 95vh; 
        height: auto; 
        overflow-y: auto; 
    }
    .swiper-container-main { height: 350px; }
    .mainSwiper { height: 250px; }
    .thumbsSwiper { height: 80px; }
    .modal-text { padding: 20px; flex: none; }
}

@media (max-width: 600px) {
    html { font-size: 14px; }
    .logo-img { max-width: 350px; }
    .hero-text .main-title { font-size: 1.8rem; letter-spacing: 1px; }
    .section-title { font-size: 1.8rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .about-text { font-size: 1.1rem; }
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
    .card-image { height: 150px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Contenedor relativo para el ícono de zoom */
.swiper-zoom-container {
    position: relative;
}

/* Ícono de lupa que aparece sobre la imagen */
.swiper-zoom-container::after {
    content: '\ebf7'; /* Código de RemixIcon para lupa (ri-zoom-in-line) */
    font-family: 'remixicon';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gold-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    pointer-events: none; /* Para que no interfiera con el clic en la imagen */
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10;
}

/* Ocultar la lupa cuando ya se hizo zoom */
.swiper-slide-zoomed .swiper-zoom-container::after {
    display: none;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--gold-text);
    color: var(--gold-text);
    text-decoration: none;
    transition: all 0.3s;
}
.page-link:hover, .page-link.active {
    background: var(--gold-text);
    color: white;
}
/* Agrega esto a tu style.css */
.page-dots {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-dark);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-dark);
    grid-column: 1 / -1;
}
/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--gold-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-image {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-details {
    padding: 20px;
}

.skeleton-title {
    height: 20px;
    background: #f0f0f0;
    margin-bottom: 10px;
    width: 80%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-price {
    height: 15px;
    background: #f0f0f0;
    width: 40%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: var(--gold-text);
    margin-bottom: 20px;
}

/* Error message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* Page dots */
.page-dots {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-dark);
}