/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Mejor rendimiento en móvil */
    min-height: 80vh; /* Reduce altura en móvil */
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding-top: 5rem;
  }

  .footer-logo {
    position: static;
    margin: 0 auto 2rem;
    text-align: center;
    max-width: 140px;
  }
}
@media (max-width: 768px) {
  .van-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/van-opti-movil.png');
    background-size: 20%; /* Imagen más pequeña */
    background-repeat: no-repeat;
    background-position: center 60%; /* Desplazada hacia abajo */
    padding: 40px 20px; /* Espacio alrededor del contenido */
  }
}


/* Reducir motion para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .whatsapp-float {
    animation: none !important;
  }
}

/* Mejoras de rendimiento para móviles */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important;
    min-height: 80vh;
  }

  /* Reducir efectos pesados en móvil */
  .parallax {
    transform: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }

  .navigation.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin-left: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .contacto-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .especialidades {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .ventajas-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .sectores-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .sector-item {
    padding: 1.5rem 1rem;
  }

  .sector-icon {
    font-size: 2rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-float a {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 100px;
    height: 100px;
  }

  .mision-card,
  .vision-card {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Optimizaciones adicionales */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 10px;
  }
}

/* Mejoras de accesibilidad */
@media (prefers-color-scheme: dark) {
  /* Preparado para modo oscuro futuro */
}

/* Optimización para impresión */
@media print {
  .header,
  .whatsapp-float,
  .cta-button {
    display: none !important;
  }

  .hero {
    background: #0072bc !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  section {
    page-break-inside: avoid;
  }
}

/* OPTIMIZACIONES */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  [data-depth] {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .servicios-grid,
  .especificos-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}
@media (max-width: 600px) {
  .servicio-card,
  .especifico-card {
    padding: 1.3rem 0.7rem;
  }
  .header,
  .nav-wrapper {
    padding: 0.3rem 0;
  }
  .logo img {
    height: 44px;
  }
  .section-header h2 {
    font-size: 1.25rem;
  }
}
/* Responsive */
@media (max-width: 900px) {
  .especificos-grid { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (max-width: 600px) {
  .especifico-card { padding: 1.3rem 0.7rem; }
}

@media (max-width: 768px) {
    .servicios { padding: 60px 20px 50px; }
    .section-header h2 { font-size: 2.3rem; }
    .section-header p { font-size: 1.1rem; }
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card { padding: 30px 25px; }
}
@media (max-width: 480px) {
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 780px) {
  .especificos-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .especifico-card {
    padding: 1.3rem 0.8rem;
  }
}


@media (max-width: 600px) {
  .compromiso-content {
    max-width: 100%;
    padding: 0 8px;
  }
  .compromiso-card {
    padding: 26px 10px 18px 10px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    width: 32px;
    height: 32px;
    border: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1101;
  }
  .menu-toggle span {
    display: block;
    width: 26px;
    height: 4px;
    background: #0072bc !important;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .navigation {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    z-index: 1100;
  }
  .navigation.active {
    display: block;
    animation: fadeInDown 0.32s;
  }
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu li {
    border-bottom: 1px solid #dddada;
  }
  .dropdown-menu {
    display: none;
    position: static;
    background: #0080ff;
    margin-left: 1rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
  }
  .dropdown-submenu .dropdown-menu {
    padding-left: 2rem;
  }
  .nav-dropdown.open > .dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s;
  }
}
@keyframes fadeInDown {
  0% { opacity:0; transform:translateY(-15px);}
  100% { opacity:1; transform:translateY(0);}
}
