/* ==========================================================================
   Clínica Sananda — Rediseño 2026
   Paleta basada en el logotipo: azul índigo profundo + turquesa + blanco
   ========================================================================== */

:root {
  /* Marca */
  --navy: #2b2e8c;
  --navy-deep: #1e2166;
  --navy-ink: #16183f;
  --teal: #35b8ae;
  --teal-dark: #259a91;
  --teal-soft: #e3f6f4;

  /* Neutros */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #232746;
  --muted: #5b6178;
  --line: #e4e8f1;

  /* Tipografía */
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-brand: "Quicksand", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometría */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(30, 33, 102, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 33, 102, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 33, 102, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.hide-sm { display: inline-flex; }

::selection { background: var(--teal); color: #fff; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--navy-ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 em, h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
h1 em::after, h2 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.16em; background: var(--teal-soft); z-index: -1; border-radius: 4px;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal-dark); text-transform: uppercase; font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-alt {
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(53, 184, 174, 0.07), transparent 60%),
    #fff;
  border-block: 1px solid var(--line);
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }
.section-head--light h2 { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(53, 184, 174, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(53, 184, 174, 0.45); }

.btn-ghost {
  border: 1.5px solid var(--line); color: var(--navy); background: #fff;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.btn-light { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.btn-light:hover { transform: translateY(-3px); background: var(--teal-soft); }

.btn-block { width: 100%; }

/* ---------- Barra de progreso ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-ink); color: rgba(255, 255, 255, 0.85); padding: 8px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-claim { color: var(--teal); }
.topbar-meta { display: flex; align-items: center; gap: 22px; }
.topbar-meta a, .topbar-meta span { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; white-space: nowrap; }
.topbar-meta a:hover { color: var(--teal); }
.topbar-meta svg { width: 14px; height: 14px; fill: var(--teal); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.scrolled { background: rgba(255, 255, 255, 0.9); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
/* Los petalos se colorean con custom properties: los selectores CSS no
   atraviesan el shadow DOM que genera <use> */
.brand-mark { --petal-fill: var(--teal); --petal-stroke-b: var(--navy); --petal-stroke-c: var(--teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.5rem; color: var(--navy); letter-spacing: 0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.42em; color: var(--teal-dark); margin-top: 4px; }

.brand--light .brand-name { color: #fff; }
.brand--light .brand-sub { color: var(--teal); }
.brand--light .brand-mark { --petal-stroke-b: #fff; }

.brand-logo { height: 44px; width: auto; display: block; }

/* Navegación */
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 9px 13px; font-weight: 600; font-size: 0.92rem;
  color: var(--muted); border-radius: 10px; transition: color 0.2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--navy); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; padding: 10px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 46, 140, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 46, 140, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob-a { width: 480px; height: 480px; background: rgba(53, 184, 174, 0.30); top: -160px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.blob-b { width: 380px; height: 380px; background: rgba(43, 46, 140, 0.16); bottom: -180px; left: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.float-petal { position: absolute; fill: var(--teal); opacity: 0.16; animation: floaty 9s ease-in-out infinite; }
.fp1 { width: 56px; top: 18%; left: 6%; }
.fp2 { width: 32px; top: 64%; left: 44%; animation-delay: -3s; fill: var(--navy); opacity: 0.10; }
.fp3 { width: 44px; top: 12%; right: 30%; animation-delay: -6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(14deg); }
}

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  transition: all 0.25s;
}
.hero-tags li:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); transform: translateY(-2px); }

.hero-visual { position: relative; }
.hero-media { aspect-ratio: 4 / 4.6; border-radius: 26px; }
.hero-card {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; align-items: center; gap: 13px;
  padding: 14px 20px; border-radius: 16px;
  animation: floaty 7s ease-in-out infinite;
}
.hero-card svg { width: 26px; height: 26px; fill: var(--teal); flex-shrink: 0; }
.hero-card strong { display: block; font-size: 0.92rem; color: var(--navy-ink); }
.hero-card span { font-size: 0.78rem; color: var(--muted); }

.glass {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}

/* Medios con fallback */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 130%); box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.media:hover img { transform: scale(1.05); }
.media.noimg img { display: none; }
.media-fallback {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 38%; opacity: 0; transition: opacity 0.4s;
  --petal-fill: rgba(255, 255, 255, 0.9);
  --petal-stroke-b: rgba(255, 255, 255, 0.65);
  --petal-stroke-c: rgba(255, 255, 255, 0.65);
}
.media.noimg .media-fallback { opacity: 1; }
.media-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(22, 24, 63, 0.78); color: #fff;
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* ---------- Stats ---------- */
.stats { background: var(--navy-ink); padding: clamp(40px, 5vw, 60px) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 38px 38px;
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 8px; }
.stat-num {
  display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800;
  color: #fff; line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em;
}
.stat-num data, .stat-num span { color: inherit; }
.stat-label { color: var(--teal); text-transform: uppercase; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(53, 184, 174, 0.4); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-soft); transition: background 0.3s, transform 0.45s var(--ease);
}
.service-icon svg { width: 28px; height: 28px; fill: var(--teal-dark); transition: fill 0.3s; }
.service-card:hover .service-icon { background: var(--navy); transform: rotate(-6deg) scale(1.06); }
.service-card:hover .service-icon svg { fill: #fff; }

.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); flex-grow: 1; }
.service-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 500; }
.service-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* Glow que sigue al cursor */
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(53, 184, 174, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.glow:hover::after { opacity: 1; }

/* ---------- Tabs tratamientos ---------- */
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; width: fit-content; margin-bottom: 38px;
}
.tab-btn {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  color: var(--muted); transition: all 0.3s var(--ease); white-space: nowrap;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.is-active { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(43, 46, 140, 0.3); }

.tab-panel { animation: panelIn 0.55s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.panel-intro { color: var(--teal-dark); margin-bottom: 22px; text-transform: uppercase; }
.panel-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel-list { display: grid; gap: 10px; }
.panel-list.disciplines { grid-template-columns: 1fr 1fr; }
.panel-list--scroll {
  max-height: 640px; overflow-y: auto; padding-right: 10px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.panel-list--scroll::-webkit-scrollbar { width: 6px; }
.panel-list--scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.panel-list--scroll::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.treat-group { color: var(--navy); text-transform: uppercase; font-weight: 500; margin: 14px 0 4px; }
.treat-group:first-child { margin-top: 0; }

.treat {
  position: relative; padding: 16px 18px 16px 46px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s, background 0.25s;
}
.treat::before {
  content: ""; position: absolute; left: 18px; top: 21px; width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0; background: var(--teal);
  transition: transform 0.35s var(--ease);
}
.treat:hover { transform: translateX(6px); border-color: rgba(53, 184, 174, 0.5); background: #fff; box-shadow: var(--shadow-sm); }
.treat:hover::before { transform: rotate(90deg) scale(1.15); }
.treat h4 { font-size: 0.98rem; margin-bottom: 4px; }
.treat p { font-size: 0.86rem; color: var(--muted); }

.panel-media { border-radius: var(--radius); aspect-ratio: 4 / 4.4; position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Talleres Gestalt ---------- */
.talleres {
  background:
    radial-gradient(800px 400px at 85% 15%, rgba(53, 184, 174, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-ink) 70%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.talleres-bg { position: absolute; inset: 0; pointer-events: none; }
.talleres .watermark {
  position: absolute; right: -120px; bottom: -120px; width: 480px; opacity: 0.06;
  animation: spin 80s linear infinite;
  filter: brightness(0) invert(1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.talleres .eyebrow { color: var(--teal); }
.talleres-question {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: #fff; margin-top: 14px;
}
.talleres-question em { font-style: italic; color: var(--teal); }

.talleres-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.talleres-info > p { margin-bottom: 24px; font-size: 1.02rem; }
.talleres-objetivos { display: grid; gap: 10px; margin-bottom: 28px; }
.talleres-objetivos li { position: relative; padding-left: 30px; font-size: 0.95rem; }
.talleres-objetivos li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px;
  border-radius: 50% 50% 50% 0; background: var(--teal);
}
.talleres-method { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.talleres-list { display: grid; gap: 12px; }
.taller-card {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm); padding: 16px 20px;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.taller-card:hover { transform: translateX(8px); background: rgba(53, 184, 174, 0.12); border-color: var(--teal); }
.taller-num { color: var(--teal); flex-shrink: 0; }
.taller-card h4 { color: #fff; font-size: 1rem; font-weight: 700; }

.taller-cta {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px;
}
.taller-cta p { color: var(--teal); line-height: 1.7; }

/* ---------- Historia (timeline) ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
  position: relative; padding-top: 24px;
}
.timeline::before {
  content: ""; position: absolute; top: 31px; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy), var(--teal));
  opacity: 0.25;
}
.tl-item { position: relative; padding-top: 36px; }
.tl-dot {
  position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft);
  transition: transform 0.3s var(--ease);
}
.tl-item:hover .tl-dot { transform: scale(1.3); }
.tl-era { color: var(--teal-dark); text-transform: uppercase; margin-bottom: 8px; }
.tl-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.team-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0); transform-origin: center; transition: transform 0.5s var(--ease);
}
.team-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(53, 184, 174, 0.35); }
.team-card:hover::after { transform: scaleX(1); }

.team-photo {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1.02; border-radius: 14px 14px 14px 48px;
  overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  transition: border-radius 0.5s var(--ease);
}
/* Iniciales de respaldo: quedan detras de la foto y solo se ven si falta */
.team-photo::before {
  content: attr(data-initials); position: absolute;
  font-weight: 800; font-size: 2.4rem; color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}
.team-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  transition: transform 0.7s var(--ease);
}
.team-card:nth-child(3n+2) .team-photo { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.team-card:nth-child(3n) .team-photo { background: linear-gradient(135deg, var(--teal-dark), var(--navy-deep)); }
.team-card:hover .team-photo { border-radius: 14px; }
.team-card:hover .team-photo img { transform: scale(1.06); }

.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role { color: var(--teal-dark); text-transform: uppercase; margin-bottom: 12px; }
.team-card > p:not(.team-role) { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.team-tags span {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark);
}

/* ---------- Cita ---------- */
.cita {
  background:
    radial-gradient(700px 380px at -10% 110%, rgba(53, 184, 174, 0.10), transparent 60%),
    var(--bg);
}
.cita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.cita-copy h2 { margin-bottom: 14px; }
.cita-direct { display: grid; gap: 14px; margin-top: 30px; }
.cita-chip {
  position: relative; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.cita-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(53, 184, 174, 0.45); }
.cita-chip svg { width: 24px; height: 24px; fill: var(--teal); flex-shrink: 0; }
.cita-chip strong { display: block; color: var(--navy-ink); }
.cita-chip small { color: var(--muted); }

/* Calendario de reservas (Cal.com) */
.booking { border-radius: var(--radius); padding: clamp(16px, 2vw, 22px); }
.booking-head { padding: 8px 10px 16px; }
.booking-badge { color: var(--teal-dark); text-transform: uppercase; margin-bottom: 6px; }
.booking-hint { font-size: 0.88rem; color: var(--muted); }
.cal-embed {
  min-height: 580px; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: grid;
}
.cal-embed iframe { width: 100%; height: 100%; min-height: 580px; border: 0; }
.cal-pending {
  display: grid; place-content: center; justify-items: center; text-align: center;
  gap: 10px; padding: 40px 26px;
}
.cal-pending svg { width: 44px; height: 44px; fill: var(--teal); margin-bottom: 6px; }
.cal-pending h4 { font-size: 1.15rem; }
.cal-pending p { font-size: 0.92rem; color: var(--muted); max-width: 38ch; }
.cal-pending a { color: var(--teal-dark); }
.cal-admin-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: #a8aec2; }

.cita-form { border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.84rem; margin-bottom: 7px; color: var(--navy-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 0.93rem; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(53, 184, 174, 0.15);
}
.field input.invalid { border-color: #e35d6a; box-shadow: 0 0 0 4px rgba(227, 93, 106, 0.12); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.check a { color: var(--teal-dark); text-decoration: underline; }

.form-msg { margin-top: 14px; color: var(--teal-dark); min-height: 1.2em; }
.form-msg.error { color: #e35d6a; }

/* ---------- Ubicación ---------- */
.map-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 26px; align-items: stretch; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); min-height: 420px;
  filter: saturate(0.9);
  transition: filter 0.4s;
}
.map-frame:hover { filter: saturate(1.1); }
.map-frame { position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  position: absolute; right: 14px; top: 14px;
  padding: 10px 18px; font-size: 0.85rem; gap: 8px;
}
.map-info { display: grid; gap: 14px; align-content: start; }
.info-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(53, 184, 174, 0.45); }
.info-card svg { width: 22px; height: 22px; fill: var(--teal); flex-shrink: 0; margin-top: 3px; }
.info-card strong { display: block; color: var(--navy-ink); margin-bottom: 3px; font-size: 0.92rem; }
.info-card p { font-size: 0.88rem; color: var(--muted); }
.info-card a:hover { color: var(--teal-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.72); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.footer-brand p { font-size: 0.9rem; margin: 18px 0 22px; max-width: 36ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.socials a:hover svg { fill: var(--navy-ink); }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-title { color: var(--teal); text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s, transform 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--teal); transform: translateX(3px); }
.footer-addr { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0; text-align: center; color: rgba(255, 255, 255, 0.45);
}

/* ---------- Botón subir ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); transform: translateY(-4px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-media { position: static; aspect-ratio: 16 / 9; }
  .talleres-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .topbar-claim { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px);
    padding: 18px 5vw 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-100% - var(--header-h) - 60px));
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform 0.45s var(--ease); }
  .nav-link { padding: 13px 14px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .hero-media { aspect-ratio: 16 / 11; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 8px; }
  .timeline::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--navy)); }
  .tl-item { padding-top: 0; padding-left: 34px; }
  .cita-grid { grid-template-columns: 1fr; }
  .panel-list.disciplines { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .tabs-nav { width: 100%; border-radius: var(--radius-sm); }
  .tab-btn { flex: 1 1 auto; text-align: center; padding: 10px 14px; }
  .hero-card { left: 10px; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ✦ Efecto cristal "Apple" (liquid glass) + mecánica de fluidos · 2026 ✦
   Bloque añadido sobre el diseño base. Para revertir los cambios:
   elimina este bloque y restaura index.html desde la copia de seguridad.
   ========================================================================== */
:root {
  --glass-blur: 20px;
  --glass-sat: 185%;
  --g-fill-1: rgba(255, 255, 255, 0.58);
  --g-fill-2: rgba(255, 255, 255, 0.30);
  --g-border: rgba(255, 255, 255, 0.60);
  --g-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 1px rgba(255, 255, 255, 0.20);
  --g-shadow: 0 10px 30px rgba(30, 33, 102, 0.14), 0 2px 8px rgba(30, 33, 102, 0.08);
}

/* ---- Núcleo de cristal reutilizable ---- */
.glass {
  background: linear-gradient(135deg, var(--g-fill-1), var(--g-fill-2));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow), var(--g-inset);
}

/* ---- Botones "liquid glass" (cristal líquido con refracción) ---- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1.5px solid transparent;
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  backdrop-filter: blur(12px) saturate(190%);
}
/* Reflejo superior + brillo especular que cruza al pasar el ratón */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(130% 80% at 16% -10%, rgba(255, 255, 255, 0.6), transparent 56%),
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, -130% 0;
  background-repeat: no-repeat;
  transition: background-position 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { background-position: 0 0, 130% 0; }
/* Borde iridiscente de cristal */
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(140deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(53, 184, 174, 0.75) 26%,
    rgba(124, 108, 240, 0.45) 50%,
    rgba(43, 46, 140, 0.55) 74%,
    rgba(255, 255, 255, 0.9) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.35s var(--ease);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-primary {
  background:
    radial-gradient(120% 130% at 20% -10%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(135deg, rgba(53, 184, 174, 0.72), rgba(37, 154, 145, 0.80));
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 56, 52, 0.45);
  box-shadow:
    0 10px 26px rgba(53, 184, 174, 0.40),
    0 2px 6px rgba(16, 30, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -7px 16px rgba(12, 80, 74, 0.38);
}
.btn-primary:hover {
  box-shadow:
    0 18px 40px rgba(53, 184, 174, 0.55),
    0 2px 6px rgba(16, 30, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -7px 16px rgba(12, 80, 74, 0.38);
}

.btn-ghost {
  background:
    radial-gradient(120% 130% at 20% -10%, rgba(255, 255, 255, 0.65), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.14));
  color: var(--navy);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 26px rgba(30, 33, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -5px 14px rgba(255, 255, 255, 0.30);
}
.btn-ghost:hover { color: var(--teal-dark); }

.btn-light {
  background:
    radial-gradient(120% 130% at 20% -10%, rgba(255, 255, 255, 0.75), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.30));
  color: var(--navy);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -5px 14px rgba(255, 255, 255, 0.25);
}

/* ---- Cabecera: barra de navegación tipo "liquid glass" ---- */
.header {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.header.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 249, 252, 0.62));
  box-shadow: 0 6px 24px rgba(30, 33, 102, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

/* ---- Píldoras y chips de cristal ---- */
.tabs-nav,
.hero-tags li {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(247, 249, 252, 0.38));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---- Tarjetas-control flotantes con cristal ---- */
.cita-chip,
.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.40));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---- Botón "volver arriba" de cristal ---- */
.to-top {
  background: linear-gradient(135deg, rgba(43, 46, 140, 0.55), rgba(22, 24, 63, 0.50));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 26px rgba(30, 33, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.to-top:hover { background: linear-gradient(135deg, rgba(53, 184, 174, 0.72), rgba(37, 154, 145, 0.72)); }

/* ---- Menú móvil de cristal ---- */
@media (max-width: 820px) {
  .nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 252, 0.78));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}

/* ==========================================================================
   Mecánica de fluidos — metaballs líquidos (filtro #goo)
   ========================================================================== */
/* Aurora de color de fondo: lo que el cristal líquido refracta */
.hero-aurora {
  position: absolute; inset: -22%;
  background:
    radial-gradient(38% 48% at 22% 28%, rgba(53, 184, 174, 0.38), transparent 60%),
    radial-gradient(34% 44% at 80% 18%, rgba(124, 108, 240, 0.30), transparent 60%),
    radial-gradient(46% 50% at 66% 74%, rgba(56, 198, 217, 0.32), transparent 62%),
    radial-gradient(40% 46% at 28% 82%, rgba(43, 46, 140, 0.26), transparent 62%);
  filter: blur(26px);
  pointer-events: none;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(26px, -22px) rotate(7deg) scale(1.06); }
}

.fluid {
  position: absolute;
  inset: -12% -6% -8% -6%;
  width: 112%;
  height: 124%;
  opacity: 0.64;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 74% 74% at 50% 40%, #000 40%, transparent 82%);
  mask: radial-gradient(ellipse 74% 74% at 50% 40%, #000 40%, transparent 82%);
}
.fluid .m { transform-box: fill-box; transform-origin: center; will-change: transform; }
.fluid .m1 { fill: var(--teal); }
.fluid .m2 { fill: var(--navy); opacity: 0.62; }
.fluid .m3 { fill: var(--teal-dark); }
.fluid .m4 { fill: #38c6d9; }              /* cian agua */
.fluid .m5 { fill: #7c6cf0; opacity: 0.55; } /* violeta suave */
.fluid .m6 { fill: var(--teal); }

@keyframes fl1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -46px) scale(1.08); } }
@keyframes fl2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-58px, 54px) scale(1.12); } }
@keyframes fl3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(46px, -34px) scale(1.06); } }
@keyframes fl4 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-66px, -52px) scale(1.14); } }
@keyframes fl5 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(54px, 40px) scale(1.10); } }
@keyframes fl6 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-48px, -40px) scale(1.08); } }
.fluid .m1 { animation: fl1 17s ease-in-out infinite; }
.fluid .m2 { animation: fl2 21s ease-in-out infinite; }
.fluid .m3 { animation: fl3 25s ease-in-out infinite; }
.fluid .m4 { animation: fl4 19s ease-in-out infinite; }
.fluid .m5 { animation: fl5 23s ease-in-out infinite; }
.fluid .m6 { animation: fl6 16s ease-in-out infinite; }

/* Suaviza los blobs antiguos para que el fluido sea el protagonista */
.blob-a { opacity: 0.30; }
.blob-b { opacity: 0.24; }

@media (prefers-reduced-motion: reduce) {
  .fluid .m, .hero-aurora { animation: none !important; }
}

/* ==========================================================================
   Rendimiento en MÓVIL — animaciones suaves y continuas (60 fps)
   --------------------------------------------------------------------------
   En móvil, animar cada círculo DENTRO del filtro SVG #goo obliga a recalcular
   el filtro en cada fotograma (= tirones). En su lugar congelamos los círculos
   y movemos TODO el fluido ya renderizado con transform: el móvil lo guarda en
   una capa de GPU y solo la desplaza → fluido y sin saltos. Además aligeramos
   los desenfoques de cristal para que la recomposición sea más barata.
   ========================================================================== */
@keyframes fluidDrift {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(-5%, 4%, 0) scale(1.10); }
}
@media (max-width: 820px) {
  .fluid .m { animation: none !important; }      /* no recalcular el filtro por frame */
  .fluid {
    will-change: transform;
    transform: translateZ(0);                     /* fuerza capa propia en GPU */
    animation: fluidDrift 22s ease-in-out infinite alternate;
  }
  /* Menos capas animadas a la vez: el fluido + la aurora ya dan movimiento */
  .blob-a, .blob-b, .float-petal { animation: none !important; }

  /* Desenfoques de cristal más ligeros = recomposición más barata sobre el fondo animado */
  :root { --glass-blur: 12px; }
  .header { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
  .btn    { -webkit-backdrop-filter: blur(7px)  saturate(150%); backdrop-filter: blur(7px)  saturate(150%); }
  .cita-chip, .info-card, .tabs-nav, .hero-tags li,
  .to-top { -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
}

/* ==========================================================================
   Contacto exclusivo por WhatsApp
   ========================================================================== */
.cita-wa {
  max-width: 720px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(34px, 5vw, 60px);
  border-radius: var(--radius);
}
.cita-wa h2 { margin-bottom: 12px; }
.cita-wa .section-sub { max-width: 46ch; margin-top: 8px; }
.cita-wa-icon {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #25d366, #12a54b);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cita-wa-icon svg { width: 36px; height: 36px; fill: #fff; }
.cita-wa .btn-wa { margin-top: 26px; }
.cita-wa-num { margin-top: 16px; color: var(--muted); letter-spacing: 0.06em; }

/* Botón de WhatsApp (verde de marca, con el acabado cristal de .btn) */
.btn-wa {
  gap: 10px; font-size: 1.02rem; padding: 16px 32px;
  color: #fff; text-shadow: 0 1px 2px rgba(6, 60, 30, 0.45);
  background:
    radial-gradient(120% 130% at 20% -10%, rgba(255, 255, 255, 0.40), transparent 46%),
    linear-gradient(135deg, rgba(37, 211, 102, 0.92), rgba(18, 165, 75, 0.95));
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 -7px 16px rgba(8, 90, 45, 0.40);
}
.btn-wa:hover {
  box-shadow:
    0 18px 40px rgba(37, 211, 102, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -7px 16px rgba(8, 90, 45, 0.40);
}
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }

/* La tarjeta de WhatsApp en "Ubicación" usa el verde en su icono */
a.info-card svg { fill: #25c65b; }

/* ==========================================================================
   Iconos de servicios (PNG line-art + SVG inline)
   ========================================================================== */
.service-icon { width: 64px; height: 64px; border-radius: 18px; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; padding: 2px; transition: filter 0.3s var(--ease); }
.service-card:hover .service-icon img { filter: brightness(0) invert(1); }
.service-icon--svg { background: var(--teal-soft); display: grid; place-items: center; transition: background 0.3s var(--ease), transform 0.45s var(--ease); color: var(--teal-dark); }
.service-icon--svg svg { width: 34px; height: 34px; transition: color 0.3s var(--ease); }
.service-card:hover .service-icon--svg { background: var(--navy); transform: rotate(-6deg) scale(1.06); color: #fff; }

/* ==========================================================================
   Retiro de yoga — resumen en la home + página completa
   ========================================================================== */
.retiro {
  background:
    radial-gradient(720px 420px at -6% 0%, rgba(53, 184, 174, 0.10), transparent 60%),
    radial-gradient(720px 420px at 106% 100%, rgba(124, 108, 240, 0.08), transparent 60%),
    var(--bg);
  border-block: 1px solid var(--line);
}
.retiro-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.retiro-media { aspect-ratio: 4 / 3.4; border-radius: 24px; }
.retiro-copy .eyebrow { color: var(--teal-dark); }
.retiro-copy h2 { margin-bottom: 14px; }
.retiro-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px;
  margin: 26px 0; padding: 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.retiro-facts li { display: flex; flex-direction: column; gap: 4px; }
.retiro-facts .mono { color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; }
.retiro-facts strong { color: var(--navy-ink); font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.retiro-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.retiro-tags span {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 9px 18px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark);
}
.retiro-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Página completa del retiro --- */
.retreat-hero { padding-top: clamp(48px, 6vw, 80px); }
.retreat-hero h1 { margin-bottom: 18px; }
.retreat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.retreat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.duo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(53, 184, 174, 0.4); }
.duo-card .mono { color: var(--teal-dark); text-transform: uppercase; }
.duo-card h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.duo-card p { color: var(--muted); font-size: 0.92rem; }
.price-card { max-width: 580px; }
.price-list { display: grid; gap: 2px; margin: 6px 0 16px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row span:first-child { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; margin-right: 10px; }
.price-now { color: var(--teal-dark); font-weight: 800; font-size: 1.05rem; }
.retreat-banner {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 26px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em;
}
.retreat-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.retreat-source { font-size: 0.8rem; color: var(--muted); }
.retreat-source a { color: var(--teal-dark); text-decoration: underline; }

@media (max-width: 820px) {
  .retiro-grid { grid-template-columns: 1fr; }
  .retiro-media { aspect-ratio: 16 / 10; order: -1; }
}
@media (max-width: 680px) {
  .retreat-duo { grid-template-columns: 1fr; }
  .retiro-facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Horarios de clases (Yoga · Pilates · Taichi) — crema sobre azul
   ========================================================================== */
.horarios {
  background:
    radial-gradient(820px 420px at 12% 8%, rgba(53, 184, 174, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-ink) 78%);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.horarios .eyebrow { color: var(--teal); justify-content: center; }

.horarios-photos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 4px 0 40px; }
.horarios-photos figure {
  width: 150px; background: #fff; padding: 8px 8px 16px; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transform: rotate(-3deg);
  transition: transform 0.45s var(--ease);
}
.horarios-photos figure:nth-child(2) { transform: rotate(2.5deg); }
.horarios-photos figure:nth-child(3) { transform: rotate(-1.5deg); }
.horarios-photos figure:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.horarios-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.horarios-photos figcaption { text-align: center; font-family: var(--font-brand); font-weight: 600; font-size: 0.78rem; color: var(--navy); margin-top: 8px; }

/* Foto de la fachada en la sección Ubicación */
.ubicacion-foto { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.ubicacion-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; transition: transform 0.6s var(--ease); }
.ubicacion-foto:hover img { transform: scale(1.04); }

/* ==========================================================================
   Galería — carrusel de fotos del centro
   ========================================================================== */
.carousel { position: relative; display: flex; align-items: center; gap: 14px; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 18px; flex: 1;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto; width: min(280px, 70vw); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.carousel-slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; cursor: zoom-in; transition: transform 0.6s var(--ease); }
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-slide figcaption {
  padding: 12px 16px; font-family: var(--font-brand); font-weight: 600; color: var(--navy); font-size: 0.95rem;
}
.carousel-btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--navy); cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-btn:hover { background: var(--navy); color: #fff; transform: scale(1.08); }
.carousel-btn svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .carousel-btn { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center;
  background: rgba(11, 12, 38, 0.92); padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(900px, 90vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; width: auto; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,0.4); object-fit: contain; }
.lightbox-figure figcaption { font-family: var(--font-brand); font-weight: 600; color: #fff; font-size: 1rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; transition: background 0.3s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); transform: scale(1.08); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-nav { width: 42px; height: 42px; }
}

.horarios-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: start; }
.day-card { background: #f5ecd8; border-radius: var(--radius); padding: 10px; }
.day-head {
  text-align: center; font-family: var(--font-brand); font-weight: 700;
  letter-spacing: 0.05em; color: var(--navy); padding: 8px 0 10px; font-size: 1.02rem;
}
.slot {
  background: #fff; border-radius: 11px; padding: 10px 13px; margin-top: 8px;
  box-shadow: 0 2px 6px rgba(30, 33, 102, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.slot:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30, 33, 102, 0.12); }
.slot span { display: block; }
.slot-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal-dark); font-weight: 600; }
.slot-name { font-weight: 700; color: var(--navy-ink); font-size: 0.9rem; margin-top: 2px; line-height: 1.25; }
.slot-teacher { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

.horarios-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 40px; }
.horarios-quote { font-family: var(--font-brand); font-style: italic; color: var(--teal); font-size: clamp(1.2rem, 2.6vw, 1.6rem); }

@media (max-width: 1024px) { .horarios-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .horarios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .horarios-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Menú: pasa a hamburguesa antes (con 8 enlaces no caben en horizontal en
   pantallas medianas). Por encima de 1120px se muestra el menú completo.
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.86));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 5vw 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-100% - var(--header-h) - 60px));
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform 0.45s var(--ease); }
  .nav-link { padding: 13px 14px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
}
