/* ─────────────────────────────────────────────
   Centre Vitae · Jornada de puertas abiertas
   Tokens de marca: centrevitae.com
───────────────────────────────────────────── */
:root {
  --cream: #FBF8F6;
  --dusty-light: #F5F0ED;
  --dusty: #EADED9;
  --rosy-light: #D4B8AB;
  --rosy: #BC9989;
  --rosy-dark: #A07E6E;
  --plum: #7D4E4E;
  --plum-deep: #5E3838;
  --plum-ink: #3E2323;
  --gold-light: #D4A866;
  --gold: #C28E48;
  --gold-dark: #9C6E32;
  --charcoal: #373A3C;
  --ink: #373A3C;
  --muted: rgba(55, 58, 60, 0.6);
  --line: rgba(188, 153, 137, 0.18);
  --line-soft: rgba(188, 153, 137, 0.1);
  --white: #FFFFFF;

  --display: 'Dancing Script', cursive;
  --body: 'Abhaya Libre', Georgia, serif;

  --r: 10px;
  --r-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(125, 78, 78, 0.05);
  --shadow-md: 0 8px 24px rgba(125, 78, 78, 0.10);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --header-h: 72px;
}

/* ── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--rosy-light); color: var(--plum-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.display { font-family: var(--display); font-weight: 400; }
.h-section { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 4.5vw, 3.4rem); color: var(--charcoal); line-height: 1.1; }
.h-sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--charcoal); opacity: 0.8; max-width: 60ch; margin-top: 10px; font-weight: 400; line-height: 1.8; }
.eyebrow { font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--rosy); font-weight: 400; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--rosy); display: inline-block; }
.eyebrow.is-p4, .eyebrow.is-p4 i { color: var(--gold); background-color: var(--gold); }
.eyebrow.is-p4 { background: none; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--plum); color: var(--white); box-shadow: 0 6px 18px rgba(125, 78, 78, 0.18); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { background: transparent; color: var(--plum); border: 1px solid rgba(125, 78, 78, 0.25); }
.btn-ghost:hover { border-color: var(--plum); background: rgba(125, 78, 78, 0.04); }
.btn-dark { background: var(--plum); color: var(--white); }
.btn-dark:hover { background: var(--plum-deep); }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-line { color: var(--plum); border: 1px solid var(--line); background: var(--white); }
.btn-line:hover { border-color: var(--plum); }
.btn svg { width: 18px; height: 18px; }

/* ── Header ────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 248, 246, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 300ms ease;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header.is-solid { box-shadow: 0 1px 0 var(--line-soft); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; transition: filter 300ms ease; }
.brand-name { font-family: var(--display); font-size: 1.6rem; color: var(--charcoal); font-weight: 400; }
.header.is-solid .brand-name { color: var(--plum); }
.nav { display: none; gap: 30px; }
.nav a { text-decoration: none; font-weight: 400; font-size: 0.95rem; color: var(--charcoal); opacity: 0.7; position: relative; transition: opacity 200ms ease, color 200ms ease; }
.nav a:hover { opacity: 1; color: var(--plum); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); }
.header.is-solid .nav a { color: var(--ink); }
.header .btn-primary { padding: 10px 20px; font-size: 0.85rem; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px; color: var(--charcoal); opacity: 0.7; transition: background-color 200ms ease, opacity 200ms ease; }
.lang-btn svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.lang-btn:hover { opacity: 1; }
.lang-btn.is-active { background: var(--dusty); color: var(--plum); opacity: 1; }
@media (max-width: 480px) { .lang-btn span { display: none; } .lang-btn { padding: 6px 7px; } .header .btn-primary { padding: 9px 14px; font-size: 0.8rem; } .header .container { gap: 10px; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  color: var(--charcoal); background: linear-gradient(170deg, var(--cream) 0%, var(--dusty-light) 60%, var(--dusty) 100%); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 32px) 0 48px;
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 45% at 92% 6%, rgba(125, 78, 78, 0.05) 0%, transparent 70%);
}
.hero-glow::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50% 42% 55% 48% / 46% 54% 42% 56%; background: var(--plum); opacity: 0.035; top: -90px; right: -70px; }
.hero-content { display: grid; gap: 18px; max-width: 760px; margin-bottom: 40px; }
.hero-kicker-date { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-size: 0.78rem; font-weight: 400; color: var(--rosy); letter-spacing: 3px; text-transform: uppercase; }
.hero-kicker-date svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.9rem, 6.5vw, 5rem); line-height: 1.02; max-width: 14ch; color: var(--charcoal);
}
.hero-title em { font-style: normal; color: var(--plum); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 50ch; color: var(--charcoal); opacity: 0.85; line-height: 1.8; font-weight: 400; }
.hero-place { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--charcoal); opacity: 0.6; }
.hero-place svg { width: 16px; height: 16px; color: var(--rosy); flex: 0 0 auto; margin-top: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-lg { padding: 15px 28px; font-size: 0.98rem; }

/* Squeeze carousel (referencia: 21st.dev carousel-squeeze) */
.squeeze-wrap { position: relative; }
.squeeze-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.sq-arrow {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-soft); color: var(--charcoal); box-shadow: 0 2px 8px rgba(125, 78, 78, 0.06);
  transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease;
}
.sq-arrow:hover { border-color: var(--rosy); color: var(--plum); }
.sq-arrow:active { transform: scale(0.94); }
.sq-arrow svg { width: 18px; height: 18px; }
#sq-prev svg { transform: rotate(180deg); }

.squeeze {
  display: flex; gap: 8px; width: 100%;
  height: clamp(240px, 42vw, 440px);
}
@media (min-width: 900px) { .squeeze { gap: 12px; } }
.sq-panel {
  position: relative; flex: 0 0 auto; flex-basis: var(--b, 8px); min-width: 0; overflow: hidden; border-radius: 10px;
  cursor: pointer; background: var(--dusty);
  transition: flex-basis 1000ms var(--ease-in-out);
  will-change: flex-basis;
}
.sq-panel.is-active { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .sq-panel:not(.is-active):hover { flex-basis: calc(var(--b, 8px) + 36px); }
}
.sq-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sq-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55,58,60,0) 55%, rgba(55,58,60,0.55) 100%); opacity: 0; transition: opacity 600ms ease; }
.sq-panel.is-active::after { opacity: 1; }
.sq-mark {
  position: absolute; z-index: 2; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--white); white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 500ms var(--ease-out);
}
.sq-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosy-light); }
.sq-panel[data-planta="p4"] .sq-mark .dot { background: var(--gold-light); }
.sq-panel.is-active .sq-mark { opacity: 1; transform: none; transition-delay: 400ms; }
.sq-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.25); opacity: 0; transition: opacity 300ms ease; }
.sq-progress::after { content: ''; position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.sq-panel.is-active .sq-progress { opacity: 1; }
.sq-panel.is-active .sq-progress::after { animation: sqbar var(--sq-dur, 5000ms) linear forwards; }
.squeeze.is-paused .sq-progress::after { animation-play-state: paused; }
@keyframes sqbar { to { transform: scaleX(1); } }

.squeeze-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; margin-top: 16px; }
.squeeze-caption #sq-caption { font-size: 1.02rem; line-height: 1.6; max-width: 60ch; color: var(--charcoal); opacity: 0.8; font-weight: 400; }
.squeeze-caption #sq-caption b { color: var(--charcoal); font-weight: 500; opacity: 1; }
.squeeze-caption .hero-place { margin-top: 2px; }

/* ── Datos clave ───────────────────────────── */
.facts { background: var(--white); color: var(--charcoal); border-bottom: 1px solid var(--line-soft); }
.facts .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; padding: 8px 0;
}
.fact { display: flex; align-items: flex-start; gap: 14px; padding: 26px 18px; border-left: 1px solid var(--line-soft); }
.fact:first-child { border-left: 0; }
.fact svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--rosy); margin-top: 3px; }
.fact strong { display: block; font-size: 1.05rem; line-height: 1.3; color: var(--charcoal); font-weight: 500; }
.fact span { color: var(--charcoal); opacity: 0.8; font-size: 0.9rem; font-weight: 400; }
.fact a { color: var(--gold); text-decoration: none; font-weight: 400; }
.fact a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .facts .container { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line-soft); padding: 18px 8px; }
  .fact:nth-child(-n + 2) { border-top: 0; }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ── Secciones ─────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.h-section { position: relative; }
.eyebrow { margin-bottom: 12px; }

/* ── Intro / Cómo funciona ─────────────────── */
.intro { background: var(--white); }
.intro .grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .intro .grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.intro-text p + p { margin-top: 16px; }
.intro-text p { font-size: 1.05rem; color: var(--charcoal); opacity: 0.82; max-width: 56ch; font-weight: 400; line-height: 1.9; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step-n { font-family: var(--display); font-size: 2.6rem; line-height: 0.8; color: var(--rosy); font-weight: 400; }
.step h3 { font-size: 1.05rem; color: var(--plum); margin-bottom: 4px; font-weight: 500; }
.step p { color: var(--charcoal); opacity: 0.8; font-size: 0.95rem; font-weight: 400; }

/* ── Programa ──────────────────────────────── */
.programa { background: var(--dusty-light); position: relative; }
.programa-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 1rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--charcoal); opacity: 0.7; font-size: 0.9rem; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .p2 i { background: var(--rosy); }
.legend .p4 i { background: var(--gold); }

/* Tabs móvil */
.tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--white); border: 1px solid rgba(188, 153, 137, 0.35); border-radius: 999px; margin: 0 0 20px; box-shadow: 0 2px 10px rgba(125, 78, 78, 0.06);
}
.tab {
  position: relative; z-index: 1; padding: 12px 8px; border-radius: 999px; text-align: center;
  font-weight: 500; font-size: 0.95rem; color: var(--charcoal); transition: color 240ms ease;
}
.tab .salas { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.tab[aria-selected="true"] { color: var(--cream); }
.tab[aria-selected="true"] .salas { color: rgba(251, 248, 246, 0.8); }
.tabs-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--plum); z-index: 0;
  transition: transform 320ms var(--ease-in-out), background-color 320ms ease;
}
.tabs[data-active="p4"] .tabs-pill { transform: translateX(calc(100% + 4px)); background: var(--plum); }
.tabs { position: sticky; }
@media (min-width: 900px) { .tabs { display: none; } }

/* Parrilla */
.grid-prog { display: grid; grid-template-columns: 1fr; gap: 0; }
.col-head { display: none; }
.hora-row { display: grid; grid-template-columns: 62px 1fr; gap: 0 12px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.hora { align-self: start; display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--plum); background: var(--white); border: 1px solid rgba(188, 153, 137, 0.35); border-radius: 999px; padding: 6px 10px; letter-spacing: 0.5px; line-height: 1; width: max-content; }
.hora small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; letter-spacing: 0; }
.pausa { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 14px 0; border-radius: 16px; background: var(--dusty); border: 1px solid rgba(188, 153, 137, 0.45); color: var(--plum-ink); }
.pausa svg { width: 28px; height: 28px; color: var(--plum); flex: 0 0 auto; }
.pausa b { display: block; font-size: 1.15rem; font-weight: 600; color: var(--plum); line-height: 1.2; }
.pausa span { font-size: 0.95rem; color: var(--charcoal); opacity: 0.85; }

.slot { min-width: 0; display: flex; }
.slot > * { flex: 1; }
.slot.is-hidden { display: none; }
.slot-empty { color: var(--charcoal); opacity: 0.55; font-size: 0.92rem; padding: 18px; border: 1px dashed rgba(188, 153, 137, 0.5); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; }

@media (min-width: 900px) {
  .grid-prog { grid-template-columns: 76px 1fr 1fr; column-gap: 24px; }
  .col-head {
    display: block; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
    background: var(--dusty-light); padding: 8px 0 12px;
  }
  .col-head.is-p2, .col-head.is-p4 { padding: 0; }
  .col-head.is-p2 > div, .col-head.is-p4 > div { border-radius: 14px; padding: 14px 18px; background: var(--white); border: 1px solid rgba(188, 153, 137, 0.35); border-top: 3px solid var(--rosy); box-shadow: 0 2px 10px rgba(125, 78, 78, 0.06); }
  .col-head.is-p4 > div { border-top-color: var(--gold); }
  .col-head strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; display: block; line-height: 1.1; color: var(--charcoal); }
  .col-head span { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rosy); }
  .col-head.is-p4 span { color: var(--gold); }
  .hora-row { display: contents; }
  .hora-row > * { border-top: 1px solid var(--line); padding: 22px 0; }
  .hora-row > .hora { border-top: 0; margin-top: 22px; padding: 6px 10px; }
  .hora { align-self: start; margin-top: 22px; }
  .grid-prog > .hora-row > .hora { padding: 6px 10px; }
  .pausa { grid-column: 1 / -1; margin: 18px 0 6px; }
  .slot.is-hidden { display: block; }
}

/* Tarjeta taller */
.taller {
  position: relative; background: var(--white); border: 1px solid rgba(188, 153, 137, 0.35); border-radius: 16px;
  padding: 22px; box-shadow: 0 2px 10px rgba(125, 78, 78, 0.06);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms ease;
}
.taller::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rosy); }
.taller.is-p4::before { background: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .taller:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rosy); }
}
.taller.is-charla { background: var(--white); }
.taller-top { display: flex; align-items: flex-start; gap: 14px; }
.avatar {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: var(--dusty); color: var(--plum); display: grid; place-items: center;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 1px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
body[data-fotos="0"] .avatar img { display: none; }
body[data-fotos="0"] .avatar { background: var(--dusty); }
.avatar:has(img) span { display: none; }
body[data-fotos="0"] .avatar:has(img) span { display: block; }
.taller-meta { min-width: 0; flex: 1; }
.taller-tag { display: inline-block; font-size: 0.68rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rosy); margin-bottom: 4px; }
.taller h3 { font-size: 1.15rem; color: var(--charcoal); line-height: 1.3; font-weight: 500; }
.taller .sub { color: var(--plum); opacity: 0.85; font-size: 0.92rem; margin-top: 2px; font-weight: 400; }
.taller .who { color: var(--charcoal); opacity: 0.85; font-size: 0.92rem; margin-top: 6px; font-weight: 400; }
.taller .who b { color: var(--plum); font-weight: 500; }
.taller .resumen { margin-top: 12px; color: var(--charcoal); opacity: 0.88; font-size: 0.97rem; font-weight: 400; line-height: 1.75; }
.taller-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-in-out); }
.taller-detail > div { overflow: hidden; }
.taller.is-open .taller-detail { grid-template-rows: 1fr; }
.taller-detail p { margin-top: 12px; color: var(--charcoal); opacity: 0.85; font-size: 0.93rem; font-weight: 400; line-height: 1.8; }
.taller-detail .traer { margin-top: 14px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 10px; font-size: 0.9rem; font-weight: 400; }
.taller-detail .traer b { color: var(--plum); }
.taller-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; align-items: center; }
.btn-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 400; font-size: 0.92rem; padding: 10px 4px; }
.btn-more:hover { text-decoration: underline; }
.btn-more svg { width: 16px; height: 16px; transition: transform 240ms var(--ease-out); }
.taller.is-open .btn-more svg { transform: rotate(180deg); }
.taller.is-pendiente { opacity: 0.8; }

/* ── Charla ────────────────────────────────── */
.charla { background: linear-gradient(170deg, var(--white) 0%, var(--cream) 100%); color: var(--charcoal); position: relative; overflow: hidden; }
.charla::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50% 42% 55% 48% / 46% 54% 42% 56%; background: var(--plum); opacity: 0.035; right: -100px; bottom: -140px; }
.charla .container { position: relative; display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .charla .container { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; } .charla-card { align-self: center; } }
.charla .h-section em { font-style: normal; color: var(--plum); }
.charla-puntos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.charla-puntos li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--white); border: 1px solid rgba(188, 153, 137, 0.3); border-radius: 12px; }
.charla-puntos li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.charla-puntos b { display: block; color: var(--plum); font-weight: 500; font-size: 1rem; }
.charla-puntos span { font-size: 0.93rem; color: var(--charcoal); opacity: 0.85; line-height: 1.6; }
.charla p { color: var(--charcoal); opacity: 0.85; font-size: 1.05rem; max-width: 52ch; margin-top: 14px; font-weight: 400; line-height: 1.85; }
.charla-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--charcoal); opacity: 0.9; font-size: 0.95rem; font-weight: 500; }
.charla-meta span { display: inline-flex; align-items: center; gap: 8px; }
.charla-meta svg { width: 17px; height: 17px; color: var(--rosy); }
.charla-card { background: var(--white); border: 1px solid rgba(188, 153, 137, 0.35); border-radius: 16px; padding: 32px; box-shadow: 0 8px 30px rgba(125, 78, 78, 0.08); }
.charla-card h3 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 8px; color: var(--charcoal); font-weight: 400; }
.charla-card p { font-size: 0.95rem; margin-top: 0; }
.charla-logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 16px; mix-blend-mode: multiply; }
.charla-card .btn { margin-top: 20px; }

/* ── CTA final ─────────────────────────────── */
.cta { background: var(--dusty-light); text-align: center; }
.cta .h-section { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.cta .h-section { margin-inline: auto; }
.cta .h-sub { margin-inline: auto; }
.cta .btn { margin-top: 28px; }

/* ── Footer ────────────────────────────────── */
.footer { background: var(--white); color: var(--charcoal); padding: 56px 0 32px; font-size: 0.95rem; border-top: 1px solid var(--line); }
.footer .btn { margin-top: 18px; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; }
.footer-ig svg { width: 20px; height: 20px; color: var(--plum); }
.footer .container { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand-name { color: var(--charcoal); font-size: 2rem; }
.footer p { margin-top: 10px; max-width: 40ch; }
.footer .footer-h { color: var(--rosy); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--plum); }
.footer p, .footer li { opacity: 0.85; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 20px; font-size: 0.8rem; color: var(--charcoal); opacity: 0.5; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ── Drawer reserva ────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(43, 37, 38, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 320ms ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 100; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 48px rgba(43, 37, 38, 0.25);
  /* móvil: bottom sheet */
  left: 0; right: 0; bottom: 0; max-height: 92svh; border-radius: 18px 18px 0 0;
  transform: translateY(100%); visibility: hidden; transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.drawer-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--rosy-light); margin: 10px auto 0; }
@media (min-width: 720px) {
  .drawer { top: 0; bottom: 0; left: auto; right: 0; width: min(480px, 100%); max-height: none; border-radius: 0; transform: translateX(100%); }
  .drawer.is-open { transform: translateX(0); visibility: visible; }
  .drawer-handle { display: none; }
}
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 12px; }
.drawer-head h2 { font-family: var(--display); font-size: 2.1rem; color: var(--charcoal); line-height: 1; font-weight: 400; }
.drawer-head p { color: var(--charcoal); opacity: 0.55; margin-top: 6px; font-size: 0.95rem; font-weight: 400; }
.btn-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--plum); background: var(--dusty); transition: transform 160ms var(--ease-out), background-color 200ms ease; flex: 0 0 auto; }
.btn-close:hover { background: var(--rosy-light); }
.btn-close:active { transform: scale(0.94); }
.btn-close svg { width: 18px; height: 18px; }
.drawer-body { padding: 8px 26px 28px; overflow-y: auto; flex: 1; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.72rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rosy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  caret-color: var(--gold);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237D4E4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 142, 72, 0.18); }
.field.is-error input, .field.is-error select { border-color: #B84040; }
.field .err { display: none; color: #B84040; font-size: 0.9rem; }
.field.is-error .err { display: block; }
.field-row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--charcoal); margin-bottom: 20px; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; }
.check a { color: var(--plum); }
.check.is-error { color: #B84040; }
.hp { position: absolute; left: -9999px; }
.form-submit { width: 100%; padding: 16px; font-size: 1.1rem; }
.form-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.form-error { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: #FCEAEA; color: #8A2E2E; font-size: 0.98rem; }
.form-error.is-visible { display: block; }

.selected-taller {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 18px;
  background: var(--dusty-light); border-radius: var(--r);
}
.selected-taller[hidden] { display: none; }
.selected-taller::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rosy); flex: 0 0 auto; }
.selected-taller.is-p4::before { background: var(--gold); }
.selected-taller b { display: block; color: var(--charcoal); font-size: 0.98rem; line-height: 1.3; font-weight: 500; }
.selected-taller span { color: var(--charcoal); opacity: 0.55; font-size: 0.85rem; font-weight: 400; }

.success { display: none; text-align: center; padding: 20px 0; }
.success.is-visible { display: block; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #EBF3EE; color: #4A7C59; display: grid; place-items: center; margin: 0 auto 18px; }
.success-icon svg { width: 34px; height: 34px; }
.success h3 { font-family: var(--display); font-size: 2.2rem; color: var(--charcoal); font-weight: 400; }
.success p { color: var(--charcoal); margin-top: 10px; }
.success .btn { margin-top: 22px; }

/* ── Reveal on scroll ──────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0); }

/* Hero entrada */
.hero-content > * { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; }
.hero-content > :nth-child(1) { animation-delay: 150ms; }
.hero-content > :nth-child(2) { animation-delay: 300ms; }
.hero-content > :nth-child(3) { animation-delay: 420ms; }
.hero-content > :nth-child(4) { animation-delay: 540ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-clip, .hero-content > * { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
  .sq-panel { transition-duration: 1ms; }
  .sq-progress::after { animation: none; }
  .drawer, .scrim, .tabs-pill, .taller-detail { transition-duration: 1ms; }
}

/* ── Aviso de cookies ─────────────────────── */
.cookie-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto;
  background: var(--white); color: var(--charcoal); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 16px 18px; font-size: 0.92rem; line-height: 1.45;
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.cookie-banner a { color: var(--gold-dark); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
.cookie-reopen { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cookie-reopen:hover { color: var(--plum); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
