/* --- VARIABLES --- */
:root {
    --lt-font-serif: 'Playfair Display', serif;
    --lt-font-sans: 'Inter', sans-serif;
    --lt-color-primary: #1a1a1a;
    --lt-color-accent: #C5A059;
    --lt-color-bg-modal: rgba(255, 255, 255, 0.98);
    --lt-radius: 8px;
    --lt-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 0. CABECERA --- */
.lt-header-wrapper {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}
.lt-header-title {
    font-family: var(--lt-font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--lt-color-primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    margin-top: 70px;
}
.lt-header-title .lt-title-emphasis {
    font-style: italic;
    color: var(--lt-color-accent);
    font-weight: 400;
}
.lt-header-subtitle {
    font-family: var(--lt-font-sans);
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 10px;
}

/* --- 1. GRID & TARJETAS (CORREGIDO: Centrado y 3 columnas) --- */
.lt-gallery-grid {
    display: grid;
    gap: 40px 30px;
    /* Forzamos 3 columnas exactas */
    grid-template-columns: repeat(3, 1fr); 
    padding-bottom: 50px;
    
    /* Centrado en pantalla grande */
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%;
}

.lt-guide-card {
    background: transparent;
    cursor: pointer;
    /* Aseguramos que la tarjeta ocupe su espacio */
    width: 100%; 
}

.lt-card-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: var(--lt-radius);
    position: relative;
}

.lt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.lt-guide-card:hover .lt-card-image {
    transform: scale(1.08);
}

.lt-card-content {
    padding: 20px 0 0 0;
    text-align: center;
}

.lt-card-title {
    font-family: var(--lt-font-serif);
    font-size: 1.4rem;
    color: var(--lt-color-primary);
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lt-guide-card:hover .lt-card-title {
    color: var(--lt-color-accent);
}

/* --- 2. MODAL --- */
body.lt-modal-open {
    overflow: hidden;
}

.lt-modal {
    position: fixed;
    z-index: 100000; /* Alto, pero menor que el Zoom */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--lt-color-bg-modal);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--lt-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lt-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.lt-modal-content {
    background: transparent; 
    box-shadow: none; 
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.lt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--lt-color-primary);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}
.lt-modal-close:hover {
    transform: rotate(90deg);
}

.lt-modal-title { display: none; }

/* --- 3. SWIPER / CARRUSEL --- */
.lt-swiper-carousel {
    width: 100%;
    height: 80%;
    padding-bottom: 40px;
}

.lt-swiper-carousel .swiper-slide {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    cursor: zoom-in; /* Cursor de lupa para indicar click */
}

.lt-swiper-carousel .swiper-slide-active {
    opacity: 1;
}

.lt-swiper-carousel .swiper-slide img {
    max-height: 65vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--lt-color-primary) !important;
    transform: scale(0.7);
}
.swiper-pagination-bullet-active {
    background: var(--lt-color-primary) !important;
}

.lt-look-title {
    font-family: var(--lt-font-sans);
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--lt-color-primary);
    font-weight: 500;
}

/* --- 4. BOTÓN WHATSAPP --- */
.lt-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lt-color-primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    font-family: var(--lt-font-sans);
    margin-top: 15px;
    font-weight: 600;
}

.lt-whatsapp-button:hover {
    background-color: var(--lt-color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- 5. RESPONSIVE (Grid adaptable) --- */
@media (max-width: 900px) {
    .lt-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .lt-gallery-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    .lt-whatsapp-button { width: 100%; }
}

/* --- 6. ZOOM OVERLAY (¡AQUÍ ESTÁ LA CORRECCIÓN!) --- */
.lt-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Fondo blanco limpio */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Z-Index MUY alto para estar encima del Modal (que tiene 100000) */
    z-index: 200000; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lt-zoom-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.lt-zoom-image-container {
    max-width: 95%;
    max-height: 95vh;
    position: relative;
}

.lt-zoom-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); /* Sombra elegante */
}

.lt-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #000;
    cursor: pointer;
    z-index: 200001;
    line-height: 0.5;
}

/* Descripción flotante opcional en zoom */
.lt-zoom-description {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #666;
    font-family: var(--lt-font-sans);
}