/* Sitio web — piel compartida: tema, base, botones, cabecera, pie y WhatsApp.

   La usan el sitio (`site.html`) y, con «Usar el diseño del sitio» (Fase 2), la
   tienda, /citas y /alquiler. Todo cuelga de variables `--st-*` que pone
   `site-kit.js::applyTheme`; los valores de aquí son los de respaldo.

   Independiente de `main.css` (el CRM) y de `shop.css`: lo ve gente sin login.
   Al tocarlo hay que subir su `?v=` en las cuatro páginas que lo cargan. */

:root {
  --st-primary: #2563eb;
  --st-primary-ink: #ffffff;
  --st-accent: #2563eb;
  --st-accent-ink: #ffffff;
  --st-bg: #ffffff;
  --st-surface: #f5f7fb;
  --st-text: #111827;
  --st-muted: color-mix(in srgb, var(--st-text) 62%, var(--st-bg));
  --st-line: color-mix(in srgb, var(--st-text) 12%, var(--st-bg));
  --st-card: color-mix(in srgb, var(--st-bg) 92%, var(--st-surface));
  --st-dark: color-mix(in srgb, var(--st-text) 90%, #000);
  --st-font-head: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --st-font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --st-radius: 12px;
  --st-radius-sm: 8px;
  --st-radius-btn: 12px;
  --st-shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 32px -14px rgba(15,23,42,.22);
  --st-width: 1200px;
  --st-space: 1;
  --st-gutter: clamp(16px, 4vw, 32px);
  --st-header-h: 72px;
}
.st-bg-dark { --st-card: color-mix(in srgb, var(--st-bg) 86%, #fff); }

html.st-site, html.st-site body { margin: 0; }
html.st-noscroll { overflow: hidden; }
.st-site *, .st-site *::before, .st-site *::after,
.st-chrome-top *, .st-chrome-bottom * { box-sizing: border-box; }
html.st-site body {
  font-family: var(--st-font-body);
  background: var(--st-bg);
  color: var(--st-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.st-site img { max-width: 100%; display: block; }
/* Prioridad cero (`:where`): cualquier componente que fije su color gana. */
:where(.st-site) a { color: inherit; }
.st-site h1, .st-site h2, .st-site h3, .st-site h4 {
  font-family: var(--st-font-head);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}
.st-site h1 { font-size: clamp(2.2rem, 4.8vw + .4rem, 4rem); }
.st-site h2 { font-size: clamp(1.75rem, 2.8vw + .5rem, 2.75rem); }
.st-site h3 { font-size: clamp(1.15rem, .6vw + .95rem, 1.4rem); }
.st-site p { margin: 0 0 1em; }
.st-wrap { width: 100%; max-width: var(--st-width); margin: 0 auto; padding: 0 var(--st-gutter); }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .82em 1.5em; min-height: 46px;
  border-radius: var(--st-radius-btn);
  border: 2px solid var(--st-primary);
  background: var(--st-primary); color: var(--st-primary-ink) !important;
  font: 600 .98rem/1.2 var(--st-font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.st-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--st-primary) 65%, transparent); }
.st-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--st-primary) 40%, transparent); outline-offset: 2px; }
.st-btn-alt { background: transparent; color: var(--st-text) !important; border-color: var(--st-line); }
.st-btn-alt:hover { border-color: var(--st-text); box-shadow: none; }
.st-btn-block { width: 100%; }
html.st-btn-outline .st-btn:not(.st-btn-alt) { background: transparent; color: var(--st-primary) !important; }
html.st-btn-outline .st-btn:not(.st-btn-alt):hover { background: var(--st-primary); color: var(--st-primary-ink) !important; }
/* Sobre fondos de color o imagen los botones se invierten. Los selectores
   llevan `html` delante para ganarle a `html.st-btn-outline …` (si no, en el
   tema «con borde» el botón quedaba del mismo color que el fondo: invisible). */
html .st-on-color .st-btn:not(.st-btn-alt) { background: #fff; border-color: #fff; color: #111827 !important; }
html .st-sec-accent.st-on-color .st-btn:not(.st-btn-alt) { color: var(--st-primary) !important; }
html.st-btn-outline .st-on-color .st-btn:not(.st-btn-alt) { background: transparent; border-color: #fff; color: #fff !important; }
html.st-btn-outline .st-on-color .st-btn:not(.st-btn-alt):hover { background: #fff; color: #111827 !important; }
.st-on-color .st-btn-alt { color: #fff !important; border-color: rgba(255,255,255,.6); }
.st-on-color .st-btn-alt:hover { border-color: #fff; }

.st-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent;
  color: inherit; cursor: pointer;
}
.st-icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ── Anuncio ─────────────────────────────────────────────────────────────── */
.st-announce {
  background: var(--st-text); color: var(--st-bg);
  text-align: center; font-size: .86rem; font-weight: 500; padding: 9px var(--st-gutter);
}
.st-announce a { color: inherit; text-decoration: none; }
.st-announce a:hover { text-decoration: underline; }

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.st-header {
  position: relative; z-index: 50;
  background: color-mix(in srgb, var(--st-bg) 92%, transparent);
  border-bottom: 1px solid var(--st-line);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  color: var(--st-text);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.st-header.st-sticky { position: sticky; top: 0; }
.st-header.st-scrolled { box-shadow: 0 8px 24px -18px rgba(15,23,42,.35); }
.st-header-in { display: flex; align-items: center; gap: 24px; min-height: var(--st-header-h); }
.st-brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; flex-shrink: 0; min-width: 0; color: inherit; }
.st-brand img { max-height: 44px; max-width: 200px; width: auto; object-fit: contain; }
.st-brand span { font: 700 1.3rem/1.1 var(--st-font-head); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-nav { display: flex; align-items: center; gap: 4px; }
.st-nav-link {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px;
  font: 500 .95rem/1.2 var(--st-font-body); text-decoration: none; color: inherit;
  background: none; border: 0; cursor: pointer; position: relative;
}
.st-nav-link:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.st-nav-link.active, .st-nav-group.active > .st-nav-link { color: var(--st-primary); }
.st-nav-group { position: relative; display: flex; align-items: center; }
.st-nav-group .st-nav-link { padding-right: 4px; }
.st-nav-caret { border: 0; background: none; color: inherit; cursor: pointer; padding: 6px 4px; display: inline-flex; border-radius: 6px; }
.st-nav-dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--st-bg); color: var(--st-text);
  border: 1px solid var(--st-line); border-radius: var(--st-radius-sm);
  box-shadow: var(--st-shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.st-nav-dd a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: .93rem; }
.st-nav-dd a:hover { background: var(--st-surface); }
.st-nav-group.open .st-nav-dd,
.st-nav-group:hover .st-nav-dd,
.st-nav-group:focus-within .st-nav-dd { opacity: 1; visibility: visible; transform: none; }
.st-header-actions { display: flex; align-items: center; gap: 8px; }
.st-header-cta { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }
.st-burger { display: none; }

.st-header-centered .st-header-in { flex-wrap: wrap; justify-content: center; gap: 4px 24px; padding: 14px var(--st-gutter) 8px; }
.st-header-centered .st-brand { margin: 0 auto; order: 0; flex-basis: 100%; justify-content: center; }
.st-header-centered .st-nav { order: 1; }
.st-header-centered .st-header-actions { order: 2; }
.st-header-minimal .st-nav { display: none; }
.st-header-minimal .st-burger { display: inline-flex; }

/* Transparente encima de una portada a pantalla completa. */
.st-header.st-transparent:not(.st-scrolled) {
  position: absolute; left: 0; right: 0; top: auto;
  background: transparent; border-color: transparent; color: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.st-header.st-transparent.st-sticky { position: fixed; top: 0; left: 0; right: 0; }
.st-header.st-transparent.st-sticky.st-scrolled { background: color-mix(in srgb, var(--st-bg) 94%, transparent); }
.st-header.st-transparent:not(.st-scrolled) .st-nav-link.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.st-header.st-transparent:not(.st-scrolled) .st-header-cta { background: #fff; border-color: #fff; color: #111827 !important; }
/* Sin «logo claro», el logo normal se pinta en blanco sobre la portada. */
.st-header.st-transparent:not(.st-scrolled) .st-brand img.st-logo-auto-light { filter: brightness(0) invert(1); }

/* ── Buscador, cuenta y carrito de la tienda (en todas las páginas) ─────── */
.st-sa { position: relative; color: inherit; text-decoration: none; }
.st-cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--st-primary); color: var(--st-primary-ink);
  font: 700 .68rem/18px var(--st-font-body); text-align: center;
}
.st-cart-count[data-empty="1"] { display: none; }
/* Punto verde: hay sesión de cliente (precios de su lista). */
.st-account.is-in::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a; box-shadow: 0 0 0 2px var(--st-bg);
}
.st-searchrow {
  max-height: 0; overflow: hidden; border-top: 1px solid transparent;
  transition: max-height .25s ease, border-color .25s ease;
}
.st-searchrow.open { max-height: 90px; border-top-color: var(--st-line); }
.st-searchrow-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.st-search-input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--st-line); background: transparent;
  color: inherit; font: 400 1rem/1.4 var(--st-font-body); padding: 8px 0; outline: none;
}
.st-search-input:focus { border-bottom-color: var(--st-text); }
.st-header.st-transparent:not(.st-scrolled) .st-cart-count { background: #fff; color: #111827; }

/* ── Menú móvil ──────────────────────────────────────────────────────────── */
.st-drawer {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,14,25,.45);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.st-drawer.open { opacity: 1; visibility: visible; }
.st-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--st-bg); color: var(--st-text);
  padding: 16px 20px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  transform: translateX(100%); transition: transform .25s ease;
}
.st-drawer.open .st-drawer-panel { transform: none; }
.st-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-drawer-nav { display: flex; flex-direction: column; }
.st-dnav-link {
  display: flex; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--st-line);
  text-decoration: none; font: 600 1.05rem/1.2 var(--st-font-body); color: inherit; background: none;
  text-align: left; cursor: pointer; width: 100%;
}
.st-dnav-link.active { color: var(--st-primary); }
.st-dnav-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--st-line); }
.st-dnav-group .st-dnav-link { border-bottom: 0; }
.st-dnav-caret { border: 0; background: none; color: inherit; padding: 10px; cursor: pointer; }
.st-dnav-dd { grid-column: 1 / -1; display: none; flex-direction: column; padding: 0 0 10px 12px; }
.st-dnav-dd a { padding: 9px 4px; text-decoration: none; color: var(--st-muted); }
.st-dnav-group.open .st-dnav-dd { display: flex; }
.st-drawer-social { margin-top: auto; }

/* ── Redes ───────────────────────────────────────────────────────────────── */
.st-social { display: flex; gap: 8px; flex-wrap: wrap; }
.st-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--st-line); color: inherit; transition: background .2s, color .2s, border-color .2s;
}
.st-social a:hover { background: var(--st-primary); border-color: var(--st-primary); color: var(--st-primary-ink); }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.st-footer { background: var(--st-dark); color: color-mix(in srgb, #fff 82%, var(--st-dark)); font-size: .95rem; }
.st-footer a { color: inherit; text-decoration: none; }
.st-footer a:hover { color: #fff; }
.st-footer .st-social a { border-color: rgba(255,255,255,.18); }
.st-footer h4 { font: 600 .8rem/1.2 var(--st-font-body); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.st-fcols {
  display: grid; gap: 36px;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  padding: clamp(48px, 7vw, 80px) 0 40px;
}
.st-fbrand p { margin: 14px 0 18px; max-width: 34ch; line-height: 1.6; }
.st-flogo { max-height: 46px; max-width: 200px; width: auto; }
.st-flogo-box { display: inline-flex; align-items: center; background: #fff; padding: 8px 12px; border-radius: var(--st-radius-sm); }
.st-flogo-box img { max-height: 40px; max-width: 180px; width: auto; display: block; }
.st-fname { font: 700 1.35rem/1.1 var(--st-font-head); color: #fff; }
.st-flist { display: flex; flex-direction: column; gap: 10px; }
.st-fcontact a, .st-fcontact > span { display: flex; align-items: flex-start; gap: 8px; }
.st-fcontact svg { flex-shrink: 0; margin-top: 3px; opacity: .8; }
.st-fbar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; opacity: .75; }
.st-fsimple { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 32px 0 18px; }
.st-flinks { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.st-fbar-in { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 22px; font-size: .85rem; opacity: .75; }
.st-footer-centered .st-fsimple { flex-direction: column; text-align: center; }
.st-footer-centered .st-flinks { justify-content: center; }
.st-footer-centered .st-fbar-in { text-align: center; }

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */
.st-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.st-wa:hover { transform: scale(1.07); }
/* reCAPTCHA pone su sello en la misma esquina y Google exige que se vea. */
html.st-recaptcha .st-wa, html.sp-recaptcha .st-wa { bottom: 90px; }   /* .sp-: la tienda con la piel del sitio */

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .st-nav { display: none; }
  .st-burger { display: inline-flex; }
  .st-header-centered .st-header-in { flex-wrap: nowrap; justify-content: flex-start; padding: 0 var(--st-gutter); }
  .st-header-centered .st-brand { flex-basis: auto; margin: 0 auto 0 0; justify-content: flex-start; }
  .st-header-cta { display: none; }
}
@media (max-width: 640px) {
  :root { --st-header-h: 64px; }
  .st-header-in { gap: 10px; }
  .st-header-actions { gap: 2px; }
  .st-header-actions .st-icon-btn { width: 38px; height: 38px; }
  .st-brand img { max-height: 38px; max-width: 150px; }
  .st-fcols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .st-wa { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ── Fase 2: piel sobre tienda, citas y alquiler ─────────────────────────── */
html.st-chrome body { background: var(--st-bg); }
.st-chrome-top, .st-chrome-bottom { font-family: var(--st-font-body); color: var(--st-text); font-size: 1rem; line-height: 1.6; }
.st-chrome-top h1, .st-chrome-top h2, .st-chrome-top h3, .st-chrome-top h4,
.st-chrome-bottom h4 { font-family: var(--st-font-head); }
.st-chrome-top img, .st-chrome-bottom img { max-width: 100%; display: block; }
.st-chrome-bottom { margin-top: 48px; }

/* ── Secciones del sitio dentro de otra página (la Tienda) ──────────────────
   `shop.js` pinta las secciones de la página Tienda del sitio antes y después
   de su catálogo dentro de un `.st-site`: las reglas de tipografía y de
   imágenes del sitio cuelgan de esa clase; aquí va lo que en el sitio pone
   `html.st-site body`. */
.st-site.st-embed {
  font-family: var(--st-font-body); color: var(--st-text);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
/* `shop.css` pinta todos los h1–h3 con su color de tinta: dentro de las
   secciones del sitio manda el color de la sección (blanco sobre un fondo de
   color, por ejemplo), como en el resto del sitio. */
.st-site.st-embed h1, .st-site.st-embed h2, .st-site.st-embed h3, .st-site.st-embed h4 { color: inherit; }
