/* ==========================================================
   CASA 60 — Estilos
   Orden: variables · base · utilidades · botones · header ·
   menú mobile · hero · secciones · qué es · actividades ·
   socio fundador · historia · contacto · footer · WhatsApp ·
   animaciones · media queries
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --verde-oscuro: #171D19;  /* footer y detalles oscuros */
  --dorado:       #A5824F;  /* logo (sobre oscuro), íconos, líneas, detalles */
  --crema:        #F1ECE1;  /* fondo claro principal */
  --claro:        #F8F4EC;  /* crema más luminoso (tarjetas, secciones) */
  --arena:        #EAE1CF;  /* crema tostado (secciones alternas) */
  --terracota:    #8A3924;  /* SOLO precio y botón de socio fundador / WhatsApp */
  --terracota-hover: #74301E;
  --madera:       #3C2A1E;  /* texto sobre claro */
  --madera-suave: #5E4A3B;  /* texto secundario sobre claro (AA) */
  --texto-claro:  #EDE7DA;  /* texto sobre verde oscuro */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --sombra: 0 18px 40px -18px rgba(60, 42, 30, 0.28);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  --header-h: 76px;
  --gutter: 24px;
  --max: 1200px;
  --section-pad: clamp(96px, 10vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;               /* mobile */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--madera);
  background: var(--crema);
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
h4 { font-size: 1.6rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

strong { font-weight: 500; }

section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--dorado); color: var(--claro); }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(780px + var(--gutter) * 2); }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 300;
  background: var(--madera);
  color: var(--claro);
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--madera);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--dorado);
}

.placeholder { font-style: italic; color: var(--madera-suave); }

/* Íconos: trazo fino dorado dentro de círculo (nunca relleno) */
.icon {
  width: 60px; height: 60px;
  flex: none;
  fill: none;
  stroke: var(--dorado);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon circle:first-child { stroke-width: 1; }
.icon-lg { width: 84px; height: 84px; }

.ui-icon {
  width: 22px; height: 22px;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.wa-mini { width: 28px; height: 28px; stroke-width: 2.4; }

.olivo {
  display: block;
  width: 96px; height: 30px;
  margin: 0 auto 28px;
  color: var(--dorado);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), translate 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

.btn-terracota {
  background: var(--terracota);
  color: var(--claro);
  box-shadow: 0 12px 24px -12px rgba(138, 57, 36, 0.6);
}
.btn-terracota:hover { background: var(--terracota-hover); box-shadow: 0 16px 28px -12px rgba(138, 57, 36, 0.7); }

.btn-outline { color: var(--madera); border-color: var(--madera); background: transparent; }
.btn-outline:hover { background: var(--madera); color: var(--claro); }

.btn-ghost { color: var(--madera); padding-inline: 12px; }
.btn-ghost .ui-icon { transition: transform 0.35s var(--ease); }
.btn-ghost:hover { transform: none; }
.btn-ghost:hover .ui-icon { transform: translateX(6px); }
.btn-ghost { background-image: linear-gradient(var(--dorado), var(--dorado)); background-size: calc(100% - 24px) 1px; background-position: 12px 78%; background-repeat: no-repeat; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(23, 29, 25, 0.55), rgba(23, 29, 25, 0));
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 29, 25, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(165, 130, 79, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo original (dorado) — siempre sobre fondo oscuro */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: calc(var(--header-h) - 14px);
  width: auto;
  transition: height 0.4s var(--ease);
}

.main-nav, .header-cta { display: none; }

.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-weight: 400;
  font-size: 17px;
  color: var(--texto-claro);
  text-decoration: none;
  padding: 8px 0;
  background-image: linear-gradient(var(--dorado), var(--dorado));
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { background-size: 100% 1.5px; }

.header-cta { min-height: 50px; padding: 10px 22px; font-size: 17px; color: var(--texto-claro); border-color: var(--dorado); }
.header-cta:hover { background: var(--dorado); color: var(--verde-oscuro); }

.menu-toggle, .menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--texto-claro);
  background: rgba(23, 29, 25, 0.35);
  border: 1.5px solid var(--dorado);
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- Menú mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  overflow-y: auto;
  padding-bottom: 48px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) { animation: menu-in 0.45s var(--ease) both; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.mobile-nav ul { list-style: none; margin: 16px 0 32px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(165, 130, 79, 0.35); }
.mobile-menu:not([hidden]) .mobile-nav li { animation: fade-up 0.6s var(--ease) both; }
.mobile-nav li:nth-child(2) { animation-delay: 0.05s !important; }
.mobile-nav li:nth-child(3) { animation-delay: 0.1s !important; }
.mobile-nav li:nth-child(4) { animation-delay: 0.15s !important; }
.mobile-nav li:nth-child(5) { animation-delay: 0.2s !important; }
.mobile-nav li:nth-child(6) { animation-delay: 0.25s !important; }
.mobile-nav ul a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--texto-claro);
  text-decoration: none;
}
.mobile-nav ul a.is-active { color: var(--dorado); }
body.menu-open { overflow: hidden; }

/* ---------- Hero: foto de fondo a pantalla completa ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--verde-oscuro);
  color: var(--texto-claro);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile: encuadre centrado en el logo iluminado de la fachada */
  object-position: 48% 30%;
  transform-origin: 48% 25%;
  animation: kenburns 3.2s var(--ease) both;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 29, 25, 0.9) 0%, rgba(23, 29, 25, 0.55) 32%, rgba(23, 29, 25, 0) 58%);
}
.hero-content { position: relative; padding-top: var(--header-h); padding-bottom: 104px; }
.hero .eyebrow { color: var(--texto-claro); }
.hero-title { color: var(--crema); margin-bottom: 0.6em; text-shadow: 0 2px 24px rgba(23, 29, 25, 0.5); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) var(--d, 0s) both; }
.intro-anim { animation: fade-up 1s var(--ease) var(--d, 0s) both; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 44px; height: 56px;
  margin-left: -22px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, rgba(165, 130, 79, 0), var(--dorado));
  animation: fade-up 1s var(--ease) 1.4s both;
}

.arch {
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--arena);
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.bg-claro { background: var(--claro); }
.bg-arena { background: var(--arena); }

.section-head { margin-bottom: 64px; }
.section-head .intro { font-size: 1.15rem; font-weight: 300; }
.section-head.center { text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center h2 { max-width: 22ch; margin-inline: auto; }
.section-head .btn { margin-top: 8px; }
.h2-xl { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }

/* ---------- Qué es Casa 60 ---------- */
.split { display: grid; gap: 64px; }
.big-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.25;
  margin: 1.4rem 0 1.6rem;
}
.big-quote span { display: block; }
.big-quote .destacado {
  font-weight: 500;
  background-image: linear-gradient(rgba(165, 130, 79, 0.35), rgba(165, 130, 79, 0.35));
  background-size: 0 0.35em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  width: fit-content;
  transition: background-size 1.2s var(--ease);
}
.big-quote .destacado.lit, .no-js .big-quote .destacado { background-size: 100% 0.35em; }

.collage { position: relative; max-width: 520px; width: 100%; margin: 0 auto; padding-bottom: 12%; }
.collage-main { aspect-ratio: 4 / 5; box-shadow: var(--sombra); }
.collage-main img, .collage-small img { width: 100%; height: 100%; object-fit: cover; }
.collage-small {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 44%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 6px solid var(--claro);
  box-shadow: var(--sombra);
}
.collage-small img { object-position: 40% 30%; }

.valores { margin-top: 112px; text-align: center; }
.valores-titulo { margin-bottom: 48px; }
.valores-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 24px;
}
.valor {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 28px;
  background: var(--crema);
  border-radius: var(--r-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease) var(--d, 0s);
}
.valor:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.valor .icon { margin-bottom: 18px; transition: transform 0.6s var(--ease); }
.valor:hover .icon { transform: rotate(-8deg) scale(1.06); }
.valor h4 { margin-bottom: 0.4em; }
.valor p { margin: 0 auto; max-width: 32ch; color: var(--madera-suave); }

/* ---------- Actividades ---------- */
.cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--claro);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(60, 42, 30, 0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.9s var(--ease) var(--d, 0s);
}
.card:hover { box-shadow: var(--sombra); }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--arena); }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 1.2s var(--ease), filter 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.06); filter: brightness(1.05); }
.card-body { position: relative; padding: 0 28px 34px; }
.card-body .icon {
  margin: -30px 0 14px;
  background: var(--claro);
  border-radius: 50%;
  position: relative;
}
.card h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); }
.card p { margin-bottom: 0; color: var(--madera-suave); }

.horario {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 20px;
  margin-top: 72px;
}
.horario p { margin: 0; font-size: 1.1rem; }

/* ---------- Socio fundador ---------- */
.oferta {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  background: #FCFAF5;
  border: 1px solid rgba(165, 130, 79, 0.7);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(60, 42, 30, 0.35);
  text-align: center;
}
.oferta::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(165, 130, 79, 0.25);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.precio { margin: 0 auto 0.5rem; }
.precio-monto {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.2rem, 9vw, 6rem);
  line-height: 1;
  color: var(--terracota);
}
.precio-periodo { display: block; font-size: 1.1rem; margin-top: 6px; }
.precio-nota { font-size: 16px; margin: 0 auto 2rem; }

.beneficios {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 28px 0 0;
  border-top: 1px solid rgba(165, 130, 79, 0.4);
  text-align: left;
}
.beneficios li {
  display: flex;
  gap: 14px;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.check {
  width: 26px; height: 26px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--dorado);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.oferta-alt { margin: 1.1rem auto 0; font-size: 16px; color: var(--madera-suave); }

.faq { max-width: 760px; margin: 0 auto; }
.faq h3 { text-align: center; margin-bottom: 28px; }
.faq details {
  background: var(--crema);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  padding: 0 24px;
  transition: background-color 0.3s ease;
}
.faq details[open] { background: var(--arena); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--madera);
  border-bottom: 1.5px solid var(--madera);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-body p { font-size: 18px; padding-bottom: 22px; margin: 0; }
.faq details[open] .faq-body { animation: fade-up 0.5s var(--ease) both; }

/* ---------- Historia (solo texto) ---------- */
.historia { text-align: center; }
.historia .eyebrow { justify-content: center; }
.historia h2 { max-width: 20ch; margin-inline: auto; }
.historia p { margin-inline: auto; }
.historia .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  margin-block: 1.2rem 1.4rem;
}
.historia .olivo { margin: 72px auto 32px; }

/* ---------- Contacto ---------- */
.datos {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.dato { flex: 1 1 100%; }
.dato {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--crema);
  border-radius: var(--r-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease) var(--d, 0s);
}
.dato:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.dato .icon { width: 54px; height: 54px; margin-bottom: 12px; }
.dato p { margin: 0; overflow-wrap: anywhere; }
.dato-label {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px !important;
}

.mapa { margin-top: 64px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); }
.mapa iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  filter: sepia(0.25) saturate(0.85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  padding: 88px 0 120px;
  text-align: center;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo { display: inline-block; padding: 12px; }
.footer-logo img { width: 170px; height: auto; }
.claim { font-family: var(--serif); font-style: italic; font-size: 1.7rem; margin: 20px auto 32px; }

.footer-nav, .footer-redes {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-nav a, .footer-redes a {
  display: inline-block;
  padding: 8px 0;
  font-size: 17px;
  text-decoration: none;
}
.footer-nav a:hover, .footer-redes a:hover { text-decoration: underline; text-decoration-color: var(--dorado); }
.footer-redes a { color: var(--dorado); }
.legal { font-size: 16px; opacity: 0.85; margin: 24px auto 0; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 62px;
  min-width: 62px;
  color: var(--claro);
  background: var(--verde-oscuro);
  border: 1.5px solid var(--dorado);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(23, 29, 25, 0.55);
  transition: transform 0.4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  border: 1.5px solid var(--dorado);
  animation: halo 3.2s ease-out 3s infinite;
  pointer-events: none;
}
.wa-icon {
  width: 38px; height: 38px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.wa-text { display: none; font-size: 17px; font-weight: 400; }

/* ---------- Animaciones ---------- */
@keyframes rise    { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns { from { transform: scale(1.12); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes pop     { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes float   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo    { 0% { opacity: 0.8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

/* Aparición al scrollear */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s), box-shadow 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .valor.is-visible:hover, .js .dato.is-visible:hover { transform: translateY(-5px); }
.js .reveal.is-visible:hover { transition-delay: 0s; }

/* Imágenes que se descubren como una cortina */
.js .reveal-img {
  clip-path: inset(18% 10% 18% 10%);
  opacity: 0;
  transition: clip-path 1.4s var(--ease) var(--d, 0s), opacity 1s var(--ease) var(--d, 0s);
}
.js .reveal-img img { scale: 1.2; transition: scale 1.8s var(--ease) var(--d, 0s); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); opacity: 1; }
.js .reveal-img.is-visible img { scale: 1.08; }

/* Parallax suave (JS setea --py) */
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }

/* Ramita que se dibuja de izquierda a derecha */
.js .olivo.draw { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.js .olivo.draw.is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-img, .js .olivo.draw { opacity: 1; transform: none; clip-path: none; }
  .js .reveal-img img { scale: 1; }
  [data-parallax] { translate: none; }
  .big-quote .destacado { background-size: 100% 0.35em; }
}

/* ==========================================================
   MEJORAS DE DISEÑO Y ANIMACIÓN
   ========================================================== */

/* ---------- Pantalla de bienvenida ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--verde-oscuro);
}
.is-loading .loader, .is-leaving .loader { display: flex; }
.loader img { width: 150px; height: auto; animation: loader-logo 1.1s var(--ease) both; }
.loader-line {
  width: 120px; height: 1px;
  background: var(--dorado);
  transform-origin: 0 50%;
  animation: loader-line 1.1s var(--ease) 0.2s both;
}
.is-leaving .loader { animation: loader-out 0.9s var(--ease) both; }
.is-loading .hero *, .is-loading .hero-bg img { animation-play-state: paused !important; }
@keyframes loader-logo { from { opacity: 0; transform: translateY(12px) scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes loader-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loader-out  { to { clip-path: inset(0 0 100% 0); } }

/* ---------- Hero: indicador de scroll con punto que baja ---------- */
.scroll-hint span { position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: "";
  position: absolute;
  left: -2px; top: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--crema);
  animation: gota 2.4s ease-in-out 2s infinite;
}
@keyframes gota { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
.hero-content { will-change: opacity, translate; }

/* ---------- Franja de palabras ---------- */
.marquee {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(165, 130, 79, 0.35);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 8px; height: 8px;
  margin: 0 36px;
  border: 1px solid var(--dorado);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Títulos que entran palabra por palabra ---------- */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease) calc(var(--i) * 70ms);
}
.split-words.is-visible .w > span { transform: none; }

/* ---------- Tarjetas: número editorial ---------- */
.card-num {
  position: absolute;
  top: 10px; right: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--dorado);
  opacity: 0.9;
}
.img-sabados { object-position: 50% 58% !important; }
.card-media { position: relative; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 29, 25, 0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }
.js .card.reveal { transform: translateY(40px) scale(0.98); }
.js .card.reveal.is-visible { transform: none; }
.js .card.is-visible:hover { transform: translateY(-8px); }

/* ---------- Banda con frase ---------- */
.frase {
  position: relative;
  overflow: hidden;
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  padding-block: clamp(112px, 14vw, 180px);
  text-align: center;
}
.frase-bg { position: absolute; inset: -12% 0; }
.frase-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.8); }
.frase::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(23, 29, 25, 0.35), rgba(23, 29, 25, 0.9) 75%);
}
.frase-inner { position: relative; z-index: 1; }
.frase-texto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--crema);
  max-width: 18ch;
  margin: 0 auto 28px;
}
.frase-firma { margin: 0 auto; font-size: 1.1rem; font-weight: 300; }

/* ---------- Oferta: borde dorado que recorre la tarjeta ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.oferta::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang), transparent 0 72%, rgba(165, 130, 79, 0.2) 80%, var(--dorado) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: giro 7s linear infinite;
  pointer-events: none;
}
@keyframes giro { to { --ang: 360deg; } }

/* ---------- Valores: brillo suave al pasar ---------- */
.valor { position: relative; overflow: hidden; }
.valor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(165, 130, 79, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.valor:hover::before { opacity: 1; }
.valor > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .split-words .w > span { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee span:nth-child(n+9) { display: none; }
}


/* ==========================================================
   V3 — DISEÑO Y MOVIMIENTO
   ========================================================== */

/* ---------- Textura de papel (calidez) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Secciones que se apoyan una sobre otra (bordes curvos) ---------- */
.section, .frase {
  border-radius: 48px 48px 0 0;
  margin-top: -48px;
  box-shadow: 0 -24px 48px -32px rgba(60, 42, 30, 0.35);
}
.marquee { padding-bottom: 74px; }

/* ---------- Eyebrow: la línea dorada se dibuja ---------- */
.js .eyebrow.reveal::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease) 0.25s;
}
.js .eyebrow.reveal.is-visible::before { transform: scaleX(1); }

/* ---------- "No es… / Es tu casa": se encienden con el scroll ---------- */
.js .big-quote .ink {
  opacity: calc(0.18 + 0.82 * var(--ink, 0));
  transform: translateX(calc((1 - var(--ink, 0)) * 18px));
  transition: opacity 0.25s linear, transform 0.25s linear;
}

/* ---------- Actividades: fila horizontal guiada por el scroll (escritorio) ---------- */
.hscroll-sticky {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hscroll-ui { display: none; }

.hscroll.is-on .hscroll-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hscroll.is-on .cards {
  display: flex;
  gap: 32px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  will-change: transform;
}
.hscroll.is-on .card {
  flex: 0 0 clamp(320px, calc((100svh - var(--header-h)) * 0.62), 430px);
  width: auto !important;
  grid-column: auto !important;
}
.hscroll.is-on .card-body { padding-bottom: 26px; }
.hscroll.is-on .card-media { aspect-ratio: 4 / 3; }
.hscroll.is-on .card-media img { transform: translateX(var(--px, 0px)) scale(1.12); }
.hscroll.is-on .card:hover .card-media img { transform: translateX(var(--px, 0px)) scale(1.18); }
.hscroll.is-on .hscroll-ui {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100vw - var(--gutter) * 2));
  margin: 28px auto 0;
  font-size: 16px;
}
.hscroll-count { font-family: var(--serif); font-style: italic; font-size: 1.3rem; white-space: nowrap; }
.hscroll-count b { font-weight: 500; font-size: 1.7rem; }
.hscroll-bar { flex: 1; height: 1px; background: rgba(60, 42, 30, 0.2); position: relative; }
.hscroll-bar i {
  position: absolute; inset: -1px auto -1px 0;
  width: 100%;
  background: var(--dorado);
  transform-origin: 0 50%;
  transform: scaleX(var(--hp, 0));
}
.hscroll-tip { letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.hscroll-tip::after { content: " ↓"; display: inline-block; animation: tip 1.8s ease-in-out infinite; }
@keyframes tip { 50% { transform: translateY(4px); } }

/* ---------- Tarjeta de oferta: inclinación y luz que sigue al mouse ---------- */
.oferta {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(165, 130, 79, 0.14), transparent 60%),
    #FCFAF5;
  transform-style: preserve-3d;
}
.js .oferta.reveal.is-visible { transition: opacity 0.9s var(--ease), transform 0.25s ease-out, box-shadow 0.6s var(--ease); }

/* ---------- Banda de frase: luz que sigue al mouse + palabras que se encienden ---------- */
.frase-luz {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(165, 130, 79, 0.22), transparent 65%);
  transition: opacity 0.6s ease;
}
.frase-inner { z-index: 2; }
.js .frase-texto .w > span { opacity: calc(0.25 + 0.75 * var(--lit, 0)); }

/* ---------- Historia: logo de fondo como marca de agua ---------- */
.historia { overflow: hidden; }
.marca-agua {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(560px, 70vw);
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}
.historia .container { position: relative; }

/* ---------- Redes en contacto ---------- */
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.redes a { padding: 6px 0; }

/* ---------- Botones magnéticos (JS setea --bx / --by) ---------- */
.btn-terracota { translate: var(--bx, 0) var(--by, 0); }

@media (prefers-reduced-motion: reduce) {
  .js .big-quote .ink { opacity: 1; transform: none; }
  .js .frase-texto .w > span { opacity: 1; }
  .btn-terracota { translate: none; }
}
@media (max-width: 899px) {
  .section, .frase { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .marquee { padding-bottom: 54px; }
}

/* ---------- Media queries ---------- */
@media (max-width: 420px) {
  .eyebrow { letter-spacing: 0.16em; gap: 10px; }
  .eyebrow::before { width: 20px; }
}

@media (min-width: 640px) {
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 14px); }
  .oferta { padding: 64px 52px 48px; }
  .dato { flex-basis: calc(50% - 8px); }

}

@media (min-width: 900px) {
  :root { --gutter: 48px; --header-h: 88px; }
  html { font-size: 19px; }
  .hero-bg img { object-position: 50% 40%; }
  .hero-overlay { background: linear-gradient(to top, rgba(23, 29, 25, 0.85) 0%, rgba(23, 29, 25, 0.35) 38%, rgba(23, 29, 25, 0) 60%), linear-gradient(to right, rgba(23, 29, 25, 0.45), rgba(23, 29, 25, 0) 45%); }
  .split { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 2; width: auto; justify-self: stretch; }
  .dato { flex-basis: calc(25% - 12px); flex-grow: 0; }

  .wa-float { right: 28px; bottom: 28px; padding: 0 24px 0 14px; }
  .wa-text { display: inline; }
}

@media (min-width: 1100px) {
  .valores-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1240px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Actividades: más planes ---------- */
.extras {
  list-style: none;
  margin: 56px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
}
.extras li {
  padding: 10px 22px;
  border: 1px solid rgba(60, 42, 30, 0.22);
  border-radius: 999px;
  background: var(--claro);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.extras .extras-mas { font-style: italic; background: transparent; border-style: dashed; }

/* ---------- Horarios ---------- */
.horarios { background: var(--verde-oscuro); color: var(--texto-claro); }
.horarios h2, .horarios h3 { color: var(--texto-claro); }
.horarios .eyebrow { color: var(--dorado); }
.semana {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dia h3 {
  font-style: italic; font-weight: 400;
  color: var(--dorado);
  font-size: 1.8rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(165, 130, 79, 0.35);
}
.dia ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.act {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: #4a4a4a;
}
.act span { font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.act time { font-size: 0.95rem; opacity: 0.8; }
.act.pil { background: var(--crema); color: var(--madera); }
.c-velas { background: #7A5F30; }
.c-camina { background: #7E4E44; }
.c-cocina { background: #8A3924; }
.c-plastica { background: #5B6B40; }
.c-pintura { background: #2C5752; }
.c-ajedrez { background: #5A3A2A; }
.c-ceramica { background: #4C5B72; }
.c-crochet { background: #6A4459; }
.horarios-extra {
  display: grid; gap: 24px;
  margin-top: 48px;
}
.horarios-extra p { margin: 0; font-size: 1.1rem; font-weight: 300; }
.extra-label {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 6px;
}
.musculacion {
  padding: 20px 26px;
  border: 1px solid rgba(165, 130, 79, 0.5);
  border-radius: var(--r-md);
  background: rgba(165, 130, 79, 0.08);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
}
.musculacion .extra-label { font-family: var(--sans); font-style: normal; }
@media (min-width: 640px) {
  .horarios-extra { grid-template-columns: 1fr 1fr; }
  .musculacion { grid-column: 1 / -1; }
}
/* Celular: misma grilla de 5 días, compacta */
@media (max-width: 767px) {
  .horarios .container { padding-inline: 10px; }
  .semana { gap: 4px; }
  .dia h3 { font-size: 0.95rem; text-align: center; margin-bottom: 8px; padding-bottom: 6px; }
  .dia ul { gap: 4px; }
  .act { padding: 6px 5px; border-radius: 6px; }
  .act span { font-size: 0.68rem; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; }
  .act time { font-size: 0.62rem; line-height: 1.2; }
  .horarios-extra { padding-inline: 14px; }
}

/* ---------- Hero: invitación de octubre ---------- */
.hero-invita {
  max-width: 34ch;
  margin: 0 0 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--texto-claro);
}
.hero-invita em { font-family: var(--serif); font-size: 1.25em; color: #E3C48F; }
