/* 
 * GIDEA-IFPD: mobile.css
 * Adaptación móvil independiente sin modificar los archivos core.
 */

/* ==========================================================================
   DESKTOP (Ocultar botón hamburguesa)
   ========================================================================== */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================================================
   MOBILE & TABLET (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* ===== NAVBAR Y MENÚ HAMBURGUESA ===== */
  .navbar {
    padding: 12px 0;
  }
  
  .logo-icon {
    height: 45px !important;
  }
  .logo-name {
    height: 32px !important;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Botón Hamburguesa */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
    padding: 0;
  }
  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  .mobile-menu-btn span:nth-child(1) { top: 0; }
  .mobile-menu-btn span:nth-child(2) { top: 10px; }
  .mobile-menu-btn span:nth-child(3) { top: 20px; }

  .mobile-menu-btn.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  /* Menú desplegable a pantalla completa */
  .nav-right {
    position: fixed;
    top: 68px; /* Debajo del navbar */
    left: -100%; /* Oculto inicialmente */
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 40px;
  }
  .nav-right.active {
    left: 0;
  }

  /* Links del menú */
  .nav-menu {
    display: flex !important;
    flex-direction: column;
    gap: 30px !important;
    width: 100%;
    text-align: center;
  }
  .nav-menu a {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
  }
  .nav-menu a.btn-nav {
    color: var(--bg-white) !important;
  }
  .btn-nav {
    display: inline-block;
    padding: 12px 30px !important;
    background: var(--primary-color);
    border-radius: 30px !important;
  }

  /* Selector de Idiomas en Móvil */
  .lang-selector {
    display: block !important;
    margin: 40px auto 0 !important;
    padding: 30px 20px 0 !important;
    border-left: none !important;
    border-top: 1px solid #dce1e8;
    width: 80%;
  }
  .lang-current {
    display: none !important; /* Ocultamos el toggle */
  }
  .lang-dropdown {
    display: flex !important; /* Mostramos directamente las opciones */
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-width: 100% !important;
  }
  .lang-btn {
    width: auto !important;
    padding: 10px 15px !important;
    background: #f0f4f9 !important;
    border-radius: 8px;
    flex-direction: column;
    gap: 5px !important;
    justify-content: center;
  }
  .lang-btn.active {
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
  }
  .lang-btn span:last-child {
    font-size: 11px;
    font-weight: 500;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    margin-top: 68px !important;
    min-height: 450px !important;
    padding: 0 15px;
  }
  .hero-content {
    padding: 30px 10px;
  }
  .hero h1 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin-bottom: 15px !important;
  }
  .hero-sub {
    font-size: 15px !important;
    margin-bottom: 25px !important;
  }
  .btn-primary {
    padding: 15px 30px !important;
    font-size: 16px !important;
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 6px !important;
  }

  /* ===== SECTIONS GENERAL ===== */
  .section {
    padding: 50px 0 !important;
  }
  .section-heading {
    margin-bottom: 35px !important;
  }
  .section-heading h2 {
    font-size: 22px !important;
  }
  .section-lead {
    font-size: 15px !important;
    line-height: 1.5;
  }

  /* ===== GRIDS (Todo a 1 columna) ===== */
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* ===== CARDS & BOXES ===== */
  .card {
    padding: 25px 20px !important;
  }
  .info-box {
    padding: 20px !important;
  }
  .standard-box {
    padding: 25px 20px !important;
  }

  /* ===== CAPACIDADES ===== */
  .layout-split {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .split-image img {
    border-radius: 8px;
  }

  /* ===== FORMULARIO DE CONTACTO ===== */
  .contact-layout {
    gap: 40px !important;
  }
  .contact-form-wrap {
    padding: 25px 20px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px !important;
    font-size: 16px !important; /* Previene el zoom automático en iOS Safari */
  }
  .form-group textarea {
    min-height: 100px !important;
  }
  .btn-full {
    padding: 16px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }
  .icao-badge {
    text-align: center;
    padding: 16px !important;
  }

  /* ===== FOOTER ===== */
  .footer {
    padding: 30px 15px !important;
  }
  .footer-brand img {
    height: 50px !important;
  }
  .footer-text {
    font-size: 11px !important;
    line-height: 1.5;
  }
}
