/* ============================================================
   PÁGINA DE DESTINOS — INKA TRAILS PERU
   ============================================================ */

.page-destinos {
    background-color: var(--color-bg);
}

/* --- HERO BANNER DE DESTINOS --- */
.destinos-hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(135deg, #5C0001 0%, #930001 60%, #B30001 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.destinos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2026/07/Footer-Inca-Trail-scaled.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    mix-blend-mode: overlay;
}

.destinos-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.destinos-hero__subtitle {
    display: inline-block;
    font-family: var(--font-label);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.destinos-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-regular);
    font-style: italic;
    color: #ffffff;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.destinos-hero__divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary);
    margin: var(--space-4) auto var(--space-5);
}

.destinos-hero__text {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* --- GRID DE CATEGORÍAS (DESTINOS) --- */
.destinos-grid-section {
    padding: 30px 0 60px;
    width: 100%;
}

.destinos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.destinos-card {
    position: relative;
    height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.destinos-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(47, 10, 26, 0.25);
}

.destinos-card__img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background-color: #930001;
}

.destinos-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.destinos-card:hover .destinos-card__img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.destinos-card__overlay {
    position: absolute;
    inset: 0;
    padding: var(--space-8);
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(47, 10, 26, 0.35) 45%, rgba(47, 10, 26, 0.94) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    transition: background var(--transition-base);
}

.destinos-card:hover .destinos-card__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(47, 10, 26, 0.5) 40%, rgba(47, 10, 26, 0.96) 100%);
}

.destinos-card__badge {
    align-self: flex-start;
    padding: 4px 14px;
    background: rgba(201, 169, 110, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 110, 0.6);
    color: #ffffff;
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.destinos-card__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: var(--font-weight-regular);
    color: #ffffff;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.destinos-card__desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destinos-card__link {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-secondary);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.destinos-card:hover .destinos-card__link {
    color: #ffffff;
    transform: translateX(4px);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .destinos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .destinos-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .destinos-card {
        height: 360px;
    }

    .destinos-hero {
        padding: var(--space-12) 0 var(--space-10);
    }
}
