/* ===============================================
   CORRECCIONES MÓVILES PARA PRODUCCIÓN
   Fuerza los estilos móviles en Vercel
   =============================================== */

/* ===== CORRECCIONES GENERALES MÓVILES ===== */

/* Asegurar viewport correcto */
@media only screen and (max-width: 767px) {
    .holder960 {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Corregir overflow horizontal */
    body, #wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Ajustar padding de secciones */
    .section {
        padding: 40px 0 !important;
    }
    
    /* Ocultar navbar original */
    #header {
        display: none !important;
    }
    
    /* Mostrar nuevo navbar */
    .navbar {
        display: block !important;
    }
}

/* ===== CORRECCIONES PARA TABLETS ===== */
@media only screen and (max-width: 768px) {
    /* Asegurar legibilidad en móvil */
    body {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 30px !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    /* Párrafos específicos de secciones */
    .aboutIntro p,
    .galleryIntro p,
    .pricingIntro p,
    .touchIntro p,
    .mapIntro p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    /* Párrafos del carousel */
    .card-content p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    
    /* Hero section */
    .hero {
        min-height: 50rem !important;
    }
    
    .hero-content {
        padding: 0 2rem !important;
    }
    
    .hero-logo-main {
        height: 10rem !important;
    }
    
    .hero p {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
    }
    
    /* Navegación móvil */
    .nav-menu {
        position: fixed !important;
        top: 7rem !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 7rem) !important;
        background: rgba(108, 23, 57, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 5rem !important;
        transform: translateX(-100%) !important;
        transition: var(--transition-smooth) !important;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-link {
        font-size: 1.8rem !important;
        padding: 1.5rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    /* Carousel */
    .experience-carousel {
        padding: 40px 15px !important;
    }
    
    .carousel-container {
        margin-left: 20px !important;
        padding: 20px 20px !important;
    }
    
    .carousel-container::before {
        font-size: 11px !important;
        top: -25px !important;
    }
    
    .carousel-controls {
        margin-top: 15px !important;
    }
    
    .experience-card {
        flex: 0 0 300px !important;
        padding: 25px !important;
    }
    
    .card-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .card-icon i {
        font-size: 24px !important;
    }
    
    .card-content h3 {
        font-size: 20px !important;
    }
    
    /* Slider */
    .slider {
        margin: 0 !important;
    }
    
    .slide-caption {
        padding: 20px !important;
    }
    
    .slide-caption h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .slide-caption p {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* Pricing */
    .pricingtbl {
        margin: 0 !important;
    }
    
    .pricingtbl ul {
        margin-bottom: 20px !important;
    }
    
    /* Contact */
    .contactForm {
        padding: 20px !important;
    }
    
    .contactForm input,
    .contactForm textarea,
    .contactForm select {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }
}

/* ===== CORRECCIONES PARA MÓVILES PEQUEÑOS ===== */
@media only screen and (max-width: 480px) {
    /* Body general */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Títulos */
    h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    
    /* Párrafos */
    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Párrafos específicos */
    .aboutIntro p,
    .galleryIntro p,
    .pricingIntro p,
    .touchIntro p,
    .mapIntro p {
        font-size: 16px !important;
    }
    
    /* Hero */
    .hero {
        min-height: 40rem !important;
    }
    
    .hero-logo-main {
        height: 8rem !important;
    }
    
    .hero p {
        font-size: 16px !important;
    }
    
    /* Carousel */
    .experience-carousel {
        padding: 30px 10px !important;
    }
    
    .carousel-container {
        margin-left: 10px !important;
        padding: 15px 15px !important;
    }
    
    .experience-card {
        flex: 0 0 280px !important;
        padding: 20px !important;
    }
    
    .card-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .card-icon i {
        font-size: 20px !important;
    }
    
    .card-content h3 {
        font-size: 18px !important;
    }
    
    .card-content p {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    /* Slider */
    .slide-caption {
        padding: 15px !important;
    }
    
    .slide-caption h3 {
        font-size: 16px !important;
    }
    
    .slide-caption p {
        font-size: 15px !important;
    }
    
    /* Navegación */
    .nav-container {
        padding: 0 1rem !important;
    }
    
    .nav-logo-img {
        height: 35px !important;
    }
    
    /* Contact */
    .contactForm {
        padding: 15px !important;
    }
    
    .contactForm input,
    .contactForm textarea,
    .contactForm select {
        font-size: 16px !important;
        padding: 10px !important;
    }
}

/* ===== FORZAR ESTILOS CRÍTICOS ===== */
/* Asegurar que los estilos móviles se apliquen */
@media only screen and (max-width: 767px) {
    * {
        box-sizing: border-box !important;
    }
    
    .holder960 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .section {
        padding: 40px 0 !important;
    }
    
    .navbar {
        display: block !important;
    }
    
    #header {
        display: none !important;
    }
    
    /* Timeline */
    .timeline-container {
        padding: 30px 10px !important;
    }
    
    .timeline::before {
        left: 25px !important;
        width: 2px !important;
    }
    
    .timeline-item {
        margin-bottom: 50px !important;
    }
    
    .timeline-marker {
        width: 50px !important;
        height: 50px !important;
    }
    
    .marker-icon {
        font-size: 18px !important;
    }
    
    .marker-number {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
        bottom: -5px !important;
        right: -5px !important;
    }
    
    .timeline-content {
        margin-left: 25px !important;
        padding: 20px !important;
    }
    
    .timeline-header h3 {
        font-size: 14px !important;
    }
    
    .timeline-header h4 {
        font-size: 18px !important;
    }
    
    .timeline-body p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .timeline-features {
        gap: 8px !important;
    }
    
    .feature {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
    
    .feature i {
        font-size: 10px !important;
    }
}
