/* ==========================================================================
   CURATED EXPERIENCES PAGE (IMMERSIVE GRID LAYOUT)
   ========================================================================== */

.experiences-intro {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 2rem auto;
    padding: 0 2rem;
}

.exp-category-wrapper {
    margin-bottom: 5rem;
}

.exp-category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.exp-category-title-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.exp-category-title-wrapper h2 {
    font-family: var(--ff-heading);
    font-size: 2.2rem;
    color: var(--clr-primary);
    display: inline-block;
    background: var(--clr-bg); /* o var(--clr-white) según tu fondo */
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.exp-category-title-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.exp-category-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--clr-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Grid de Tarjetas de Experiencia --- */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Diseño de la Tarjeta --- */
.exp-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* Formato retrato fotográfico */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background: #000;
    group: hover; /* Para Tailwind si lo usaras, aquí usamos CSS nativo */
}

.exp-card__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    z-index: 1;
    opacity: 0.75;
}

.exp-card:hover .exp-card__bg {
    transform: scale(1.1);
    opacity: 0.45; /* Se oscurece para poder leer bien el texto */
}

.exp-card__overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(15, 20, 15, 0.95) 0%, transparent 100%);
    z-index: 2;
}

.exp-card__content {
    position: relative;
    z-index: 3;
    padding: 2.5rem 2rem;
    color: var(--clr-white);
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-card:hover .exp-card__content {
    transform: translateY(0);
}

.exp-card__icon {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.exp-card__title {
    font-family: var(--ff-heading);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.exp-card__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.exp-card:hover .exp-card__desc {
    opacity: 1;
}

.exp-btn-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.exp-card:hover .exp-btn-link {
    opacity: 1;
    border-bottom: 1px solid var(--clr-accent);
}

/* ==========================================================================
   EXPERIENCES.CSS - THE EDITORIAL LUXURY LAYOUT
   ========================================================================== */

/* --- Contenedor Principal Editorial --- */
.editorial-exp-section {
    padding: 6rem 0;
    background-color: var(--clr-white);
}

.editorial-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

/* --- Layout Alternado (Estilo Revista de Lujo) --- */
/* --- Introducción Pro (SEO y Copywriting) --- */
.category-intro {
    text-align: center;
    max-width: 850px;
    margin: 5rem auto 4rem auto;
    padding: 0 2rem;
}

.category-intro .section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent);
    display: block;
    margin-bottom: 1rem;
}

.category-intro .section-title {
    font-family: var(--ff-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--clr-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.category-intro .section-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-light);
}

/* --- Contenedor de la Cuadrícula --- */
.scalable-tour-wrapper {
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
}

.scalable-tour-grid {
    display: grid;
    /* Esto es la magia: crea 3 columnas automáticas y se ajusta si agregas 100 tours */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- Tarjeta Compacta de Lujo --- */
.stc-card {
    background: var(--clr-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px; /* Bordes ligeramente suaves */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stc-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0.1);
}

/* --- Imagen de la Tarjeta --- */
.stc-img-box {
    position: relative;
    height: 240px; /* Altura controlada para no ocupar toda la pantalla */
    overflow: hidden;
}

.stc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.stc-card:hover .stc-img-box img {
    transform: scale(1.06);
}

.stc-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--clr-white);
    color: var(--clr-primary);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Contenido de la Tarjeta --- */
.stc-content {
    padding: 2rem 1.5rem;
    flex-grow: 1; /* Empuja el footer hacia abajo para alinear todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.stc-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: flex;
    gap: 15px;
}

.stc-title {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.stc-desc {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Trunca el texto a 3 líneas exactas para que todas las tarjetas midan igual */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Pie de la Tarjeta (Precio) --- */
.stc-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.stc-price-box {
    display: flex;
    flex-direction: column;
}

.stc-price-box span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--clr-text-light);
    letter-spacing: 1px;
}

.stc-price-box strong {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    color: var(--clr-primary);
    line-height: 1.1;
}

.stc-btn {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-primary);
    letter-spacing: 1px;
    transition: color 0.3s;
}

.stc-card:hover .stc-btn {
    color: var(--clr-accent);
}

/* --- Regla para la moneda (USD) sin usar estilos en línea --- */
.stc-price-box small {
    font-size: 0.9rem;
    font-weight: bold;
}