:root {
  --ink: #24302c;
  --muted: #64736d;
  --paper: #fbfaf7;
  --soft: #f1efe8;
  --sage: #6f8d72;
  --sage-dark: #43634f;
  --clay: #b76d4b;
  --gold: #d9b76f;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(34, 48, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(36, 48, 44, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 40px;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--sage-dark);
}

a:focus-visible,
.button:focus-visible,
.header-action:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.header-action {
  padding: 0 20px;
  color: var(--white);
  background: var(--sage-dark);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(20px, 6vw, 80px) 56px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/yoga-studio-hero.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.78) 39%, rgba(251, 250, 247, 0.1) 72%),
    linear-gradient(180deg, rgba(36, 48, 44, 0.12), rgba(36, 48, 44, 0.38));
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.9rem, 6vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: #41504b;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-width: 158px;
  padding: 0 24px;
}

.button-primary {
  color: var(--white);
  background: var(--sage-dark);
  box-shadow: var(--shadow);
}

.button-secondary {
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(67, 99, 79, 0.2);
}

.button-secondary.light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
}

.intro-band {
  padding: 0 clamp(20px, 6vw, 80px);
  background: var(--paper);
}

.intro-grid {
  width: min(1120px, 100%);
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-grid article {
  min-height: 136px;
  padding: 28px;
  background: var(--white);
  border-right: 1px solid rgba(36, 48, 44, 0.08);
}

.intro-grid article:last-child {
  border-right: 0;
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.intro-grid span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 6vw, 80px);
}

.section-light {
  background: var(--paper);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:last-child,
.place-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.schedule-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.schedule-card {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(36, 48, 44, 0.08);
}

.schedule-card.featured {
  color: var(--white);
  background: var(--sage-dark);
}

.schedule-card h3,
.reason-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.schedule-card p,
.reason-card p {
  margin: 0;
  color: var(--muted);
}

.schedule-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.schedule-card time {
  flex: 0 0 auto;
  color: var(--clay);
  font-size: 2rem;
  font-weight: 800;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(360px, 100%);
  gap: 0;
  align-self: stretch;
  border: 1px solid rgba(36, 48, 44, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.price-list span {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 86px;
  padding: 16px;
  background: rgba(251, 250, 247, 0.72);
}

.price-list span:first-child {
  border-right: 1px solid rgba(36, 48, 44, 0.1);
}

.price-list strong {
  font-size: 0.95rem;
}

.price-list em {
  color: var(--clay);
  font-size: 1.65rem;
  font-style: normal;
  font-weight: 800;
}

.schedule-card.featured time {
  color: var(--gold);
}

.place-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--soft);
}

.lineage-section {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  background: var(--paper);
}

.lineage-photo {
  margin: 0;
}

.lineage-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lineage-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lineage-copy {
  max-width: 780px;
}

.lineage-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.place-copy {
  max-width: 720px;
}

.place-copy p + p {
  margin-top: 14px;
}

.place-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.studio-photo {
  margin: 0;
}

.studio-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.location-box {
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(500px, 100%);
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 48, 44, 0.08);
}

.location-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--clay);
  font-size: 1.4rem;
}

.location-box strong,
.location-box span {
  display: block;
}

.location-box span {
  color: var(--muted);
}

.place-panel {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.place-panel ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-panel li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
}

.place-panel li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.reasons-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason-card {
  min-height: 248px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(36, 48, 44, 0.08);
}

.reason-number {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--clay);
  font-weight: 800;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(56px, 8vw, 86px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background: var(--sage-dark);
}

.contact-section > div:first-child {
  max-width: 720px;
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-actions .button-primary {
  background: var(--white);
  color: var(--sage-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 80px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid rgba(36, 48, 44, 0.08);
}

.prose-section {
  background: var(--paper);
}

.prose {
  width: min(760px, 100%);
  margin: 0 auto;
}

.prose > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 26px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-style: italic;
  font-size: 1.02rem;
  box-shadow: var(--shadow);
}

.prose blockquote p {
  margin: 0;
}

.prose-figure {
  width: min(320px, 100%);
  margin: 32px auto;
  text-align: center;
}

.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prose-figure figcaption,
.figure-row figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.figure-row {
  width: min(900px, 100%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: end;
}

.figure-row figure {
  margin: 0;
}

.figure-row img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
  }

  .header-action {
    padding: 0 16px;
  }

  .hero {
    min-height: 760px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.86) 0%, rgba(251, 250, 247, 0.8) 46%, rgba(251, 250, 247, 0.98) 100%),
      linear-gradient(180deg, rgba(36, 48, 44, 0.08), rgba(36, 48, 44, 0.24));
  }

  h1 {
    max-width: 12ch;
  }

  .intro-grid,
  .schedule-grid,
  .lineage-section,
  .place-section,
  .reasons-grid,
  .figure-row {
    grid-template-columns: 1fr;
  }

  .place-media {
    grid-template-columns: 1fr;
  }

  .place-panel ul {
    grid-template-columns: 1fr;
  }

  .intro-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(36, 48, 44, 0.08);
  }

  .intro-grid article:last-child {
    border-bottom: 0;
  }

  .contact-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 150px 18px 48px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 3.75rem);
  }

  .button {
    width: 100%;
  }

  .intro-grid {
    margin-top: -28px;
  }

  .schedule-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .reason-number {
    margin-bottom: 28px;
  }

  .place-panel,
  .reason-card,
  .schedule-card {
    padding: 22px;
  }
}

.maps-link {
  margin-top: 18px;
}

.contact-text a {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-legal a:hover {
  color: var(--sage-dark);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(680px, calc(100% - 28px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease;
}

.cookie-banner button:hover {
  transform: translateY(-2px);
}

.cookie-accept {
  color: var(--white);
  background: var(--sage);
}

.cookie-reject {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner[hidden] {
  display: none;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px clamp(20px, 6vw, 40px) 80px;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-page a {
  color: var(--sage-dark);
  text-decoration: underline;
}

.legal-updated {
  font-size: 0.9rem;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
  color: var(--sage-dark);
}

/* --- Efectos (dinamismo calmado, más marcado) --- */

.schedule-card,
.reason-card,
.studio-photo img,
.lineage-photo img,
.prose-figure img {
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 520ms ease;
}

.schedule-card:hover,
.reason-card:hover {
  transform: translateY(-9px) scale(1.015);
  box-shadow: 0 34px 74px rgba(34, 48, 44, 0.24);
}

.studio-photo img:hover,
.lineage-photo img:hover,
.prose-figure img:hover {
  transform: scale(1.03);
}

@keyframes heroBreath {
  from { transform: scale(1.03); }
  to { transform: scale(1.13); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(38px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: heroBreath 20s ease-in-out infinite alternate;
  }

  .hero-content > * {
    animation: fadeUp 1.2s cubic-bezier(0.16, 0.7, 0.3, 1) both;
  }

  .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.28s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.5s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.72s; }

  .js-reveal .section-heading,
  .js-reveal .intro-grid,
  .js-reveal .schedule-grid,
  .js-reveal .prose,
  .js-reveal .lineage-photo,
  .js-reveal .lineage-copy,
  .js-reveal .place-copy,
  .js-reveal .studio-photo,
  .js-reveal .place-panel,
  .js-reveal .reasons-grid,
  .js-reveal .contact-section > div {
    opacity: 0;
    transform: translateY(46px);
    filter: blur(12px);
    transition: opacity 1.15s cubic-bezier(0.16, 0.7, 0.3, 1),
      transform 1.15s cubic-bezier(0.16, 0.7, 0.3, 1),
      filter 1.15s cubic-bezier(0.16, 0.7, 0.3, 1);
  }

  .js-reveal .is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: blur(0) !important;
  }
}
