/* Adaptaciones para móvil y preferencias de accesibilidad. */
@media(max-width:700px) {
  .top-inner {
    justify-content: flex-start;
    min-height: 52px
  }

  .menu-toggle {
    display: block
  }

  .social {
    right: 25px
  }

  .nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--paper);
    padding: 15px 25px 25px;
    box-shadow: 0 8px 12px #59433a18
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .brand {
    height: 140px
  }

  .brand img {
    max-height: 115px
  }

  .hero {
    min-height: 330px;
    background-position: 61% center;
    padding: 20px
  }

  .hero-card {
    padding: 24px;
    max-width: 235px
  }

  .hero h1 {
    font-size: 2.4rem
  }

  .section {
    padding: 48px 7%
  }

  .intro,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .intro img,
  .about-grid>img {
    height: 300px
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .card img {
    height: 300px
  }

  .page-hero {
    min-height: 190px
  }

  .page-hero h1 {
    font-size: 2.8rem;
    padding: 18px 25px
  }

  .photo-row {
    gap: 8px
  }

  .photo-row img {
    height: 120px
  }

  .gallery {
    columns: 2;
    column-gap: 8px
  }

  .gallery-item {
    margin-bottom: 8px
  }

  .script {
    font-size: 3rem
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .nav {
    gap: 18px;
  }

  .social {
    right: 15px;
    gap: 9px;
  }
}

@media (min-width: 701px) and (max-width: 850px) {
  .top-inner {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--paper);
    padding: 15px 25px 25px;
    box-shadow: 0 8px 12px #59433a18;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}
