/* =========================================
   DESTINOS PAGE - ESTILOS ÚNICOS
   ========================================= */

:root {
    --destinos-primary: #6C5CE7;
    --destinos-secondary: #00B894;
    --destinos-accent: #FD79A8;
    --destinos-dark: #2D3436;
    --destinos-light: #DFE6E9;
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #00B894 100%);
    --gradient-sunset: linear-gradient(135deg, #FD79A8 0%, #F093FB 100%);
    --gradient-dark: linear-gradient(135deg, #2D3436 0%, #000000 100%);
}

/* =========================================
   HERO DESTINOS
   ========================================= */

.destinos-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.destinos-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.destinos-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.85) 0%, rgba(0, 184, 148, 0.75) 100%);
    z-index: 2;
}

.destinos-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 150px 20px 80px;
}

.destinos-hero__text {
    margin-bottom: 60px;
}

.destinos-hero__subtitle {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.destinos-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.destinos-hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Advanced */
.search-advanced {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-advanced__tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-tab {
    flex: 1;
    min-width: 150px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-tab i {
    font-size: 1.2rem;
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.search-tab.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--destinos-primary);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.search-advanced__content {
    position: relative;
    min-height: 80px;
}

.search-panel {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInPanel 0.4s ease;
}

.search-panel.active {
    display: flex;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-chip {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-chip.active {
    background: #fff;
    color: var(--destinos-primary);
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator__line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* =========================================
   DESTINOS GRID - MASONRY LAYOUT
   ========================================= */

.destinos-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 280px;
    gap: 24px;
    grid-auto-flow: dense;
}

/* Variaciones de tamaño para diseño asimétrico */
.destination-card.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.destination-card.card-wide {
    grid-column: span 2;
}

.destination-card.card-tall {
    grid-row: span 2;
}

/* =========================================
   DESTINATION CARDS - DISEÑO ÚNICO
   ========================================= */

.destination-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
}

.destination-card:nth-child(1) {
    animation-delay: 0.1s;
}

.destination-card:nth-child(2) {
    animation-delay: 0.15s;
}

.destination-card:nth-child(3) {
    animation-delay: 0.2s;
}

.destination-card:nth-child(4) {
    animation-delay: 0.25s;
}

.destination-card:nth-child(5) {
    animation-delay: 0.3s;
}

.destination-card:nth-child(6) {
    animation-delay: 0.35s;
}

.destination-card:nth-child(7) {
    animation-delay: 0.4s;
}

.destination-card:nth-child(8) {
    animation-delay: 0.45s;
}

.destination-card:nth-child(9) {
    animation-delay: 0.5s;
}

.destination-card:nth-child(10) {
    animation-delay: 0.55s;
}

.destination-card:nth-child(11) {
    animation-delay: 0.6s;
}

.destination-card:nth-child(12) {
    animation-delay: 0.65s;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.destination-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.destination-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.destination-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.destination-card:hover .destination-card__image img {
    transform: scale(1.15);
}

.destination-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    transition: all 0.4s ease;
}

.destination-card:hover .destination-card__overlay {
    background: linear-gradient(to bottom,
            rgba(108, 92, 231, 0.3) 0%,
            rgba(108, 92, 231, 0.5) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}

/* Badge */
.destination-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--destinos-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 5;
    animation: badgePulse 2s infinite;
}

.destination-card__badge.badge-hot {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
}

.destination-card__badge.badge-luxury {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Content */
.destination-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 5;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.destination-card:hover .destination-card__content {
    transform: translateY(-8px);
}

.destination-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.destination-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

.destination-card__location i {
    color: var(--destinos-accent);
    font-size: 1rem;
}

.destination-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.destination-card__rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.destination-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.destination-card__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.destination-card:hover .destination-card__desc {
    opacity: 1;
    transform: translateY(0);
}

.destination-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.destination-card__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Explore Button */
.btn-explore {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--destinos-primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-10px);
}

.destination-card:hover .btn-explore {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.btn-explore:hover {
    background: #fff;
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-explore i {
    transition: transform 0.3s ease;
}

.btn-explore:hover i {
    transform: translateX(4px);
}

/* =========================================
   LOAD MORE
   ========================================= */

.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--gradient-purple);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.4);
}

.btn-load-more i {
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(4px);
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
    padding: 100px 20px;
    background: var(--gradient-ocean);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    z-index: 2;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn--lg {
    padding: 20px 48px;
    font-size: 1.1rem;
    gap: 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1200px) {
    .destinos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        grid-auto-rows: 260px;
        gap: 20px;
    }

    .container-fluid {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .destinos-hero__content {
        padding: 120px 20px 60px;
    }

    .search-advanced {
        padding: 20px;
    }

    .search-advanced__tabs {
        flex-direction: column;
    }

    .search-tab {
        width: 100%;
    }

    .destinos-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
        gap: 16px;
    }

    .destination-card.card-large,
    .destination-card.card-wide,
    .destination-card.card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .container-fluid {
        padding: 0 20px;
    }

    .destination-card__content {
        padding: 20px;
    }

    .destination-card__desc {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.9rem;
    }

    .btn-explore {
        opacity: 1;
        transform: translateX(0);
    }

    .cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .destinos-hero__title {
        font-size: 2rem;
    }

    .filter-chip {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .destination-card__title {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .btn-explore {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* =========================================
   ANIMATIONS & UTILITIES
   ========================================= */

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header transparent on destinos page */
.destinos-page .header--transparent {
    background: transparent;
    box-shadow: none;
}

.destinos-page .header--transparent.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   MODAL DE DESTINOS
   ========================================= */

.modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 16px;
}

/* Ajustes específicos para el modal en la página de destinos */
.destinos-page .modal__content {
    max-width: 600px;
}

.destinos-page .modal__info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.destinos-page .modal__price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.destinos-page .modal__cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    background: var(--gradient-purple);
    border: none;
    font-size: 1.1rem;
    padding: 18px 36px;
}

.destinos-page .modal__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.4);
}

@media (max-width: 768px) {
    .destinos-page .modal__content {
        max-width: 90%;
    }

    .destinos-page .modal__title {
        font-size: 1.5rem;
    }

    .destinos-page .modal__price {
        font-size: 2rem;
    }
}