/* ============================================================
   Habitar la Vida — paleta tomada de la imagen de referencia:
   lavanda profunda para texto, crema cálido de fondo, melocotón
   y ocre para acentos, verde salvia para lo successful.
   ============================================================ */

:root {
  --ink: #4a3a6b;
  --ink-soft: #6b5a8c;
  --ink-faint: #9b8fb5;
  --cream: #fdf6ec;
  --cream-2: #f9ebdb;
  --peach: #f7d9c4;
  --peach-deep: #efb894;
  --lilac: #cfc3e4;
  --lilac-deep: #b3a2d4;
  --sage: #9aae90;
  --gold: #d4a05a;
  --white: #fffdfa;
  --line: rgba(74, 58, 107, .12);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(74, 58, 107, .07);
  --shadow: 0 10px 40px rgba(74, 58, 107, .10);
  --shadow-lg: 0 24px 70px rgba(74, 58, 107, .16);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Caveat', cursive;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1120px;

  /* Escalas de los bloques. Los valores de size se calculan en JS a partir de
     styles.js y llegan como --blk-size ya en px/rem; estos son los defaults. */
  --blk-font: var(--sans);
  --blk-size: 1.05rem;
  --blk-color: var(--ink);
  --blk-align: left;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* Fondo suave con wash de melocotón/lila, como la acuarela de la imagen. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(247, 217, 196, .75), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, rgba(207, 195, 228, .55), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(179, 162, 212, .35), transparent 65%),
    var(--cream);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--lilac); color: var(--ink); }

/* ---------- Tipografía ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); }

.prose p { margin-bottom: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { padding: 92px 0; position: relative; }
section.alt { background: rgba(255, 253, 250, .55); }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-ghost:hover { background: rgba(255, 255, 255, .6); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(253, 246, 236, .82);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand b { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; }
.brand span { font-size: .58rem; letter-spacing: .3em; color: var(--gold); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: .89rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }

/* ---------- Hero ---------- */
/* Las manchas de color (.hero-art) se salen a proposito del viewport para dar
   profundidad. Sin esto generan scroll horizontal en pantallas anchas. */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero-in { max-width: 720px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 1.3rem;
}
.hero .sub { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--ink-soft); margin-bottom: 2.4rem; }
.hero .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--ink);
  max-width: 540px;
  margin: 0 auto 2.6rem;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero-img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}
.hero-art {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: .55;
}
.hero-art.a { width: 420px; height: 420px; background: var(--peach); top: -80px; right: -120px; }
.hero-art.b { width: 360px; height: 360px; background: var(--lilac); bottom: -60px; left: -100px; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.scroll-hint::after {
  content: '↓';
  font-size: 1rem;
  animation: nudge 1.9s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Sobre mi ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--peach), var(--lilac));
}
.about-photo.empty { display: grid; place-items: center; color: var(--ink-faint); font-size: .9rem; }

/* ---------- Propuestas ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(140deg, var(--cream-2), var(--lilac)); }
.card-img.empty { display: grid; place-items: center; color: var(--ink-faint); font-size: .85rem; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.badge {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 160, 90, .12);
  padding: .32rem .7rem;
  border-radius: 999px;
}
.card h3 { margin: 0; }
.card .price { font-weight: 600; color: var(--ink-soft); font-size: .95rem; margin-top: auto; }
.card .desc { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Formación ---------- */
.training-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px 40px; }
.training-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.training-item::before {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .65rem;
}

/* ---------- Turnos ---------- */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--serif); font-size: 1.3rem; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s;
}
.cal-nav button:hover { background: var(--cream-2); }

.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 7px; }
.cal-dow span { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .09em; color: var(--ink-faint); text-transform: uppercase; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .88rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s;
  position: relative;
}
.cal-day:hover:not(:disabled) { border-color: var(--lilac-deep); transform: scale(1.06); }
.cal-day:disabled { background: transparent; color: var(--ink-faint); cursor: not-allowed; opacity: .38; }
.cal-day.today { border-color: var(--gold); font-weight: 700; }
.cal-day.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cal-day.closed { text-decoration: line-through; }
.cal-day.other { visibility: hidden; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.slot {
  padding: .8rem .4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.slot:hover { border-color: var(--lilac-deep); background: var(--cream-2); }
.slot.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.panel-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 1.3rem; }
.stack { display: flex; flex-direction: column; gap: 1.05rem; }
.hint { font-size: .84rem; color: var(--ink-faint); }
.placeholder { color: var(--ink-faint); font-size: .92rem; font-style: italic; padding: 1.2rem 0; }

/* ---------- Formularios ---------- */
label.fld { display: flex; flex-direction: column; gap: .42rem; font-size: .86rem; font-weight: 600; }
label.fld span small { font-weight: 400; color: var(--ink-faint); }

/* Campos completados con la cuenta de la persona: el borde lo aclara para que
   se entienda que ya estan listos y no hace falta escribirlos. El texto de la
   marca sale del contenido editable (form.autofilled_tag). */
label.fld.autofilled > span::after {
  content: var(--tag-autofilled, '· de tu cuenta');
  font-weight: 400;
  color: var(--sage);
  margin-left: .35rem;
}
label.fld.autofilled input { border-color: rgba(154, 174, 144, .6); background: rgba(154, 174, 144, .07); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%;
  padding: .74rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--sans);
  font-size: .93rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lilac-deep);
  box-shadow: 0 0 0 3px rgba(179, 162, 212, .2);
}
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

/* ---------- Alertas ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; }
.alert-err { background: rgba(200, 90, 90, .1); color: #a13c3c; }
.alert-ok { background: rgba(154, 174, 144, .18); color: #4f6b46; }
[hidden] { display: none !important; }

/* ---------- Confirmación ---------- */
.confirm-ico {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(154, 174, 144, .2);
  color: var(--sage);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row b { font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.8rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .18s, box-shadow .18s;
}
a.contact-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--peach), var(--lilac));
  color: var(--ink);
  font-size: 1.05rem;
  flex: 0 0 42px;
}
.contact-item small { display: block; color: var(--ink-faint); font-size: .78rem; }

/* ---------- Pie ---------- */
footer.site {
  background: var(--ink);
  color: var(--cream-2);
  padding: 56px 0 34px;
  text-align: center;
}
footer.site .brand-name { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .5rem; }
footer.site .note { font-family: var(--serif); font-style: italic; color: var(--lilac); font-size: 1.05rem; }
footer.site .credits { font-size: .84rem; opacity: .7; margin-top: 1.4rem; }
footer.site .rights { font-size: .76rem; opacity: .5; margin-top: .5rem; }
footer.site .legal-links {
  display: flex; gap: .55rem; justify-content: center;
  margin-top: 1.1rem; font-size: .8rem;
}
footer.site .legal-links a { opacity: .8; border-bottom: 1px solid rgba(255, 253, 250, .3); }
footer.site .legal-links a:hover { opacity: 1; border-bottom-color: #fff; }
footer.site .legal-links span { opacity: .45; }

/* ---------- Páginas legales (privacidad, términos) ---------- */
.legal-main { padding: 68px 0 80px; max-width: 760px; }
.legal-main h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.08; margin-bottom: 1.2rem; }
.legal-intro { margin-bottom: 3rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }

.legal-body h2 {
  font-size: 1.5rem;
  margin: 2.6rem 0 .8rem;
  color: var(--ink);
}
.legal-body p { margin-bottom: 1rem; color: var(--ink-soft); }
.legal-body ul { margin: 0 0 1.2rem 1.1rem; color: var(--ink-soft); }
.legal-body li { margin-bottom: .6rem; }
.legal-body li::marker { color: var(--gold); }
.legal-body a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.legal-body a:hover { border-bottom-color: var(--ink); }
.legal-body b { color: var(--ink); font-weight: 600; }

.hlv-name { color: var(--ink); font-weight: 600; }

.legal-date {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-faint);
}

.legal-foot { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 3rem; }

@media (max-width: 620px) {
  .legal-main { padding: 44px 0 60px; }
}

/* ============================================================
   BLOQUES — contenido libre que agrega la administradora
   ============================================================ */
.blocks-host:empty { display: none; }
.blocks-host { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }

/* El estilo inline lo arma el cliente a partir del catalogo: la base nunca
   escribe CSS crudo, solo keys (font, size, color, align). */
.blk { text-align: var(--blk-align, left); }
.blk-body {
  font-family: var(--blk-font);
  font-size: var(--blk-size);
  color: var(--blk-color);
  line-height: 1.6;
}
.blk-body > :first-child { margin-top: 0; }
.blk-body > :last-child { margin-bottom: 0; }
.blk-body p { margin-bottom: .8em; }
.blk-body ul, .blk-body ol { margin: .6em 0 .6em 1.2em; }
.blk-body li { margin-bottom: .3em; }
.blk-body a { color: var(--blk-color); border-bottom: 1px solid var(--gold); }
.blk-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  font-style: italic;
}
.blk-body h1, .blk-body h2, .blk-body h3 { font-family: var(--serif); margin-bottom: .4em; }
.blk-body h1 { font-size: 2.2em; line-height: 1.1; }
.blk-body h2 { font-size: 1.7em; line-height: 1.15; }
.blk-body h3 { font-size: 1.3em; line-height: 1.2; }

.blk-img { display: flex; justify-content: center; }
.blk-img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.blk-img.full img { width: 100%; max-width: none; box-shadow: none; border-radius: 0; }

/* Vista previa en el panel */
.blk-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  background: var(--white);
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.blk-mini.oculto { opacity: .5; }
.blk-mini .ico { font-size: 1.1rem; line-height: 1.3; flex: 0 0 auto; }
.blk-mini .cuerpo { flex: 1; min-width: 0; }
.blk-mini .texto {
  font-size: .86rem;
  color: var(--ink-soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.blk-mini .meta {
  font-size: .68rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.blk-mini .acciones { display: flex; gap: .25rem; flex: 0 0 auto; }
.blk-mini .acciones button {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: .95rem;
  padding: .2rem .35rem; border-radius: 6px; line-height: 1;
}
.blk-mini .acciones button:hover { background: rgba(74,58,107,.08); color: var(--ink); }
.blk-mini .acciones button.peligro:hover { background: rgba(200,90,90,.12); color: #a13c3c; }

/* ============================================================
   LAYOUT — orden de la pagina, puntos de insercion y paleta
   ============================================================ */

/* Los items son invisibles por defecto: solo envuelven y ordenan. Que
   wrappers con display:block partirian las secciones en cajas distintas. */
#lienzo > .item { display: contents; }

/* El fondo alterno se recalcula por posicion, no por clase fija. */
section[data-sec] { scroll-margin-top: 90px; }

/* ---- Puntos de insercion ---- */
.punto {
  height: 8px;
  margin: 0 auto;
  position: relative;
  display: none;
}
body.arrastrando-algo .punto { display: block; }
.punto::before {
  content: '';
  position: absolute;
  inset: 3px 0;
  border-radius: 3px;
  background: transparent;
  transition: background .12s, box-shadow .12s;
}
.punto.encima::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 90, .18);
}
.punto > span {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity .12s;
  white-space: nowrap;
  pointer-events: none;
}
.punto.encima > span { opacity: 1; }

/* ---- Item que se esta arrastrando ---- */
.item.arrastrando { opacity: .35; }

.blk-oculto { opacity: .35; outline: 2px dashed var(--lilac-deep); outline-offset: 6px; }
.blk-fantasma { color: var(--ink-faint); font-style: italic; text-align: center; padding: 1rem; }

/* ---- Paleta ---- */
.paleta {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 92;
  width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.paleta.visible { display: flex; }

.pal-cab {
  display: flex;
  align-items: center;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.pal-cab b { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.pal-x {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 1.15rem; line-height: 1;
  padding: .1rem .35rem; border-radius: 6px;
}
.pal-x:hover { background: rgba(74,58,107,.08); color: var(--ink); }

.pal-piezas { display: flex; gap: .45rem; padding: .7rem .9rem; }
.pal-pieza {
  flex: 1;
  padding: .6rem .3rem;
  border: 1px dashed var(--lilac-deep);
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1.05rem;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  color: var(--ink);
  /* Sin esto el browser scrollea la pagina en vez de dejarte arrastrar. */
  touch-action: none;
}
.pal-pieza span { font-size: .76rem; font-weight: 600; }
.pal-pieza:hover { border-color: var(--gold); background: var(--cream-2); }
.pal-pieza:active { cursor: grabbing; }

.pal-sep {
  padding: .5rem .9rem .3rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.pal-lista { max-height: 220px; overflow-y: auto; padding: 0 .5rem .5rem; }
.pal-fila {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .4rem;
  border-radius: 8px;
  font-size: .84rem;
}
.pal-fila:hover { background: var(--cream); }
.agarre { cursor: grab; color: var(--ink-faint); font-size: .9rem; touch-action: none; }
.agarre:active { cursor: grabbing; }
.pal-nombre { flex: 1; }

.pal-acciones { padding: .5rem .9rem .7rem; border-top: 1px solid var(--line); }
.pal-mini {
  width: 100%;
  padding: .4rem;
  border: 1px solid var(--line);
  background: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.pal-mini:hover { border-color: var(--gold); color: var(--ink); }

.pal-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 91;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
}
.pal-fab.oculto { display: none; }
.pal-fab:hover { transform: translateY(-2px); }

#palAviso {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-size: .85rem;
  z-index: 250;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 88vw;
  text-align: center;
}
#palAviso.ver { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Con el dock abierto y la paleta a la izquierda, no se pisan. */
body.editing.dock-open .paleta,
body.editing.dock-open .pal-fab { display: none; }

@media (max-width: 900px) {
  /* En mobile la paleta tapaba los horarios del calendario. Se achica a
     una barra chata en la base y se despliega a pedido. */
  .paleta {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-height: 62vh;
    overflow-y: auto;
  }
  .paleta:not(.desplegada) .pal-sep,
  .paleta:not(.desplegada) .pal-lista,
  .paleta:not(.desplegada) .pal-acciones { display: none; }
  .paleta .pal-cab { cursor: pointer; }

  .pal-fab { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   PANEL FLOTANTE DE EDICIÓN
   Solo existe para la administradora. En desktop se dockea a la
   derecha (el body se ensancha para no tapar contenido); en mobile
   ocupa el ancho completo con la barra de tabs abajo, al alcance
   del pulgar.
   ============================================================ */

.dock-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  place-items: center;
}
body.editing .dock-fab { display: grid; }
.dock-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.dock {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  z-index: 95;
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(74, 58, 107, .14);
  display: none;
  flex-direction: column;
}
body.editing.dock-open .dock { display: flex; }
/* El sitio se corre para que el dock no tape nada. */
body.editing.dock-open { padding-right: 400px; }

.dock-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.1rem .8rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.dock-head .punto {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 1.8s infinite;
}
.dock-head h2 { font-family: var(--serif); font-size: 1.15rem; }
.dock-head .cerrar {
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 1.3rem; line-height: 1;
  padding: .2rem .45rem; border-radius: 8px;
}
.dock-head .cerrar:hover { background: rgba(74,58,107,.08); color: var(--ink); }

.dock-tabs {
  display: flex;
  gap: .3rem;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.dock-tab {
  padding: .4rem .8rem;
  border: 1px solid transparent;
  background: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
}
.dock-tab.on { background: var(--white); color: var(--ink); border-color: var(--line); }

.dock-body { flex: 1; overflow-y: auto; padding: 1.1rem; }
.dock-pane { display: none; }
.dock-pane.on { display: block; }

/* Barra de secciones dentro de la pestaña Bloques */
.dock-sec {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dock-sec button {
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.dock-sec button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.dock-add { display: flex; gap: .5rem; margin-bottom: 1.1rem; }
.dock-add button {
  flex: 1;
  padding: .6rem;
  border: 1px dashed var(--lilac-deep);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.dock-add button:hover { border-color: var(--gold); background: var(--cream-2); }

.dock-lista { display: flex; flex-direction: column; gap: .5rem; }
.dock-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-faint);
  font-size: .86rem;
  font-style: italic;
}

/* Editor de bloque */
.blk-editor {
  border: 1px solid var(--lilac-deep);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.blk-editor h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.blk-fila { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.blk-fila > span { font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.blk-fila textarea { font-size: .88rem; min-height: 100px; }
.blk-fila select, .blk-fila input { font-size: .85rem; padding: .5rem .6rem; }

.blk-alinear { display: flex; gap: .35rem; }
.blk-alinear button {
  flex: 1;
  padding: .45rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--ink-soft);
}
.blk-alinear button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.blk-color { display: flex; gap: .4rem; flex-wrap: wrap; }
.blk-color button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.blk-color button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--white) inset; }

.blk-editor .acciones { display: flex; gap: .5rem; margin-top: .3rem; }
.blk-editor .acciones .btn { flex: 1; justify-content: center; }

.blk-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: .4rem;
  margin-top: .5rem;
  max-height: 150px;
  overflow-y: auto;
}
.blk-galeria button {
  aspect-ratio: 1; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; background: none;
}
.blk-galeria button.on { border-color: var(--gold); }
.blk-galeria img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  /* El cuerpo no se ensancha: el dock es una capa por encima. */
  body.editing.dock-open { padding-right: 0; }
  .dock { width: 100%; border-left: 0; }
  .dock-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* Barra de tabs fija abajo, al alcance del pulgar. */
  .dock-tabs {
    order: 3;
    position: sticky;
    bottom: 0;
    background: var(--cream);
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px rgba(74,58,107,.07);
  }
  .dock-tab { flex: 1; padding: .6rem .4rem; }
}

@media (max-width: 620px) {
  .dock-body { padding: .9rem; }
}

/* ============================================================
   MODO EDICIÓN — visible solo para la administradora
   ============================================================ */
body.editing [data-edit] { position: relative; }
body.editing [data-edit]:hover { outline: 1.5px dashed var(--lilac-deep); outline-offset: 5px; border-radius: 4px; }

body.editing [data-edit]:hover::after {
  content: '✎';
  position: absolute;
  top: -12px; right: -10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: .72rem;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
body.editing [data-edit].no-dot:hover::after { display: none; }

.edit-bar {
  position: fixed;
  top: 74px; left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: none;
  align-items: center;
  gap: .9rem;
  padding: .6rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--lilac-deep);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .85rem;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
/* La barra flotante vieja la reemplaza el dock lateral: la sacamos de
   pantalla para que no queden dos controles de edicion compitiendo. */
.edit-bar { display: none !important; }
.edit-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Editor inline */
.ed {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(74, 58, 107, .34);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.ed-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
}
.ed-box h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.ed-box .sub { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.3rem; }
.ed-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.4rem; }
.ed-preview { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.ed-preview .cal-day, .ed-preview .slot { pointer-events: none; }

/* Selector de imágenes ya subidas */
.img-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: .8rem; max-height: 190px; overflow-y: auto; }
.img-picker button { aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: none; }
.img-picker button.sel { border-color: var(--gold); }
.img-picker button img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 320px; }
  .booking-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 24px 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .brand span { display: none; }
  .edit-bar { top: 66px; font-size: .78rem; padding: .5rem .9rem; gap: .6rem; }
}

@media (max-width: 620px) {
  section { padding: 64px 0; }
  .hero { min-height: auto; padding: 78px 0 96px; }
  .card-body { padding: 22px; }
}