/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA DISPOSITIVOS MÓVILES Y TABLETS
   Hotel Piedras del Lago
   ========================================================================== */

/* Ocultar elementos específicos para PC en móviles */
@media (max-width: 1280px) {
    #pc {
        display: none;
    }
}

/* Mostrar elementos específicos para móvil en móviles */
@media (min-width: 1280px) {
    #movil {
        display: none;
    }
}

@media (max-width: 1100px) {
    .gallery .mySlides img {
        max-height: 480px;
    }
}

@media (max-width: 991px) {
    /* Navbar */
    .navbar {
        background-color: #FFF !important;
    }
    .navbar .container {
        transform: skew(0deg);
    }
    .navbar ul li {
        margin: 10px 0;
    }
    .navbar .container {
        box-shadow: none;
    }    
    .navbar .navbar-nav {
        transform: skew(0deg);
    }
    .navbar-brand {
        display: none !important; /* Ocultar el logo en el menú para móviles */
    }

    /* Header */
    header .d-flex {
        display: block !important;
    }
    header .col-lg-4 {
        order: 2;
    }
    header .col-lg-4 h2 {
        margin-bottom: 20px;
    }
    header .col-lg-8 {
        order: 1;
        margin-bottom: 50px;
    }
    header .header-logo {
        display: block;
        margin: 0 auto 20px !important; /* Centrar el logo */
    }
    header h1 {
        color: #f8f9fa !important; /* Aclarar el texto "Bienvenidos a" */
    }
    header .header-video {
        min-height: auto !important;
        height: auto !important;
        width: 100% !important;
        margin-top: 20px;
        padding: 0;
    }
    header .header-video video {
        height: auto !important;
        border-radius: 8px;
    }

    /* About */
    .about .container > .row:first-of-type .col-12:first-of-type {
        order: 2;
        margin-top: 50px;
    }
    .about .container > .row:first-of-type .col-12:last-of-type {
        order: 1;
    }
    .about .block > div {
        width: 100%;
    }
    .about .container > .row:last-of-type .img {
        width: 100%;
        position: static;
    }
    .about .container > .row:last-of-type .block {
        position: static;
        width: 100%;
    }
    
    /* Contacto: Asegurar que el texto de información se envuelva */
    .contact-info.text-nowrap {
        white-space: normal !important; /* Permite que el texto se envuelva */
    }
    .contact .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .contact .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #contact-form {
        padding: 20px !important; 
        background-color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
        margin-bottom: 30px;
        width: 100% !important;
    }

    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .about .container > .row:first-of-type .img {
        width: 500px;
    }
    .about .container > .row:last-of-type .img {
        height: 350px;
    }
    
    .contact .col-6 h2 {
        display: none;
    }

    .navbar-brand {
        float: left;
        transform: skew(0);
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .navbar .container {
        width: 100%;
        padding: 5px 0;
    }

    header form {
        width: 100%;
        display: flex;
    }
}

@media (max-width: 767px) {
    .gallery .mySlides {
        min-height: 380px;
    }
    .gallery .prev, .gallery .next {
        padding: 12px;
        font-size: 18px;
    }
    /* Galería: Corregir miniaturas para que se vean en una sola fila con scroll */
    .gallery .thumbnails {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 10px 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    .gallery .thumbnails .demo {
        width: 80px !important;
        height: 60px !important;
        flex: 0 0 auto !important; /* Evita que se encojan */
        margin-right: 10px;
    }
    .contact { background-attachment: scroll; }
    .contact h2 { font-size: 2rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 30px; }

    /* Ajuste de tarjetas de servicios */
    .service-card {
        padding: 10px 5px !important;
        margin-bottom: 10px !important;
    }
    .service-card img {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 8px !important;
    }
    .service-card h5 {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2;
    }
    .service-card p {
        display: none !important; /* Quitar descripción en móviles */
    }
}

@media (max-width: 576px) {
    .about .container > .row:first-of-type .img {
        width: 400px;
    }
    /* Ajuste de servicios para 3 por fila en móviles pequeños */
    .services-section .row .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}