/* =========================================== */
/* VARIABLES CON TUS COLORES ORLARA */
/* =========================================== */

:root {
    --color-primary: #492E1A;
    --color-secondary: #79632B;
    --color-accent: #B69749;
    --color-light: #C5B7AA;
    --color-very-light: #EFE7E0;
    --color-red: #B2563C;
    --color-white: #FFFFFF;
    --color-black: #333333;
    --color-gray: #666666;
    --color-gray-light: #999999;
    
    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* =========================================== */
/* HERO SECTION CON IMAGEN DE FONDO */
/* =========================================== */

.page-hero.destinations-hero {
    background: 
        linear-gradient(rgba(73, 46, 26, 0.7), rgba(121, 99, 43, 0.7)),
        url('../assets/images/backgrounds/Orlara1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    color: var(--color-white);
}

.page-hero.destinations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-very-light);
    line-height: 1.7;
    margin-bottom: 0;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* =========================================== */
/* GRID DE DESTINOS CON INSTANTÁNEAS COMPLETAS */
/* =========================================== */

.destinations-grid-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-very-light) 0%, #f5f0e8 100%);
    min-height: 100vh;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en lugar de 2 */
    gap: 4rem 2rem; /* Menor gap horizontal */
    margin-top: 2rem;
    justify-items: center;
    align-items: start;
}

/* Tarjeta de instantánea completa - FIJAS (sin desaparición) */
.destination-card-instantanea {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 0;
}

.destination-card-instantanea:hover {
    transform: translateY(-8px) scale(1.02);
}

.destination-card-instantanea:hover .country-name {
    color: var(--color-accent);
}

/* Contenedor para imagen completa - FIJAS */
.instantanea-completa {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Imagen completa de la instantánea */
.instantanea-img-completa {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(0.95);
    display: block;
    opacity: 1;
    visibility: visible;
    background: var(--color-very-light);
}

.destination-card-instantanea:hover .instantanea-img-completa {
    opacity: 1;
    transform: scale(1.03);
    filter: brightness(1) drop-shadow(0 8px 20px rgba(73, 46, 26, 0.2));
}

/* Nombre del país - FIJAS */
.country-name-container {
    margin-top: 1.5rem;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(73, 46, 26, 0.25);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 10;
}

.country-name {
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 0;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

/* =========================================== */
/* WHY CHOOSE SECTION CON ANIMACIONES */
/* =========================================== */

.why-choose {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 500;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-very-light);
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: height 0.3s ease;
}

.why-card:hover::before {
    height: 6px;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.why-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.why-card:hover .why-icon {
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 10px 25px rgba(182, 151, 73, 0.4);
}

.why-card:hover .why-icon::after {
    width: 120%;
    height: 120%;
}

.why-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.why-card:hover h3 {
    color: var(--color-secondary);
}

.why-card p {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 1rem;
    margin-top: auto;
}

/* Animación para los iconos */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.why-icon i {
    animation: iconPulse 3s ease-in-out infinite;
}

.why-card:hover .why-icon i {
    animation: none;
}

/* =========================================== */
/* MODAL DE DESTINO - CORREGIDO */
/* =========================================== */

.destination-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.destination-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(73, 46, 26, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg) scale(1.1);
}

/* =========================================== */
/* HEADER DEL MODAL - CORREGIDO (COLOR COMPLETO) */
/* =========================================== */

.destination-modal-header {
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    text-align: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.destination-modal-header h2 {
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    color: var(--color-very-light);
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================== */
/* CONTENEDOR PRINCIPAL CON SCROLL */
/* =========================================== */

.modal-content-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    max-height: calc(95vh - 80px);
}

/* =========================================== */
/* CARRUSEL DE IMÁGENES - MÁS GRANDE Y MEJORADO */
/* =========================================== */

.carousel-section {
    position: relative;
    height: 70vh; /* AUMENTADO: de 55vh a 70vh */
    min-height: 500px; /* AUMENTADO: de 400px a 500px */
    max-height: 800px; /* AUMENTADO: de 600px a 800px */
    overflow: hidden;
    background: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-images {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado de 'cover' a 'contain' para ver imágenes completas */
    object-position: center center; /* Centra la imagen perfectamente */
    will-change: transform;
    image-rendering: auto;
    background-color: rgba(0, 0, 0, 0.05); /* Fondo sutil para bordes */
}

/* Para imágenes con aspecto vertical */
.carousel-image img.portrait {
    object-fit: contain;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 90%;
}

/* Para imágenes con aspecto horizontal */
.carousel-image img.landscape {
    object-fit: contain;
    width: 90%;
    height: auto;
    max-height: 90%;
}

/* Pre-cargar imágenes para evitar lentitud */
.carousel-image img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-image img:not(.loaded) {
    opacity: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.15);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Contador de imágenes */
.carousel-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(73, 46, 26, 0.8);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* =========================================== */
/* INFORMACIÓN DEL DESTINO - COLOR COMPLETO */
/* =========================================== */

.destination-info-section {
    padding: 3.5rem 2rem;
    background: linear-gradient(to bottom, var(--color-very-light) 0%, white 100%);
    min-height: auto;
    position: relative;
    z-index: 1;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.info-content h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-accent);
    font-weight: 700;
    position: relative;
}

.info-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--color-secondary);
}

.info-content p {
    color: var(--color-black);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    text-align: justify;
}

/* Grid de información - COLOR COMPLETO */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.info-column {
    padding: 1rem;
}

.info-column h4 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 0.75rem;
}

.info-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 1rem;
    color: var(--color-gray);
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(73, 46, 26, 0.08);
    line-height: 1.5;
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-list li strong {
    color: var(--color-primary);
    min-width: 140px;
    font-weight: 600;
    display: inline-block;
}

/* Experiencias destacadas */
.highlights-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.highlights-section h4 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(182, 151, 73, 0.05);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-accent);
    border: 1px solid rgba(182, 151, 73, 0.1);
}

.highlight-item:hover {
    transform: translateX(5px);
    background-color: rgba(182, 151, 73, 0.1);
    box-shadow: 0 5px 15px rgba(182, 151, 73, 0.1);
}

.highlight-item i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Consejos prácticos */
.tips-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(121, 99, 43, 0.05) 0%, rgba(182, 151, 73, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.tips-section h4 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(182, 151, 73, 0.05) 50%);
    border-radius: 0 0 0 100%;
}

/* Botones del modal */
.modal-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-light);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(182, 151, 73, 0.4);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(73, 46, 26, 0.2);
}

/* =========================================== */
/* RESPONSIVE PARA EL NUEVO DISEÑO */
/* =========================================== */

@media (max-width: 1200px) {
    .carousel-section {
        height: 65vh; /* Ajustado para pantallas grandes */
        min-height: 450px;
        max-height: 700px;
    }
    
    .destination-info-section {
        padding: 3rem 1.5rem;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 1.5rem;
    }
    
    .instantanea-completa {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
    
    .instantanea-completa {
        height: 300px;
    }
    
    .country-name {
        font-size: 1.4rem;
    }
    
    .modal-container {
        width: 98%;
        max-height: 98vh;
    }
    
    .carousel-section {
        height: 60vh; /* Ajustado para tablets */
        min-height: 400px;
        max-height: 600px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        overflow-y: auto !important;
    }
    
    /* CARRUSEL EN MÓVIL - ALTURA REDUCIDA */
    .carousel-section {
        height: 45vh !important;
        min-height: 280px !important;
        max-height: 350px !important;
        margin: 0 !important;
    }
    
    /* IMÁGENES DEL CARRUSEL - AJUSTAR */
    .carousel-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background-color: var(--color-primary) !important;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .destination-info-section {
        padding: 2rem 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid {
        padding: 1.5rem;
    }
    
    .highlights-section,
    .tips-section {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .instantanea-completa {
        height: 250px;
    }
    
    .country-name-container {
        margin-top: 1rem;
        padding: 0.6rem 1.2rem;
        max-width: 220px;
    }
    
    .country-name {
        font-size: 1.3rem;
    }
    
    /* BOTONES DE NAVEGACIÓN - MÁS PEQUEÑOS */
    .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        backdrop-filter: blur(3px) !important;
    }
    
    .carousel-prev {
        left: 10px !important;
    }
    
    .carousel-next {
        right: 10px !important;
    }
    
    /* CONTADOR DE IMÁGENES - AJUSTE */
    .carousel-counter {
        top: 10px !important;
        left: 10px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* HEADER DEL MODAL - AJUSTE */
    .destination-modal-header {
        padding: 1.2rem 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    .destination-modal-header h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .modal-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* INFORMACIÓN DEL DESTINO - AJUSTE */
    .destination-info-section {
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .info-content h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .info-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
        margin-bottom: 1.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* GRID DE INFORMACIÓN - UNA COLUMNA */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* LISTAS - AJUSTAR ESPACIOS */
    .info-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        padding: 0.5rem 0 !important;
    }
    
    .info-list li strong {
        min-width: 100% !important;
        font-size: 0.95rem !important;
    }
    
    /* EXPERIENCIAS DESTACADAS */
    .highlights-section,
    .tips-section {
        padding: 1.2rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .highlight-item {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    /* BOTONES DE ACCIÓN - AJUSTE */
    .modal-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }
    
    .btn-primary, .btn-outline {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    /* BOTÓN DE CERRAR MODAL (superior) */
    .modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
}

@media (max-width: 576px) {
    .carousel-section {
        height: 50vh; /* Ajustado para móviles pequeños */
        min-height: 300px;
        max-height: 450px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .destination-modal-header {
        padding: 1.2rem;
    }
    
    .destination-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .destination-info-section {
        padding: 1.5rem 1rem;
    }
    
    .info-content h3 {
        font-size: 1.5rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-hero.destinations-hero {
        min-height: 50vh;
        padding: 80px 0 40px;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .instantanea-completa {
        height: 280px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .country-name {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* =========================================== */
/* AJUSTES ESPECIALES PARA MÓVILES PEQUEÑOS */
/* =========================================== */

@media (max-width: 480px) {
    /* CARRUSEL MÁS PEQUEÑO */
    .carousel-section {
        height: 40vh !important;
        min-height: 240px !important;
        max-height: 300px !important;
    }
    
    /* TEXTOS MÁS PEQUEÑOS */
    .destination-modal-header h2 {
        font-size: 1.3rem !important;
    }
    
    .info-content h3 {
        font-size: 1.2rem !important;
    }
    
    .info-content p {
        font-size: 0.95rem !important;
    }
    
    /* BOTONES MÁS PEQUEÑOS */
    .carousel-btn {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* ESPACIOS REDUCIDOS */
    .destination-info-section {
        padding: 1.2rem 0.8rem !important;
    }
    
    .info-grid {
        padding: 1rem !important;
    }
    
    /* LISTAS COMPACTAS */
    .info-list li {
        font-size: 0.9rem !important;
    }
    
    .highlight-item {
        font-size: 0.85rem !important;
        padding: 0.7rem !important;
    }
}

/* =========================================== */
/* ANIMACIONES PARA LAS INSTANTÁNEAS */
/* =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.destination-card-instantanea {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.destination-card-instantanea:nth-child(1) { animation-delay: 0.1s; }
.destination-card-instantanea:nth-child(2) { animation-delay: 0.2s; }
.destination-card-instantanea:nth-child(3) { animation-delay: 0.3s; }
.destination-card-instantanea:nth-child(4) { animation-delay: 0.4s; }
.destination-card-instantanea:nth-child(5) { animation-delay: 0.5s; }
.destination-card-instantanea:nth-child(6) { animation-delay: 0.6s; }
.destination-card-instantanea:nth-child(7) { animation-delay: 0.7s; }
.destination-card-instantanea:nth-child(8) { animation-delay: 0.8s; }
.destination-card-instantanea:nth-child(9) { animation-delay: 0.9s; }
.destination-card-instantanea:nth-child(10) { animation-delay: 1.0s; }
.destination-card-instantanea:nth-child(11) { animation-delay: 1.1s; }
.destination-card-instantanea:nth-child(12) { animation-delay: 1.2s; }
.destination-card-instantanea:nth-child(13) { animation-delay: 1.3s; }
.destination-card-instantanea:nth-child(14) { animation-delay: 1.4s; }
.destination-card-instantanea:nth-child(15) { animation-delay: 1.5s; }
.destination-card-instantanea:nth-child(16) { animation-delay: 1.6s; }
.destination-card-instantanea:nth-child(17) { animation-delay: 1.7s; }
.destination-card-instantanea:nth-child(18) { animation-delay: 1.8s; }
.destination-card-instantanea:nth-child(19) { animation-delay: 1.9s; }
.destination-card-instantanea:nth-child(20) { animation-delay: 2.0s; }

/* Estilos para imágenes fallback */
.instantanea-img-completa[src*="Orlara11.png"] {
    object-fit: cover !important;
    background: linear-gradient(135deg, var(--color-very-light), var(--color-light));
    padding: 20px;
}

/* Clase para mejorar el scroll en modales */
.modal-open {
    overflow: hidden;
}

/* Optimización de rendimiento */
.carousel-image {
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

/* Ajustes para diferentes tipos de imágenes */
.carousel-image img {
    transition: opacity 0.3s ease;
}

.carousel-image img.loading {
    opacity: 0;
}

.carousel-image img.loaded {
    opacity: 1;
}

/* =========================================== */
/* CORRECCIÓN PARA SCROLL EN MODAL */
/* =========================================== */

.modal-content-container {
    scrollbar-width: thin !important;
    scrollbar-color: var(--color-accent) var(--color-light) !important;
}

.modal-content-container::-webkit-scrollbar {
    width: 6px !important;
}

.modal-content-container::-webkit-scrollbar-track {
    background: var(--color-light) !important;
}

.modal-content-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent) !important;
    border-radius: 10px !important;
}

/* =========================================== */
/* CORRECCIÓN PARA TEXTO QUE SE SALE */
/* =========================================== */

.break-word {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Aplicar a todos los textos del modal */
.destination-info-section * {
    max-width: 100% !important;
}

/* =========================================== */
/* MEJORA DE RENDIMIENTO EN MÓVIL */
/* =========================================== */

@media (max-width: 768px) {
    /* Desactivar animaciones pesadas en móvil */
    .destination-card-instantanea:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
    
    .why-card:hover {
        transform: translateY(-5px) !important;
    }
    
    /* Optimizar imágenes */
    .carousel-image img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
    
    /* Asegurar que botones tengan tamaño táctil mínimo */
    .btn-primary, .btn-outline {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
}