/* Lumi — «pantalla de reserva»: la página se comporta como una app.
   Pasos en tarjetas, chips, cinta de días, rejilla de horas y una barra fija
   abajo con el resumen. Nunito, un solo peso de acento: el lila.
   Móvil primero; la pantalla ancha se añade con min-width. */

:root {
  --leche: #fbf8f6;
  --lila: #ece6f5;
  --lila-2: #ddd3ee;
  --acento: #6b4fa0;
  --acento-2: #58408a;
  --texto: #2b2536;
  --suave: #6a6378;
  --linea: #e2dbeb;
  --blanco: #fff;
  --radio: 16px;
  --lado: 16px;
  --barra: 120px;              /* alto de la barra fija: lo mide el script */
  --f-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 900px) { :root { --lado: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--leche); color: var(--texto);
  font-family: var(--f-texto); font-size: 16px; line-height: 1.5;
  padding-bottom: var(--barra);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acento); }
p, ul, ol, dl, dd, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.2; }
address { font-style: normal; }
[id] { scroll-margin-top: 14px; scroll-margin-bottom: calc(var(--barra) + 14px); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.env { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--lado); padding-right: var(--lado); }

/* ── franja de arriba: nombre e idiomas, nada más ───────────────────────── */
.franja { border-bottom: 1px solid var(--linea); }
.franja__fila { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.marca { font-size: 20px; font-weight: 800; color: var(--acento); text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; min-height: 44px; }
.idiomas { display: flex; gap: 2px; }
.idiomas a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: 999px;
  font-family: var(--f-texto); font-size: 14px; font-weight: 800;
  color: var(--suave); text-decoration: none;
}
.idiomas a[aria-current="true"] { background: var(--lila); color: var(--acento); }
.idiomas a:hover { color: var(--acento); }

/* ── cuerpo: una columna en el móvil, dos en la pantalla ancha ──────────── */
.cuerpo { padding-top: 20px; padding-bottom: 8px; }
.lateral { margin-bottom: 20px; }
.perfil { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 38% 50%;
  border: 3px solid var(--blanco); box-shadow: 0 0 0 1px var(--linea); flex: none;
}
.perfil__nombre { font-size: 17px; font-weight: 800; line-height: 1.25; }
.perfil__dir { font-size: 14px; color: var(--suave); line-height: 1.35; margin-top: 2px; }
.habla {
  display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--lila); color: var(--acento-2); font-size: 14px; font-weight: 800;
}
.lateral h1 { font-size: 30px; line-height: 1.15; margin-top: 18px; letter-spacing: -.01em; }
.lema { margin-top: 8px; color: var(--suave); max-width: 34em; }
.portada {
  width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 40%;
  border-radius: var(--radio); margin-top: 16px;
}

@media (min-width: 960px) {
  .cuerpo { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 40px; }
  .lateral { position: sticky; top: 24px; margin-bottom: 0; }
  .lateral h1 { font-size: 38px; }
  .portada { aspect-ratio: 4 / 3; margin-top: 24px; }
}

/* ── pasos: tarjetas blancas ────────────────────────────────────────────── */
.reserva { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.paso {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 18px 16px; min-width: 0;
}
.paso__cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.paso__n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acento); color: var(--blanco); font-size: 15px; font-weight: 800;
}
.paso h2 { font-size: 20px; line-height: 1.25; }
.paso__ayuda { font-size: 14px; color: var(--suave); margin-top: 2px; line-height: 1.4; }
.paso--datos h2 { margin-bottom: 12px; }
.sin-js { font-size: 15px; background: var(--lila); border-radius: 12px; padding: 12px 14px; }
.js .sin-js { display: none; }
@media (min-width: 900px) { .paso { padding: 24px; } }

@media (prefers-reduced-motion: no-preference) {
  .paso--falta { animation: falta .7s ease-out; }
  @keyframes falta { 0% { box-shadow: 0 0 0 0 rgba(107, 79, 160, .55); } 100% { box-shadow: 0 0 0 14px rgba(107, 79, 160, 0); } }
}

/* pestañas de tipo de servicio */
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--lila); border-radius: 999px; }
.js .tabs { display: flex; }
.tab {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--f-texto); font-size: 15px; font-weight: 800; color: var(--acento-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--blanco); color: var(--acento); box-shadow: 0 1px 3px rgba(43, 37, 54, .15); }
.tab__n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--acento); color: var(--blanco); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.tab__n[hidden] { display: none; }
.paneles { margin-top: 14px; }
.panel[hidden] { display: none; }

/* chips de servicio */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip__in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip__cuerpo {
  position: relative; height: 100%; min-height: 84px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 12px 12px 10px; border: 2px solid var(--linea); border-radius: 14px; background: var(--blanco);
}
.chip__nombre { font-size: 15px; font-weight: 800; line-height: 1.25; padding-right: 22px; }
.chip__datos { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--suave); }
.chip__precio { font-size: 16px; font-weight: 800; color: var(--acento); }
.chip__cuerpo::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  border: 2px solid var(--linea); border-radius: 50%; background: var(--blanco);
}
.chip__in:checked + .chip__cuerpo { border-color: var(--acento); background: var(--lila); }
.chip__in:checked + .chip__cuerpo::after {
  border-color: var(--acento); background: var(--acento)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='m4.5 9.5 3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.chip__in:focus-visible + .chip__cuerpo { outline: 3px solid var(--acento); outline-offset: 2px; }
@media (hover: hover) { .chip__cuerpo:hover { border-color: var(--lila-2); } .chip__in:checked + .chip__cuerpo:hover { border-color: var(--acento); } }
@media (prefers-reduced-motion: no-preference) { .js .chip__cuerpo { transition: border-color .15s, background-color .15s; } }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cinta de días */
.dias {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-left: 16px; scrollbar-width: thin;
}
.dia {
  flex: none; width: 62px; min-height: 80px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 2px solid var(--linea); border-radius: 14px; background: var(--blanco); color: var(--texto);
  font-family: var(--f-texto); cursor: pointer;
}
.dia__sem { font-size: 13px; font-weight: 600; color: var(--suave); }
.dia__num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.dia__mes { font-size: 12px; font-weight: 600; color: var(--suave); }
.dia[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.dia[aria-pressed="true"] .dia__sem, .dia[aria-pressed="true"] .dia__mes { color: var(--lila); }
.dia:disabled { background: transparent; border-style: dashed; color: var(--suave); cursor: default; }
.dia:disabled .dia__num { font-weight: 600; opacity: .7; }
@media (hover: hover) { .dia:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--acento); } }
@media (prefers-reduced-motion: no-preference) { .js .dia { transition: background-color .15s, border-color .15s; } }
@media (min-width: 640px) {
  .dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .dia { width: auto; }
}

/* rejilla de horas */
.franja-hora + .franja-hora { margin-top: 14px; }
.franja-hora__nombre { font-size: 14px; font-weight: 800; color: var(--suave); margin-bottom: 8px; }
.horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hora {
  min-height: 50px; padding: 4px 2px; border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco); color: var(--texto);
  font-family: var(--f-texto); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; cursor: pointer;
}
.hora__h { font-size: 16px; font-weight: 800; }
.hora__d { font-size: 12px; font-weight: 800; color: var(--acento); }
.hora--feliz { border-color: var(--lila-2); background: var(--lila); }
.hora[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.hora[aria-pressed="true"] .hora__d { color: var(--blanco); }
.hora:disabled { background: transparent; border-color: var(--linea); color: var(--suave); text-decoration: line-through; cursor: default; }
.hora:disabled .hora__h { font-weight: 600; opacity: .75; }
@media (hover: hover) { .hora:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--acento); } }
@media (prefers-reduced-motion: no-preference) { .js .hora { transition: background-color .15s, border-color .15s; } }
@media (min-width: 560px) { .horas { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 960px) { .horas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .horas { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.nota-feliz { margin-top: 14px; font-size: 14px; color: var(--suave); line-height: 1.45; }
.nota-feliz b { color: var(--acento-2); }

/* campos */
.campo { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.campo__op { font-weight: 400; color: var(--suave); }
.entrada {
  display: block; width: 100%; margin-bottom: 14px; padding: 12px 14px;
  border: 2px solid var(--linea); border-radius: 12px; background: var(--leche); color: var(--texto);
  font-family: var(--f-texto); font-size: 16px; line-height: 1.4; min-height: 48px;
}
textarea.entrada { resize: vertical; min-height: 76px; margin-bottom: 0; }
.entrada::placeholder { color: #8a8398; }
.entrada:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(107, 79, 160, .22); }

/* ── bloques de abajo ───────────────────────────────────────────────────── */
.centro { min-width: 0; }
.bloque { margin-top: 40px; }
.bloque h2 { font-size: 22px; margin-bottom: 14px; }

.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.galeria li { border-radius: 12px; overflow: hidden; background: var(--lila); aspect-ratio: 1; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }

.reglas { display: grid; gap: 10px; }
.reglas li {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px;
}
.reglas b { font-size: 16px; font-weight: 800; }
.reglas li > span:not(.etiqueta) { font-size: 15px; color: var(--suave); line-height: 1.45; }
.etiqueta {
  align-self: flex-start; margin-bottom: 2px; padding: 2px 10px; border-radius: 999px;
  background: var(--lila); color: var(--acento-2); font-size: 13px; font-weight: 800;
}
@media (min-width: 640px) { .reglas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.donde {
  display: grid; gap: 18px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 16px;
}
.horario { display: grid; gap: 10px; margin: 0; }
.horario div { display: flex; flex-direction: column; }
.horario dt { font-weight: 800; }
.horario dd { color: var(--suave); }
.dir p + p { margin-top: 12px; }
.dir__botones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .donde { padding: 24px; } .dir__botones { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 640px) and (max-width: 959px) { .donde { grid-template-columns: 1fr 1fr; } }

/* botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-texto); font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.boton--claro { background: var(--lila); color: var(--acento-2); }
.boton--claro:hover { background: var(--lila-2); }
.boton--wa { background: var(--acento); color: var(--blanco); }
.boton--wa:hover { background: var(--acento-2); }
.boton--inactivo { background: #d9d2e6; color: #574f69; cursor: default; }
.boton--inactivo:hover { background: #d9d2e6; }
.boton--wa:focus-visible { outline-color: var(--texto); }

/* ── pie ─────────────────────────────────────────────────────────────────── */
.pie { margin-top: 40px; padding: 24px 0 32px; border-top: 1px solid var(--linea); }
.demo { font-size: 14px; color: var(--suave); line-height: 1.5; max-width: 52em; }
.demo b { color: var(--texto); }

/* ── barra fija de abajo ─────────────────────────────────────────────────── */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--blanco); border-top: 1px solid var(--linea);
  box-shadow: 0 -6px 20px rgba(43, 37, 54, .08);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
}
.barra__fila { display: flex; flex-direction: column; gap: 10px; }
.resumen { min-width: 0; }
.resumen__uno { font-size: 15px; font-weight: 800; line-height: 1.3; }
.resumen__dos { font-size: 14px; color: var(--suave); line-height: 1.3; margin-top: 1px; }
.resumen__precio { color: var(--acento); }
.resumen__antes { font-weight: 600; color: var(--suave); }
.resumen__feliz {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
  background: var(--lila); color: var(--acento-2); font-size: 13px; font-weight: 800;
}
.barra .boton { width: 100%; }
@media (min-width: 720px) {
  .barra__fila { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .barra .boton { width: auto; min-width: 260px; flex: none; }
  .resumen__uno { font-size: 17px; }
  .resumen__dos { font-size: 15px; }
}

/* ── Telegram рядом с WhatsApp (только украинская версия) ────────────────── */
.barra__botones { display: flex; gap: 8px; }
.barra__botones .boton { width: auto; flex: 1 1 auto; padding: 0 12px; font-size: 15px; }
.barra__botones .boton--tg { flex: 0 0 auto; }
.tg__pre { display: none; }
@media (min-width: 480px) { .tg__pre { display: inline; } .barra__botones .boton { padding: 0 20px; font-size: 16px; } }
@media (min-width: 720px) {
  .barra__botones { flex: none; }
  .barra__botones .boton { flex: none; min-width: 0; }
  .barra__botones .boton--wa { min-width: 240px; }
}
/* три кнопки в блоке адреса (украинская версия): переносятся, а не растягивают колонку */
@media (min-width: 640px) { .dir__botones--tres { display: flex; flex-wrap: wrap; } .dir__botones--tres .boton { flex: 1 1 210px; } }
