/* === MOBILE RESPONSIVE FIXES ===== */
/* Soluciones para el menú móvil y elementos responsive */

/* === OVERFLOW Y VISIBILIDAD GLOBAL === */
/* Prevenir cortes en AMBAS páginas */
@media (max-width: 767px) {
  /* Forzar visibilidad en index.html */
  body:not(.hosting-page) .app-hero,
  body:not(.hosting-page) section {
    overflow: visible !important;
    position: relative !important;
  }
  
  /* Prevenir scroll horizontal SOLO en hosting */
  body.hosting-page {
    overflow-x: hidden !important;
  }
  
  /* Fix global para imágenes */
  img,
  video,
  iframe {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Elementos específicos de hosting */
  .hosting-page .hosting-animation,
  .hosting-page .browser-demo {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .comparison-table-wrapper {
    overflow-x: auto !important;
    max-width: 100% !important;
  }
}

/* === NAVBAR FIXES === */

/* Ocultar el navbar toggler en desktop */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Asegurar que el navbar toggler sea visible y funcional SOLO en móviles */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 1px solid rgba(0, 0, 0, .1) !important;
    padding: 6px 10px !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 1500 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
  }

  /* Hacer el icono del toggler más visible */
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px !important;
    height: 24px !important;
    display: block !important;
  }
}

/* Mejorar el dropdown del menú móvil */
@media (max-width: 991.98px) {
  /* Header fixes */
  .site-header {
    padding: 10px 0;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* Ajustar el container del navbar */
  .navbar {
    padding: 0 15px;
  }
  
  /* Arreglar posicionamiento del logo SOLO en móviles */
  .navbar-brand {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    margin-right: auto;
    max-width: 200px;
    z-index: 1;
  }
  
  .navbar-brand .logo-img {
    max-height: 52px !important;
    width: auto !important;
  }
  
  .navbar-brand .logo-boost {
    transform: scale(1.1) !important;
  }
  
  /* Mejoras para el colapso del menú SOLO en móviles */
  .navbar-collapse {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    padding: 20px !important;
    border-top: 1px solid #e9ecef;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    width: 100% !important;
  }
}

/* Restaurar estilos normales del logo en desktop */
@media (min-width: 992px) {
  .navbar-brand {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin-right: 0;
    max-width: none;
  }
  
  .navbar-brand .logo-img {
    max-height: 70px !important;
    max-width: 260px !important;
  }
  
  .navbar-brand .logo-boost {
    transform: scale(1.35) !important;
    transform-origin: left center;
  }
  
  /* Restaurar navbar-collapse normal en desktop */
  .navbar-collapse {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background-color: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
    padding: 0 !important;
    border-top: none !important;
    max-height: none !important;
    overflow-y: visible !important;
    width: auto !important;
  }
  
  /* Restaurar estilos normales de navegación en desktop */
  .navbar-nav {
    padding: 0 !important;
    gap: 4px;
    align-items: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0 !important;
  }
  
  .navbar-nav .nav-link {
    padding: 8px 12px !important;
    margin: 0 !important;
    font-size: 15px !important;
    white-space: nowrap;
    border-radius: 0 !important;
    background-color: transparent !important;
    display: inline-block !important;
    align-items: initial !important;
    justify-content: initial !important;
  }
  
  .btn-area-cliente {
    width: auto !important;
    text-align: center !important;
    margin-top: 0 !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
  }
}

/* Estilos específicos para móviles que quedaron fuera */
@media (max-width: 991.98px) {
  /* Estilos para los items del menú móvil */
  .navbar-nav {
    padding: 10px 0;
    gap: 4px;
    width: 100%;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 !important;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:active {
    background-color: rgba(24, 74, 154, 0.05);
  }
  
  .navbar-nav .nav-link.active {
    background-color: rgba(24, 74, 154, 0.1);
    color: #184a9a !important;
    font-weight: 600;
  }
  
  /* Botón área cliente móvil */
  .btn-area-cliente {
    width: 100%;
    text-align: center;
    margin: 8px 0 0 0;
    padding: 10px 16px;
    justify-content: center;
    padding: 12px !important;
    font-size: 16px !important;
  }
  
  /* Badge HOT móvil */
  .badge.hot {
    font-size: 0.7em !important;
    padding: 0.3em 0.6em !important;
  }
}

/* === HERO SECTION MOBILE === */
@media (max-width: 767px) {
  /* Hero section mobile fixes */
  .app-hero,
  .hero-browser-section {
    padding-top: 80px !important; /* Espacio para el header fijo */
    min-height: calc(100vh - 80px) !important;
  }
  
  /* Hero content */
  .app-hero-content h1,
  .hero-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }
  
  .app-hero-content p,
  .hero-subtitle {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }
  
  /* Botones del hero */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  
  /* Animación del servidor en móvil - Mostrar versión simplificada */
  .hosting-animation {
    transform: scale(0.8) !important;
    margin-top: 20px !important;
  }
  
  /* Simplificar animaciones complejas pero mantener visibles */
  .server-racks {
    animation: none !important;
  }
  
  .server-light {
    animation-duration: 2s !important;
  }
  
  /* Browser demo en móvil - Versión simplificada */
  .browser-demo {
    transform: scale(0.9) !important;
    margin-top: 20px !important;
  }
  
  .browser-window {
    max-height: 300px !important;
    overflow: hidden !important;
  }
  
  /* Corregir iconos cortados sin romper el layout */
  .app-hero .hosting-animation {
    transform: scale(0.8) !important;
    margin-top: 20px !important;
  }
  
  /* Mantener container y row normales */
  .app-hero .container {
    padding: 0 15px !important;
  }
  
  .app-hero .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
  }
}

/* === PRICING CARDS MOBILE === */
@media (max-width: 767px) {
  .pricing-section .container {
    padding: 20px 15px;
  }
  
  .pricing-cards {
    gap: 20px !important;
  }
  
  .price-card {
    margin-bottom: 20px;
    padding: 20px !important;
  }
  
  .price-card-header .price-amount {
    font-size: 24px !important;
  }
  
  .price-card-header .amount {
    font-size: 32px !important;
  }
  
  .price-features {
    padding: 15px 0 !important;
  }
  
  .feature-item {
    padding: 10px 0 !important;
  }
  
  .btn-price {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* === FEATURES SECTION MOBILE === */
@media (max-width: 767px) {
  .feature-card {
    padding: 20px !important;
    margin-bottom: 15px;
  }
  
  .feature-card h3 {
    font-size: 18px !important;
  }
  
  .feature-card p {
    font-size: 14px !important;
  }
  
  .icon-container {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
}

/* === TESTIMONIALS MOBILE === */
@media (max-width: 767px) {
  .testimonial-card {
    padding: 20px !important;
    margin-bottom: 15px;
  }
  
  .testimonial-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .testimonial-avatar img {
    width: 40px !important;
    height: 40px !important;
  }
}

/* === FLOATING BUTTONS MOBILE === */
@media (max-width: 767px) {
  /* CTA Flotante - Posicionamiento fijo sin cortes */
  .floating-cta {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    right: 25px !important;
    width: auto !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(24, 74, 154, 0.35) !important;
    z-index: 9997 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #184a9a 0%, #0dcaf0 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
  }
  
  .floating-cta-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
    margin-right: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  
  .floating-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(24, 74, 154, 0.45) !important;
    color: white !important;
    text-decoration: none !important;
  }
  
  /* REDISEÑO COMPLETO del botón de modo oscuro para móviles */
  .floating-theme-toggle {
    /* Mover a esquina superior derecha */
    position: fixed !important;
    top: 15px !important;
    right: 60px !important; /* Espacio para el menú hamburguesa */
    bottom: auto !important;
    
    /* Diseño más sutil y profesional */
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    z-index: 1049 !important; /* Justo debajo del navbar */
    
    /* Transiciones suaves */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .floating-theme-toggle:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
  }
  
  .floating-theme-toggle:active {
    transform: translateY(0) !important;
  }
  
  /* Ícono más pequeño y elegante */
  .floating-theme-toggle .theme-toggle-icon {
    font-size: 18px !important;
    color: #333 !important;
  }
  
  .floating-theme-toggle:hover .theme-toggle-icon {
    color: #184a9a !important;
    transform: rotate(20deg) !important;
  }
  
  /* En modo oscuro */
  .dark-mode .floating-theme-toggle {
    background: rgba(40, 40, 40, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .dark-mode .floating-theme-toggle .theme-toggle-icon {
    color: #f0f0f0 !important;
  }
  
  .dark-mode .floating-theme-toggle:hover .theme-toggle-icon {
    color: #0dcaf0 !important;
  }
  
  /* Asegurar que "¡Empezar ahora!" no se tape */
  #quickStartBtn,
  .quick-start-btn,
  a[href*="empezar"] {
    z-index: 9998 !important;
    position: relative !important;
  }
  
  /* Asegurar que el botón esté por encima de todas las secciones */
  .floating-cta {
    isolation: isolate !important;
  }
  
  /* Reducir z-index de secciones que puedan interferir */
  .features-section,
  .pricing-section,
  .comparison-section,
  .card,
  .featured-box,
  .bg-light,
  .bg-white {
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Scroll indicator - Mover para no interferir con CTA */
  .scroll-indicator {
    width: 45px !important;
    height: 45px !important;
    bottom: 90px !important;
    right: 20px !important;
    background: rgba(24, 74, 154, 0.9) !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2) !important;
  }
}

/* === TABLES MOBILE === */
@media (max-width: 767px) {
  .table-responsive {
    font-size: 12px !important;
  }
  
  .table-pricing th,
  .table-pricing td {
    padding: 8px 4px !important;
    font-size: 11px !important;
  }
  
  .table-pricing .h4 {
    font-size: 14px !important;
  }
}

/* === FOOTER MOBILE OPTIMIZATION === */
@media (max-width: 767px) {
  /* Footer principal MUCHO más compacto - APLICAR A AMBAS PÁGINAS */
  footer.py-5,
  footer,
  .bg-dark footer,
  footer.bg-dark {
    padding: 20px 0 80px 0 !important;
    min-height: auto !important;
    overflow-x: hidden !important;
  }
  
  /* Ocultar columnas completas menos importantes - MÁS ESPECÍFICO */
  footer .col-lg-4:not(:first-child),
  footer .col-lg-3:not(:first-child),
  footer .col-lg-2,
  footer .col-md-6:not(:first-child),
  footer .col-md-2,
  footer .col-sm-6:not(:first-child) {
    display: none !important;
  }
  
  /* Forzar ocultación de columnas específicas del hosting - MÁS ESPECÍFICO */
  .hosting-page footer .row .col-md-2:nth-child(2),
  .hosting-page footer .row .col-md-2:nth-child(3),
  .hosting-page footer .row .col-md-2:nth-child(4),
  .hosting-page footer .row .col-md-2:nth-child(5),
  .hosting-page footer .col-md-2:not(:first-child) {
    display: none !important;
  }
  
  /* Asegurar que solo la primera columna sea visible en hosting */
  .hosting-page footer .row > div:not(:first-child) {
    display: none !important;
  }
  
  /* Forzar que la primera columna ocupe todo el ancho en hosting */
  .hosting-page footer .row > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    padding: 0 20px !important;
  }
  
  /* Solo mostrar la primera columna con info esencial */
  footer .col-lg-4:first-child,
  footer .col-md-6:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    padding: 0 20px !important;
  }
  
  /* Logo del footer - tamaño aumentado para móviles */
  .footer-logo-img {
    max-height: 100px !important;
    width: auto !important;
    margin: 0 auto 20px !important;
    display: block !important;
  }
  
  /* Texto principal del footer */
  footer p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  
  /* Iconos sociales en línea horizontal */
  footer .social-links,
  footer div:has(a[aria-label*="Facebook"]),
  footer .mt-3 {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 15px 0 !important;
  }
  
  footer .social-links a,
  footer a[aria-label*="Facebook"],
  footer a[aria-label*="Twitter"],
  footer a[aria-label*="Instagram"],
  footer a[aria-label*="LinkedIn"],
  footer .mt-3 a {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }
  
  footer .social-links a:hover,
  footer a[aria-label*="Facebook"]:hover,
  footer a[aria-label*="Twitter"]:hover,
  footer a[aria-label*="Instagram"]:hover,
  footer a[aria-label*="LinkedIn"]:hover,
  footer .mt-3 a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
  }
  
  /* Copyright simplificado */
  footer .text-center,
  footer .row:last-child {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  footer .text-center p,
  footer .text-white-50 {
    font-size: 12px !important;
    margin-bottom: 0 !important;
    opacity: 0.7 !important;
  }
  
  /* Específico para hosting - ocultar filas adicionales del copyright */
  .hosting-page footer hr {
    display: none !important;
  }
  
  .hosting-page footer .row:last-child {
    display: none !important;
  }
  
  /* Crear copyright simplificado para hosting */
  .hosting-page footer::after {
    content: "© 2024 Full Hosting Argentina. Todos los derechos reservados.";
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Ocultar TODO lo demás en móvil - MÁS AGRESIVO */
  footer h5,
  footer .h5,
  footer ul,
  footer li,
  footer .btn,
  footer .contact-info,
  footer .text-muted,
  footer .small,
  footer nav,
  footer .nav,
  footer .list-unstyled,
  footer .d-flex,
  footer .flex-wrap,
  footer .align-items-center,
  footer .payment-method,
  footer .mercadopago-logo,
  footer .mp-text,
  footer .fas,
  footer .fa-university,
  footer .fa-2x {
    display: none !important;
  }
  
  /* Específico para hosting - ocultar elementos problemáticos */
  .hosting-page footer .d-flex,
  .hosting-page footer .flex-wrap,
  .hosting-page footer .align-items-center,
  .hosting-page footer .payment-method,
  .hosting-page footer .mercadopago-logo,
  .hosting-page footer .mp-text,
  .hosting-page footer .fas,
  .hosting-page footer .fa-university,
  .hosting-page footer .fa-2x,
  .hosting-page footer .me-3,
  .hosting-page footer .col-md-2 .mb-3 {
    display: none !important;
  }
  
  /* Ocultar cualquier texto adicional en hosting */
  .hosting-page footer .row > div:first-child > *:not(.mb-3):not(.mt-3):not(p) {
    display: none !important;
  }
  
  /* Solo mostrar elementos específicos en hosting */
  .hosting-page footer .row > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .hosting-page footer .row > div:first-child > .mb-3,
  .hosting-page footer .row > div:first-child > p,
  .hosting-page footer .row > div:first-child > .mt-3 {
    display: block !important;
  }
  
  /* Ocultar cualquier div adicional dentro de la primera columna */
  .hosting-page footer .row > div:first-child > div:not(.mb-3):not(.mt-3) {
    display: none !important;
  }
  
  /* Estructura simplificada: Solo logo + descripción + redes + copyright */
  footer .container > .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Reducir espaciado general */
  footer * {
    line-height: 1.4 !important;
  }
  
  /* Padding bottom extra para el botón CTA */
  footer {
    padding-bottom: 90px !important;
  }
}


/* === FIX PARA BOTÓN CTA DENTRO DE CARACTERÍSTICAS === */
@media (max-width: 767px) {
  /* Ocultar el botón CTA que está dentro de la sección de características */
  #features .btn-cta-animated,
  .featured-box .btn-cta-animated {
    display: none !important;
  }
  
  /* Alternativa: Si quieres mantenerlo pero más pequeño */
  /*
  #features .btn-cta-animated,
  .featured-box .btn-cta-animated {
    width: 100% !important;
    max-width: 280px !important;
    margin: 20px auto !important;
    font-size: 14px !important;
  }
  */
}

/* === COMPARISON TABLE MOBILE IMPROVEMENTS === */
@media (max-width: 991px) {
  .comparison-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 15px 10px;
    margin: 0 -10px;
  }
  
  .comparison-table {
    min-width: 700px !important;
    font-size: 14px !important;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }
  
  .comparison-table thead th {
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  
  .comparison-table tbody td:first-child {
    font-size: 13px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 767px) {
  /* Convertir tabla a cards en móviles pequeños */
  .comparison-table-wrapper {
    display: none;
  }
  
  /* Crear vista de cards para móvil */
  .mobile-comparison-cards {
    display: block !important;
    gap: 20px;
  }
  
  .mobile-plan-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* Recuadros de colores para cada plan móvil */
  .mobile-plan-card.basic {
    border-top: 4px solid #2563EB;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, white 100%);
  }
  
  .mobile-plan-card.premium {
    border-top: 4px solid #EA580C;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.03) 0%, white 100%);
  }
  
  .mobile-plan-card.enterprise {
    border-top: 4px solid #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, white 100%);
  }
  
  .mobile-plan-card.reseller {
    border-top: 4px solid #7C3AED;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, white 100%);
  }
  
  .mobile-plan-card.recommended {
    border-color: #EA580C;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.15);
  }
  
  .mobile-plan-card.recommended::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #EA580C;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
  }
  
  .mobile-plan-card {
    position: relative;
  }
  
  .mobile-plan-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
  }
  
  .mobile-plan-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    color: #1e293b;
    padding: 10px 0;
  }
  
  .mobile-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
  }
  
  .mobile-plan-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
  }
  
  .mobile-plan-features li:last-child {
    border-bottom: none;
  }
  
  .mobile-feature-label {
    font-weight: 500;
    color: #475569;
    flex: 1;
  }
  
  .mobile-feature-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    flex: 0 0 auto;
    margin-left: 10px;
  }
  
  .mobile-feature-value .fas {
    color: #059669;
    font-size: 16px;
  }
  
  .mobile-plan-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .mobile-plan-button.basic {
    background: #2563EB;
    color: white;
  }
  
  .mobile-plan-button.premium {
    background: #EA580C;
    color: white;
  }
  
  .mobile-plan-button.enterprise {
    background: #059669;
    color: white;
  }
  
  .mobile-plan-button.reseller {
    background: #7C3AED;
    color: white;
  }
  
  .mobile-plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
  }
}

/* Mostrar tabla normal en tablets y desktop */
@media (min-width: 768px) {
  .mobile-comparison-cards {
    display: none !important;
  }
  
  .comparison-table-wrapper {
    display: block !important;
  }
}

/* === COLORED BORDERS FOR COMPARISON TABLE === */
/* Agregar recuadros de colores para cada categoría */
.comparison-table thead th.plan-basic {
  border-top: 4px solid #2563EB !important;
  position: relative;
}

.comparison-table thead th.plan-premium {
  border-top: 4px solid #EA580C !important;
  position: relative;
}

.comparison-table thead th.plan-enterprise {
  border-top: 4px solid #059669 !important;
  position: relative;
}

.comparison-table thead th.plan-reseller {
  border-top: 4px solid #7C3AED !important;
  position: relative;
}

/* Agregar un pequeño indicador de color en la parte superior */
.comparison-table thead th.plan-basic::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 12px 12px 0 0;
}

.comparison-table thead th.plan-premium::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #EA580C 0%, #DC2626 100%);
  border-radius: 12px 12px 0 0;
}

.comparison-table thead th.plan-enterprise::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
  border-radius: 12px 12px 0 0;
}

.comparison-table thead th.plan-reseller::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7C3AED 0%, #6D28D9 100%);
  border-radius: 12px 12px 0 0;
}

/* Mejorar el contraste de los headers con colores de fondo sutiles */
.comparison-table thead th.plan-basic {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(29, 78, 216, 0.05) 100%) !important;
  color: #1E40AF !important;
}

.comparison-table thead th.plan-enterprise {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(4, 120, 87, 0.05) 100%) !important;
  color: #047857 !important;
}

.comparison-table thead th.plan-reseller {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(109, 40, 217, 0.05) 100%) !important;
  color: #6D28D9 !important;
}

/* El premium mantiene su estilo especial pero con mejor integración */
.comparison-table thead th.plan-premium.plan-recommended {
  background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%) !important;
  color: white !important;
  position: relative;
}

/* Ajustar las celdas del cuerpo para que tengan un sutil tinte del color */
.comparison-table tbody td.plan-basic {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(37, 99, 235, 0.01) 100%) !important;
  border-left: 2px solid rgba(37, 99, 235, 0.1) !important;
}

.comparison-table tbody td.plan-premium {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.03) 0%, rgba(234, 88, 12, 0.01) 100%) !important;
  border-left: 2px solid rgba(234, 88, 12, 0.15) !important;
}

.comparison-table tbody td.plan-enterprise {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(5, 150, 105, 0.01) 100%) !important;
  border-left: 2px solid rgba(5, 150, 105, 0.1) !important;
}

.comparison-table tbody td.plan-reseller {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(124, 58, 237, 0.01) 100%) !important;
  border-left: 2px solid rgba(124, 58, 237, 0.1) !important;
}

/* === GENERAL MOBILE IMPROVEMENTS === */
@media (max-width: 767px) {
  /* Reducir padding general */
  section {
    padding: 40px 0 !important;
  }
  
  .py-5 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  /* Títulos */
  h1 {
    font-size: 28px !important;
  }
  
  h2 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }
  
  h3 {
    font-size: 20px !important;
  }
  
  h4 {
    font-size: 18px !important;
  }
  
  h5 {
    font-size: 16px !important;
  }
  
  /* Párrafos y texto */
  p.lead {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  
  p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  /* Botones generales */
  .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  
  .btn-lg {
    padding: 12px 24px !important;
    font-size: 16px !important;
  }

  /* Contenedor */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  
  /* Columnas */
  .col-lg-8.mx-auto {
    padding: 0 15px;
  }
}

/* === HOSTING PAGE SPECIFIC MOBILE FIXES === */
@media (max-width: 767px) {
  /* Hero Browser Section */
  .hero-browser-section {
    padding: 40px 0;
  }
  
  .hero-browser-section .hero-content {
    text-align: center;
    padding: 0 15px;
  }
  
  /* Pricing Plans */
  .plan-header {
    padding: 15px !important;
  }
  
  .plan-price {
    font-size: 28px !important;
  }
  
  .plan-features {
    padding: 15px !important;
  }
  
  .plan-features li {
    padding: 8px 0 !important;
    font-size: 13px !important;
  }
  
  /* Categories Tabs */
  .categories-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px;
  }
  
  .category-tab {
    flex: 0 0 auto;
    padding: 10px 15px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  
  /* Plan details expandibles */
  .plan-details-extra {
    padding: 10px !important;
    font-size: 12px !important;
  }
  
  .resources-table {
    font-size: 11px !important;
  }
  
  .toggle-details-btn {
    padding: 8px 15px !important;
    font-size: 12px !important;
  }
}

/* === FIX PARA OVERLAPPING ELEMENTS === */
@media (max-width: 991.98px) {
  /* Eliminar padding-top del body para evitar franja blanca */
  body {
    padding-top: 0 !important;
  }
  
  /* Evitar que elementos con z-index alto tapen el menú */
  .pricing-bg,
  .geometric-elements,
  .floating-elements,
  .decorative-shapes,
  #particles-js {
    z-index: 0 !important;
  }
  
  /* Asegurar que el contenido principal esté sobre los fondos */
  .container,
  .row,
  [class*="col-"] {
    position: relative;
    z-index: 1;
  }
}

/* === MEJORAS DE ACCESIBILIDAD MÓVIL === */
@media (max-width: 767px) {
  /* Aumentar áreas táctiles */
  a, button, .btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mejorar contraste en móvil */
  .text-muted {
    color: #495057 !important;
  }
  
  /* Espaciado entre elementos interactivos */
  .navbar-nav .nav-item + .nav-item {
    margin-top: 5px;
  }
  
  /* Focus visible en móvil */
  a:focus,
  button:focus,
  .btn:focus,
  .nav-link:focus {
    outline: 2px solid #184a9a !important;
    outline-offset: 2px !important;
  }
}

/* === LANDSCAPE MOBILE FIXES === */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar-collapse {
    max-height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
  }
  
  .site-header {
    padding: 5px 0 !important;
  }
  
  .navbar-brand .logo-img {
    max-height: 35px !important;
  }
  
  body {
    padding-top: 50px !important;
  }
}

/* === ANIMACIONES MÓVILES OPTIMIZADAS === */
@media (max-width: 767px) {
  /* Mantener animaciones básicas pero optimizadas */
  .btn,
  .nav-link,
  .card {
    transition: all 0.2s ease !important;
  }
  
  /* Optimizar AOS para móvil pero mantener funcionalidad */
  [data-aos] {
    animation-duration: 0.6s !important;
    animation-delay: 0.1s !important;
  }
  
  /* Mantener animaciones del hero pero simplificadas */
  .hosting-animation * {
    animation-duration: 1.5s !important;
    animation-iteration-count: infinite !important;
  }
  
  /* Asegurar que las animaciones del servidor sean visibles */
  .server-rack {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .server-light {
    animation: pulse 2s infinite !important;
  }
  
  /* Animación simplificada para móvil */
  @keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
  
  /* Asegurar visibilidad de elementos del browser demo */
  .browser-window,
  .browser-header,
  .browser-content {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* === FIX ESPECÍFICO PARA iPHONE === */
@supports (-webkit-touch-callout: none) {
  /* iOS specific fixes */
  .navbar-collapse {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix para el notch del iPhone */
  @media (max-width: 767px) {
    .site-header {
      padding-top: env(safe-area-inset-top);
      top: 0 !important;
    }
    
    /* NO agregar padding-top al body en iOS */
    body {
      padding-top: 0 !important;
    }
    
    /* Ajustar hero para iOS */
    .app-hero,
    .hero-browser-section {
      padding-top: calc(80px + env(safe-area-inset-top)) !important;
    }
  }
}

/* === FIX UNIVERSAL PARA FRANJA BLANCA === */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Asegurar que no haya espacios en blanco arriba */
@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 0 !important;
  }
  
  body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Asegurar que el header esté pegado arriba */
  .site-header {
    margin-top: 0 !important;
    top: 0 !important;
  }
  
  /* Primera sección debe empezar inmediatamente después del header */
  .app-hero,
  .hero-browser-section {
    margin-top: 0 !important;
  }
}

/* === HOSTING PAGE MOBILE BUTTONS FIX === */
@media (max-width: 767px) {
  /* Reorganizar botones de categorías en una cuadrícula 2x2 */
  .hosting-families-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Espacio entre botones */
    margin-bottom: 30px; /* Espacio antes del toggle de facturación */
  }

  .hosting-families-nav .family-tab {
    flex: 1 0 45%; /* Cada botón ocupa ~45% del ancho para crear 2 columnas */
    margin: 0;
    font-size: 14px; /* Reducir un poco el tamaño de la fuente */
    padding: 10px 5px;
    min-height: 44px; /* Asegurar altura mínima para toque */
  }

  /* Ajustar el toggle de facturación */
  .modern-billing-toggle {
    flex-direction: column; /* Apilar elementos verticalmente */
    align-items: center;
  }

  .modern-billing-toggle > span {
    display: none; /* Ocultar textos "Pago Mensual/Anual" */
  }

  .modern-billing-toggle .toggle-container {
    margin: 10px 0;
  }

  /* Ocultar el badge de ahorro en móvil */
  .modern-billing-toggle .savings-badge {
    display: none;
  }
}

