/* ============================================================
   ZEN SKIN STUDIO — responsive.css
   Medidas para tablet y móvil. Se carga DESPUÉS de styles.css.
   Breakpoints: 900px (tablet) · 640px (móvil) · 380px (móvil pequeño)
   ============================================================ */

/* ---------- TABLET (≤ 900px) ---------- */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .about__card {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.8rem 1.2rem;
  }

  .section { padding: 4rem 1.25rem; }
}

/* ---------- MÓVIL (≤ 640px) ---------- */
@media (max-width: 640px) {

  /* menú hamburguesa */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;   /* área de toque cómoda (44px de alto) */
    cursor: pointer;
  }
  .nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--oro-claro);
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--verde-noche);
    border-bottom: 1px solid rgba(201, 162, 75, 0.3);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links a {
    padding: 1rem;
    border-top: 1px solid rgba(201, 162, 75, 0.12);
  }
  .nav__cta {
    border: none;
    border-radius: 0;
    background: rgba(201, 162, 75, 0.12);
  }

  /* hero */
  .hero { min-height: 78vh; padding: 3rem 1.25rem; }
  .hero__title { letter-spacing: .12em; }
  .hero__sub { letter-spacing: .45em; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 300px; }
  .hero__actions .btn { text-align: center; }

  /* secciones */
  .section { padding: 3.25rem 1.15rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.45rem; }

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

  .about__card { grid-template-columns: 1fr; gap: 1.2rem; }

  /* testimonios */
  .testimonial p { font-size: 1.05rem; }
  .slider__btn { width: 38px; height: 38px; }

  /* formulario */
  .form { padding: 1.4rem 1.1rem; }

  /* botones táctiles: mínimo 44px de alto */
  .btn { padding: .95rem 1.8rem; }
}

/* ---------- PANTALLAS TÁCTILES ----------
   Controles de las galerías más grandes para el dedo. */
@media (pointer: coarse) {
  .gallery__nav { width: 44px; height: 44px; }
  .gallery__dots { gap: 10px; }
  .gallery__dots button { width: 12px; height: 12px; }
  .card__expand { width: 44px; height: 44px; }
  .slider__btn { width: 46px; height: 46px; }
}

/* ---------- MÓVIL PEQUEÑO (≤ 380px) ---------- */
@media (max-width: 380px) {
  .nav__name { font-size: 1rem; letter-spacing: .15em; }
  .hero__title { font-size: 2.6rem; }
  .hero__ornament { width: 160px; }
  .about__stat strong { font-size: 1.8rem; }
}
