/* Estilos para hacer la web responsive */

@media (max-width: 1023px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container, main, section {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Convertir layouts de columnas a stack en móvil */
  .topbar-inner,
  .two-photos,
  .feature-grid,
  .grid--steps,
  .grid--content,
  .grid--prices,
  .instructions-grid,
  .price-grid,
  .contact-grid,
  .category-grid,
  .footer-cta__top,
  .why-grid,
  .quality-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: 1fr !important;
  }

  .card, .service-card, .step-card, .info-card, .price-card, .why-item, .category-card {
    width: 100%;
  }

  .map-embed, .map-wrapper, .map-block {
    width: 100%;
  }
  .map-embed iframe, .map-block iframe {
    width: 100% !important;
    height: 280px;
    border: 0;
  }

  a, p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .location-title {
    font-size: 32px;
  }

  .big-title h2 {
    font-size: 36px;
  }

  /* --- Navegación --- */
  .nav {
    display: none; /* Ocultar menú de escritorio */
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--teal);
    padding: 10px 0;
    gap: 0;
  }

  .nav.open {
    display: flex; /* Mostrar en modo móvil */
  }

  .nav-link {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-link.active::after {
      display: none;
  }

  .nav-toggle {
    display: block; /* Mostrar botón de hamburguesa */
    position: static;
    margin-left: 16px;
  }
  
  .nav-inner {
      justify-content: space-between;
  }

  /* --- Topbar --- */
  .topbar-inner {
    padding: 10px 16px;
    text-align: center;
  }
  .topbar-col {
      text-align: center;
  }
  .topbar-right {
      text-align: center;
  }
  .logo {
      max-width: 120px;
  }

  /* --- Secciones --- */
  .location-section, .features, .big-title, .instructions, .contact, .about, .categories, .why-us {
      padding-top: 30px;
      padding-bottom: 30px;
  }
  
  .two-photos img {
      height: auto;
  }

  .feature {
      padding: 24px;
      min-height: auto;
  }

  /* --- Opiniones --- */
  .reviews-parallax {
      background-attachment: scroll; /* Desactivar parallax en móvil */
      padding: 40px 0;
  }
  .review-slide {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  .review-quote {
      display: none;
  }
  .review-text {
      font-size: 18px;
  }

  /* --- Footer --- */
  .footer-inner {
      flex-direction: column;
      gap: 10px;
  }
  .footer-cta__top {
      text-align: center;
  }
  .footer-main-cta {
      flex-direction: column;
      align-items: center;
  }
  .footer-contact-row {
      justify-content: center;
  }
  .footer-cta__steps {
      grid-template-columns: 1fr !important;
  }
  .legal-links {
      text-align: center;
  }
}

@media (max-width: 480px) {
    .location-title {
        font-size: 28px;
    }
    .big-title h2 {
        font-size: 30px;
    }
    .cta-text {
        font-size: 20px;
    }
    .cta-phone {
        font-size: 18px;
    }
    .review-text {
        font-size: 16px;
    }
    .footer-cta {
        padding: 40px 0;
    }
}

