/* Responsive Design */

/* Tablet */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--box-shadow);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Corrección aquí: cambiar '.about-content-s-1 .about-content-s-2' por '.about-content-s-1, .about-content-s-2' */
  .about-content-s-1,
  .about-content-s-2 {
    grid-template-columns: 1fr; /* Hace que las columnas se apilen una encima de la otra */
    text-align: center; /* Centra el contenido de las secciones */
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Choose Us */
  .why-content {
    grid-template-columns: 1fr;
  }

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

  /* Coverage */
  .coverage-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coverage-text h2 {
    font-size: 2rem;
  }

  /* Distributors */
  .distributors-content {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links ul,
  .footer-social ul {
    align-items: center;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  /* Typography */
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Navigation */
  .nav-container {
    padding: 1rem;
  }

  /* Sections padding */
  .about-section,
  .services-section,
  .why-section,
  .coverage-section,
  .distributors-section {
    padding: 3rem 0;
  }

  /* Coverage */
  .coverage-text h2 {
    font-size: 1.8rem;
  }

  .phone-number {
    font-size: 1.5rem;
  }

  /* Cards */
  .why-card,
  .service-card {
    margin-bottom: 1rem;
  }

  .why-card {
    padding: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0;
  }

  .footer-links ul,
  .footer-social ul {
    gap: 1rem;
  }
}

/* Large screens */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .btn {
    display: none;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
  }

  .hero-title {
    color: var(--black);
    font-size: 2rem;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #ff0000;
    --gray-medium: #000000;
  }

  .btn-secondary {
    border-color: var(--black);
    color: var(--black);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Considerar si el text-align: center; para los párrafos largos en .about-text-s 
     se ve bien en móviles, o si prefieres text-align: justify; o text-align: left; 
     Podrías añadir un estilo específico aquí si es necesario, por ejemplo: 
     .about-text-s p {
         text-align: justify; 
     }
  */
