/* Turnos SaaS — CSS base de la web pública.
   Consume SOLO variables --theme-* inyectadas por el SSR. Mobile-first. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--theme-bg);color:var(--theme-text);font-family:var(--theme-font-body);font-size:1rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-wrap:anywhere;word-break:normal;text-rendering:optimizeLegibility}
img,svg,video,iframe{max-width:100%}
img{height:auto;display:block}
img.avatar{object-position:50% 22%}
h1,h2,h3,h4{font-family:var(--theme-font-heading);line-height:1.15;margin:0;letter-spacing:-.015em;font-weight:650;text-wrap:balance}
p{margin:0}
ul,ol,dl,dd{margin:0;padding:0}
ul,ol{list-style:none}
a{color:inherit}
:focus-visible{outline:3px solid var(--theme-primary);outline-offset:3px;border-radius:4px}
.skip-link{position:absolute;left:12px;top:-60px;background:var(--theme-surface);color:var(--theme-text);padding:10px 14px;border-radius:8px;z-index:50}
.skip-link:focus{top:12px}

.icon{width:1.15em;height:1.15em;flex:none;vertical-align:-.2em}
.container{width:100%;max-width:1160px;margin-inline:auto;padding-inline:20px}
.container--narrow{max-width:820px}
.muted{color:var(--theme-muted)}
.small{font-size:.875rem}
.grow{flex:1;min-width:0}
.eyebrow{font-size:.8125rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-primary)}
.lead{font-size:1.125rem;color:var(--theme-muted);max-width:56ch}
.prose p+p{margin-top:.9em}
.prose{max-width:68ch}
.prose--lg{font-size:1.125rem;line-height:1.75}
.link{color:var(--theme-primary);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* ---------- Botones ---------- */
.btn{--_bg:var(--theme-primary);--_fg:var(--theme-primary-contrast);
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;min-height:48px;padding:.7em 1.3em;
  border-radius:var(--theme-btn-radius);border:2px solid transparent;font:600 1rem/1.2 var(--theme-font-body);
  text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
  text-align:center;max-width:100%}
.btn span{min-width:0}
.btn--primary{background:var(--_bg);color:var(--_fg);box-shadow:var(--theme-btn-shadow)}
.btn--primary:hover{transform:translateY(-1px)}
[data-btn-variant="outline"] .btn--primary{background:transparent;color:var(--theme-primary);border-color:var(--theme-primary);box-shadow:none}
[data-btn-variant="outline"] .btn--primary:hover{background:var(--theme-primary-soft)}
[data-btn-variant="soft-shadow"] .btn--primary:hover{box-shadow:var(--theme-btn-shadow),0 14px 28px -14px var(--theme-primary)}
.btn--ghost{background:transparent;color:var(--theme-text);border:1.5px solid var(--theme-border)}
.btn--ghost:hover{border-color:var(--theme-text)}
.btn--lg{min-height:52px;padding:.8em 1.5em;font-size:1.0625rem}
.btn--xl{min-height:58px;font-size:1.125rem}
.btn--block{display:flex;width:100%}

/* ---------- Tarjetas ---------- */
.card{background:var(--theme-surface);border:var(--theme-card-border);box-shadow:var(--theme-card-shadow);border-radius:14px}
[data-btn-shape="square"] .card{border-radius:6px}
[data-btn-shape="pill"] .card{border-radius:20px}
/* flat = superficie tintada sin borde; bordered = borde 1px sobre surface. */
[data-card-style="flat"] .card{background:var(--theme-surface-tint);border-color:transparent;box-shadow:none}
.card__title{display:flex;align-items:center;gap:.5em;font-size:1.0625rem;margin-bottom:12px}

/* ---------- Chips / badges ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips--center{justify-content:center}
.chip{display:inline-flex;align-items:center;gap:.4em;padding:.4em .85em;border-radius:999px;font-size:.875rem;font-weight:500;
  background:var(--theme-surface);border:1px solid var(--theme-border);color:var(--theme-text);max-width:100%}
.chip--soft{background:var(--theme-primary-soft);border-color:transparent;color:var(--theme-text)}
.chip--outline{background:transparent}
.chips--strong .chip{padding:.55em 1em;font-weight:600}
.badge{display:inline-flex;align-items:center;gap:.35em;padding:.25em .65em;border-radius:999px;font-size:.78rem;font-weight:600;
  background:var(--theme-primary-soft);color:var(--theme-text);white-space:nowrap}
.badge .icon{color:var(--theme-primary)}
.badge-license{display:inline-flex;align-items:center;gap:.35em;padding:.3em .7em;border-radius:6px;font-size:.8125rem;font-weight:600;
  border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);white-space:nowrap}
.badge-license .icon{color:var(--theme-primary)}
.checklist{display:grid;gap:10px;margin-top:20px}
.checklist li{display:flex;gap:10px;align-items:flex-start}
.checklist .icon{color:var(--theme-primary);margin-top:.2em}

/* ---------- Avatar ---------- */
.avatar{border-radius:50%;object-fit:cover;background:var(--theme-primary);flex:none}
.avatar--initials{display:inline-flex;align-items:center;justify-content:center;background:var(--theme-primary);color:var(--theme-primary-contrast);
  font-family:var(--theme-font-heading);font-weight:600;letter-spacing:.02em}

/* ---------- Secciones genéricas ---------- */
.section{padding-block:56px}
.section__title{display:flex;align-items:center;gap:.45em;font-size:clamp(1.5rem,1.2rem + 1.4vw,2.1rem);margin-bottom:12px}
.section__title .icon{color:var(--theme-primary)}
.section__lead{color:var(--theme-muted);margin-bottom:28px;max-width:60ch}

/* ---------- FAQ (details nativo) ---------- */
.faq{display:grid;gap:10px}
.faq__item{background:var(--theme-surface);border:var(--theme-card-border);box-shadow:var(--theme-card-shadow);border-radius:12px}
[data-card-style="flat"] .faq__item{background:var(--theme-surface-tint);border-color:transparent}
.faq__q{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 18px;cursor:pointer;
  font-weight:600;list-style:none}
.faq__q::-webkit-details-marker{display:none}
.faq__q .icon{transition:transform .2s ease;color:var(--theme-primary)}
.faq__item[open] .faq__q .icon{transform:rotate(180deg)}
.faq__a{padding:0 18px 18px;color:var(--theme-muted)}

/* ---------- Horarios / redes ---------- */
.hours{display:grid;gap:6px;margin-top:6px}
.hours__row{display:flex;justify-content:space-between;gap:16px;padding-bottom:6px;border-bottom:1px dashed var(--theme-border)}
.hours__row:last-child{border-bottom:0}
.hours dt{font-weight:600}
.hours dd{color:var(--theme-muted);text-align:right;font-variant-numeric:tabular-nums}
.socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.socials__link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--theme-border);color:var(--theme-text);background:var(--theme-surface);transition:border-color .15s,color .15s}
.socials__link:hover{border-color:var(--theme-primary);color:var(--theme-primary)}

/* ---------- Servicios: meta ---------- */
.svc-meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--theme-muted);font-size:.9375rem}
.svc-meta li{display:inline-flex;align-items:center;gap:.4em}
.svc-meta__price{color:var(--theme-text);font-weight:700;font-variant-numeric:tabular-nums}

/* ---------- Equipo ---------- */
.team{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.team__card{padding:22px;display:flex;flex-direction:column;gap:14px}
.team__avatar{width:72px;height:72px;font-size:1.4rem}
.team__body{display:flex;flex-direction:column;gap:8px;flex:1}
.team__name{font-size:1.15rem}
.team__spec{color:var(--theme-muted)}
.team__bio{color:var(--theme-muted);font-size:.9375rem}
.team__cta{margin-top:auto}
.team__body .badge-license{align-self:flex-start}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--theme-border);padding-block:28px;margin-top:24px;font-size:.875rem;color:var(--theme-muted)}
.site-footer__inner{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.site-footer__nav{display:flex;gap:4px 18px;flex-wrap:wrap}
.site-footer a{color:var(--theme-text);text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.site-footer a:hover{text-decoration:underline}
.site-footer__credit a{color:var(--theme-muted)}

/* =====================================================================
   TEMPLATE: classic — consultorio institucional
   ===================================================================== */
.cl-header{position:sticky;top:0;z-index:20;background:var(--theme-surface);border-bottom:1px solid var(--theme-border)}
.cl-header__bar{position:relative;display:flex;align-items:center;gap:10px;min-height:68px;padding-block:8px}
.cl-brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;flex:1;min-height:44px}
.cl-brand__logo{width:44px;height:44px;border-radius:10px;object-fit:contain}
.cl-brand__mono{display:inline-flex;width:44px;height:44px;flex:none;align-items:center;justify-content:center;border-radius:10px;
  background:var(--theme-primary);color:var(--theme-primary-contrast);font-weight:700;font-family:var(--theme-font-heading)}
.cl-brand__text{display:flex;flex-direction:column;min-width:0}
.cl-brand__name{font-family:var(--theme-font-heading);font-weight:700;font-size:1rem;line-height:1.2;overflow-wrap:normal;word-break:normal;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cl-brand__sub{display:none;font-size:.8125rem;color:var(--theme-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-header__license{display:none}
.cl-header__cta{min-height:44px;padding:.55em .95em;flex:none}
.cl-header__cta .icon{display:none}
.cl-menu{flex:none}
.cl-menu__btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;cursor:pointer;
  list-style:none;border:1px solid var(--theme-border);color:var(--theme-text);background:var(--theme-surface)}
.cl-menu__btn::-webkit-details-marker{display:none}
.cl-menu__close,.cl-menu[open] .cl-menu__open{display:none}
.cl-menu[open] .cl-menu__close{display:inline-flex}
.cl-menu__panel{position:absolute;left:0;right:0;top:100%;background:var(--theme-surface);border-bottom:1px solid var(--theme-border);
  box-shadow:0 18px 30px -18px rgba(0,0,0,.35);padding-block:6px 12px}
.cl-menu__panel .container{display:flex;flex-direction:column}
.cl-menu__link{display:flex;align-items:center;min-height:48px;text-decoration:none;font-weight:600;border-bottom:1px solid var(--theme-border)}
.cl-menu__link:last-child{border-bottom:0}
.cl-nav{border-top:1px solid var(--theme-border)}
.cl-header .cl-nav{display:none}
.cl-nav__inner{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.cl-nav__inner::-webkit-scrollbar{display:none}
.cl-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;text-decoration:none;font-size:.9375rem;font-weight:500;
  color:var(--theme-muted);white-space:nowrap;border-bottom:2px solid transparent}
.cl-nav a:hover{color:var(--theme-text);border-bottom-color:var(--theme-primary)}

.cl-hero{padding-block:40px 48px;border-bottom:1px solid var(--theme-border);background:var(--theme-bg)}
.cl-hero__grid{display:grid;gap:32px;align-items:center}
.cl-hero__text{display:flex;flex-direction:column;gap:18px}
.cl-hero__title{font-size:clamp(2rem,1.4rem + 2.6vw,3.1rem);font-weight:700}
.cl-trust{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:6px;color:var(--theme-muted);font-size:.9375rem}
.cl-trust li{display:inline-flex;align-items:center;gap:.45em}
.cl-trust .icon{color:var(--theme-primary)}
.cl-hero__card{padding:24px;display:flex;flex-direction:column;gap:18px}
.cl-hero__person{display:flex;align-items:center;gap:16px}
.cl-hero__avatar{width:76px;height:76px;border-radius:16px;font-size:1.5rem}
.cl-hero__name{font-family:var(--theme-font-heading);font-weight:700;font-size:1.15rem}
.cl-hero__spec{color:var(--theme-muted);font-size:.9375rem}
.cl-facts{display:grid;gap:12px;padding-block:16px;border-block:1px solid var(--theme-border)}
.cl-facts li{display:flex;gap:10px;align-items:flex-start;font-size:.9375rem}
.cl-facts .icon{color:var(--theme-primary);margin-top:.2em}

.cl-about__grid{display:grid;gap:28px;align-items:start}
.cl-edu{padding:22px}
.cl-edu .icon{color:var(--theme-primary)}
.cl-edu__list{display:grid;gap:10px}
.cl-edu__list li{padding-left:14px;border-left:2px solid var(--theme-accent);font-size:.9375rem}

.cl-services{background:var(--theme-surface);border-block:1px solid var(--theme-border)}
[data-card-style="flat"] .cl-services{background:var(--theme-bg)}
.cl-services .section__title{margin-bottom:28px}
.cl-svc-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.cl-services .card{background:var(--theme-bg)}
[data-card-style="flat"] .cl-services .card{background:var(--theme-surface-tint)}
.cl-svc{padding:22px;display:flex;flex-direction:column;gap:12px}
.cl-svc__head{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.cl-svc__name{font-size:1.1875rem}
.cl-svc__desc{color:var(--theme-muted);font-size:.9375rem;flex:1}
.cl-svc__cta{align-self:stretch;margin-top:6px}

.cl-coverage__box{display:grid;gap:28px}
.cl-coverage__col{min-width:0}
.cl-coverage__note{margin-top:16px;color:var(--theme-text);padding:12px 14px;border-left:3px solid var(--theme-accent);background:var(--theme-accent-soft);border-radius:0 8px 8px 0}
.cl-coverage__pay .icon{color:var(--theme-primary)}
.paylist{display:grid;gap:10px}
.paylist li{display:flex;gap:10px;align-items:center}

.cl-loc{display:grid;overflow:hidden}
.cl-loc__info{padding:24px;display:flex;flex-direction:column;gap:18px}
.cl-loc__row{display:flex;gap:14px;align-items:flex-start}
.cl-loc__row>.icon{color:var(--theme-primary);margin-top:.25em}
.cl-loc__label{font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;color:var(--theme-muted);font-weight:600}
.cl-loc__value{font-weight:600}
.cl-links{display:grid;gap:8px}
.cl-links a{display:inline-flex;gap:.5em;align-items:center;min-height:44px}
.cl-map{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;
  text-decoration:none;color:var(--theme-text);background-color:var(--theme-primary-soft);
  background-image:linear-gradient(var(--theme-border) 1px,transparent 1px),linear-gradient(90deg,var(--theme-border) 1px,transparent 1px);
  background-size:36px 36px;border-top:1px solid var(--theme-border)}
.cl-map__pin{display:inline-flex;width:56px;height:56px;border-radius:50%;align-items:center;justify-content:center;
  background:var(--theme-primary);color:var(--theme-primary-contrast);box-shadow:0 0 0 8px var(--theme-surface)}
.cl-map__pin .icon{width:26px;height:26px}
.cl-map__cta{display:inline-flex;align-items:center;gap:.4em;font-weight:600;background:var(--theme-surface);padding:.6em 1em;border-radius:999px;
  border:1px solid var(--theme-border);min-height:44px;color:var(--theme-text);text-decoration:none}
.cl-map--live{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;background-image:none;min-height:320px}
.cl-map__frame{display:block;width:100%;flex:1;min-height:260px;border:0}
.cl-map__bar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:var(--theme-surface);border-top:1px solid var(--theme-border)}
.cl-map__cta--quiet{background:transparent;font-weight:500;color:var(--theme-muted)}

.cl-final{padding-block:48px}
.cl-final__inner{display:flex;flex-direction:column;gap:16px;align-items:flex-start;padding:28px;border-radius:16px;
  background:var(--theme-primary-soft);border:1px solid var(--theme-border)}
.cl-final__text{font-family:var(--theme-font-heading);font-size:1.375rem;font-weight:650}

@media (min-width:480px){
  .cl-brand__sub{display:block}
  .cl-header__cta .icon{display:inline-block}
  .cl-brand__name{font-size:1.0625rem}
}
@media (min-width:760px){
  .cl-header__license{display:block}
  .cl-menu{display:none}
  .cl-header .cl-nav{display:block}
  .cl-brand__name{-webkit-line-clamp:1;line-clamp:1}
  .cl-hero{padding-block:72px}
  .cl-hero__grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:56px}
  .cl-about__grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px}
  .cl-coverage__box{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px}
  .cl-loc{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  .cl-map{border-top:0;border-left:1px solid var(--theme-border);min-height:100%}
  .cl-final__inner{flex-direction:row;align-items:center;justify-content:space-between;padding:32px 40px}
  .section{padding-block:80px}
  .cl-svc__cta{align-self:flex-start}
}

/* =====================================================================
   TEMPLATE: bio — link-in-bio, columna central 540px
   ===================================================================== */
[data-template="bio"] .site-footer{border-top:0;text-align:center}
[data-template="bio"] .site-footer__inner{max-width:540px;flex-direction:column;justify-content:center}
.bio-shell{max-width:540px;margin-inline:auto;padding:20px 16px 8px;display:flex;flex-direction:column;gap:28px}
.bio-hero{display:flex;flex-direction:column;gap:12px}
.bio-card{overflow:hidden;border-radius:24px}
[data-btn-shape="square"] .bio-card{border-radius:8px}
.bio-card__cover{aspect-ratio:16/7;background:var(--theme-primary-soft)}
.bio-card__cover img{width:100%;height:100%;object-fit:cover}
.bio-card__body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:32px 22px 24px}
.bio-card__body--cover{padding-top:0}
.bio-card__body--cover .bio-avatar{margin-top:-64px;box-shadow:0 0 0 5px var(--theme-surface)}
.bio-avatar{width:128px;height:128px;font-size:2.5rem;box-shadow:0 0 0 5px var(--theme-surface),0 0 0 6px var(--theme-border)}
.bio-name{font-size:clamp(1.6rem,1.3rem + 1.4vw,2rem);margin-top:4px}
.bio-chips{margin-top:-2px}
.bio-welcome{color:var(--theme-muted);font-size:1.0625rem;max-width:40ch}
.bio-cta{margin-top:6px}
.bio-card .socials{justify-content:center;margin-top:4px}
.bio-links{display:flex;flex-direction:column;gap:10px}
.bio-link{display:flex;align-items:center;gap:14px;min-height:60px;padding:10px 16px 10px 10px;text-decoration:none;font-weight:600;
  transition:transform .15s ease,border-color .15s ease}
.bio-link:hover{transform:translateY(-1px);border-color:var(--theme-primary)}
.bio-link>.icon:last-child{color:var(--theme-muted)}
.bio-link__icon{display:inline-flex;width:40px;height:40px;flex:none;align-items:center;justify-content:center;border-radius:12px;
  background:var(--theme-primary-soft);color:var(--theme-primary)}
.bio-link__label{flex:1;min-width:0}
.bio-section{display:flex;flex-direction:column;gap:12px}
.bio-h2{font-size:.8125rem;text-transform:uppercase;letter-spacing:.1em;color:var(--theme-muted);font-family:var(--theme-font-body);font-weight:700;padding-inline:4px}
.bio-about{padding:20px}
.bio-edu{display:grid;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--theme-border);font-size:.9375rem;color:var(--theme-muted)}
.bio-edu li{display:flex;gap:10px}
.bio-edu .icon{color:var(--theme-primary);margin-top:.2em}
.bio-svcs{display:flex;flex-direction:column;gap:10px}
.bio-svc__sum{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:64px;cursor:pointer;list-style:none}
.bio-svc__sum::-webkit-details-marker{display:none}
.bio-svc__sum>.icon{color:var(--theme-primary);transition:transform .2s}
.bio-svc[open] .bio-svc__sum>.icon{transform:rotate(180deg)}
.bio-svc__main{display:flex;flex-direction:column;flex:1;min-width:0}
.bio-svc__name{font-weight:650}
.bio-svc__sub{font-size:.875rem;color:var(--theme-muted)}
.bio-svc__body{display:flex;flex-direction:column;gap:12px;padding:0 16px 16px;color:var(--theme-muted)}
.bio-cov{padding:18px;display:flex;flex-direction:column;gap:12px}
.bio-pay{display:flex;gap:10px;align-items:flex-start;font-size:.9375rem}
.bio-pay .icon{color:var(--theme-primary);margin-top:.2em}
.bio-place{padding:8px 16px 14px}
.bio-place__addr{display:flex;align-items:center;gap:14px;min-height:60px;text-decoration:none;padding-block:8px}
.bio-place__addr>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.bio-place__addr>.icon{color:var(--theme-muted)}
.bio-place .hours{padding-top:10px;border-top:1px solid var(--theme-border)}
[data-template="bio"] .team{grid-template-columns:1fr}
[data-template="bio"] .team__card{flex-direction:row;align-items:flex-start}
[data-template="bio"] .team__avatar{width:60px;height:60px;font-size:1.15rem}
[data-template="bio"] .faq__q{min-height:52px;padding:12px 16px;font-size:.9375rem}
@media (min-width:760px){.bio-shell{padding-top:48px}}

/* =====================================================================
   TEMPLATE: editorial — marca personal
   ===================================================================== */
/* Los titulares usan el par tipográfico del theme: editorial = Newsreader
   (serif, con itálicas), modern = Plus Jakarta Sans, friendly = Outfit. */
[data-template="editorial"]{--ed-serif:var(--theme-font-heading)}
.ed-header{border-bottom:1px solid var(--theme-border)}
.ed-header__bar{display:flex;align-items:center;gap:20px;min-height:72px}
.ed-wordmark{font-family:var(--ed-serif);font-size:clamp(1.1rem,.95rem + .8vw,1.35rem);font-weight:500;text-decoration:none;letter-spacing:-.01em;
  flex:1;min-width:0;display:flex;align-items:center;min-height:44px;overflow-wrap:normal;word-break:normal}
.ed-wordmark__t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.15;text-wrap:balance}
.ed-nav{display:none;gap:26px}
.ed-nav a{text-decoration:none;font-size:.9375rem;color:var(--theme-muted);display:inline-flex;align-items:center;min-height:44px}
.ed-nav a:hover{color:var(--theme-text)}
.ed-header__cta{min-height:44px;padding:.5em 1.05em;flex:none}

.ed-hero{padding-block:36px 56px}
.ed-hero__grid{display:grid;gap:36px;align-items:end}
.ed-hero__text{display:flex;flex-direction:column;gap:22px;min-width:0}
.ed-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  font-weight:600;color:var(--theme-muted)}
.ed-kicker__item{white-space:nowrap;overflow-wrap:normal}
.ed-kicker__lic{display:inline-flex;align-items:center;gap:14px}
.ed-kicker__item+.ed-kicker__lic::before{content:"";width:28px;height:1px;background:var(--theme-accent);flex:none}
.ed-display{font-family:var(--ed-serif);font-weight:400;font-size:clamp(2.2rem,1.5rem + 3.4vw,4.1rem);line-height:1.05;letter-spacing:-.025em;text-wrap:balance}
h1.ed-display{font-weight:400}
.ed-display--name{font-size:clamp(2.6rem,1.7rem + 3.6vw,4.6rem);overflow-wrap:normal}
.ed-lede{font-family:var(--ed-serif);font-style:italic;font-size:clamp(1.2rem,1.05rem + .7vw,1.55rem);line-height:1.4;color:var(--theme-muted);max-width:34ch}
.ed-name{font-family:var(--theme-font-body);font-size:1.0625rem;font-weight:600;letter-spacing:0;display:flex;align-items:center;gap:12px}
.ed-name::before{content:"";width:36px;height:1px;background:var(--theme-text);flex:none}
.ed-textlink{display:inline-flex;align-items:center;gap:.5em;min-height:44px;color:var(--theme-text);text-decoration:underline;
  text-underline-offset:5px;text-decoration-color:var(--theme-accent);font-weight:500}
.ed-portrait{margin:0;position:relative;aspect-ratio:4/5;max-height:620px;width:100%}
.ed-portrait::after{content:"";position:absolute;inset:16px -12px -12px 16px;border:1px solid var(--theme-accent);z-index:-1;border-radius:2px}
.ed-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;border-radius:2px}
/* Hero sin retrato: composición tipográfica sobre superficie tintada. */
.ed-mono{display:flex;flex-direction:column;gap:18px;padding:28px 26px;background:var(--theme-primary-soft);border-radius:2px;
  border-top:3px solid var(--theme-primary);min-width:0}
.ed-mono__ini{font-family:var(--ed-serif);font-style:italic;font-weight:400;font-size:clamp(4.5rem,3rem + 6vw,9rem);line-height:.9;
  letter-spacing:-.04em;color:var(--theme-primary)}
.ed-mono__rule{display:block;width:56px;height:1px;background:var(--theme-text)}
.ed-mono__quote{font-family:var(--ed-serif);font-style:italic;font-size:clamp(1.2rem,1.05rem + .6vw,1.5rem);line-height:1.35;max-width:30ch}
.ed-mono__list{display:flex;flex-direction:column}
.ed-mono__list li{font-family:var(--ed-serif);font-size:clamp(1.1rem,1rem + .5vw,1.35rem);line-height:1.3;padding-block:10px;border-bottom:1px solid var(--theme-border)}
.ed-mono__list li:first-child{padding-top:0}
.ed-mono__cap{display:flex;flex-direction:column;gap:2px;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--theme-text)}
.ed-main{isolation:isolate}

.ed-section{padding-block:56px;border-top:1px solid var(--theme-border)}
.ed-split{display:grid;gap:24px}
.ed-label{display:flex;flex-direction:column;gap:10px}
.ed-label--row{flex-direction:row;align-items:baseline;gap:16px;margin-bottom:32px}
.ed-label__num{font-family:var(--ed-serif);font-style:italic;color:var(--theme-primary);font-size:1.25rem;display:inline-flex}
.ed-h2{font-family:var(--ed-serif);font-weight:400;font-size:clamp(1.75rem,1.3rem + 2vw,2.6rem);letter-spacing:-.02em}
.ed-h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.14em;color:var(--theme-muted);font-family:var(--theme-font-body);font-weight:700;margin-bottom:12px}
.ed-about__body{display:flex;flex-direction:column;gap:32px;min-width:0}
.ed-quote{margin:0;padding:8px 0 8px 24px;border-left:2px solid var(--theme-accent)}
.ed-quote p{font-family:var(--ed-serif);font-style:italic;font-size:clamp(1.4rem,1.1rem + 1.4vw,2rem);line-height:1.3;letter-spacing:-.01em}
.ed-quote--wide{max-width:900px;margin-inline:auto}
.ed-creds{display:grid;gap:28px}
.ed-list li{padding-block:10px;border-bottom:1px solid var(--theme-border)}
.ed-list li:first-child{border-top:1px solid var(--theme-border)}

.ed-svc-list{counter-reset:none;border-top:1px solid var(--theme-text)}
.ed-svc{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 18px;padding-block:24px;border-bottom:1px solid var(--theme-border)}
.ed-svc__num{font-family:var(--ed-serif);font-style:italic;font-size:1.25rem;color:var(--theme-primary);line-height:1.4}
.ed-svc__body{display:flex;flex-direction:column;gap:8px;min-width:0}
.ed-svc__name{font-family:var(--ed-serif);font-weight:400;font-size:clamp(1.35rem,1.15rem + .9vw,1.75rem)}
.ed-svc__desc{color:var(--theme-muted);max-width:60ch}
.ed-svc__meta{display:flex;flex-wrap:wrap;gap:4px 0;font-size:.875rem;color:var(--theme-muted)}
.ed-svc__meta span+span::before{content:"·";margin-inline:.6em}
.ed-svc__cta{grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:.5em;min-height:44px;font-weight:600;
  color:var(--theme-primary);text-decoration:none;border-bottom:1px solid currentColor}
.ed-svc__cta:hover .icon{transform:translateX(3px)}
.ed-svc__cta .icon{transition:transform .15s}

.ed-posts{display:grid;gap:32px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.ed-post{display:flex;flex-direction:column;gap:10px}
.ed-post__img{aspect-ratio:3/2;object-fit:cover;width:100%;border-radius:2px;margin-bottom:6px}
.ed-post__date{font-size:.8125rem;color:var(--theme-muted);letter-spacing:.04em}
.ed-post__title{font-family:var(--ed-serif);font-weight:400;font-size:1.5rem}
.ed-post__title a{text-decoration:none}
.ed-post__title a:hover{text-decoration:underline;text-underline-offset:4px}
.ed-post__excerpt{color:var(--theme-muted)}

.ed-coverage__body{display:flex;flex-direction:column;gap:14px;min-width:0}
.ed-inline-list{font-family:var(--ed-serif);font-size:clamp(1.25rem,1.1rem + .8vw,1.6rem);line-height:1.45}
.ed-dot{color:var(--theme-accent);margin-inline:.45em}
[data-template="editorial"] .faq__item{background:transparent;border:0;border-bottom:1px solid var(--theme-border);box-shadow:none;border-radius:0}
[data-template="editorial"] .faq{gap:0;border-top:1px solid var(--theme-text)}
[data-template="editorial"] .faq__q{padding-inline:0;font-family:var(--ed-serif);font-weight:400;font-size:1.25rem}
[data-template="editorial"] .faq__a{padding-inline:0}
.ed-loc{display:grid;gap:32px}
.ed-loc__col{display:flex;flex-direction:column;gap:8px;min-width:0}
.ed-loc__addr{font-family:var(--ed-serif);font-size:1.35rem}
.ed-loc .socials{margin-top:4px}
.ed-closing{padding-block:72px;border-top:1px solid var(--theme-border);text-align:center}
.ed-closing__inner{display:flex;flex-direction:column;align-items:center;gap:22px}
.ed-closing__text{font-family:var(--ed-serif);font-style:italic;font-size:clamp(1.8rem,1.3rem + 2vw,2.8rem);letter-spacing:-.02em}
[data-template="editorial"] .team__card{background:transparent;box-shadow:none;border:0;border-top:1px solid var(--theme-text);border-radius:0;padding:22px 0 0}
[data-template="editorial"] .team__avatar{width:96px;height:96px;border-radius:2px}
[data-template="editorial"] .team__name{font-family:var(--ed-serif);font-weight:400;font-size:1.5rem}

@media (min-width:760px){
  .ed-nav{display:flex}
  .ed-hero{padding-block:72px 88px}
  .ed-hero__grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:64px}
  .ed-split{grid-template-columns:minmax(0,.8fr) minmax(0,1.8fr);gap:48px}
  .ed-label{position:sticky;top:24px;align-self:start}
  .ed-section{padding-block:96px}
  .ed-creds{grid-template-columns:1fr 1fr}
  .ed-svc{grid-template-columns:56px minmax(0,1fr) auto;align-items:start}
  .ed-svc__cta{grid-column:3;grid-row:1}
  .ed-loc{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:760px){.ed-mono{padding:44px 40px;gap:24px;align-self:stretch;justify-content:flex-end}}
@media (max-width:759px){.ed-portrait{max-width:420px;aspect-ratio:5/4;max-height:340px}.ed-portrait::after{inset:12px -8px -8px 12px}}

/* Editorial con par modern/friendly: sin itálicas sintéticas y titulares con más peso. */
[data-template="editorial"]:not([data-font-pair="editorial"]) :is(.ed-lede,.ed-quote p,.ed-closing__text,.ed-label__num,.ed-svc__num,.ed-mono__ini,.ed-mono__quote){font-style:normal}
[data-template="editorial"]:not([data-font-pair="editorial"]) :is(.ed-display,h1.ed-display,.ed-h2,.ed-svc__name,.ed-post__title,.ed-closing__text,.ed-mono__ini,.team__name,.ed-wordmark){font-weight:600;letter-spacing:-.03em}
[data-template="editorial"]:not([data-font-pair="editorial"]) .ed-lede{font-family:var(--theme-font-body);font-size:clamp(1.1rem,1rem + .5vw,1.3rem)}

/* Editorial × card_style: bordered = filetes (por defecto); elevated = fichas
   con sombra; flat = bloques tintados sin líneas. Aplica a servicios, FAQ,
   artículos, equipo y ubicación. */
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-svc-list{border-top:0;display:flex;flex-direction:column;gap:14px}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-svc{padding:22px 22px 18px;border-radius:var(--ed-card-r,6px)}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .faq{border-top:0;gap:10px}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .faq__item{padding-inline:20px;border-radius:var(--ed-card-r,6px)}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-post{padding:18px 18px 22px;border-radius:var(--ed-card-r,6px)}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .team__card{padding:22px;border-top:0;border-radius:var(--ed-card-r,6px)}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-loc__col{padding:22px;border-radius:var(--ed-card-r,6px)}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-list li{border:0;padding-block:6px;padding-left:18px;position:relative}
[data-template="editorial"]:is([data-card-style="elevated"],[data-card-style="flat"]) .ed-list li::before{content:"";position:absolute;left:0;top:1.05em;width:8px;height:1px;background:var(--theme-accent)}
[data-template="editorial"][data-card-style="elevated"] :is(.ed-svc,.faq__item,.ed-post,.team__card,.ed-loc__col){background:var(--theme-surface);
  border:var(--theme-card-border);box-shadow:var(--theme-card-shadow)}
[data-template="editorial"][data-card-style="flat"] :is(.ed-svc,.faq__item,.ed-post,.team__card,.ed-loc__col){background:var(--theme-surface-tint);
  border:1px solid transparent;box-shadow:none}
[data-template="editorial"][data-btn-shape="square"]{--ed-card-r:2px}
[data-template="editorial"][data-btn-shape="pill"]{--ed-card-r:16px}

/* =====================================================================
   /reservar — página de la isla de reserva
   ===================================================================== */
.container--booking{max-width:720px}
.bk-header{background:var(--theme-surface);border-bottom:1px solid var(--theme-border)}
.bk-header__bar{display:flex;align-items:center;gap:12px;min-height:68px}
.bk-back{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:50%;color:var(--theme-text);flex:none}
.bk-back:hover{background:var(--theme-primary-soft)}
.bk-avatar{width:40px;height:40px;font-size:.9rem}
.bk-who{min-width:0}
.bk-who__name{font-weight:700;font-family:var(--theme-font-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-who__sub{font-size:.8125rem;color:var(--theme-muted)}
.bk-main{padding-block:28px 48px}
.bk-title{font-size:clamp(1.6rem,1.3rem + 1.4vw,2.2rem);margin-bottom:20px}
.bk-fallback{display:flex;flex-direction:column;gap:24px}
.bk-fallback__lead{color:var(--theme-muted)}
.bk-list{display:flex;flex-direction:column;gap:10px}
.bk-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:16px 18px}
.bk-item--selected{border-color:var(--theme-primary);box-shadow:0 0 0 2px var(--theme-primary)}
.bk-item__main{flex:1 1 220px;min-width:0}
.bk-item__name{font-size:1.0625rem}
.bk-item__sub{font-size:.875rem;color:var(--theme-muted)}
.bk-item__cta{flex:1 1 220px}
@media (min-width:600px){.bk-item__cta{flex:0 0 auto}}
.bk-notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:var(--theme-accent-soft);
  border-left:3px solid var(--theme-accent);color:var(--theme-text);font-size:.9375rem}
.bk-notice__icon{display:inline-flex;margin-top:.15em}
.bk-step{display:flex;flex-direction:column;gap:12px}
.bk-step__title{font-size:.8125rem;text-transform:uppercase;letter-spacing:.1em;color:var(--theme-muted);font-family:var(--theme-font-body);font-weight:700}
.bk-team{display:flex;flex-wrap:wrap;gap:8px}
.bk-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 14px 4px 4px;border-radius:999px;text-decoration:none;
  border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);font-weight:600;font-size:.9375rem}
.bk-pill>.icon{margin-left:10px;color:var(--theme-primary)}
.bk-pill:hover{border-color:var(--theme-primary)}
.bk-pill--on{border-color:var(--theme-primary);box-shadow:0 0 0 1px var(--theme-primary);background:var(--theme-primary-soft)}
.bk-pill--ghost{background:transparent}
.bk-pill__av{width:34px;height:34px;font-size:.75rem}
.bk-prov{display:flex;align-items:center;gap:14px;padding:14px 16px}
.bk-prov__av{width:52px;height:52px;font-size:1rem}
.bk-prov__name{font-weight:700;font-family:var(--theme-font-heading)}
.bk-prov__sub{font-size:.875rem;color:var(--theme-muted)}
.bk-contact{padding:18px;display:flex;flex-direction:column;gap:10px}
.bk-contact__list{display:flex;flex-wrap:wrap;gap:4px 18px}
.bk-contact__link{display:inline-flex;align-items:center;gap:.5em;min-height:44px;color:var(--theme-text);font-weight:600;text-underline-offset:4px}
.bk-contact__link .icon{color:var(--theme-primary)}

/* ---------- Agenda en preparación (tenant sin servicios) ---------- */
.prep{display:flex;flex-direction:column;gap:12px;padding:20px;text-align:left;max-width:560px;width:100%}
.prep__head{display:flex;gap:12px;align-items:center}
.prep__icon{display:inline-flex;flex:none;width:44px;height:44px;align-items:center;justify-content:center;border-radius:50%;
  background:var(--theme-primary-soft);color:var(--theme-primary)}
.prep__body{display:flex;flex-direction:column;gap:10px;min-width:0}
.prep__addr{display:flex;align-items:center;gap:.5em;font-size:.875rem;color:var(--theme-muted);overflow-wrap:anywhere}
.prep__title{font-family:var(--theme-font-heading);font-weight:650;font-size:1.125rem;line-height:1.3}
.prep__text{color:var(--theme-muted)}
.prep__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.prep__actions .btn{flex:1 1 auto}
.bio-card .prep{margin-top:4px}
.bk-fallback>.prep{max-width:none}

/* ---------- Índice del blog ---------- */
.blog-main{padding-block:40px 64px}
.blog-head{display:flex;flex-direction:column;gap:8px;margin-bottom:28px}
.blog-head__title{font-size:clamp(2rem,1.5rem + 2.4vw,3rem)}
[data-template="editorial"] .blog-head__title{font-family:var(--ed-serif);font-weight:400}
.blog-list{display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.blog-main--bio .blog-list{grid-template-columns:1fr}
.blog-card{display:flex;flex-direction:column;overflow:hidden}
.blog-card__img{width:100%;aspect-ratio:3/2;object-fit:cover}
.blog-card__body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 22px}
.blog-card__date{font-size:.8125rem;color:var(--theme-muted);letter-spacing:.04em}
.blog-card__title{font-size:1.3rem}
[data-template="editorial"] .blog-card__title{font-family:var(--ed-serif);font-weight:400;font-size:1.5rem}
.blog-card__title a{text-decoration:none;display:inline-block;min-height:44px;padding-block:4px}
.blog-card__title a:hover{text-decoration:underline;text-underline-offset:4px}
.blog-card__excerpt{color:var(--theme-muted)}

/* ---------- 404 / pausado ---------- */
.msg{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.msg__card{max-width:460px;width:100%;padding:36px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.msg__icon{display:inline-flex;width:56px;height:56px;align-items:center;justify-content:center;border-radius:50%;background:var(--theme-primary-soft);color:var(--theme-primary)}
.msg__icon .icon{width:26px;height:26px}
.msg__title{font-size:1.5rem}
.msg__text{color:var(--theme-muted)}
.msg__brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:6px}
.msg__logo{width:64px;height:64px;object-fit:contain;border-radius:12px}
.msg__avatar{width:72px;height:72px;font-size:1.4rem}
.msg__name{font-family:var(--theme-font-heading);font-weight:700;font-size:1.25rem}
.msg__sub{font-size:.875rem;color:var(--theme-muted)}
.msg__badge{display:inline-flex;align-items:center;gap:.45em;padding:.35em .85em;border-radius:999px;background:var(--theme-accent-soft);
  font-size:.8125rem;font-weight:600}
.msg__actions{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:6px}
.msg--tenant{min-height:0;padding-block:56px 72px}

/* ---------- Ajustes de área táctil (>=44px) ---------- */
.cl-loc__value.link{display:inline-flex;align-items:center;min-height:44px}
.ed-post__title a{display:inline-block;padding-block:6px;min-height:44px}
.site-footer a{min-width:44px;justify-content:center}
@media (min-width:760px) and (max-width:1023px){.ed-nav{display:none}}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- artículo del blog ---------- */
.post-main{padding-block:40px 24px}
.post{display:flex;flex-direction:column;gap:16px}
.post__date{font-size:.8125rem;color:var(--theme-muted);letter-spacing:.04em}
.post__title{font-family:var(--theme-font-heading);font-size:clamp(1.875rem,4vw + .5rem,2.75rem);line-height:1.15;font-weight:500;overflow-wrap:anywhere}
.post__lead{font-size:1.1875rem;color:var(--theme-muted);max-width:60ch}
.post__cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--theme-btn-radius)}
.post__body{margin-top:8px}
.post__cta{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;padding:20px;margin-top:16px}
.post__cta-text{font-weight:600}
