/* ============================================
   RESPONSIVE DESIGN - Mobile First
   Media queries para desktop, tablet, mobile
   ============================================ */

/* ============================================
   LARGE SCREENS (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}

/* ============================================
   MEDIUM SCREENS (768px - 1023px)
   ============================================ */

@media (max-width: 1023px) {
  .container {
    max-width: 900px;
    padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .desktop-only {
    display: none;
  }
}

/* ============================================
   TABLET SCREENS (480px - 767px)
   ============================================ */

@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 1rem 0.75rem;
  }
  
  body {
    font-size: 15px;
    line-height: 1.5;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  
  section {
    padding: 2rem 0.75rem;
  }
  
  /* Forms on tablet */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .form-control {
    padding: 0.75rem 0.75rem;
    font-size: 16px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================
   MOBILE SCREENS (< 480px)
   ============================================ */

@media (max-width: 479px) {
  .container {
    padding: 0.75rem 0.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  section {
    padding: 1.5rem 0.5rem;
  }
  
  .btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  .form-control {
    padding: 0.6rem 0.6rem;
    font-size: 16px;
  }
  
  .mobile-hide {
    display: none;
  }
}

/* Universal responsive helpers */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-fluid {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-inline: auto;
  min-width: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}

table th,
table td {
  padding: 0.85rem 0.75rem;
  word-break: break-word;
  white-space: normal;
}

iframe,
.responsive-iframe,
.video-responsive {
  width: 100%;
  max-width: 100%;
  min-height: 320px;
  border: 0;
}

.page-banner-container,
.hero,
.hero-carousel,
.hero-slide {
  min-height: auto;
  height: auto;
}

@media (max-width: 768px) {
  .hero,
  .hero-carousel,
  .page-banner-container {
    min-height: 280px;
    padding: 2rem 0;
  }

  .page-banner-content {
    padding: 1.5rem;
  }

  .hero-text h1,
  .page-banner-text h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle,
  .page-banner-text p {
    font-size: 1rem;
  }

  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  iframe,
  .responsive-iframe,
  .video-responsive {
    min-height: 240px;
  }

  section {
    padding: 1.25rem 0.75rem;
  }

  .btn,
  .btn-outline,
  .btn-primary {
    width: 100%;
  }
}

