/* =============================================================
   ISABEL SILVA · Fisioterapia especializada en músicos
   1. Tokens          8. Modalidades
   2. Base            9. Sobre mí
   3. Utilidades     10. Instituciones
   4. Botones        11. Videos (reels)
   5. Header         12. Agenda
   6. Hero           13. Contacto y formularios
   7. Enfoque y      14. Preguntas
      servicios      15. Footer y WhatsApp
                     16. Movimiento
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #FDFBE3;
  --cream-2: #F6F3D3;
  --paper: #FFFEF6;
  --sky: #9CC4E4;
  --sky-soft: #E4EFF7;
  --teal: #14878C;
  --teal-deep: #0E6C70;
  --navy: #262C4D;
  --navy-900: #1B2038;
  --peach: #EFB691;
  --peach-soft: #F8DCC8;
  --grey: #585858;
  --line: rgba(38, 44, 77, .14);
  --wa: #1FA855;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --gutter: 20px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html.i18n-pending body { opacity: 0; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky); color: var(--navy); }

/* ---------- 3. Utilidades ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 88px 0; }
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 100;
}
.section-lead { max-width: 640px; font-size: 1.06rem; color: var(--grey); margin-top: 18px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.staff { position: absolute; left: 0; width: 100%; pointer-events: none; }
.staff-lines line { stroke: var(--navy); stroke-width: 1; opacity: .09; vector-effect: non-scaling-stroke; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--teal-deep); box-shadow: 0 12px 26px -12px rgba(14, 108, 112, .7); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: var(--peach); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178A45; box-shadow: 0 12px 26px -12px rgba(23, 138, 69, .7); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { min-height: 42px; padding: 0 20px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(253, 251, 227, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(38, 44, 77, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-icon { width: 40px; height: 40px; transition: transform .8s var(--ease); }
.brand:hover .brand-icon { transform: rotate(-12deg); }
.brand-name { width: auto; height: 26px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 500; font-size: .92rem;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--grey);
  transition: background-color .3s, color .3s;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.menu-toggle { display: none; }

@media (max-width: 959px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0;
    border-radius: 50%; background: var(--navy); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .45s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-family: var(--serif); font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  html:not(.js) .nav { position: static; transform: none; opacity: 1; visibility: visible; display: none; }
}
@media (max-width: 539px) {
  .brand-name { height: 22px; }
  .brand-icon { width: 34px; height: 34px; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.staff-hero { top: 52%; height: 220px; }
.staff-ribbon {
  fill: none; stroke: var(--teal); stroke-width: 3; opacity: .55; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s .4s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.hero-title em { display: block; font-style: italic; color: var(--teal-deep); font-weight: 400; }
.hero-lead { max-width: 520px; margin: 24px 0 32px; font-size: 1.12rem; color: var(--grey); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .9rem; font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.hero-visual { position: relative; width: min(100%, 470px); margin: 0 auto; aspect-ratio: 470 / 560; }
.hero-arc {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1;
  border: 2px solid var(--navy); border-radius: 50%;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 76% no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% 76% no-repeat;
}
.hero-sun {
  position: absolute; left: 9%; right: 9%; top: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--peach-soft), var(--peach) 70%);
}
.hero-photo {
  position: absolute; left: 50%; bottom: 0; width: 86%; transform: translateX(-50%);
  -webkit-mask: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.hero-seal {
  position: absolute; right: -2%; bottom: 10%; width: 30%; height: auto;
  background: var(--cream); border-radius: 50%; padding: 2px;
  box-shadow: 0 18px 40px -22px rgba(38, 44, 77, .55);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; width: 100%; }
  .hero-visual { margin: 0 0 0 auto; }
}

/* ---------- 7. Enfoque y servicios ---------- */
.focus { background: var(--paper); border-top: 1px solid var(--line); }
.focus-head { display: grid; gap: 24px; }
.focus-text p { font-size: 1.06rem; color: var(--grey); }
.focus-text p:first-child { color: var(--navy); font-size: 1.15rem; }
.pillars { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 18px; }
.pillar {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--cream);
  border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(20, 135, 140, .4); box-shadow: 0 24px 40px -30px rgba(38, 44, 77, .5); }
.pillar img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; transition: transform .7s var(--ease); }
.pillar:hover img { transform: rotate(-6deg) scale(1.06); }
.pillar h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--grey); font-size: .97rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .focus-head { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}

.services-grid { display: grid; gap: 36px; margin-top: 48px; }
.services-media { display: none; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 26px 0;
  border-bottom: 1px solid var(--line); cursor: default;
}
.service-num { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 1.1rem; padding-top: 4px; transition: transform .5s var(--ease); }
.service h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.2; margin-bottom: 10px; transition: color .3s; }
.service p { margin: 0; color: var(--grey); }
.service:hover .service-num, .service.is-active .service-num { transform: translateX(6px); }
.service.is-active h3 { color: var(--teal-deep); }

@media (min-width: 960px) {
  .services-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .services-media {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: var(--cream-2);
  }
  .services-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease);
  }
  .services-media img.is-active { opacity: 1; transform: none; }
  .service { padding: 30px 0; }
  .service p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s; }
  .service.is-active p { max-height: 240px; opacity: 1; }
  html:not(.js) .service p { max-height: none; opacity: 1; }
}

/* ---------- 8. Modalidades ---------- */
.modes { background: var(--navy); color: var(--cream); overflow: hidden; }
.modes .staff-modes { top: 34px; height: 120px; }
.modes .staff-lines line { stroke: var(--cream); opacity: .2; }
/* Tema del «Himno a la alegría» (Beethoven, Sinfonía n.º 9) en Re mayor, como en la
   partitura. En escritorio se apoya en el pentagrama de fondo (mismas coordenadas, sin
   escalar); en celular va bajo el título con su propio pentagrama. Cada nota suena al
   pasar el mouse o tocarla (main.js, initMelody). */
.melody-wrap { position: relative; margin-top: 28px; }
.melody { display: block; width: 100%; height: auto; overflow: visible; }
.melody .staff-own line { stroke: var(--cream); stroke-width: 1.2; opacity: .3; }
.melody .clef { font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; font-size: 96px; fill: var(--sky); }
.melody .sharp path { fill: none; stroke: var(--sky); }
.melody .sharp .sv { stroke-width: 1.8; }
.melody .sharp .sh { stroke-width: 4.6; }
.melody .tsig { font-family: var(--serif); font-weight: 600; font-size: 54px; fill: var(--sky); text-anchor: middle; }
.melody .tempo { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 17px; fill: var(--cream); opacity: .8; }
.melody .dyn { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 26px; fill: var(--peach); }
.melody .bar { fill: none; stroke: var(--cream); stroke-width: 1.6; opacity: .55; }
.melody .bar-end { fill: none; stroke: var(--cream); stroke-width: 5.5; opacity: .55; }
.melody .n { cursor: pointer; }
.melody .hit { fill: transparent; }
.melody .head, .melody .dot, .melody .flag { fill: var(--cream); }
.melody .head.hollow { fill: none; stroke: var(--cream); stroke-width: 3.4; }
.melody .stem { fill: none; stroke: var(--cream); stroke-width: 2.2; }
.melody .head, .melody .stem, .melody .flag, .melody .dot { transition: fill .3s, stroke .3s; }
.melody .nh { transform-box: fill-box; transform-origin: center; }
.melody .n:hover .head:not(.hollow), .melody .n.is-on .head:not(.hollow), .melody .n:hover .dot, .melody .n.is-on .dot, .melody .n.is-on .flag { fill: var(--peach); }
.melody .n:hover .hollow, .melody .n.is-on .hollow, .melody .n:hover .stem, .melody .n.is-on .stem { stroke: var(--peach); }
.melody .n.is-on .nh { animation: note-hit .55s var(--ease); }
@keyframes note-hit { 0% { transform: scale(1); } 30% { transform: scale(1.35) translateY(-3px); } 100% { transform: scale(1); } }
.melody-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .78rem; color: rgba(253, 251, 227, .7); }
.melody-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sky); background: transparent;
  color: var(--sky); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.melody-play:hover { background: var(--sky); color: var(--navy); transform: scale(1.06); }
.melody-play svg { width: 18px; height: 18px; fill: currentColor; }
.melody-play .i-stop, .melody-play.is-playing .i-play { display: none; }
.melody-play.is-playing .i-stop { display: block; }
.js .melody .n { opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * 80ms + 300ms); }
.js .melody-wrap.is-visible .n { opacity: 1; }
@media (max-width: 959px) {
  .modes .staff-modes { display: none; }
}
@media (min-width: 960px) {
  .melody-wrap {
    position: absolute; top: 34px; margin: 0; width: 731px;
    right: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  }
  .melody { width: 731px; height: 180px; }
  .melody .staff-own { display: none; }
  .modes .staff-modes { top: 64px; }
  .modes .modes-grid { margin-top: 104px; }
  .melody-meta { position: absolute; top: 0; right: 0; margin: 0; }
  .melody-play { width: 34px; height: 34px; }
  .melody-play svg { width: 14px; height: 14px; }
  .melody-meta span { max-width: 320px; text-align: right; }
}

.modes-grid { display: grid; gap: 16px; margin-top: 44px; }
.mode {
  padding: 28px; border-radius: var(--radius); border: 1px solid rgba(253, 251, 227, .18);
  background: rgba(253, 251, 227, .03);
  transition: background-color .4s, transform .6s var(--ease), border-color .4s;
}
.mode:hover { background: rgba(253, 251, 227, .07); border-color: var(--sky); transform: translateY(-4px); }
.mode-ico { width: 52px; height: 52px; margin-bottom: 20px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; }
.mode-ico .mode-ribbon { stroke: var(--peach); stroke-width: 3.2; }
.mode h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 8px; }
.mode p { margin: 0; color: rgba(253, 251, 227, .78); }
@media (min-width: 720px) { .modes-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 9. Sobre mí ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-photo { position: relative; margin: 0; max-width: 460px; }
.about-photo > img:first-child {
  border-radius: 240px 240px var(--radius) var(--radius); background: var(--paper);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%;
}
.about-seal { position: absolute; left: -18px; bottom: 28px; width: 120px; background: var(--cream); border-radius: 50%; animation: spin 50s linear infinite reverse; }
.about-lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; margin: 18px 0 16px; color: var(--teal-deep); }
.about-copy > p:not(.about-lead) { color: var(--grey); font-size: 1.04rem; }
.about-sign { width: 200px; margin-top: 12px; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: .85fr 1fr; gap: 88px; }
}

/* ---------- 10. Instituciones ---------- */
.institutions { background: var(--teal); color: var(--cream); }
.inst-grid { display: grid; gap: 44px; align-items: center; }
.inst-copy > p { margin-top: 18px; font-size: 1.06rem; color: rgba(253, 251, 227, .88); max-width: 540px; }
.inst-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 10px; }
.inst-list li {
  display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px;
  border-bottom: 1px solid rgba(253, 251, 227, .2); font-weight: 500;
}
.inst-list li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--peach); transform: translateY(-4px); }
.inst-photo { margin: 0; border-radius: var(--radius); overflow: hidden; max-width: 460px; justify-self: center; }
.inst-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease); }
.inst-photo:hover img { transform: scale(1.04); }
@media (min-width: 720px) { .inst-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 960px) { .inst-grid { grid-template-columns: 1.15fr .85fr; gap: 80px; } .inst-photo { justify-self: end; } }

/* ---------- 11. Videos (reels) ---------- */
.reels-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.reel-rail {
  list-style: none; margin: 40px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel-rail::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; }
.reel a {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--navy); text-decoration: none; color: #fff;
}
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.reel a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 32, 56, .88) 0%, rgba(27, 32, 56, .1) 48%, transparent 70%);
}
.reel a:hover img { transform: scale(1.06); }
.reel-play {
  position: absolute; z-index: 1; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(253, 251, 227, .92); transition: transform .5s var(--ease), background-color .3s;
}
.reel-play::before {
  content: ""; position: absolute; left: 16px; top: 13px;
  border-left: 13px solid var(--navy); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.reel a:hover .reel-play { transform: scale(1.12); background: var(--peach); }
.reel-title {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px;
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.25;
}
.reels-nav { display: flex; gap: 8px; }
.reels-nav button {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease), opacity .3s;
}
.reels-nav button:hover { background: var(--navy); color: var(--cream); }
.reels-nav button:disabled { opacity: .3; pointer-events: none; }
.reels-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.reels-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 540px) { .reel-rail { grid-auto-columns: 40%; } }
@media (min-width: 720px) { .reel-rail { grid-auto-columns: 30%; } }
@media (min-width: 960px) {
  .reel-rail { grid-auto-columns: calc((100% - 4 * 14px) / 5.2); margin-right: calc((100vw - min(100vw, 1200px)) / -2 - var(--gutter)); }
}
@media (max-width: 959px) { .reels-nav { display: none; } }

.reel-dialog {
  width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 0; border-radius: 20px; background: var(--paper);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.reel-dialog::backdrop { background: rgba(27, 32, 56, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reel-frame iframe { display: block; width: 100%; height: min(720px, calc(100dvh - 110px)); border: 0; background: #fff; }
.reel-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -52px 0; z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: var(--cream); font-size: 1.5rem; line-height: 1;
}
.reel-out { display: block; padding: 14px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--teal-deep); }

/* ---------- 12. Agenda ---------- */
.booking { background: var(--sky-soft); }
.booking-grid { display: grid; gap: 20px; margin-top: 40px; }
.booking-cal {
  background: var(--paper); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 30px 60px -44px rgba(38, 44, 77, .55); min-width: 0;
}
.cal-fallback p { margin: 0; color: var(--grey); }
.cal-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--serif); font-size: 1.35rem; }
.cal-weeks { display: flex; gap: 6px; }
.cal-weeks button, .cal-day, .cal-slot { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cal-weeks button {
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.cal-weeks button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.cal-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cal-day {
  display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.cal-day:hover { transform: translateY(-2px); }
.cal-day .d-name { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.cal-day .d-num { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.cal-day .d-tag { font-size: .62rem; font-weight: 600; color: var(--grey); white-space: nowrap; }
.cal-day.has-free .d-tag { color: var(--teal-deep); }
.cal-day.has-free::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cal-day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.cal-day[aria-pressed="true"] .d-name, .cal-day[aria-pressed="true"] .d-num, .cal-day[aria-pressed="true"] .d-tag { color: var(--cream); }
.cal-day.is-past { opacity: .4; }
.cal-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.cal-slot {
  min-height: 46px; border-radius: 12px; font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease);
}
.cal-slot:disabled { cursor: not-allowed; color: rgba(38, 44, 77, .38); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(38, 44, 77, .045) 6px 12px); text-decoration: line-through; }
.cal-slot.is-free { border-color: var(--teal); color: var(--teal-deep); background: rgba(20, 135, 140, .06); }
.cal-slot.is-free:hover { transform: translateY(-2px); background: rgba(20, 135, 140, .14); }
.cal-slot[aria-pressed="true"] { background: var(--teal); color: #fff; }
.cal-empty {
  grid-column: 1 / -1; margin: 0; padding: 16px; border-radius: 14px; background: var(--peach-soft);
  font-size: .95rem;
}
.cal-empty a { font-weight: 600; }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.cal-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--grey); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--teal); background: rgba(20, 135, 140, .12); }
.cal-legend i.is-busy { border-color: var(--line); background: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(38, 44, 77, .12) 3px 6px); }
.cal-demo { margin: 14px 0 0; font-size: .78rem; color: var(--grey); }
.cal-embed iframe { display: block; width: 100%; height: 680px; border: 0; border-radius: 14px; }
/* Ventana para apartar el horario. El scroll va en el propio <dialog> (Safari). */
.book-dialog {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 28px 22px 24px; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--navy);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.book-dialog[open] { animation: dialog-in .5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.book-dialog::backdrop { background: rgba(27, 32, 56, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-close {
  position: sticky; top: 0; float: right; margin: -12px -6px -30px 0; z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: var(--cream); font-size: 1.5rem; line-height: 1;
  transition: transform .4s var(--ease);
}
.dialog-close:hover { transform: rotate(90deg); }
.book-dialog .form-title { padding-right: 48px; }
.book-chosen {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--sky-soft); border: 1px solid var(--sky);
}
.book-chosen svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--teal-deep); stroke-width: 1.7; stroke-linecap: round; }
.book-chosen div { display: grid; flex: 1; min-width: 0; }
.book-chosen span { font-size: .78rem; font-weight: 600; color: var(--grey); }
.book-chosen strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.book-change {
  border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .85rem;
  color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; padding: 6px;
}
.book-note { margin: -4px 0 0; font-size: .82rem; color: var(--grey); text-align: center; }
.book-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 24px 0 8px; }
.book-done svg { width: 64px; height: 64px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.book-done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: check .7s .2s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.book-done p { margin: 0; color: var(--grey); max-width: 400px; }
@media (min-width: 540px) { .book-dialog { padding: 36px 34px 30px; } }

.booking-side {
  padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; gap: 12px;
}
.booking-side h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.booking-side p { color: rgba(253, 251, 227, .8); margin-bottom: 8px; }
.booking-side .btn-navy { background: var(--cream); color: var(--navy); }
.booking-side .btn-navy:hover { background: var(--peach); box-shadow: none; }
.booking-note { font-size: .82rem; margin: 4px 0 0 !important; text-align: center; }
@media (min-width: 540px) { .cal-slots { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .booking-grid { grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; }
  .booking-cal { padding: 32px; }
  .booking-side { padding: 36px; justify-content: center; }
}

/* ---------- 13. Contacto y formularios ---------- */
.contact-grid { display: grid; gap: 44px; }
.contact-copy > p { color: var(--grey); font-size: 1.06rem; margin-top: 18px; }
.contact-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none;
  font-weight: 500; word-break: break-word; transition: color .3s, transform .4s var(--ease);
}
.contact-links a:hover { color: var(--teal-deep); transform: translateX(4px); }
.contact-links .ico { color: var(--teal); }
.contact-forms { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-2); margin-bottom: 24px; }
.tabs button {
  border: 0; background: transparent; border-radius: 999px; padding: 12px 8px; cursor: pointer;
  font-weight: 600; font-size: .86rem; line-height: 1.2; transition: background-color .3s, color .3s;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.form { display: grid; gap: 16px; }
.form + .form { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.js .form + .form { margin-top: 0; padding-top: 0; border: 0; }
.form-title { font-family: var(--serif); font-size: 1.5rem; }
.js [data-tabs]:not([hidden]) ~ .form .form-title { display: none; }
.row-2, .row-3 { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .82rem; font-weight: 600; letter-spacing: .01em; padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(38, 44, 77, .22); background: #fff; font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262C4D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 135, 140, .14); }
.field input[readonly] { background: var(--sky-soft); border-color: var(--sky); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(38, 44, 77, .22);
  font-size: .9rem; font-weight: 500; background: #fff; transition: background-color .3s, color .3s, border-color .3s;
}
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--grey); cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.form-status { margin: 0; font-size: .95rem; min-height: 1px; }
.form-status.is-ok { padding: 14px 16px; border-radius: 12px; background: rgba(20, 135, 140, .1); color: var(--teal-deep); font-weight: 500; }
.form-status.is-error { padding: 14px 16px; border-radius: 12px; background: var(--peach-soft); color: var(--navy); }
.form-status a { font-weight: 600; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
@media (min-width: 540px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, 1fr); } .contact-forms { padding: 32px; } }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 14. Preguntas ---------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: -2px;
  border: 1px solid var(--line);
  background: linear-gradient(var(--navy), var(--navy)) center / 11px 1.5px no-repeat,
              linear-gradient(var(--navy), var(--navy)) center / 1.5px 11px no-repeat;
  transition: transform .5s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--peach-soft); }
.faq summary:hover { color: var(--teal-deep); }
.faq details p { margin: 0; padding: 0 44px 24px 0; color: var(--grey); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }

/* ---------- 15. Footer y WhatsApp ---------- */
.site-footer { background: var(--navy-900); color: var(--cream); padding: 72px 0 28px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { width: 150px; }
.footer-brand p { margin: 16px 0 0; color: rgba(253, 251, 227, .7); font-size: .92rem; }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-contact > a { text-decoration: none; color: rgba(253, 251, 227, .85); width: fit-content; transition: color .3s; word-break: break-word; }
.footer-nav a:hover, .footer-contact > a:hover { color: var(--peach); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(253, 251, 227, .25); color: var(--cream); transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.footer-social a:hover { background: var(--cream); color: var(--navy); transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(253, 251, 227, .14);
  font-size: .8rem; color: rgba(253, 251, 227, .55);
}
.footer-bottom p { margin: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 16px 34px -12px rgba(23, 138, 69, .75);
  transition: transform .5s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: ping 3.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- 16. Movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-seal, .about-seal { animation-duration: 120s; }
  .wa-float::before { animation: none; }
  html { scroll-behavior: auto; }
}
