/* ============================================================
   Bodhi Studio + Aliptae — sistema de diseño
   Paleta real: terracota del logo (#9A605A) + neutros cálidos
   inspirados en theretreatcostarica.com (referencia de estilo)
   Tipografía: Cormorant Garamond (display/cursiva) + Jost (cuerpo/nav)
   ============================================================ */

:root {
  --terracotta: #9A5F53;
  --terracotta-deep: #7A493F;
  --terracotta-tint: #F1E4E0;
  --charcoal: #2E2C2A;
  --warmgray: #6B6763;
  --cream: #FAF7F2;
  --cream-2: #F2EDE4;
  --sand: #E4DDD1;
  --sage: #7E8C79;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--warmgray);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

em, .accent-word {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

p { color: var(--warmgray); font-weight: 300; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-2);
}
.eyebrow::before { content: '\2726'; font-size: 0.85em; }

/* ── BOTONES ──
   Hover con elevación + sombra suave, y en los sólidos un brillo diagonal que
   recorre el botón (vía background-position, no pseudo-elemento — así el
   texto siempre queda encima sin trucos de z-index). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(46,44,42,0.16); }
.btn:active { transform: translateY(-1px); }

.btn-fill {
  background-color: var(--terracotta);
  background-image: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 60% 100%;
  background-position: -60% 0;
  color: var(--white);
  transition: background-position 0.6s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-fill:hover { background-color: var(--terracotta-deep); background-position: 160% 0; box-shadow: 0 12px 28px rgba(122,73,63,0.4); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.12); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

.btn-outline-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover { border-color: var(--terracotta); color: var(--terracotta); box-shadow: 0 12px 28px rgba(46,44,42,0.12); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  border-bottom: 1px solid transparent;
  transition: gap 0.25s ease, border-color 0.25s ease;
}
.link-arrow:hover { gap: 0.8rem; border-color: var(--terracotta); }

/* ── LOGOMARCA ──
   Tamaño grande (el de index.html) por defecto en todas las páginas.
   Solo se achica cuando el nav está sobre foto/video y ya hiciste scroll. */
.brandmark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brandmark img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; transition: width 0.35s ease, height 0.35s ease; }
.brandmark .word { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--charcoal); transition: font-size 0.35s ease; }
.brandmark .word small {
  display: block; font-family: var(--font-body); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--warmgray);
}
.navbar.on-photo .brandmark .word,
.navbar.on-photo .brandmark .word small { color: var(--white); }
footer .brandmark img { width: 40px; height: 40px; }
footer .brandmark .word { font-size: 1.15rem; }

/* ── NAV ──
   Mismo tamaño y alineado en todas las páginas (con foto o sin foto). Sobre
   foto/video (.on-photo sin scrollear) cambia el color de texto (blanco) y
   lleva un degradado propio detrás para que se lea siempre, sin importar qué
   tan clara sea la imagen de fondo. Al hacer scroll se compacta a la versión
   sólida — efecto dinámico solo para las páginas con foto. */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-4) 0; transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.navbar.on-photo { background: transparent; }
.navbar.on-photo:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(20,17,15,0.55) 0%, rgba(20,17,15,0.28) 60%, rgba(20,17,15,0) 100%);
}
.navbar.on-photo.scrolled, .navbar.base { background-color: var(--cream); box-shadow: 0 6px 24px rgba(46,44,42,0.06); }
.navbar.on-photo.scrolled { padding: var(--space-2) 0; }
.navbar.on-photo.scrolled .brandmark img { width: 40px; height: 40px; }
.navbar.on-photo.scrolled .brandmark .word { font-size: 1.15rem; }

.nav-links { display: flex; align-items: center; gap: var(--space-3); list-style: none; }
.nav-links a {
  position: relative;
  text-decoration: none; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px 8px; color: var(--charcoal);
  border: 1px solid transparent; border-radius: 999px;
  transition: color 0.25s ease, font-size 0.35s ease, border-color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
}
.navbar.on-photo:not(.scrolled) .nav-links a { color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.navbar.on-photo.scrolled .nav-links a { font-size: 0.78rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--terracotta); border-color: currentColor; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.navbar.on-photo:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; color: var(--charcoal); }
.navbar.on-photo:not(.scrolled) .nav-toggle { color: var(--white); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.3s ease;
}
.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* ── HERO split (foto + texto) ── */
.hero-split {
  padding: calc(var(--space-8) + 1rem) 0 var(--space-7);
  background: var(--cream);
}
.hero-split .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-split p.lead { font-size: 1.08rem; max-width: 460px; margin: var(--space-3) 0 var(--space-4); }
.hero-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; animation: kenburns 22s ease-in-out infinite alternate; }
.photo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* ── bloque foto + texto reutilizable ── */
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }

/* ── HERO video full-bleed (home) ──
   min-height (no height fija) + flex en el contenedor: si el contenido
   (H1 + subtítulo + botones) no entra en el alto mínimo, el hero crece
   en vez de que el texto se meta debajo del nav fijo. El padding-top
   de .hero-video__content reserva siempre el espacio del nav (~88px). */
.hero-video {
  position: relative;
  width: 100%;
  min-height: max(640px, 100vh);
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
}
.hero-video__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video__movil { display: none; }
.hero-video__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%);
}
.hero-video__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 140px 6% 9%;
}
.hero-video__content .inner { max-width: 640px; }
.hero-video__content h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 9rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 1.1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-video__content .lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: none;
  margin: 0 0 2rem;
}
.hero-video .hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Entrada con vida: la foto hace un zoom lento de ida y vuelta y el texto
   sube suave en cascada (título, frase, botones). */
.hero-video img.hero-video__media { animation: hero-zoom 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}
.hero-video__content h1,
.hero-video__content .lead,
.hero-video .hero-actions { opacity: 0; animation: hero-entra 0.9s ease-out forwards; }
.hero-video__content .lead { animation-delay: 0.25s; }
.hero-video .hero-actions { animation-delay: 0.5s; }
@keyframes hero-entra {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video img.hero-video__media,
  .hero-video__content h1,
  .hero-video__content .lead,
  .hero-video .hero-actions { animation: none; opacity: 1; }
}

@media (max-width: 700px) {
  /* Pantalla completa también en celulares chicos (antes 90vh dejaba una franja). */
  .hero-video { min-height: 100vh; min-height: 100svh; }
  /* Video vertical de clase en vez de la foto (ver bodhi.html y site.js). */
  .hero-video .hero-video__movil[src] { display: block; }
  .hero-video:has(.hero-video__movil[src]) img.hero-video__media { display: none; }
  /* Botones arriba de la píldora flotante "Visitá también" y de WhatsApp. */
  .hero-video__content { padding-bottom: 96px; }
}

/* ── HERO fotográfico a pantalla completa (para páginas internas) ── */
.hero-photo {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(30,26,24,0.82) 0%, rgba(30,26,24,0.5) 55%, rgba(30,26,24,0.3) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; padding-bottom: var(--space-6); }
.hero-photo p.lead { color: rgba(255,255,255,0.92); max-width: 520px; margin-top: var(--space-2); text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-photo h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
/* Sobre foto, el terracota no se lee: el acento y el eyebrow van en tono claro. */
.hero-photo .eyebrow { color: var(--terracotta-tint); text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero-photo .accent-word { color: #F3C9B8; }

/* ── SECCIONES ── */
section { padding: var(--space-7) 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--charcoal); color: rgba(255,255,255,0.78); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.68); }

.section-head { max-width: 620px; margin-bottom: var(--space-5); }
.section-head.center { margin: 0 auto var(--space-5); text-align: center; }

/* separador */
.divider { display: flex; align-items: center; gap: var(--space-2); color: var(--terracotta); margin: var(--space-2) 0; }
.divider::before, .divider::after { content: ''; height: 1px; width: 40px; background: var(--sand); }

/* ── FILOSOFÍA (citas estilo Instagram) ── */
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.philosophy-card { position: relative; overflow: hidden; text-align: center; padding: var(--space-4) var(--space-2); }
.philosophy-card .mark { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--terracotta); margin-bottom: var(--space-2); }
.philosophy-card p { font-size: 0.95rem; }
.philosophy-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(154,95,83,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.philosophy-card:hover::before { opacity: 1; }

/* ── CLASES (tarjetas con foto) ── */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.class-grid.two { grid-template-columns: repeat(2, 1fr); }
.class-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; }
.class-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; animation: kenburns 24s ease-in-out infinite alternate; }
.class-card:hover img { animation: none; transform: scale(1.05); }
.class-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(0deg, rgba(30,26,24,0.78) 0%, rgba(30,26,24,0.05) 60%);
}
.class-card .label { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 2; color: var(--white); }
.class-card .label h3 { color: var(--white); margin-bottom: 0.2rem; }
.class-card .label span { font-size: 0.78rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.8); }

/* ── HORARIO ── */
.schedule { width: 100%; border-collapse: collapse; }
.schedule th {
  text-align: left; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta); padding: 0.8rem 1rem; border-bottom: 1px solid var(--sand);
}
.schedule td { padding: 1rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.schedule td.day { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--charcoal); white-space: nowrap; }
.schedule .time { color: var(--terracotta); font-weight: 500; font-size: 0.85rem; margin-right: 0.6rem; }

/* ── audiencia / nota ── */
.audience-note { border-left: 2px solid var(--terracotta); padding-left: var(--space-3); max-width: 560px; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.chip-list li {
  background: var(--white); border: 1px solid var(--sand); border-radius: 999px; padding: 0.5rem 1.1rem;
  font-size: 0.82rem; font-weight: 500; color: var(--charcoal);
}

/* ── testimonios ── */
.testimonial-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 580px; }
.testimonial-card p.quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--charcoal); margin-bottom: var(--space-2); }
.testimonial-card .who { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--terracotta); }

/* ── aviso / próximamente ── */
.notice-card {
  background: var(--terracotta-tint); border: 1px solid var(--sand); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); display: flex; align-items: center; gap: var(--space-2);
}
.notice-card p { color: var(--terracotta-deep); font-size: 0.92rem; margin: 0; }

/* ── contacto ── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.contact-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-md); padding: var(--space-4); text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
.contact-card:hover { border-color: var(--terracotta); transform: translateY(-3px); }
.contact-card .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta-tint); color: var(--terracotta-deep); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p { font-size: 0.9rem; margin: 0; }

/* ── FOOTER ── */
footer { background: var(--charcoal); color: rgba(255,255,255,0.65); padding: var(--space-6) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--terracotta); }
footer .brandmark .word, footer .brandmark .word small { color: var(--white); }
.footer-grid li + li { margin-top: 0.5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); font-size: 0.76rem; }

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22); z-index: 1200; transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── WIDGET DE RESERVA ── */
.rsv-field {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--white);
}
.rsv-field:focus { outline: none; border-color: var(--terracotta); }
.rsv-check-label { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-3); font-size: 0.88rem; }
.rsv-note { font-size: 0.8rem; margin-bottom: var(--space-3); }
.rsv-confirmed { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--terracotta); text-align: center; padding: var(--space-3) 0; }

/* ── SCROLL REVEAL (fade + slide sutil al entrar en viewport) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.philosophy-grid > .reveal:nth-child(2), .class-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.philosophy-grid > .reveal:nth-child(3), .class-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .photo-frame img, .class-card img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.hero-aliptae { padding-bottom: var(--space-5); }
.aliptae-video { padding-top: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Aliptae en celular: texto compacto arriba y el video justo debajo,
     del alto que sobra de la pantalla (114px = nav fijo). site.js mide el
     header y deja su alto en --alto-hero-aliptae. */
  .hero-aliptae { padding: calc(114px + 0.75rem) 0 0.75rem; }
  .hero-aliptae .eyebrow { margin-bottom: 0.2rem; }
  .hero-aliptae h1 { font-size: 2.4rem; line-height: 1.05; }
  .hero-aliptae p.lead { font-size: 0.95rem; line-height: 1.5; margin: 0.35rem 0 0; }
  .aliptae-video .photo-frame {
    aspect-ratio: auto; min-height: 260px;
    height: calc(100vh - var(--alto-hero-aliptae, 290px) - 0.75rem);
    height: calc(100svh - var(--alto-hero-aliptae, 290px) - 0.75rem);
  }
  .aliptae-video .photo-frame video { object-position: center 40%; }
  .hero-split .wrap { grid-template-columns: 1fr; }
  .split-media { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: var(--space-4); gap: var(--space-3); transform: translateX(100%); transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--charcoal) !important; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .class-grid, .class-grid.two { grid-template-columns: 1fr; }
}

/* ===== Diálogos del sitio (assets/dialogo.js) ===== */
.site-dialog {
  /* El reset global (margin: 0) anula el centrado nativo de <dialog>. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100dvh - 2 * var(--space-3));
  overflow-y: auto;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  width: calc(100% - 2 * var(--space-3));
  max-width: 420px;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  box-shadow: 0 24px 60px rgba(46,44,42,0.28);
}
.site-dialog[open] { animation: site-dialog-in 0.22s ease-out; }
.site-dialog::backdrop { background: rgba(46,44,42,0.45); backdrop-filter: blur(3px); }
.site-dialog-msg {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0 0 var(--space-3);
}
.site-dialog-actions { display: flex; gap: var(--space-1); justify-content: flex-end; flex-wrap: wrap; }
@keyframes site-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .site-dialog { padding: var(--space-3); }
  .site-dialog-msg { font-size: 1.2rem; }
  .site-dialog-actions { flex-direction: column-reverse; }
  .site-dialog-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-dialog[open] { animation: none; }
}

/* ── PORTADA (index.html) ──
   La imagen diseñada por la clienta, completa y sin recortar. Encima van
   zonas que se pueden tocar: la mitad izquierda (hasta la cinta diagonal)
   entra a Bodhi, la derecha a Aliptae, y la pastilla de abajo abre
   WhatsApp. El espacio que sobra alrededor se rellena con la misma imagen
   desenfocada. En vertical (celular) la imagen va arriba y debajo dos
   botones grandes. Las coordenadas están en % de la imagen (1671x941). */
.portada-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  background: #1d1915 url("img/portada-bodhi-aliptae-blur.jpg") center / cover no-repeat;
}
.portada-body::before {
  content: ''; position: fixed; inset: -40px; z-index: -1;
  background: inherit; filter: blur(30px) brightness(0.55);
}
.portada {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.portada__escena {
  position: relative; container-type: inline-size;
  width: min(100vw, calc(100dvh * 1671 / 941)); aspect-ratio: 1671 / 941;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.portada__img { display: block; width: 100%; height: 100%; }

.portada__zona {
  position: absolute; inset: 0; display: block; text-decoration: none;
  transition: background 0.4s ease;
}
.portada__zona--bodhi   { clip-path: polygon(0 0, 61% 0, 53% 40%, 35% 77%, 0 77%); }
.portada__zona--aliptae { clip-path: polygon(61% 0, 100% 0, 100% 77%, 35% 77%, 53% 40%); }
.portada__zona:hover, .portada__zona:focus-visible { background: rgba(255,240,215,0.10); outline: none; }

.portada__cta {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 0.7em 1.6em; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: clamp(10px, 1.05cqw, 17px); color: var(--white);
  background: rgba(30,24,20,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.portada__zona--bodhi .portada__cta   { left: 27%; top: 60%; }
.portada__zona--aliptae .portada__cta { left: 75%; top: 59%; }
.portada__zona:hover .portada__cta, .portada__zona:focus-visible .portada__cta {
  background: var(--white); color: var(--charcoal); transform: translate(-50%, -50%) scale(1.05);
}

/* Mitad derecha de la pastilla verde (ícono + 7199 5070). */
.portada__wa { position: absolute; left: 50%; top: 88.3%; width: 31.5%; height: 9.4%; border-radius: 999px; }
.portada__wa:hover, .portada__wa:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.6); outline: none; }

.portada__acciones { display: none; }

@media (orientation: portrait), (max-width: 700px) {
  .portada__escena { width: 100vw; }
  .portada__cta { display: none; }
  .portada__acciones {
    display: flex; flex-direction: column; gap: var(--space-2);
    width: 100%; max-width: 420px; padding: var(--space-4) var(--space-3);
  }
  .portada__acciones .btn { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .portada__zona, .portada__cta { transition: none; }
}

/* Enlace de vuelta a la portada dividida, en el menú de cada página. */
.nav-links .nav-back a { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; opacity: 0.8; }
.nav-links .nav-back a:hover { opacity: 1; }

/* ── BOTÓN PARA CAMBIAR DE MARCA ──
   Flotante abajo a la izquierda (WhatsApp ocupa la derecha). Lo crea site.js. */
.brand-switch {
  position: fixed; left: 24px; bottom: 24px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 6px 18px 6px 6px; border-radius: 999px; text-decoration: none;
  background: rgba(250,247,242,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(154,95,83,0.35);
  box-shadow: 0 10px 28px rgba(46,44,42,0.18);
  color: var(--charcoal);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: brand-switch-in 0.6s 0.8s both cubic-bezier(.2,.7,.2,1);
}
.brand-switch:hover { transform: translateY(-3px); border-color: var(--terracotta); box-shadow: 0 14px 34px rgba(46,44,42,0.24); }
.brand-switch:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.brand-switch img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sand); }
.brand-switch__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); font-size: 1.2rem; }
.brand-switch__text small { font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 2px; }
.brand-switch__text em { font-family: var(--font-body); font-style: normal; font-size: 0.68rem; color: var(--warmgray); letter-spacing: 0.04em; }
.brand-switch__arrow { color: var(--terracotta); font-size: 1.1rem; transition: transform 0.3s ease; }
.brand-switch:hover .brand-switch__arrow { transform: translateX(4px); }
@keyframes brand-switch-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .brand-switch { left: 16px; bottom: 20px; padding: 5px 14px 5px 5px; gap: 0.55rem; }
  .brand-switch img { width: 38px; height: 38px; }
  .brand-switch__text { font-size: 1.05rem; }
  .brand-switch__text em { display: none; }
  .footer-bottom { padding-bottom: 72px; } /* que el botón no tape el pie */
}
@media (prefers-reduced-motion: reduce) {
  .brand-switch { animation: none; transition: none; }
}


/* ── GALERÍA Y REELS (bodhi.html) ── */
.galeria { columns: 4 220px; column-gap: var(--space-2); }
.galeria__item { margin: 0 0 var(--space-2); break-inside: avoid; border-radius: var(--radius-md); overflow: hidden; }
.galeria__item img { width: 100%; height: auto; transition: transform 0.6s ease; }
.galeria__item:hover img { transform: scale(1.04); }
.galeria__item[hidden] { display: none; }
.galeria-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.galeria-filtros button {
  font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  background: var(--white); color: var(--charcoal);
  border: 1px solid var(--sand); border-radius: 999px; padding: 0.5rem 1.2rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.galeria-filtros button:hover { border-color: var(--terracotta); }
.galeria-filtros button.is-active { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }

/* Foto de Pilar: encuadre en la cara. */
.photo-frame--pilar { aspect-ratio: 4 / 5; }
.photo-frame--pilar img { object-position: 30% 30%; }

.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: var(--space-4); justify-content: center; }
.reel { margin: 0; }
.reel video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--charcoal);
  border-radius: var(--radius-md); box-shadow: 0 18px 40px rgba(46,44,42,0.18);
}
.reel figcaption { margin-top: var(--space-2); text-align: center; font-family: var(--font-display); font-size: 1.3rem; color: var(--charcoal); }
@media (max-width: 760px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
  .reel { scroll-snap-align: center; }
}

/* Texto solo para lectores de pantalla y buscadores (visible en la imagen). */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
