/* ============ ESTILOS GENERALES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 0.6%;
}

.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4B00EF;
    font-size: 2.5rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ============ HEADER ============ */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: inline-block;
    padding: 15px 0;
}

.logo {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    float: right;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 40px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 25px 0;
    display: inline-block;
    transition: color 0.3s;
    position: relative;
}

.menu a:hover {
    color: #4B00EF;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #4B00EF;
    bottom: 15px;
    left: 0;
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.social-header {
    display: flex;
    margin-left: 30px;
}

.social-header a {
    color: #4B00EF;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-header a:hover {
    color: #3a00c0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    margin-left: 20px;
}

/* ============ BANNER PRINCIPAL ============ */
.banner-carousel {
    position: relative;
    margin-top: 80px;
    max-height: 600px;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: #4B00EF;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(75, 0, 239, 0.8);
}

/* Efecto fade para el carrusel */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* ============ SECCIÓN OFERTAS ============ */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.oferta-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.oferta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.oferta-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.oferta-info {
    padding: 20px;
}

.oferta-info h3 {
    margin: 10px 0;
    color: #4B00EF;
}

.fecha, .precio, .personas {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.precio {
    font-weight: bold;
    font-size: 1.2rem;
    color: #4B00EF;
}

.btn-reservar {
    display: inline-block;
    background-color: #4B00EF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-reservar:hover {
    background-color: #3a00c0;
}

/* ============ BANNERS PROMOCIONALES ============ */
.promo-banners {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.banners-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 150px;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

/* ============ ALOJAMIENTOS RECOMENDADOS ============ */
.alojamientos-section {
    background-color: #fff;
}

.alojamientos-carousel {
    position: relative;
    overflow: hidden;
    margin: 30px auto 50px;
    width: 100%;
}

.alojamientos-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
    will-change: transform;
}

.alojamiento-card {
    min-width: calc(33.333% - 14px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background: white;
    flex-shrink: 0;
}

.alojamiento-card:hover {
    transform: translateY(-10px);
}

.alojamiento-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.alojamiento-info {
    padding: 20px;
}

.alojamiento-info h3 {
    margin-bottom: 10px;
    color: #4B00EF;
}

.ubicacion {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.ubicacion i {
    margin-right: 5px;
}

.precio {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4B00EF;
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

/* ============ DESTINOS POPULARES ============ */
.destinos-carousel {
    position: relative;
    overflow: hidden;
    margin: 30px auto 50px;
    width: 100%;
}

.destinos-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
    will-change: transform;
}

.destino-card {
    min-width: calc(33.333% - 14px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    flex-shrink: 0;
}

.destino-card:hover {
    transform: translateY(-10px);
}

.destino-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.destino-info {
    padding: 20px;
    background: white;
    text-align: center;
}

.destino-info h3 {
    margin-bottom: 15px;
    color: #4B00EF;
}

.btn-conocer {
    display: inline-block;
    background-color: #4B00EF;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-conocer:hover {
    background-color: #3a00c0;
}

/* ============ PAQUETES TODO INCLUIDO ============ */
.todo-carrusel {
    margin-bottom: 60px;
}

.carrusel-titulo {
    text-align: center;
    margin-bottom: 20px;
    color: #4B00EF;
    font-size: 1.8rem;
}

.todo-carousel {
    overflow: hidden;
}

.todo-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 10px 0;
    will-change: transform;
}

.todo-incluido-card {
    min-width: calc(33.333% - 20px);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    flex-direction: column;
    flex-shrink: 0;
}

.todo-incluido-card:hover {
    transform: translateY(-5px);
}

.todo-incluido-img {
    flex: 1;
}

.todo-incluido-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.todo-incluido-info {
    flex: 1;
    padding: 20px;
}

.todo-incluido-info h3 {
    color: #4B00EF;
    margin-bottom: 15px;
}

.incluye ul {
    list-style: none;
    margin: 15px 0;
}

.incluye li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.incluye li::before {
    content: '✓';
    color: #4B00EF;
    position: absolute;
    left: 0;
}

/* ============ TESTIMONIOS ============ */
.testimonios-section {
    background-color: #f9f9f9;
}

.testimonios-carousel {
    position: relative;
    overflow: hidden;
    margin: 30px auto 50px;
    width: 100%;
}

.testimonios-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
    will-change: transform;
}

.testimonio-card {
    width: calc(50% - 10px); /* Mostrar 2 tarjetas en desktop */
    flex-shrink: 0;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.testimonio-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonio-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonio-info h4 {
    color: #4B00EF;
    margin-bottom: 5px;
}

.testimonio-rating {
    color: #FFD700;
}

.testimonio-text p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* ============ CONTROLES DE CARRUSEL ============ */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background-color: #4B00EF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: #3a00c0;
}

/* ============ SECCIÓN NOSOTROS ============ */
.nosotros-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nosotros-img {
    flex: 1;
}

.nosotros-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nosotros-text {
    flex: 1;
}

.nosotros-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.nosotros-text p {
    margin-bottom: 15px;
}

/* ============ SECCIÓN CONTACTO ============ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4B00EF;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.btn-enviar {
    background-color: #4B00EF;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-enviar:hover {
    background-color: #3a00c0;
}

/* ============ BOTÓN WHATSAPP ============ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #21d20d;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #039320;
    transform: scale(1.1);
}

.whatsapp-icon {
    margin-top: 1px;
}

/* ============ FOOTER ============ */
footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    background-color: #4B00EF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #3a00c0;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #aaa;
}

.legal-links {
    display: flex;
    gap: 15px;
}

.legal-links a {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .nosotros-content {
        flex-direction: column;
    }
    
    .alojamiento-card, 
    .destino-card, 
    .todo-incluido-card {
        min-width: calc(50% - 10px);
    }
    
    .testimonio-card {
        min-width: calc(100% - 10px);
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu a {
        padding: 15px;
        width: 100%;
    }
    
    .social-header {
        margin-left: auto;
        padding: 0;
        margin-top: 6%;
    }
    
    .menu-toggle {
        display: block;
        font-size: 2rem;
        margin-top: 6%;
    }
    
    .banner-carousel {
        margin-top: 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .alojamiento-card, 
    .destino-card, 
    .todo-incluido-card {
        min-width: calc(100% - 10px);
    }
    
    .carousel-btn {
        padding: 10px 15px;
    }
    
    .banners-container {
        grid-template-columns: 1fr;
    }
    
    .promo-banner {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }
    
    .prev, .next {
        padding: 10px;
        font-size: 16px;
    }
    
    .ofertas-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
       
@media (max-width: 768px) {
    .testimonio-card {
        width: calc(100% - 10px); 
    }
}
    
    .testimonio-img {
        width: 50px;
        height: 50px;
    }

    
    .carousel-controls {
        gap: 10px;
    }
    
    .carousel-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .promo-banner {
        height: 100px;
    }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/*================================== Ajustes tactiles ======================================*/

/* Mejoras para interacción táctil */
@media (max-width: 768px) {
    /* Hacer los botones de navegación más grandes para dedos */
    .carousel-btn {
        padding: 15px 25px;
        font-size: 20px;
    }
    
    /* Asegurar que los elementos interactivos sean fácilmente tocables */
    .btn-reservar, .btn-conocer, .btn-enviar {
        min-height: 44px; /* Tamaño mínimo recomendado para elementos táctiles */
        line-height: 44px;
    }
    
    /* Mejorar la experiencia de desplazamiento táctil */
    .alojamientos-track,
    .destinos-track,
    .todo-track,
    .testimonios-track {
        -webkit-overflow-scrolling: touch; /* Mejor desplazamiento en iOS */
    }
    
    /* Evitar zoom en inputs para mejor experiencia táctil */
    input, textarea, select {
        font-size: 16px; /* Evita el zoom automático en iOS */
    }
    
    /* Mejorar la usabilidad del menú táctil */
    .menu li a {
        padding: 15px 20px;
        display: block;
    }
    
    /* Asegurar que los elementos del carrusel no sean seleccionables al arrastrar */
    .alojamiento-card,
    .destino-card,
    .todo-incluido-card,
    .testimonio-card {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}