/* =============================================
   CIENCY IPS — Responsive
   ============================================= */

/* Large Desktop */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Desktop */
@media (max-width: 1100px) {
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tablet */
@media (max-width: 900px) {
  .section-padding { padding: 3.5rem 0; }

  .por-que-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .estadisticas-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-card:nth-child(2n) { border-bottom: none; }
  .stat-card:last-child { border-bottom: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right var(--transition);
    gap: 0.25rem;
    overflow-y: auto;
    z-index: 999;
  }
  .navbar-menu.open { right: 0; }

  .nav-link { color: var(--negro-suave) !important; width: 100%; padding: 0.75rem 1rem; }
  .nav-link:hover { background: var(--celeste-claro); color: var(--azul-primario) !important; }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    background: var(--gris-fondo);
    border-radius: 8px;
    margin-top: 0.25rem;
    width: 100%;
  }

  .btn-nav-wa { margin: 1rem 0 0; width: 100%; justify-content: center; }
  .navbar-toggle { display: flex; }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .mobile-overlay.active { display: block; }

  .hero { min-height: 100svh; padding-top: 80px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }

  .servicios-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .estadisticas-grid { grid-template-columns: 1fr 1fr; }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .valores-grid { grid-template-columns: 1fr; }
  .estadisticas-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-card:last-child { border-bottom: none; }

  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
}
