/* ==========================================================================
   Coloproctología Dr. Carlos Orellana Kury - Mobile First Responsive Styles
   ========================================================================== */

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    z-index: var(--z-modal);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after {
    display: none;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-img-wrap {
    min-height: 300px;
    max-height: 380px;
  }

  .top-bar-info {
    justify-content: center;
    width: 100%;
  }

  .top-bar .container {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .insurance-strip {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
}
