/* ============================================================
   ANDREGONES · REFINEMENTS LAYER
   Capa de refinamientos sobre styles.css base.
   Variables ajustables vía Tweaks panel.
   ============================================================ */

:root {
  /* Tweakable — manipulated by tweaks.js */
  --tw-accent: #4b3d5e;          /* lavender-dark by default */
  --tw-accent-soft: #ede6f4;     /* lavender-light */
  --tw-accent-mid: #b6a0cd;      /* lavender */
  --tw-em: #7a5fa0;              /* italic em color in headings */
  --tw-font-display: 'Playfair Display', serif;
  --tw-font-body: 'DM Sans', system-ui, sans-serif;
  --tw-density: 1;               /* 0.8 compact, 1 comfy, 1.2 spacious */
  --tw-radius: 16px;

  /* Derived spacing */
  --pad-section: calc(80px * var(--tw-density));
  --pad-hero: calc(64px * var(--tw-density));
}

/* Apply tweaked tokens over the base ones --------------------- */
body { font-family: var(--tw-font-body); }

/* Headings + serif elements */
.nav-brand, .footer-brand,
.hero h1, .page-hero h1,
.section-header h2, .cta-final h2,
.camino-card h3, .recurso-card h3, .service-card h3,
.sobre-mini h2, .testimonio blockquote,
.includes-card h3, .price-card .price-amount,
.faq-question, .metodo-num, .process-num {
  font-family: var(--tw-font-display);
}

/* Em color (the italic accent) */
.hero h1 em, .page-hero h1 em,
.section-header h2 em, .cta-final h2 em,
.sobre-mini h2 em { color: var(--tw-em); }

/* Lavender-dark CTAs become whatever accent */
.btn-primary { background: var(--tw-accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--tw-accent) 80%, black); }
.nav-cta { background: var(--tw-accent); }
.text-link { color: var(--tw-accent); border-bottom-color: var(--tw-accent-mid); }
.skip-link { background: var(--tw-accent); }
.mobile-sticky-cta { background: var(--tw-accent); }
.testimonios .eyebrow { color: var(--tw-accent-soft); }
.cta-final { background: var(--tw-accent-soft); }
.cta-final h2, .cta-final p { color: var(--tw-accent); }
.nav-brand { color: var(--tw-accent); }
.price-card { background: var(--tw-accent-soft); }
.price-card .price-label,
.price-card .price-amount,
.price-card .price-unit,
.price-card .price-note { color: var(--tw-accent); }
.feature-bullet { background: var(--tw-accent-mid); }

:focus-visible { outline-color: var(--tw-accent-mid); }

/* WCAG 2.4.7 / 2.4.11: high-contrast focus ring that stays visible on the
   coloured card backgrounds too (dark accent + white halo) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--tw-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255,255,255,.85);
  border-radius: 4px;
}

/* Density on section padding */
section { padding: var(--pad-section) 5%; }
.page-hero { padding: calc(56px * var(--tw-density)) 5% var(--pad-hero); }
.hero { padding: var(--pad-hero) 5% calc(80px * var(--tw-density)); }

/* Radii follow tweaked radius */
.camino-card, .recurso-card, .service-card,
.includes-card, .price-card, .testimonio,
.hero-photo, .sobre-mini-photo,
.service-card-image { border-radius: var(--tw-radius); }

/* ============================================================
   REFINEMENTS — beyond the base
   ============================================================ */

/* Nav: active state from current page */
.nav-links a { white-space: nowrap; }
/* Divider between the "about" group and the "services" group */
.nav-divider {
  list-style: none;
  width: 1px;
  height: 15px;
  align-self: center;
  background: var(--border);
  margin: 0 6px;
}
@media (max-width: 768px) {
  .nav-divider { display: none; }
}
/* Tablet-to-desktop in-between: tighten so 5 labels + CTA stay on one row */
@media (min-width: 769px) and (max-width: 1120px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; letter-spacing: 1.2px; }
}
.nav-links a.is-current { color: var(--tw-accent); font-weight: 500; }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--tw-accent); transform: scaleX(0);
  transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-current:not(.nav-cta)::after { transform: scaleX(1); }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero refinements */
.hero-photo {
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(74,68,64,.25), 0 8px 24px -12px rgba(74,68,64,.15);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -10px; border-radius: calc(var(--tw-radius) + 8px);
  background: linear-gradient(135deg, var(--tw-accent-soft), transparent 60%);
  z-index: -1; opacity: .8;
}

/* Camino cards — refined hover */
.camino-card {
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.camino-card::after {
  content: ""; position: absolute; inset: auto -40% -40% auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.35); opacity: 0;
  transition: opacity .4s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transform: scale(.6);
}
.camino-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(74,68,64,.2); }
.camino-card:hover::after { opacity: 1; transform: scale(1); }
.camino-arrow { transition: transform .25s ease; display: inline-flex; align-items: center; gap: 6px; }
.camino-arrow::after { content: "→"; transition: transform .25s ease; }
.camino-card:hover .camino-arrow::after { transform: translateX(4px); }

/* Recurso cards — these navigate to recursos.html (not a direct download),
   so use a navigation arrow (→), not the download ↓ */
.recurso-arrow { display: inline-flex; align-items: center; gap: 6px; }
.recurso-card:not([aria-disabled]) .recurso-arrow::after { content: "\2192"; transition: transform .25s ease; }
.recurso-card:not([aria-disabled]):hover .recurso-arrow::after { transform: translateX(3px); }

/* Buttons — slight refinement */
.btn { transition: transform .2s ease, background .2s ease, box-shadow .25s ease; }
.btn-primary { box-shadow: 0 6px 16px -10px var(--tw-accent); }
.btn-primary:hover { box-shadow: 0 12px 24px -12px var(--tw-accent); transform: translateY(-2px); }
.btn-secondary { transition: background .2s ease, border-color .2s ease, color .2s ease; }
.btn-secondary:hover { border-color: var(--tw-accent); color: var(--tw-accent); }

/* Section header eyebrow — plain (no leading rule) */

/* Metodo numbers — refined */
.metodo-num, .process-num { color: var(--tw-accent-mid); }

/* Testimonios — refined */
.testimonio { transition: transform .3s ease, border-color .3s ease; }
.testimonio:hover { transform: translateY(-3px); border-color: rgba(182,160,205,.5); }
.testimonio blockquote::before {
  content: """; font-family: var(--tw-font-display); font-style: italic;
  font-size: 64px; line-height: 0; color: var(--tw-accent-mid);
  vertical-align: -22px; margin-right: 6px; opacity: .7;
}

/* Forms — refined */
.form-field { position: relative; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 16px 16px 16px 16px;
  border: 0.5px solid var(--border); border-radius: 10px;
  font-family: var(--tw-font-body); font-size: 15px;
  background: white; color: var(--dark);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--tw-accent-mid);
  box-shadow: 0 0 0 4px var(--tw-accent-soft);
}
.form-field label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ash); margin-bottom: 8px;
}
.form-field .error {
  font-size: 12px; color: var(--peach-dark); margin-top: 6px; display: none;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: var(--peach-dark); }
.form-field.has-error .error { display: block; }
.form-success {
  display: none; padding: 32px; background: var(--sage-light);
  border: 0.5px solid rgba(182,216,167,.5); border-radius: var(--tw-radius);
  color: var(--sage-dark); text-align: center;
}
.form-success.is-on { display: block; }

/* B2B team-intake block (contacto) — shown only for team motives */
.b2b-block { display: grid; gap: 18px; padding: 24px; background: var(--white); border: 0.5px solid var(--border); border-radius: var(--tw-radius); }
.b2b-block[hidden] { display: none; }

/* Taller enrollment states (talleres) — open vs coming-soon casuística */
.enroll-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.enroll-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.enroll-badge.open { background: var(--sage-light); color: var(--sage-dark); }
.enroll-badge.open::before { animation: enroll-pulse 1.8s ease-in-out infinite; }
.enroll-badge.soon { background: var(--cream); color: var(--ash); }
@keyframes enroll-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(61,102,48,.5); }
  50% { box-shadow: 0 0 0 5px rgba(61,102,48,0); }
}
@media (prefers-reduced-motion: reduce) { .enroll-badge.open::before { animation: none; } }
.taller-card-foot {
  margin-top: 24px; padding-top: 24px; border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.taller-spots { font-size: 13px; color: var(--ash); display: inline-flex; align-items: center; gap: 8px; }
.taller-spots strong { color: var(--peach-dark); font-weight: 600; }
.form-success h3 {
  font-family: var(--tw-font-display); font-size: 24px;
  font-style: italic; font-weight: 400; margin-bottom: 8px;
}

/* ============================================================
   BOOKING WIDGET (replaces Calendly placeholder)
   ============================================================ */
.booking {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--tw-radius); padding: 32px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  box-shadow: 0 30px 60px -32px rgba(74,68,64,.28), 0 8px 24px -16px rgba(74,68,64,.12);
}
.booking-side {
  background: var(--tw-accent); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.booking-side .b-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 2.4px;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}
.booking-side h4 {
  font-family: var(--tw-font-display); font-size: 22px;
  font-weight: 400; color: #fff; line-height: 1.2;
}

/* Service selector inside the booking side panel */
.booking-svc-seg {
  display: flex; gap: 4px; background: rgba(255,255,255,.14);
  padding: 4px; border-radius: 999px; margin-bottom: 4px;
}
.booking-svc {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px 8px; border-radius: 999px;
  font-family: var(--tw-font-body); font-size: 13px; color: rgba(255,255,255,.8);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.booking-svc:hover { background: rgba(255,255,255,.12); color: #fff; }
.booking-svc.is-on { background: #fff; color: var(--tw-accent); box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
.booking-svc-desc { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.5; }
.booking-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.booking-side li {
  font-size: 13px; color: rgba(255,255,255,.88);
  display: flex; gap: 10px; align-items: flex-start;
}
.booking-side li::before { content: "•"; opacity: .5; }
.booking-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.booking-cal-header strong {
  font-family: var(--tw-font-display); font-size: 18px;
  font-weight: 400; color: var(--dark);
}
.booking-nav { display: flex; gap: 4px; }
.booking-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 0.5px solid var(--border);
  background: white; cursor: pointer; color: var(--ash);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--tw-font-body); font-size: 16px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.booking-nav button:hover:not(:disabled) { background: var(--tw-accent-soft); color: var(--tw-accent); border-color: var(--tw-accent-mid); }
.booking-nav button:disabled { opacity: .35; cursor: not-allowed; }
.booking-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.booking-grid .dow {
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ash); text-align: center; padding: 6px 0;
}
.booking-day {
  aspect-ratio: 1; min-height: 30px; border: 0.5px solid transparent; border-radius: 8px;
  background: transparent; color: var(--dark); font-size: 13px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tw-font-body);
}
.booking-day:hover:not(:disabled):not(.is-selected) { background: var(--tw-accent-soft); }
.booking-day.is-available {
  border-color: transparent;
  background: color-mix(in oklab, var(--tw-accent-mid) 45%, white);
  color: color-mix(in oklab, var(--tw-accent) 88%, black);
  font-weight: 600;
}
.booking-day.is-available:hover:not(.is-selected) { background: var(--tw-accent-mid); color: #fff; }
.booking-day.is-selected { background: var(--tw-accent); color: white; transform: scale(1.05); box-shadow: 0 6px 14px -6px var(--tw-accent); }
.booking-day.is-today { font-weight: 500; position: relative; }
.booking-day.is-today::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: currentColor;
}
.booking-day:disabled { color: rgba(74,68,64,.25); cursor: not-allowed; }
.booking-slots {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 220px; overflow-y: auto; padding-right: 4px;
}
.booking-slot {
  padding: 12px; border: 0.5px solid color-mix(in oklab, var(--tw-accent-mid) 55%, white); border-radius: 8px;
  background: color-mix(in oklab, var(--tw-accent-mid) 28%, white); color: color-mix(in oklab, var(--tw-accent) 88%, black); cursor: pointer; font-family: var(--tw-font-body);
  font-size: 13px; transition: all .15s ease;
}
.booking-slot:hover { border-color: var(--tw-accent); background: var(--tw-accent-mid); color: #fff; }
.booking-slot.is-selected { background: var(--tw-accent); color: white; border-color: var(--tw-accent); }
.booking-empty { color: var(--ash); font-size: 13px; padding: 24px; text-align: center; font-style: italic; }

/* H6: calendar legend */
.booking-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px;
  border-top: 0.5px solid var(--border);
  font-size: 11px; color: var(--ash);
}
.booking-legend span { display: inline-flex; align-items: center; gap: 6px; }
.booking-legend .dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.booking-legend .dot.avail { background: color-mix(in oklab, var(--tw-accent-soft) 60%, white); border: 1px solid var(--tw-accent-mid); }
.booking-legend .dot.today { background: transparent; border: 1px solid var(--dark); position: relative; }
.booking-legend .dot.today::after { content: ""; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--dark); }
.booking-legend .dot.off { background: var(--cream); border: 1px solid var(--border); }

/* H3: 'Cambiar' back button inside confirm */
.booking-back {
  background: transparent; border: 0.5px solid var(--border);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  font-family: var(--tw-font-body); font-size: 13px; color: var(--ash);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.booking-back:hover { background: var(--cream); color: var(--dark); border-color: var(--tw-accent-mid); }
.booking-confirm {
  margin-top: 18px; padding: 18px; background: var(--cream); border-radius: 10px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.booking-confirm.is-on { display: flex; }
.booking-confirm-meta {
  font-size: 14px; color: var(--dark); line-height: 1.5;
}
.booking-confirm-meta strong { font-weight: 500; color: var(--tw-accent); }

.booking-success {
  display: none; text-align: center; padding: 48px 24px;
}
.booking-success.is-on { display: block; }
.booking-success h4 {
  font-family: var(--tw-font-display); font-size: 28px; font-style: italic;
  font-weight: 400; color: var(--tw-accent); margin-bottom: 12px;
}
.booking-success p { font-size: 15px; color: var(--ash); line-height: 1.7; max-width: 420px; margin: 0 auto 20px; }
.booking-success .meta {
  background: var(--tw-accent-soft); display: inline-block;
  padding: 12px 20px; border-radius: 8px; font-size: 14px;
  color: var(--tw-accent); margin-bottom: 20px;
}

@media (max-width: 768px) {
  .booking { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .booking-slots { grid-template-columns: 1fr 1fr; max-height: 180px; }
}

/* ============================================================
   PAST WORKSHOPS — talleres.html
   ============================================================ */
.past-workshop {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--tw-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.past-workshop:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgba(74,68,64,.18);
}
.past-workshop-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.past-workshop-num {
  font-family: var(--tw-font-display);
  font-size: 72px;
  font-style: italic;
  color: white;
  opacity: .65;
  letter-spacing: -2px;
}
.past-workshop-year {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--tw-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: white;
  background: rgba(0,0,0,0.18);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.past-workshop-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.past-workshop-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ash);
}
.past-workshop-body h3 {
  font-family: var(--tw-font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  line-height: 1.25;
}
.past-workshop-body p {
  font-size: 14px;
  color: var(--ash);
  line-height: 1.65;
  flex: 1;
}
.past-workshop-stats {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--ash);
}
.past-workshop-stats strong {
  color: var(--tw-accent);
  font-weight: 500;
  font-family: var(--tw-font-display);
  font-style: italic;
  font-size: 16px;
  margin-right: 2px;
}

.tw-trigger {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tw-accent); color: white; border: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(74,68,64,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tw-trigger:hover { transform: translateY(-2px) rotate(45deg); box-shadow: 0 18px 36px -10px rgba(74,68,64,.5); }
.tw-trigger svg { width: 22px; height: 22px; }
@media (max-width: 768px) {
  .tw-trigger { bottom: 80px; right: 16px; width: 44px; height: 44px; }
  .tw-trigger svg { width: 18px; height: 18px; }
}

.tw-panel {
  position: fixed; bottom: 88px; right: 24px; z-index: 199;
  width: 320px; max-width: calc(100vw - 32px);
  background: white; border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(74,68,64,.35), 0 12px 24px -12px rgba(74,68,64,.2);
  padding: 24px; display: none;
  font-family: var(--tw-font-body);
  border: 0.5px solid var(--border);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.tw-panel.is-open { display: block; animation: tw-in .25s ease; }
@keyframes tw-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.tw-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.tw-panel-head h4 {
  font-family: var(--tw-font-display); font-style: italic; font-weight: 400;
  font-size: 20px; color: var(--dark);
}
.tw-close {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; color: var(--ash);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: background .15s ease;
}
.tw-close:hover { background: var(--cream); color: var(--dark); }
.tw-panel-sub { font-size: 12px; color: var(--ash); margin-bottom: 18px; }

.tw-group { margin-bottom: 20px; }
.tw-group:last-child { margin-bottom: 0; }
.tw-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ash); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.tw-label span:last-child { color: var(--dark); letter-spacing: .5px; text-transform: none; font-weight: 400; }

.tw-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tw-swatch {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; padding: 0; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tw-swatch:hover { transform: scale(1.05); }
.tw-swatch.is-on { border-color: var(--dark); box-shadow: 0 0 0 2px white inset; }

.tw-segs { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 10px; }
.tw-seg {
  flex: 1; padding: 8px 4px; border: 0;
  background: transparent; border-radius: 7px;
  font-family: var(--tw-font-body); font-size: 12px; color: var(--ash);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.tw-seg:hover { color: var(--dark); }
.tw-seg.is-on { background: white; color: var(--dark); box-shadow: 0 2px 6px -3px rgba(0,0,0,.15); }

.tw-reset {
  margin-top: 16px; width: 100%; padding: 10px;
  background: transparent; border: 0.5px solid var(--border);
  border-radius: 8px; cursor: pointer; font-family: var(--tw-font-body);
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ash); transition: background .15s ease, color .15s ease;
}
.tw-reset:hover { background: var(--cream); color: var(--dark); }

/* Sobre mí · "Mi historia" — foto + texto en dos columnas */
.historia-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.historia-photo { position: sticky; top: 100px; }
.historia-photo image-slot {
  box-shadow: 0 30px 60px -34px rgba(74,68,64,.4);
}
.historia-photo-cap {
  margin-top: 14px;
  font-family: var(--tw-font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
  text-align: center;
}
@media (max-width: 768px) {
  .historia-layout { grid-template-columns: 1fr; gap: 28px; }
  .historia-photo { position: static; max-width: 280px; margin: 0 auto; }
}

/* ============================================================
   CAMINOS (audience cards) — shared so any page can use them
   ============================================================ */
.caminos-shared { background: var(--cream); }
.caminos-shared .caminos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1140px; margin: 0 auto; }
.caminos-shared .camino-card { border-radius: 18px; padding: 32px 28px; text-decoration: none; border: 0.5px solid; transition: transform 0.2s, box-shadow .3s ease; display: flex; flex-direction: column; min-height: 230px; }
.caminos-shared .camino-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(74,68,64,.25); }
.caminos-shared .camino-card.peach { background: var(--peach-light); border-color: rgba(249,200,202,0.5); }
.caminos-shared .camino-card.lavender { background: var(--lavender-light); border-color: rgba(182,160,205,0.4); }
.caminos-shared .camino-card.sage { background: var(--sage-light); border-color: rgba(182,216,167,0.5); }
.caminos-shared .camino-tag { font-size: 11px; font-weight: 500; letter-spacing: 2.6px; text-transform: uppercase; margin-bottom: 18px; }
.caminos-shared .camino-card.peach .camino-tag, .caminos-shared .camino-card.peach h3, .caminos-shared .camino-card.peach p, .caminos-shared .camino-card.peach .camino-arrow { color: var(--peach-dark); }
.caminos-shared .camino-card.lavender .camino-tag, .caminos-shared .camino-card.lavender h3, .caminos-shared .camino-card.lavender p, .caminos-shared .camino-card.lavender .camino-arrow { color: var(--lavender-dark); }
.caminos-shared .camino-card.sage .camino-tag, .caminos-shared .camino-card.sage h3, .caminos-shared .camino-card.sage p, .caminos-shared .camino-card.sage .camino-arrow { color: var(--sage-dark); }
.caminos-shared .camino-card h3 { font-family: var(--tw-font-display); font-size: 21px; font-style: italic; font-weight: 400; line-height: 1.3; margin-bottom: 14px; }
.caminos-shared .camino-card p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; flex: 1; }
.caminos-shared .camino-arrow { font-size: 12px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; }
@media (max-width: 768px) {
  .caminos-shared .caminos-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.cal-embed-wrap { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--tw-radius); padding: 20px; box-shadow: 0 30px 60px -32px rgba(74,68,64,.28); }
.cal-svc-seg { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 999px; margin: 0 auto 18px; max-width: 320px; }
.cal-svc { flex: 1; border: 0; background: transparent; cursor: pointer; padding: 10px 8px; border-radius: 999px; font-family: var(--tw-font-body); font-size: 13px; color: var(--ash); transition: background .15s, color .15s, box-shadow .15s; }
.cal-svc:hover { color: var(--dark); }
.cal-svc.is-on { background: var(--tw-accent); color: #fff; box-shadow: 0 4px 10px -4px var(--tw-accent); }
.calendly-inline-widget { border-radius: 12px; overflow: hidden; }
.agenda-rutas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.agenda-ruta { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 0.5px solid var(--border); border-radius: var(--tw-radius); padding: 20px; }
.agenda-ruta .svc-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.agenda-ruta .svc-icon svg { width: 24px; height: 24px; }
.agenda-ruta h3 { font-family: var(--tw-font-display); font-weight: 400; font-size: 18px; color: var(--dark); margin-bottom: 4px; }
.agenda-ruta p { font-size: 13px; color: var(--ash); line-height: 1.5; margin: 0; }
.agenda-ruta p a { color: var(--sage-dark); font-weight: 500; white-space: nowrap; }
.agenda-nota { text-align: center; font-size: 13px; color: var(--ash); font-style: italic; margin: 0 auto 26px; max-width: 620px; }
@media (max-width: 780px) { .agenda-rutas { grid-template-columns: 1fr; } }
.page-fade {
  animation: page-in .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Nav becomes more solid on scroll */
.main-nav.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(74,68,64,.12);
}

/* ============================================================
   LO MÁS RECIENTE — home "latest" rail (recursos + lanzamientos)
   ============================================================ */
.reciente { background: var(--white); }
.reciente .section-header { margin-bottom: 0; }
.reciente-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: 1140px; margin: 0 auto 40px; flex-wrap: wrap;
}
.reciente-head .section-header { text-align: left; margin: 0; }
.reciente-head .section-header .eyebrow { padding-left: 0; }
.reciente-head .section-header .eyebrow::before { display: none; }
.reciente-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 820px; margin: 0 auto;
}
/* When only one card remains (e.g. taller still in design) */
.reciente-grid--single { grid-template-columns: 1fr; max-width: 480px; }
.reciente-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--tw-radius); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.reciente-card:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px rgba(74,68,64,.28); }
.reciente-cover {
  aspect-ratio: 16/10; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.reciente-cover.peach { background: var(--peach-light); }
.reciente-cover.lav   { background: var(--lavender-light); }
.reciente-cover.sage  { background: var(--sage-light); }
.reciente-cover .svc-icon { width: 64px; height: 64px; border-radius: 18px; }
.reciente-cover .svc-icon svg { width: 34px; height: 34px; }
.reciente-type {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 7px;
}
.reciente-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reciente-type.recurso { color: var(--peach-dark); }
.reciente-type.taller  { color: var(--sage-dark); }
.reciente-type.nuevo   { color: var(--lavender-dark); }
.reciente-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.reciente-meta {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ash); margin-bottom: 10px;
}
.reciente-card h3 {
  font-family: var(--tw-font-display); font-style: italic; font-weight: 400;
  font-size: 21px; line-height: 1.25; color: var(--dark); margin-bottom: 10px;
}
.reciente-card p { font-size: 14px; color: var(--ash); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.reciente-arrow {
  font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--tw-accent); display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
}
.reciente-arrow::after { content: "→"; transition: transform .25s ease; }
.reciente-card:hover .reciente-arrow::after { transform: translateX(4px); }
.reciente-card.is-soon { pointer-events: none; }
.reciente-card.is-soon .reciente-arrow { color: var(--ash); }
.reciente-card.is-soon .reciente-arrow::after { content: ""; }
@media (max-width: 900px) {
  .reciente-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   TESTIMONIOS CAROUSEL (manual: arrows + drag + dots, no autoplay)
   ============================================================ */
.testi-carousel {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.testi-viewport { overflow: hidden; flex: 1; min-width: 0; padding: 4px; }
.testi-track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 24px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.testi-track .testimonio {
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
}
.testi-arrow {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff;
  cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.testi-arrow:hover:not(:disabled) { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.testi-arrow:disabled { opacity: .25; cursor: default; }
.testi-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.testi-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.25); cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.testi-dots button.is-on { background: rgba(255,255,255,.85); transform: scale(1.25); }
@media (max-width: 768px) {
  .testi-track .testimonio { flex: 0 0 100%; }
  .testi-arrow { display: none; }
}

/* ============================================================
   BREADCRUMBS — clearer, interactive (override base)
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 12.5px;
  letter-spacing: .3px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 0;
  transition: background .18s ease, color .18s ease;
}
.breadcrumbs a:hover {
  background: var(--tw-accent-soft);
  color: var(--tw-accent);
  border-bottom: 0;
}
/* Home crumb gets a little house glyph for a clear "start" anchor */
.breadcrumbs a:first-child::before {
  content: "";
  width: 13px; height: 13px;
  flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 10v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 10v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.breadcrumbs .sep {
  margin: 0 2px;
  color: var(--tw-accent-mid);
  opacity: .6;
  font-size: 13px;
}
.breadcrumbs .current {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tw-accent-soft);
  color: var(--tw-accent);
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .breadcrumbs a { transition: none; }
}

/* ============================================================
   AUDIENCE FILTER (talleres + recursos)
   ============================================================ */
.filter-bar {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 36px; max-width: 900px;
}
.filter-chip {
  border: 0.5px solid var(--border); background: var(--white);
  border-radius: 999px; padding: 9px 20px; cursor: pointer;
  font-family: var(--tw-font-body); font-size: 13px; letter-spacing: .3px;
  color: var(--ash); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { border-color: var(--tw-accent-mid); color: var(--dark); }
.filter-chip.is-on { background: var(--tw-accent); color: #fff; border-color: var(--tw-accent); }
[data-audience].is-hidden { display: none !important; }

/* Home · descarga inline en tarjeta "Lo más reciente" */
.home-dl-btn { align-self: flex-start; margin-top: auto; font-size: 12px; padding: 12px 20px; }
.home-dl-form { display: none; flex-direction: column; gap: 10px; margin-top: auto; }
.home-dl-form.is-on { display: flex; }
.home-dl-form input { width: 100%; padding: 12px 14px; border: 0.5px solid var(--border); border-radius: 10px; font-family: var(--tw-font-body); font-size: 14px; background: #fff; color: var(--dark); }
.home-dl-form input:focus { outline: none; border-color: var(--tw-accent-mid); box-shadow: 0 0 0 4px var(--tw-accent-soft); }
.home-dl-form input.err { border-color: var(--peach-dark); }
.home-dl-err { display: none; font-size: 12px; color: var(--peach-dark); }
.home-dl-err.is-on { display: block; }
.home-dl-success { display: none; margin-top: auto; padding: 14px 16px; background: var(--sage-light); border-radius: 10px; font-size: 13px; color: var(--sage-dark); line-height: 1.5; }
.home-dl-success.is-on { display: block; }
.home-dl-success strong { color: var(--sage-dark); }

/* ============================================================
   ICON SYSTEM — service badges (category-colored)
   ============================================================ */
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.svc-icon svg { width: 30px; height: 30px; display: block; }

/* category color variants: tint background + dark icon */
.svc-icon.peach { background: var(--peach); color: var(--peach-dark); }
.svc-icon.lav   { background: var(--lavender); color: var(--lavender-dark); }
.svc-icon.sage  { background: var(--sage); color: var(--sage-dark); }
.svc-icon.cafe  { background: var(--tw-accent-soft); color: var(--tw-accent); }
.svc-icon.cream { background: white; color: var(--ash); }

/* smaller variant for tighter spots */
.svc-icon.sm { width: 44px; height: 44px; border-radius: 12px; }
.svc-icon.sm svg { width: 24px; height: 24px; }

/* large variant for recurso card headers */
.svc-icon.lg { width: 72px; height: 72px; border-radius: 18px; }
.svc-icon.lg svg { width: 38px; height: 38px; }

/* ============================================================
   USABILITY LAYER (Nielsen heuristics)
   ============================================================ */

/* H5: external links get a discreet ↗ so users know they leave the site.
   Skip footer/social (visually obvious) and brand/nav to avoid clutter. */
main a[target="_blank"]:not(.btn):not(.recurso-card)::after {
  content: " \2197";
  font-size: 0.8em;
  opacity: .55;
  white-space: nowrap;
}

/* H2: small reassurance line under primary conversion CTAs */
.cta-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ash);
}
/* (no leading icon — the · dividers carry the reassurance line) */

/* H8 / H4: 'Próximamente' resource cards carry less visual weight WITHOUT
   reducing text contrast (WCAG 1.4.3): dim only the image, not the copy */
.recurso-card[aria-disabled="true"] { background-blend-mode: normal; }
.recurso-card[aria-disabled="true"] > div:first-child {
  opacity: .5;
  filter: saturate(.7);
}
.recurso-card[aria-disabled="true"]:hover { transform: none; }
.recurso-soon-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(74,68,64,.08);
  color: var(--ash);
}

/* H5/H3: inline email-gate panel for free resource download */
.recurso-gate {
  margin-top: 14px;
  display: none;
  gap: 8px;
  flex-direction: column;
}
.recurso-gate.is-on { display: flex; }
.recurso-gate input {
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--tw-font-body);
  font-size: 14px;
  background: white;
  color: var(--dark);
}
.recurso-gate input:focus { outline: none; border-color: var(--tw-accent-mid); box-shadow: 0 0 0 4px var(--tw-accent-soft); }
.recurso-gate-row { display: flex; gap: 8px; }
.recurso-gate-row input { flex: 1; }
.recurso-gate button {
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--tw-accent); color: white;
  font-family: var(--tw-font-body); font-size: 13px; padding: 0 16px;
  white-space: nowrap;
}
.recurso-gate .gate-msg { font-size: 12px; color: var(--sage-dark); display: none; }
.recurso-gate .gate-error { font-size: 12px; color: var(--peach-dark); display: none; }

/* H10: 'qué pasa después' steps strip */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.next-step {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--tw-radius);
  padding: 26px 24px;
}
.next-step-num {
  font-family: var(--tw-font-display);
  font-style: italic;
  font-size: 30px;
  color: var(--tw-accent-mid);
  margin-bottom: 10px;
}
.next-step h3 {
  font-family: var(--tw-font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 8px;
}
.next-step p { font-size: 14px; color: var(--ash); line-height: 1.6; }
@media (max-width: 768px) {
  .next-steps { grid-template-columns: 1fr; gap: 14px; }
}
