/* ===== HOSTING MOBILE OPTIMIZATION ===== */
/* Optimizaciones específicas para hosting.html en dispositivos móviles */

/* ===== NAVBAR MOBILE - Idéntico a index.html ===== */
@media (max-width: 768px) {
  /* Ocultar logo del navbar en móvil */
  .navbar-brand {
    display: none !important;
  }
  
  /* Reorganizar navbar para móvil */
  .navbar {
    justify-content: flex-start !important;
    padding: 0.5rem 0 !important;
  }
  
  /* Botón hamburguesa a la izquierda */
  .navbar-toggler {
    order: -1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    border: none !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Ajustar header para móvil */
  .site-header {
    padding: 8px 0 !important;
  }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 768px) {
  /* Hero principal - ajustes móviles - Simplificado como index.html */
  .app-hero {
    min-height: 70vh !important;
    padding: 60px 0 40px 0 !important;
    background: url('../img/PNG/a3.png') no-repeat center center/cover !important;
    background-size: cover !important;
  }
  
  /* Imagen de fondo móvil - ocultar para simplificar */
  .app-hero > div:nth-child(1) {
    display: none !important;
  }
  
  /* Gradiente móvil - idéntico a index.html */
  .app-hero > div:nth-child(2) {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to right, #1e4581 0%, rgba(30, 69, 129, 0.7) 40%, rgba(30, 69, 129, 0) 60%) !important;
    z-index: 1 !important;
  }
  
  /* Contenido del hero móvil - Idéntico a index.html */
  .app-hero-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Container del hero con z-index */
  .app-hero .container {
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Logo móvil para hosting.html - Idéntico a index.html */
  .mobile-hero-logo {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
  }
  
  .mobile-hero-logo img {
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 1.5rem !important;
  }
  
  .app-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
  }
  
  .app-hero .lead {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
  }
  
  /* Botones del hero móvil - Idénticos a index.html */
  .hero-buttons {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    justify-content: center !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    border-radius: 25px !important;
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .app-hero {
    min-height: 60vh !important;
    padding: 50px 0 30px 0 !important;
  }
  
  .app-hero h1 {
    font-size: 1.75rem !important;
  }
  
  .app-hero .lead {
    font-size: 0.95rem !important;
  }
}

/* ===== NAVEGACIÓN DE FAMILIAS MÓVIL ===== */
@media (max-width: 768px) {
  .hosting-families-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
  }
  
  .family-tab {
    padding: 12px 8px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .family-tab.active {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
  }
}

@media (max-width: 576px) {
  .hosting-families-nav {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .family-tab {
    padding: 14px 16px !important;
    font-size: 1rem !important;
  }
}

/* ===== TOGGLE DE FACTURACIÓN MÓVIL ===== */
@media (max-width: 768px) {
  .modern-billing-toggle {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
  }
  
  .toggle-container {
    width: 100% !important;
    max-width: 280px !important;
    height: 50px !important;
  }
  
  .toggle-option {
    font-size: 1rem !important;
    padding: 12px 20px !important;
    min-height: 48px !important;
  }
  
  .savings-badge {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
  }
}

/* ===== TARJETAS DE PRECIOS MÓVIL ===== */
@media (max-width: 768px) {
  .modern-plans-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  
  .price-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
  
  /* Header de la tarjeta móvil */
  .price-card-header {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .price-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .price-amount {
    margin-bottom: 0.75rem !important;
  }
  
  .price-amount .amount {
    font-size: 2.5rem !important;
  }
  
  .price-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
  
  /* Badge móvil */
  .card-badge {
    top: 10px !important;
    right: 10px !important;
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
  }
}

/* ===== CARACTERÍSTICAS MÓVIL ===== */
@media (max-width: 768px) {
  .price-features {
    margin-bottom: 1.5rem !important;
  }
  
  .feature-item {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  
  .feature-item:last-child {
    border-bottom: none !important;
  }
  
  .feature-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin-right: 1rem !important;
  }
  
  .feature-icon i {
    font-size: 1.1rem !important;
  }
  
  .feature-text {
    flex: 1 !important;
  }
  
  .feature-text strong {
    font-size: 1rem !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
  }
  
  .feature-desc {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    color: #666 !important;
  }
  
  /* Expandir detalles móvil */
  .expand-details-trigger {
    padding: 1rem 0 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    margin-top: 1rem !important;
  }
  
  .expand-details-trigger i {
    margin-left: 0.5rem !important;
    font-size: 0.8rem !important;
  }
}

/* ===== BOTONES DE PRECIO MÓVIL ===== */
@media (max-width: 768px) {
  .btn-price {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-height: 50px !important;
    border-radius: 8px !important;
    margin-top: 1rem !important;
  }
  
  .btn-price:hover {
    transform: translateY(-1px) !important;
  }
}

/* ===== SECCIÓN MODERNA MÓVIL ===== */
@media (max-width: 768px) {
  .modern-hosting-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Líneas de código móvil */
  .code-lines {
    opacity: 0.3 !important;
  }
}

/* ===== MEJORAS DE USABILIDAD MÓVIL ===== */
@media (max-width: 768px) {
  /* Touch targets mínimos */
  button, .btn, .family-tab, .toggle-option {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  /* Espaciado mejorado */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  /* Scroll suave */
  html {
    scroll-behavior: smooth !important;
  }
  
  /* Prevenir zoom en inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ===== LANDSCAPE MÓVIL ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .app-hero {
    min-height: 80vh !important;
    padding: 40px 0 30px 0 !important;
  }
  
  .app-hero h1 {
    font-size: 1.8rem !important;
  }
  
  .app-hero .lead {
    font-size: 0.95rem !important;
  }
  
  .hosting-families-nav {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ===== EXTRA PEQUEÑO (< 576px) ===== */
@media (max-width: 575px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .price-card {
    padding: 1.25rem !important;
  }
  
  .price-amount .amount {
    font-size: 2.2rem !important;
  }
  
  .feature-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  
  .feature-text strong {
    font-size: 0.95rem !important;
  }
  
  .feature-desc {
    font-size: 0.8rem !important;
  }
}

/* ===== ANIMACIONES OPTIMIZADAS MÓVIL ===== */
@media (max-width: 768px) {
  /* Reducir animaciones para mejor rendimiento */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
  
  .shine-effect {
    display: none !important;
  }
  
  /* Mantener solo animaciones esenciales */
  .btn:hover, .family-tab:hover, .toggle-option:hover {
    transition: all 0.2s ease !important;
  }
}

/* ===== ACCESIBILIDAD MÓVIL ===== */
@media (max-width: 768px) {
  /* Focus mejorado */
  *:focus {
    outline: 2px solid #ff6b35 !important;
    outline-offset: 2px !important;
  }
  
  /* Eliminar outline de los botones del toggle de facturación */
  .toggle-option:focus {
    outline: none !important;
  }
  
  /* Contraste mejorado */
  .text-muted {
    color: #555 !important;
  }
  
  /* Espaciado para lectores de pantalla */
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}