﻿/* ===================================================================
   SISTEMA DE COLOR DINÁMICO
   --color-principal se inyecta desde .atractivo-body-container
   =================================================================== */

/* Fallback global */
:root {
    --color-principal: #8B1D1D;
}

/* ===================================================================
   PARTE 1: HERO Y VIEWPORT
   =================================================================== */

.atractivo-viewport-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    overflow-y: auto;
    display: none;
}

    .atractivo-viewport-premium.open {
        display: block;
    }

.viewport-close {
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

    .viewport-close:hover {
        background: #0f172a;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(15, 23, 42, 0.25);
    }

.hero-premium-content-floating {
    position: relative;
    z-index: 10;
    width: 100%;
    background: linear-gradient(to bottom, #fdfbf7 0%, #ffffff 100%);
    padding: 3.5rem 2.5rem 2rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

    /* ✅ Color dinámico heredado */
    .hero-badge-tag i {
        color: var(--color-principal, #8B1D1D);
    }

.hero-atractivo-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #0f172a !important;
    letter-spacing: -0.5px;
    margin-bottom: 0.85rem;
    line-height: 1.2;
    text-shadow: none;
}

.hero-atractivo-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #475569 !important;
    font-weight: 500;
    max-width: 750px;
    letter-spacing: 0.2px;
    border-top: 2px solid rgba(139, 29, 29, 0.15);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

/* ✅ Selector que soporta color dinámico */
.atractivo-body-container .hero-atractivo-subtitle {
    border-top-color: color-mix(in srgb, var(--color-principal, #8B1D1D) 15%, transparent);
}

.titulo-mosaico {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: .34rem;
    width: 100%;
    max-width: none;
    margin: 0 auto 1.15rem auto;
    font-family: inherit;
    white-space: nowrap;
}

/* ===================================================================
   TÍTULO MOSAICO - TAMAÑO AUMENTADO
   Reemplazar la sección .titulo-letra en el CSS
   =================================================================== */

.titulo-letra {
    width: 46px; /* ✅ Era 40px, ahora 46px (+15%) */
    height: 58px; /* ✅ Era 52px, ahora 58px (+11.5%) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem; /* ✅ Era 1.9rem, ahora 2.1rem (+10.5%) */
    font-weight: 900;
    color: #172033;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,241,220,.92)), radial-gradient(circle at 30% 15%, rgba(212,175,55,.22), transparent 36%), radial-gradient(circle at 70% 90%, rgba(139,29,29,.16), transparent 40%);
    border: 1px solid rgba(139,29,29,.16);
    border-radius: var(--r1, 12px) var(--r2, 20px) var(--r3, 10px) var(--r4, 18px);
    box-shadow: 0 12px 24px rgba(139,29,29,.09), inset 0 1px 0 rgba(255,255,255,.95);
    transform: rotate(var(--rot, -2deg)) skewX(var(--skew, 0deg)) translateY(var(--y, 0));
    transition: transform .25s ease, box-shadow .25s ease;
}

/* ✅ Letras con color dinámico cuando están dentro de atractivo-body-container */
.atractivo-body-container .titulo-letra {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,241,220,.92)), radial-gradient(circle at 30% 15%, color-mix(in srgb, var(--color-principal, #8B1D1D) 22%, transparent), transparent 36%), radial-gradient(circle at 70% 90%, color-mix(in srgb, var(--color-principal, #8B1D1D) 16%, transparent), transparent 40%);
    border-color: color-mix(in srgb, var(--color-principal, #8B1D1D) 16%, transparent);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--color-principal, #8B1D1D) 9%, transparent), inset 0 1px 0 rgba(255,255,255,.95);
}

.titulo-letra:hover {
    transform: rotate(0deg) skewX(0deg) translateY(-4px);
    box-shadow: 0 18px 34px rgba(139,29,29,.14), inset 0 1px 0 rgba(255,255,255,1);
}

.atractivo-body-container .titulo-letra:hover {
    box-shadow: 0 18px 34px color-mix(in srgb, var(--color-principal, #8B1D1D) 14%, transparent), inset 0 1px 0 rgba(255,255,255,1);
}

.titulo-letra:nth-child(2n) {
    --rot: 2deg;
    --skew: -2deg;
    --y: 2px;
    --r1: 18px;
    --r2: 10px;
    --r3: 20px;
    --r4: 12px;
    background: linear-gradient(145deg, #fff, #fff3df), radial-gradient(circle at top left, rgba(212,175,55,.24), transparent 42%);
}

.atractivo-body-container .titulo-letra:nth-child(2n) {
    background: linear-gradient(145deg, #fff, #fff3df), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 24%, transparent), transparent 42%);
}

.titulo-letra:nth-child(3n) {
    --rot: -1.8deg;
    --skew: 2deg;
    --y: -1px;
    --r1: 10px;
    --r2: 22px;
    --r3: 14px;
    --r4: 24px;
    background: linear-gradient(145deg, #fff, #fff7ed), radial-gradient(circle at bottom right, rgba(139,29,29,.18), transparent 44%);
}

.atractivo-body-container .titulo-letra:nth-child(3n) {
    background: linear-gradient(145deg, #fff, #fff7ed), radial-gradient(circle at bottom right, color-mix(in srgb, var(--color-principal, #8B1D1D) 18%, transparent), transparent 44%);
}

.titulo-letra:nth-child(4n) {
    --rot: 1deg;
    --skew: -1deg;
    --y: 1px;
    background: linear-gradient(145deg, #fffaf0, #ffffff), radial-gradient(circle at center, rgba(194,65,12,.13), transparent 46%);
}

.atractivo-body-container .titulo-letra:nth-child(4n) {
    background: linear-gradient(145deg, #fffaf0, #ffffff), radial-gradient(circle at center, color-mix(in srgb, var(--color-principal, #8B1D1D) 13%, transparent), transparent 46%);
}

.titulo-letra:nth-child(5n) {
    --rot: -2.5deg;
    --skew: 1.5deg;
    --y: -2px;
}

.titulo-space {
    width: 26px; /* ✅ Era 24px, ahora 26px */
    flex-shrink: 0;
}
/* ===================================================================
   ANIMACIÓN DE OLA AUTOMÁTICA EN TÍTULO MOSAICO
   Agregar DESPUÉS de los estilos de .titulo-letra
   =================================================================== */

/* ✅ Animación de levantamiento individual */
@keyframes letra-levanta {
    0%, 100% {
        transform: rotate(var(--rot, -2deg)) skewX(var(--skew, 0deg)) translateY(var(--y, 0));
    }

    50% {
        transform: rotate(0deg) skewX(0deg) translateY(-8px);
    }
}

/* ✅ Aplicar animación con delay progresivo a cada letra */
.titulo-letra {
    animation: letra-levanta 3s ease-in-out infinite;
    animation-delay: calc(var(--letter-index) * 0.1s);
}

/* ✅ Pausar animación cuando el usuario hace hover */
.titulo-mosaico:hover .titulo-letra {
    animation-play-state: paused;
}

/* ✅ Mantener el hover manual */
.titulo-letra:hover {
    transform: rotate(0deg) skewX(0deg) translateY(-4px) !important;
    box-shadow: 0 18px 34px rgba(139,29,29,.14), inset 0 1px 0 rgba(255,255,255,1);
    animation-play-state: paused;
}

.atractivo-body-container .titulo-letra:hover {
    box-shadow: 0 18px 34px color-mix(in srgb, var(--color-principal, #8B1D1D) 14%, transparent), inset 0 1px 0 rgba(255,255,255,1);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1200px) {
    .titulo-letra {
        width: 39px; /* ✅ Era 34px, ahora 39px */
        height: 51px; /* ✅ Era 46px, ahora 51px */
        font-size: 1.7rem; /* ✅ Era 1.55rem, ahora 1.7rem */
    }

    .titulo-space {
        width: 18px;
    }
}

@media (max-width: 768px) {
    .titulo-letra {
        width: 36px; /* ✅ Era 32px, ahora 36px */
        height: 46px; /* ✅ Era 42px, ahora 46px */
        font-size: 1.6rem; /* ✅ Era 1.45rem, ahora 1.6rem */
        border-radius: 8px;
    }

    .titulo-space {
        width: 12px;
    }
}

/* ===================================================================
   PARTE 2: LAYOUT Y TARJETAS
   =================================================================== */

.atractivo-premium-grid {
    width: min(1280px, calc(100% - 3rem));
    margin: 3rem auto 4rem auto;
    display: block;
}

.atractivo-editorial-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.stat-counter-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .stat-counter-item:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--color-principal, #8B1D1D) 15%, transparent);
        box-shadow: 0 12px 30px color-mix(in srgb, var(--color-principal, #8B1D1D) 5%, transparent);
    }

.counter-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.counter-number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.counter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 140px;
}

.editorial-section {
    min-height: 320px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.88)), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent), transparent 38%), radial-gradient(circle at bottom right, rgba(212,175,55,.14), transparent 42%);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    border-radius: 26px;
    padding: 1.6rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.95);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .editorial-section::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--color-principal, #8B1D1D) 55%, transparent), rgba(212,175,55,.48), color-mix(in srgb, var(--color-principal, #8B1D1D) 25%, transparent));
    }

    .editorial-section::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -44px;
        width: 150px;
        height: 150px;
        border-radius: 38% 62% 45% 55%;
        background: radial-gradient(circle, color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), transparent 66%);
        transform: rotate(-18deg);
        pointer-events: none;
    }

.editorial-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.78);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 14%, transparent);
    padding: .42rem .85rem;
    border-radius: 999px;
    color: var(--color-principal, #8B1D1D);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-principal, #8B1D1D) 6%, transparent), inset 0 1px 0 rgba(255,255,255,.9);
    margin-bottom: 1rem;
}

.editorial-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.1vw, 2.25rem);
    font-weight: 900;
    line-height: 1.08;
    color: #111827;
    margin: 0 0 1rem 0;
    letter-spacing: -.04em;
}

.editorial-text-p {
    font-size: .95rem;
    line-height: 1.75;
    color: #475569;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.capsules-premium-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem; /* ✅ ANTES era "auto" */
}

.capsule-atractivo {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: .75rem .9rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #fff7ed), radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 42%);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    box-shadow: 0 10px 24px rgba(15,23,42,.045), inset 0 1px 0 rgba(255,255,255,.95);
    transition: transform .22s ease, box-shadow .22s ease;
}

    .capsule-atractivo:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), inset 0 1px 0 rgba(255,255,255,1);
    }

    .capsule-atractivo span {
        font-size: .88rem;
        line-height: 1.35;
        color: #334155;
        font-weight: 700;
    }

.atractivo-editorial-content > .editorial-section:nth-child(4) {
    grid-column: 1 / -1;
    min-height: auto;
}

.atractivo-photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-top: auto;
}

.gallery-photo-item {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

    .gallery-photo-item img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

.photo-meta-text {
    padding: .85rem;
    font-size: .78rem;
    color: #475569;
    font-weight: 700;
    line-height: 1.35;
}

.atractivo-editorial-content > .atractivo-sidebar-sticky {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    position: relative;
    top: auto;
}

@media (max-width: 900px) {
    .atractivo-editorial-content {
        grid-template-columns: 1fr;
    }

        .atractivo-editorial-content > .atractivo-sidebar-sticky {
            grid-template-columns: 1fr;
        }

    .atractivo-photo-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-photo-item img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .atractivo-premium-grid {
        width: calc(100% - 1rem);
        margin-top: 2rem;
    }

    .editorial-section {
        min-height: auto;
        padding: 1.25rem;
        border-radius: 22px;
    }

    .capsules-premium-flex {
        grid-template-columns: 1fr;
    }

    .counter-number {
        font-size: 1.5rem;
    }

    .counter-label {
        font-size: 0.68rem;
    }
}

/* ===================================================================
   PARTE 3: SIDEBAR
   =================================================================== */

.insider-tip-box {
    min-height: 320px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.88)), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent), transparent 38%), radial-gradient(circle at bottom right, rgba(212,175,55,.14), transparent 42%);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    border-radius: 26px;
    padding: 1.6rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.95);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .insider-tip-box::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--color-principal, #8B1D1D) 55%, transparent), rgba(212,175,55,.48), color-mix(in srgb, var(--color-principal, #8B1D1D) 25%, transparent));
    }

    .insider-tip-box::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -44px;
        width: 150px;
        height: 150px;
        border-radius: 38% 62% 45% 55%;
        background: radial-gradient(circle, color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), transparent 66%);
        transform: rotate(-18deg);
        pointer-events: none;
    }

.insider-header {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.78);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 14%, transparent);
    padding: .42rem .85rem;
    border-radius: 999px;
    color: var(--color-principal, #8B1D1D);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-principal, #8B1D1D) 6%, transparent), inset 0 1px 0 rgba(255,255,255,.9);
    margin-bottom: 1rem;
}

.insider-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.1vw, 2.25rem);
    font-weight: 900;
    line-height: 1.08;
    color: #111827;
    margin: 0 0 1rem 0;
    letter-spacing: -.04em;
    position: relative;
    z-index: 2;
}

.insider-text {
    font-size: .95rem;
    line-height: 1.75;
    color: #475569;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin: 0;
    font-style: italic;
}

.logistics-card-premium {
    min-height: 320px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.88)), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent), transparent 38%), radial-gradient(circle at bottom right, rgba(212,175,55,.14), transparent 42%);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    border-radius: 26px;
    padding: 1.6rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.95);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .logistics-card-premium::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--color-principal, #8B1D1D) 55%, transparent), rgba(212,175,55,.48), color-mix(in srgb, var(--color-principal, #8B1D1D) 25%, transparent));
    }

    .logistics-card-premium::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -44px;
        width: 150px;
        height: 150px;
        border-radius: 38% 62% 45% 55%;
        background: radial-gradient(circle, color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), transparent 66%);
        transform: rotate(-18deg);
        pointer-events: none;
    }

.logistics-card-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.1vw, 2.25rem);
    font-weight: 900;
    line-height: 1.08;
    color: #111827;
    margin: 0 0 1rem 0;
    letter-spacing: -.04em;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .logistics-card-heading i {
        color: var(--color-principal, #8B1D1D);
        font-size: 1.2rem;
    }

.logistics-section-item {
    position: relative;
    z-index: 2;
}

.item-label {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-principal, #8B1D1D);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .item-label i {
        font-size: .85rem;
    }

.item-data {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .8rem;
    background: rgba(255,255,255,.5);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 8%, transparent);
}

    .data-row span {
        font-size: .85rem;
        color: #64748b;
        font-weight: 600;
    }

    .data-row strong {
        font-size: .9rem;
        color: #111827;
        font-weight: 800;
    }

.logistics-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .logistics-bullets li {
        font-size: .88rem;
        line-height: 1.5;
        color: #475569;
        font-weight: 500;
        padding-left: 1.5rem;
        position: relative;
    }

        .logistics-bullets li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--color-principal, #8B1D1D);
            font-weight: 900;
        }

.payment-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.pay-chip-premium {
    display: inline-flex;
    align-items: center;
    padding: .4rem .8rem;
    background: rgba(255,255,255,.7);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
}

.payment-note-text {
    display: block;
    font-size: .75rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .insider-tip-box,
    .logistics-card-premium {
        min-height: auto;
        padding: 1.25rem;
        border-radius: 22px;
    }
}

/* ===================================================================
   CONTADORES - VERSIÓN COMPACTA
   Reemplazar la sección de CONTADORES en el CSS
   =================================================================== */

.stats-wrapper-section {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 1.2rem 2rem 1.4rem 2rem; /* ✅ Reducido de 1.6rem a 1.2rem arriba y 1.4rem abajo */
}

    .stats-wrapper-section .atractivo-stats-counter-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
        margin-top: 0.2rem; /* ✅ Reducido de 1rem a 0.6rem */
        position: relative;
        z-index: 2;
    }

    .stats-wrapper-section .stat-counter-item {
        background: transparent;
        border: none;
        padding: 0.75rem 0.5rem; /* ✅ Reducido de 1rem a 0.75rem */
        border-radius: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        transition: transform 0.3s ease;
        position: relative;
    }

        .stats-wrapper-section .stat-counter-item:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 15%;
            height: 70%;
            width: 1px;
            background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--color-principal, #8B1D1D) 15%, transparent), transparent);
        }

        .stats-wrapper-section .stat-counter-item:hover {
            transform: translateY(-4px);
        }

    .stats-wrapper-section .counter-icon {
        font-size: 1.85rem; /* ✅ Reducido de 2rem a 1.85rem */
        margin-bottom: 0.6rem; /* ✅ Reducido de 0.75rem a 0.6rem */
        filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--color-principal, #8B1D1D) 15%, transparent));
    }

    .stats-wrapper-section .counter-number {
        font-family: 'Playfair Display', 'Georgia', serif;
        font-size: 2.1rem; /* ✅ Reducido de 2.2rem a 2.1rem */
        font-weight: 900;
        color: #0f172a;
        line-height: 1.1;
        margin-bottom: 0.4rem; /* ✅ Reducido de 0.5rem a 0.4rem */
    }

    .stats-wrapper-section .counter-label {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.5px;
        line-height: 1.3;
        max-width: 160px;
    }

@media (max-width: 900px) {
    .stats-wrapper-section .atractivo-stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .stats-wrapper-section .stat-counter-item:nth-child(2)::after,
    .stats-wrapper-section .stat-counter-item:nth-child(4)::after {
        display: none;
    }

    .stats-wrapper-section .stat-counter-item:nth-child(odd)::after {
        display: block;
    }
}

@media (max-width: 768px) {
    .stats-wrapper-section {
        padding: 1rem 1.5rem 1.2rem 1.5rem; /* ✅ Compacto en mobile también */
    }

        .stats-wrapper-section .counter-number {
            font-size: 1.8rem;
        }

        .stats-wrapper-section .counter-label {
            font-size: 0.65rem;
        }
}
/* ===================================================================
   MAPA
   =================================================================== */

.atractivo-editorial-content > .map-section {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2rem 0 0 0;
}

.map-section-wrapper {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.88)), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent), transparent 38%), radial-gradient(circle at bottom right, rgba(212,175,55,.14), transparent 42%);
    border: 1px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.95);
    position: relative;
    overflow: hidden;
}

    .map-section-wrapper::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--color-principal, #8B1D1D) 55%, transparent), rgba(212,175,55,.48), color-mix(in srgb, var(--color-principal, #8B1D1D) 25%, transparent));
    }

    .map-section-wrapper::after {
        content: "";
        position: absolute;
        right: -44px;
        bottom: -44px;
        width: 150px;
        height: 150px;
        border-radius: 38% 62% 45% 55%;
        background: radial-gradient(circle, color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), transparent 66%);
        transform: rotate(-18deg);
        pointer-events: none;
    }

.map-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.1vw, 2.25rem);
    font-weight: 900;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 1.5rem 0;
    letter-spacing: -.04em;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .map-title::before {
        content: "📍";
        font-size: 1.4rem;
    }

.map-container {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
    border: 2px solid color-mix(in srgb, var(--color-principal, #8B1D1D) 8%, transparent);
}

    .map-container iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

@media (max-width: 768px) {
    .atractivo-editorial-content > .map-section {
        margin: 1.5rem 0 0 0;
    }

    .map-section-wrapper {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .map-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .map-container {
        height: 280px !important;
    }
}

/* ===================================================================
   FIX: Badge + Botón en la misma línea
   Agregar DESPUÉS del CSS del hero-badge-tag original
   =================================================================== */

/* ✅ Contenedor que alinea badge + botón horizontalmente */
.hero-badge-with-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

    /* ✅ Forzar que el badge NO se comporte como block */
    .hero-badge-with-audio .hero-badge-tag {
        display: inline-flex; /* Ya lo tenías, pero aseguramos */
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0 !important; /* ⚠️ CRÍTICO: Resetear margin-bottom */
        flex-shrink: 0; /* No permitir que se encoja */
    }

/* ✅ Botón de audio en el hero */
.audio-btn-hero {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-15, rgba(139, 29, 29, 0.15));
    color: var(--color-principal, #8B1D1D);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

    .audio-btn-hero:hover {
        transform: translateY(-3px) scale(1.08);
        box-shadow: 0 8px 20px var(--color-25, rgba(139, 29, 29, 0.25));
        background: var(--color-principal, #8B1D1D);
        color: #ffffff;
    }

    .audio-btn-hero:active {
        transform: translateY(0) scale(0.98);
    }

    .audio-btn-hero i {
        font-size: 0.95rem;
    }

    /* Estado reproduciendo */
    .audio-btn-hero.playing {
        background: var(--color-principal, #8B1D1D);
        color: #ffffff;
        animation: pulse-audio-hero 1.5s ease-in-out infinite;
    }

@keyframes pulse-audio-hero {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--color-25, rgba(139, 29, 29, 0.25));
    }

    50% {
        box-shadow: 0 0 0 12px transparent;
    }
}

/* ===================================================================
   BOTONES DE AUDIO EN SECCIONES
   =================================================================== */

.section-header-with-audio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.audio-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-15, rgba(139, 29, 29, 0.15));
    color: var(--color-principal, #8B1D1D);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 10;
}

    .audio-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 16px var(--color-15, rgba(139, 29, 29, 0.15));
        background: var(--color-principal, #8B1D1D);
        color: #ffffff;
    }

    .audio-btn:active {
        transform: translateY(0) scale(0.98);
    }

    .audio-btn i {
        font-size: 0.85rem;
    }

    .audio-btn.playing {
        background: var(--color-principal, #8B1D1D);
        color: #ffffff;
        animation: pulse-audio 1.5s ease-in-out infinite;
    }

@keyframes pulse-audio {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--color-25, rgba(139, 29, 29, 0.25));
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.section-header-with-audio .editorial-badge,
.section-header-with-audio .insider-header {
    margin-bottom: 0;
}

.has-audio {
    position: relative;
}

    .has-audio .section-header-with-audio {
        position: relative;
        z-index: 3;
    }

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
    .hero-badge-with-audio {
        gap: 0.5rem;
    }

    .audio-btn-hero {
        width: 36px;
        height: 36px;
    }

        .audio-btn-hero i {
            font-size: 0.85rem;
        }

    .audio-btn {
        width: 32px;
        height: 32px;
    }

        .audio-btn i {
            font-size: 0.75rem;
        }

    .section-header-with-audio {
        gap: 0.5rem;
    }
}
/* =========================================================
   MEJORAS SUAVES - ATMÓSFERA DINÁMICA POR ATRACTIVO
   No rompe estructura existente
========================================================= */

.atractivo-body-container {
    position: relative;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-principal, #8B1D1D) 7%, transparent), transparent 34%), linear-gradient(180deg, #fff 0%, #fffdf8 42%, #fff 100%);
}

    .atractivo-body-container::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--color-principal, #8B1D1D) 5%, transparent), transparent 28%), radial-gradient(circle at 85% 55%, rgba(212,175,55,.07), transparent 30%);
    }

.hero-premium-content-floating,
.atractivo-premium-grid {
    position: relative;
    z-index: 1;
}

/* Cards con más profundidad sin cambiar tamaños */
.editorial-section,
.insider-tip-box,
.logistics-card-premium,
.map-section-wrapper {
    box-shadow: 0 22px 55px rgba(15,23,42,.07), 0 0 0 1px rgba(255,255,255,.7) inset, inset 0 1px 0 rgba(255,255,255,.95);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

    .editorial-section:hover,
    .insider-tip-box:hover,
    .logistics-card-premium:hover,
    .map-section-wrapper:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--color-principal, #8B1D1D) 18%, transparent);
        box-shadow: 0 28px 70px rgba(15,23,42,.09), 0 16px 40px color-mix(in srgb, var(--color-principal, #8B1D1D) 7%, transparent), inset 0 1px 0 rgba(255,255,255,1);
    }

    /* Fondo interno más editorial */
    .editorial-section::after,
    .insider-tip-box::after,
    .logistics-card-premium::after,
    .map-section-wrapper::after {
        opacity: .85;
        filter: blur(.2px);
    }

/* Cápsulas más premium */
.capsule-atractivo {
    position: relative;
    overflow: hidden;
}

    .capsule-atractivo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent 0%, rgba(255,255,255,.55) 45%, transparent 70% );
        transform: translateX(-120%);
        transition: transform .55s ease;
    }

    .capsule-atractivo:hover::before {
        transform: translateX(120%);
    }

/* Galería más cinematográfica */
.gallery-photo-item {
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .gallery-photo-item:hover {
        transform: translateY(-5px) scale(1.015);
        box-shadow: 0 22px 48px rgba(15,23,42,.12), 0 12px 30px color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent);
    }

    .gallery-photo-item img {
        transition: transform .6s ease, filter .6s ease;
    }

    .gallery-photo-item:hover img {
        transform: scale(1.06);
        filter: saturate(1.08) contrast(1.04);
    }

/* Contadores con más presencia */
.stats-wrapper-section {
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,250,242,.9)), radial-gradient(circle at top left, color-mix(in srgb, var(--color-principal, #8B1D1D) 10%, transparent), transparent 40%);
}

    .stats-wrapper-section .counter-number {
        text-shadow: 0 8px 20px rgba(15,23,42,.08);
    }

    .stats-wrapper-section .counter-icon {
        transform: translateY(0);
        transition: transform .25s ease;
    }

    .stats-wrapper-section .stat-counter-item:hover .counter-icon {
        transform: translateY(-4px) scale(1.08);
    }

/* Título mosaico más integrado */
.titulo-mosaico {
    filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--color-principal, #8B1D1D) 7%, transparent));
}

.titulo-letra {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Botón volver más integrado */
.viewport-close {
    border-color: color-mix(in srgb, var(--color-principal, #8B1D1D) 12%, transparent);
}

    .viewport-close:hover {
        background: var(--color-principal, #8B1D1D);
        color: #fff;
    }

/* Mobile: bajar efectos para que no pese */
@media (max-width: 768px) {
    .editorial-section:hover,
    .insider-tip-box:hover,
    .logistics-card-premium:hover,
    .map-section-wrapper:hover,
    .gallery-photo-item:hover {
        transform: none;
    }

    .atractivo-body-container::before {
        display: none;
    }
}
/* ================================================================
   FIX MOBILE: TÍTULO MOSAICO QUE WRAP A MÚLTIPLES LÍNEAS
================================================================ */

@media (max-width: 768px) {
    .titulo-mosaico {
        flex-wrap: wrap !important; /* permite varias líneas */
        white-space: normal !important;
        max-width: 100%;
        padding: 0 0.5rem;
        gap: 0.2rem !important;
        row-gap: 0.4rem !important;
    }

    .titulo-letra {
        width: 28px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        border-radius: 6px !important;
    }

    .titulo-space {
        width: 8px !important;
        flex-basis: 100%; /* fuerza un "salto" prolijo entre palabras */
        height: 0;
    }

    /* Si el título tiene texto entre paréntesis (ej. "Valle de la Luna (Ischigualasto)"),
       permitir wrap más natural */
    .hero-atractivo-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 400px) {
    .titulo-letra {
        width: 24px !important;
        height: 32px !important;
        font-size: 1.05rem !important;
    }
}
/* ================================================================
   STATS WRAPPER - COMPACTAR ALTURA (DESKTOP Y MOBILE)
================================================================ */

/* Desktop + mobile: padding interno más chico */
.stats-wrapper-section {
    padding: 0.85rem 1.5rem 1rem 1.5rem !important;
    min-height: auto !important;
}

    .stats-wrapper-section .atractivo-stats-counter-grid {
        gap: 0.75rem !important;
        margin-top: 0.15rem !important;
    }

    .stats-wrapper-section .stat-counter-item {
        padding: 0.5rem 0.4rem !important;
    }

    /* Iconos más chicos */
    .stats-wrapper-section .counter-icon {
        font-size: 1.4rem !important;
        margin-bottom: 0.3rem !important;
    }

    /* Números más chicos pero siguen siendo el protagonista */
    .stats-wrapper-section .counter-number {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1 !important;
    }

    /* Labels más chicas */
    .stats-wrapper-section .counter-label {
        font-size: 0.62rem !important;
        line-height: 1.25 !important;
        max-width: 130px;
    }

    /* Badge "Datos del Destino" más discreto */
    .stats-wrapper-section .editorial-badge {
        font-size: 0.58rem !important;
        padding: 0.32rem 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }

/* Mobile: aún más compacto */
@media (max-width: 768px) {
    .stats-wrapper-section {
        padding: 0.75rem 1rem 0.9rem 1rem !important;
    }

        .stats-wrapper-section .counter-icon {
            font-size: 1.25rem !important;
            margin-bottom: 0.25rem !important;
        }

        .stats-wrapper-section .counter-number {
            font-size: 1.35rem !important;
        }

        .stats-wrapper-section .counter-label {
            font-size: 0.58rem !important;
            max-width: 110px;
        }
}
/* ================================================================
   BOTÓN VOLVER - REDISEÑO PREMIUM
================================================================ */

.viewport-close {
    position: fixed;
    top: 5rem;
    left: 1.5rem; /* ✅ esquina superior izquierda */
    right: auto; /* ✅ ya no fijo a la derecha */
    z-index: 1060;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.2px;
    text-transform: none; /* ✅ saca mayúsculas, queda más amigable */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

    .viewport-close:hover {
        background: var(--color-principal, #8B1D1D);
        color: #fff;
        transform: translateX(-3px); /* ✅ se desplaza a la izquierda al hover (refuerza la idea de "atrás") */
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1), 0 12px 28px color-mix(in srgb, var(--color-principal, #8B1D1D) 20%, transparent);
    }

    .viewport-close:active {
        transform: translateX(-3px) scale(0.98);
    }

    /* ✅ Reemplazar el ícono X por una flecha izquierda */
    .viewport-close i {
        font-size: 0.85rem;
        transition: transform 0.3s ease;
    }

    .viewport-close:hover i {
        transform: translateX(-2px);
    }

    /* Cambiar visualmente el ícono sin tocar el HTML:
   ocultamos el fa-times y mostramos fa-arrow-left vía ::before */
    .viewport-close i.fa-times {
        display: none;
    }

        .viewport-close i.fa-times::before {
            content: "\f060"; /* fa-arrow-left */
        }

    /* ✅ El span con "Volver a la Guía" queda como texto suave */
    .viewport-close span {
        font-weight: 600;
        font-size: 0.78rem;
    }

/* ================================================================
   MOBILE: botón más compacto, solo ícono opcional
================================================================ */

@media (max-width: 768px) {
    .viewport-close {
        top: 4.5rem;
        left: 1rem;
        padding: 0.5rem 0.85rem 0.5rem 0.75rem;
        font-size: 0.72rem;
    }

        .viewport-close span {
            font-size: 0.72rem;
        }

        .viewport-close i {
            font-size: 0.78rem;
        }
}

@media (max-width: 400px) {
    /* En pantallas muy chicas, mostrar solo el ícono */
    .viewport-close span {
        display: none;
    }

    .viewport-close {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
}
/* ================================================================
   GALERÍA - ESTADOS DE CARGA Y FALLBACK
================================================================ */

/* Mientras se validan las imágenes, ocultamos la galería para que no se vean los íconos rotos */
.atractivo-photo-gallery.galeria-cargando {
    opacity: 0;
    min-height: 200px;
}

.atractivo-photo-gallery.galeria-lista {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* ✅ Clases dinámicas según cantidad de fotos que SÍ cargaron */
.atractivo-photo-gallery.galeria-1-foto {
    grid-template-columns: 1fr !important;
}

    .atractivo-photo-gallery.galeria-1-foto .gallery-photo-item img {
        height: 420px;
        object-fit: cover;
    }

    .atractivo-photo-gallery.galeria-1-foto .photo-meta-text {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
        text-align: center;
    }

.atractivo-photo-gallery.galeria-2-fotos {
    grid-template-columns: repeat(2, 1fr) !important;
}

    .atractivo-photo-gallery.galeria-2-fotos .gallery-photo-item img {
        height: 300px;
    }

.atractivo-photo-gallery.galeria-3-fotos {
    grid-template-columns: repeat(3, 1fr) !important;
}

    .atractivo-photo-gallery.galeria-3-fotos .gallery-photo-item img {
        height: 240px;
    }

.atractivo-photo-gallery.galeria-4-fotos {
    grid-template-columns: repeat(4, 1fr) !important;
}

    .atractivo-photo-gallery.galeria-4-fotos .gallery-photo-item img {
        height: 190px;
    }

/* Mobile: todas se apilan */
@media (max-width: 900px) {
    .atractivo-photo-gallery.galeria-1-foto,
    .atractivo-photo-gallery.galeria-2-fotos,
    .atractivo-photo-gallery.galeria-3-fotos,
    .atractivo-photo-gallery.galeria-4-fotos {
        grid-template-columns: 1fr !important;
    }

        .atractivo-photo-gallery.galeria-1-foto .gallery-photo-item img,
        .atractivo-photo-gallery.galeria-2-fotos .gallery-photo-item img,
        .atractivo-photo-gallery.galeria-3-fotos .gallery-photo-item img,
        .atractivo-photo-gallery.galeria-4-fotos .gallery-photo-item img {
            height: 260px;
        }
}

/* ================================================================
   GALERÍA MODAL - LIGHTBOX PREMIUM
================================================================ */

.galeria-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .galeria-modal.open {
        display: flex;
        opacity: 1;
    }

/* Fondo oscuro con blur */
.galeria-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Contenido centrado */
.galeria-modal-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: galeria-modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes galeria-modal-in {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.galeria-modal-image-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.galeria-modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Caption con título y contador */
.galeria-modal-caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
    color: #fff;
    flex-wrap: wrap;
}

.galeria-modal-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.galeria-modal-contador {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

/* Botón cerrar */
.galeria-modal-close {
    position: absolute;
    top: 5rem;
    right: 1.25rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

    .galeria-modal-close:hover {
        background: #fff;
        transform: scale(1.08) rotate(90deg);
    }

    .galeria-modal-close:active {
        transform: scale(0.96);
    }

    .galeria-modal-close i {
        font-size: 1.05rem;
    }

/* Flechas de navegación */
.galeria-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

    .galeria-modal-nav:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
    }

    .galeria-modal-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .galeria-modal-nav i {
        font-size: 1.1rem;
    }

.galeria-modal-prev {
    left: 1.5rem;
}

    .galeria-modal-prev:hover {
        transform: translateY(-50%) translateX(-3px) scale(1.08);
    }

.galeria-modal-next {
    right: 1.5rem;
}

    .galeria-modal-next:hover {
        transform: translateY(-50%) translateX(3px) scale(1.08);
    }

/* Ocultar flechas si solo hay 1 imagen */
.galeria-modal.solo-una .galeria-modal-prev,
.galeria-modal.solo-una .galeria-modal-next {
    display: none;
}

.galeria-modal.solo-una .galeria-modal-contador {
    display: none;
}

/* Cursor pointer en las fotos para indicar que son clicables */
.gallery-photo-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-photo-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
    }

/* Bloquear scroll del body cuando el modal está abierto */
body.galeria-modal-abierta {
    overflow: hidden;
}

/* ================================================================
   MOBILE: ajustes
================================================================ */

@media (max-width: 768px) {
    .galeria-modal {
        padding: 0.75rem;
    }

    .galeria-modal-close {
        top: 4.5rem;
        right: 0.85rem;
        width: 40px;
        height: 40px;
    }

    .galeria-modal-nav {
        width: 42px;
        height: 42px;
    }

    .galeria-modal-prev {
        left: 0.5rem;
    }

    .galeria-modal-next {
        right: 0.5rem;
    }

    .galeria-modal-nav i {
        font-size: 0.95rem;
    }

    .galeria-modal-image {
        max-height: 70vh;
    }

    .galeria-modal-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .galeria-modal-titulo {
        font-size: 0.85rem;
    }

    .galeria-modal-contador {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ===================================================================
   PLACEHOLDER ELEGANTE EN GALERÍA (cuando no hay fotos ni hero)
=================================================================== */

.gallery-placeholder-item {
    position: relative;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    cursor: default !important;
}

    /* Patrón decorativo sutil de líneas */
    .gallery-placeholder-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( 45deg, transparent, transparent 28px, rgba(255, 255, 255, 0.025) 28px, rgba(255, 255, 255, 0.025) 56px );
        pointer-events: none;
        z-index: 1;
    }

    /* Halo dorado central */
    .gallery-placeholder-item::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 65%);
        pointer-events: none;
        z-index: 1;
    }

.gallery-placeholder-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 480px;
}

.gallery-placeholder-emoji {
    display: block;
    font-size: 6.5rem;
    line-height: 1;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
    animation: galleryPlaceholderFloat 4s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes galleryPlaceholderFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.gallery-placeholder-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-placeholder-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

    .gallery-placeholder-hint i {
        color: #fbbf24;
        font-size: 0.75rem;
    }

/* ===== COLORES POR CATEGORÍA (mismos que las tarjetas del home) ===== */

.gallery-placeholder-item[data-categoria="parques"] {
    background: linear-gradient(135deg, #5d1414 0%, #8B1D1D 50%, #b45309 100%);
}

.gallery-placeholder-item[data-categoria="rutas"] {
    background: linear-gradient(135deg, #422006 0%, #78350f 50%, #d97706 100%);
}

.gallery-placeholder-item[data-categoria="vino"] {
    background: linear-gradient(135deg, #3d0a0a 0%, #6d1717 50%, #991b1b 100%);
}

.gallery-placeholder-item[data-categoria="cultura"] {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

.gallery-placeholder-item[data-categoria="fiestas"] {
    background: linear-gradient(135deg, #500724 0%, #9d174d 50%, #db2777 100%);
}

.gallery-placeholder-item[data-categoria="aventura"] {
    background: linear-gradient(135deg, #431407 0%, #9a3412 50%, #ea580c 100%);
}

.gallery-placeholder-item[data-categoria="montana"] {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #38bdf8 100%);
}

.gallery-placeholder-item[data-categoria="termas"] {
    background: linear-gradient(135deg, #042f2e 0%, #115e59 50%, #14b8a6 100%);
}

.gallery-placeholder-item[data-categoria="arqueologia"] {
    background: linear-gradient(135deg, #3f1d0f 0%, #7c2d12 50%, #c2410c 100%);
}

.gallery-placeholder-item[data-categoria="naturaleza"] {
    background: linear-gradient(135deg, #052e16 0%, #166534 50%, #16a34a 100%);
}

/* La galería sin fotos no abre modal */
.galeria-sin-fotos .gallery-placeholder-item {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-placeholder-item {
        min-height: 320px;
    }

    .gallery-placeholder-emoji {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .gallery-placeholder-text {
        font-size: 1.25rem;
    }

    .gallery-placeholder-hint {
        font-size: 0.72rem;
    }

    .gallery-placeholder-item::after {
        width: 220px;
        height: 220px;
    }
}