/* =============================================================
   studio.css — estudio presencial (Inicio · Horarios · Contacto)
   Layered on top of v4 styles.css. Reuses the same tokens.
   ============================================================= */

/* --- NAV: logo is now a link home --- */
a.nav-logo { color: inherit; }

/* --- INICIO (hero) --- */
.hero-place {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.hero-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}
.hero-wordmark-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-wordmark-yoga {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  letter-spacing: 0.9em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-content .hero-place    { animation-delay: 0.2s; }
.hero-content .hero-wordmark { animation-delay: 0.4s; }
.hero-content .hero-cta      { animation-delay: 0.6s; }

/* Mobile: photo on top, text block over a cream fade at the bottom */
@media (max-width: 719px) {
  .hero-overlay {
    background: linear-gradient(to bottom,
      transparent 30%,
      rgba(240,235,227,0.85) 58%,
      rgba(240,235,227,0.98) 75%
    );
  }
  .hero-content {
    left: 0;
    width: 100%;
    padding-inline: var(--gutter);
  }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* --- HORARIOS --- */
.horarios {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--paper);
}
.horarios-header { margin-bottom: 3.5rem; }
.horarios-header .t-kicker { display: block; margin-bottom: 0.75rem; }
.horarios-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.horarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
.horario-card {
  background: var(--bg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.horario-days {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.horario-time {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.horarios-perks {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.horarios-perks li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.perk-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.perk-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* --- CONTACTO (WhatsApp + dirección) --- */
.contacto-intro {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.btn-whatsapp { font-size: .78rem; }
/* WhatsApp glyph, inherits the button's text colour (on-palette, no brand-green) */
.btn-whatsapp::before {
  content: "";
  display: inline-block;
  width: 1.35em; height: 1.35em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1s-.5-.1-.7.1-.8 1-.9 1.2-.3.2-.6.1a8.2 8.2 0 0 1-4-3.5c-.3-.5.3-.5.9-1.6.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6a1.2 1.2 0 0 0-.8.4 3.5 3.5 0 0 0-1.1 2.6 6 6 0 0 0 1.3 3.2 13.8 13.8 0 0 0 5.3 4.7c2 .8 2.8.9 3.8.7.6-.1 1.8-.7 2-1.5s.3-1.4.2-1.5l-.6-.3zM12 21.8a9.9 9.9 0 0 1-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8zM20.5 3.5A11.8 11.8 0 0 0 1.9 17.7L.2 24l6.4-1.7A11.8 11.8 0 0 0 24 12a11.7 11.7 0 0 0-3.5-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1s-.5-.1-.7.1-.8 1-.9 1.2-.3.2-.6.1a8.2 8.2 0 0 1-4-3.5c-.3-.5.3-.5.9-1.6.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6a1.2 1.2 0 0 0-.8.4 3.5 3.5 0 0 0-1.1 2.6 6 6 0 0 0 1.3 3.2 13.8 13.8 0 0 0 5.3 4.7c2 .8 2.8.9 3.8.7.6-.1 1.8-.7 2-1.5s.3-1.4.2-1.5l-.6-.3zM12 21.8a9.9 9.9 0 0 1-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8zM20.5 3.5A11.8 11.8 0 0 0 1.9 17.7L.2 24l6.4-1.7A11.8 11.8 0 0 0 24 12a11.7 11.7 0 0 0-3.5-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contacto-lugar {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: end;
}
.contacto-lugar .cd-l {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.contacto-address {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
  color: var(--ink);
}
.contacto-maps {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  width: fit-content;
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.contacto-maps:hover { color: var(--ink); border-color: var(--ink); }

/* Footer links: lift contrast a bit (v4 had them at 0.4 alpha) */
.footer-links { padding: 0; }
.footer-links a { color: rgba(250,247,242,0.7); }
.footer-copy { color: rgba(250,247,242,0.55); }

/* --- RESPONSIVE --- */
@media (min-width: 720px) {
  .horarios-grid { grid-template-columns: repeat(2, 1fr); }
  .horarios-perks { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* --- NAV: logo legible over the hero photo ---
   At the top the nav is transparent and the logo sits on Israel's hair.
   Give it a soft cream pill until the nav turns solid on scroll. */
.nav-logo {
  padding: 0.3rem 1.1rem 0.3rem 0.3rem;
  border-radius: 999px;
  transition: background 0.4s var(--ease-soft);
}
.nav:not(.is-solid) .nav-logo {
  background: rgba(240,235,227,0.86);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
@media (max-width: 719px) {
  .nav-monogram { width: 38px; height: 38px; }
  .nav-brand { font-size: 1.2rem; }
}

/* --- CONTACTO: map --- */
.contacto-map {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.contacto-map iframe {  /* inserted by initMap on click */
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* nudge the map tiles toward the earth-tone palette */
  filter: grayscale(0.35) sepia(0.18) contrast(0.95);
}
@media (min-width: 720px) {
  .contacto-map { aspect-ratio: 21 / 9; }
}

/* --- YOUTUBE band (CTA only) --- */
.yt-band {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.yt-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}
.yt-kicker { display: block; color: var(--accent-2); margin-bottom: 0.75rem; }
.yt-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.yt-text {
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(250,247,242,0.8);
  max-width: 62ch;
}
.yt-text p + p { margin-top: 1rem; }
.yt-text strong { color: var(--paper); font-weight: 500; letter-spacing: 0.04em; }
.yt-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent-2);
}
.yt-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.btn-yt {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--ink);
  font-size: .78rem;
}
.btn-yt::after { background: var(--paper); }
.btn-yt:hover { color: var(--ink); border-color: var(--paper); }
.yt-handle {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: 0.16em;
  color: rgba(250,247,242,0.6);
}
@media (max-width: 719px) {
  .yt-actions { align-items: stretch; }
  .btn-yt { justify-content: center; }
}
@media (min-width: 720px) {
  .yt-band-inner { grid-template-columns: 1fr auto; gap: 4rem; }
  .yt-actions { align-items: flex-end; }
}

/* --- Map facade (click to load; no Google request until then) --- */
.map-facade {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  background:
    repeating-linear-gradient(0deg,  transparent 0 38px, var(--line-soft) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--line-soft) 38px 39px),
    var(--bg-2);
  color: var(--ink);
  transition: background-color 0.3s var(--ease-out);
}
.map-facade:hover .map-facade-label { color: var(--accent); border-color: var(--accent); }
.map-facade-pin {
  width: 2rem; height: 2rem;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.map-facade-label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.map-facade-note {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--ink-mute);
}
/* Without JS the facade can't load anything — the "Cómo llegar" link covers it */
html:not(.js) .contacto-map { display: none; }

/* --- Review fixes (2026-09-30) --- */

/* Content visible without JS: only hide .reveal when the script is there to show it */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Closed mobile menu is fully hidden (also out of the tab order via inert in main.js) */
.nav-mobile { visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s; }
.nav-mobile.is-open { visibility: visible; transition: opacity 0.35s var(--ease-out), visibility 0s; }

/* WCAG AA: --ink-mute #7a6e65 was ~4.1:1 on the cream backgrounds; #685d55 clears 4.5:1 */
:root { --ink-mute: #685d55; }
.footer-credits { color: rgba(250,247,242,0.6); }

/* Button hover fill: .btn::after has z-index:-1, so give .btn its own stacking
   context or the fill paints underneath solid button backgrounds (btn-yt, btn-primary). */
.btn { isolation: isolate; }

/* --- Legal pages (aviso-legal.html, privacidad.html) --- */
.legal-page { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
.legal-page .container { max-width: 64ch; }
.legal-back { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); display: inline-block; margin-bottom: 2rem; }
.legal-back:hover { color: var(--ink); }
.legal-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.5rem; }
.legal-updated { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-mute); margin-bottom: 2.5rem; }
.legal-page h2 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.4rem; margin: 2.25rem 0 0.6rem; color: var(--ink-soft); }
.legal-page p, .legal-page li { font-family: var(--sans); font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); }
.legal-page p { margin-bottom: 0.6rem; }
.legal-page ul { padding-left: 1.2rem; margin-bottom: 0.6rem; }
.legal-page a { color: var(--accent); border-bottom: 1px solid var(--line); }
.legal-page a:hover { border-color: var(--accent); }
.legal-data { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.legal-data li { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.legal-data span {
  font-size: .65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.legal-page mark { background: rgba(196,154,108,0.35); color: var(--ink); padding: 0 0.25em; }
.legal-see-also { margin-top: 2.5rem; }
@media (min-width: 640px) {
  .legal-data li { grid-template-columns: 11rem 1fr; gap: 1rem; align-items: baseline; }
}

/* Footer legal links sit on their own, a touch smaller */
.footer-legal { display: flex; gap: 1.25rem; list-style: none; padding: 0; }
.footer-legal a {
  font-family: var(--sans); font-size: .62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,247,242,0.6); transition: color 0.25s;
}
.footer-legal a:hover { color: var(--paper); }

/* --- Legado band: real YouTube icon above the button --- */
.yt-logo { display: block; line-height: 0; transition: transform 0.3s var(--ease-out); }
.yt-logo:hover { transform: scale(1.06); }
.yt-logo svg { display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
@media (max-width: 719px) { .yt-logo { align-self: center; } }

/* --- HERO: background-free portrait (israel-hero.webp, transparent) on the cream hero ---
   Replaces v4's zoomed-canvas trick (scale 2.2) used by the old photo. */
.hero { background: radial-gradient(120% 90% at 25% 70%, var(--bg-2) 0%, var(--bg) 60%); }
.hero-image {
  inset: auto auto 0 0;
  width: auto;
  height: 94%;
  max-width: 60%;
  object-fit: contain;
  object-position: left bottom;
  transform: translate3d(0, var(--hero-par), 0);
  filter: none;
}
@media (max-width: 719px) {
  .hero-image {
    inset: calc(var(--nav-h) + 0.5rem) 0 auto 0;
    width: 100%;
    max-width: none;
    height: 58%;
    object-position: center bottom;
  }
}
/* The source photo crops his right shoulder: fade that edge so it doesn't read as a hard cut */
.hero-image {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
          mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}
@media (max-width: 719px) {
  .hero-image {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  }
}
@media (max-width: 719px) {
  .hero-image { inset: var(--nav-h) 0 auto 0; height: auto; }
  .yt-handle { text-align: center; }
}

/* Legado band, desktop: centre the YouTube icon + button + handle vertically next to the text
   and horizontally with each other (was bottom/right aligned) */
@media (min-width: 720px) {
  .yt-band-inner { align-items: center; }
  .yt-actions { align-items: center; }
  .yt-handle { text-align: center; }
}

/* --- 404 page (404.html, served by .htaccess ErrorDocument) --- */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: radial-gradient(120% 90% at 25% 70%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--ink);
}
.notfound .container { max-width: 44rem; }
.notfound-mark { display: inline-flex; align-items: center; gap: 1rem; color: inherit; margin-bottom: clamp(3rem, 8vw, 5rem); }
.notfound-kicker { display: block; margin-bottom: 0.75rem; }
.notfound-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.notfound-text { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }
.notfound-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-bottom: 2.5rem; }
.notfound-links a {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.notfound-links a:hover { color: var(--accent); border-color: var(--accent); }
.notfound-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.notfound-home { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); }
.notfound-home:hover { color: var(--ink); }
