/* iPad in portrait (vertical) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
/* ========================================
   BOTÓN HAMBURGUESA
======================================== */

    /* Botón hamburguesa personalizado */
    .mobile-menu-btn {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
    }

    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-btn:hover .hamburger-line {
        background-color: #f72837;
    }

    /* Animación del botón cuando está activo */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* ========================================
   MENÚ MÓVIL DE PANTALLA COMPLETA
======================================== */

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* ========================================
   BOTÓN CERRAR (X)
======================================== */

    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: none;
        border: none;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 50%;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    /* ========================================
   CONTENIDO DEL MENÚ
======================================== */

    .mobile-menu-content {
        text-align: center;
        width: 100%;
        padding: 0 30px;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-item {
        margin-bottom: 0px;
        opacity: 0;
        transition: all 0.6s ease;
    }

    .mobile-menu.active .mobile-nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* ========================================
   ANIMACIÓN ESCALONADA DE ITEMS
======================================== */

    .mobile-menu.active .mobile-nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .mobile-menu.active .mobile-nav-item:nth-child(7) {
        transition-delay: 0.7s;
    }

    /* ========================================
   ENLACES DE NAVEGACIÓN
======================================== */

    .mobile-nav-link {
        color: white !important;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        transition: all 0.3s ease;
        display: block;
        padding: 5px 0;
        position: relative;
    }

    .mobile-nav-link:hover {
        color: #f72837 !important;
        transform: scale(1.1);
    }

    /* ========================================
   REDES SOCIALES EN MÓVIL
======================================== */

    .mobile-social {
        margin-top: 50px;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease 0.8s;
    }

    .mobile-menu.active .mobile-social {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-social-link {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }

    .mobile-social-link:hover {
        color: white !important;
    }

    /* ========================================
   EFECTO BLUR EN EL FONDO
======================================== */

    body.mobile-menu-open {
        overflow: hidden;
    }

    
    .mb-xs-20{
        margin-bottom: 40px !important;
    }

        .col-ip-6 {
            flex: 0 0 auto;
            width: 50%;
        }
                .col-ip-12 {
                    flex: 0 0 auto;
                    width: 100%;
                }
    .text-end button{float: right;}
    body .rightPapper {
        position: absolute;
        right: 0px;
        z-index: 1;
        width: 170px;
        bottom: 0;
        top: auto !important;
    }
    body .rightPapper_bottom {
        position: absolute;
        right: 0px;
        z-index: 1;
        width: 170px;
        top: -2px;
    }
    body .leftPapper {
        position: absolute;
        left: 0;
        z-index: 9;
        width: 200px;
    }
    html body .navbar--img {
        height: 130px;
    }
    body .height-300 {
        max-height: 65vh;
    }
    body .masking {
        display: none;
    }
    body .mtx-center {
        margin-top: 27vh;
    }
    body .thunderIcon {
        position: absolute;
        width: 138px;
        right: 2vw;
        top: -36px;
    }
    .faceIcon {
        position: absolute;
        width: 120px;
        top: -55px;
    }
     body .lead {
        font-size: 1.4rem;
        font-weight: 500;
        margin-top: 50px;
    }
    body .tobtn a+a {
        margin-left: 10px;
    }
    .details h3 { 
        font-size: 1.6rem; 
    }
    body .schedule {
        width: 100%;
        background: #F5F3F3;
        border-radius: 20px;
        padding: 40px;
        color: #000;
        margin-top: 10px;
    }
    body .details>li{
        height: auto !important;
        margin-top: 0px !important;
    }
    body .details{width: 100%;}
        .d-flex.d-xs-wrap {
            display: flex !important;
            flex-wrap: wrap;
        }
        #mission .col-md-4{
            flex: 0 0 auto;
                width: 100%;
                margin-top: 40px;
        }
        #mission .col-md-8{
            order: -1;
            flex: 0 0 auto;
                width: 100%;
        }
        body .experience-boxes-x3 { 
            grid-template-columns: repeat(2, 1fr); 
        }
        .phx-logo{
            display: none !important;
        }
        body .StickersLeft,
        body .StickersRight {
            width: 136px;
        }
        body .pt-420 {
            padding-top: 220px;
        }
        body section#memories{
            background-size: cover !important;
                background-attachment: fixed;
        }
}


/* iPad in landscape (acostado) */
@media only screen and (min-device-width : 768px) and (max-device-width : 1184px) and (orientation : landscape) {
    html body .navbar--img {
            height: 130px;
        }
    
        body .height-300 {
            max-height: 100vh;
        }
    
        body .masking {
            display: none;
        }
    body .thunderIcon {
        position: absolute;
        width: 138px;
        right: 2vw;
        top: -36px;
    }

    .faceIcon {
        position: absolute;
        width: 120px;
        top: -55px;
    }

    body .lead {
        font-size: 1.4rem !important;
        font-weight: 500 !important;
        margin-top: 50px;
    }

    body .tobtn a+a {
        margin-left: 10px;
    }
        .phx-logo {
            display: none !important;
        }
    
        body .StickersLeft,
        body .StickersRight {
            width: 136px;
        }
    
        body .pt-420 {
            padding-top: 220px;
        }
    
        body section#memories {
            background-size: cover !important;
            background-attachment: fixed;
        }
        .text-end button {
            float: right;
        }
    
        body .rightPapper {
            position: absolute;
            right: 0px;
            z-index: 1;
            width: 170px;
            bottom: 0;
            top: auto !important;
        }
    
        body .rightPapper_bottom {
            position: absolute;
            right: 0px;
            z-index: 1;
            width: 170px;
            top: -2px;
        }
    
        body .leftPapper {
            position: absolute;
            left: 0;
            z-index: 9;
            width: 200px;
        }
        .details h3 {
            font-size: 1.6rem;
        }
                body .schedule {
                    width: 100%;
                    background: #F5F3F3;
                    border-radius: 20px;
                    padding: 40px;
                    color: #000;
                    margin-top: 10px;
                }
        
                body .details>li {
                    height: auto !important;
                    margin-top: 0px !important;
                }
        
                body .details {
                    width: 100%;
                }
        
                .d-flex.d-xs-wrap {
                    display: flex !important;
                    flex-wrap: wrap;
                }
        
                #mission .col-md-4 {
                    flex: 0 0 auto;
                    width: 100%;
                    margin-top: 40px;
                }
        
                #mission .col-md-8 {
                    order: -1;
                    flex: 0 0 auto;
                    width: 100%;
                }
        
                body .experience-boxes-x3 {
                    grid-template-columns: repeat(2, 1fr);
                }
        
                .phx-logo {
                    display: none !important;
                }
        
                body .StickersLeft,
                body .StickersRight {
                    width: 136px;
                }
                header .nav-link {
                    position: relative;
                    color: #000 !important;
                    font-weight: 600;
                    font-size: 16px;
                    text-align: center;
                    line-height: 1;
                }
        header .megabuttom span.text-white{display: none;}
                body .pt-420 {
                    padding-top: 220px;
                }
}