/* ==========================================================================
   public-2026.css — Frontend público Método Saya
   Diseño editorial monocromo (blanco / negro / gris / whitesmoke)
   Acentos: rojo (CTA) y amarillo (KI). Sin gradientes rojos de fondo.
   ========================================================================== */

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html:has(body.theme-public) {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #000;
  color-scheme: dark;
}
html:has(body.theme-public)::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.theme-public {
  background: var(--color-whitesmoke);
  color: var(--color-black);
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-tight);
  overflow-x: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  --safe-pad: clamp(1rem, 4vw, 2rem);
  --bh-text: 1.2rem;
  --bh-text-mini: 1rem;

  /* Anti-copia / anti-arrastre en la web pública */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.theme-public::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
body.theme-public *,
body.theme-public *::before,
body.theme-public *::after {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.theme-public *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.theme-public .sg-hscroll {
  overflow: hidden;
}
body.theme-public .sg-hscroll > .sg-grupos__scroll,
body.theme-public .sg-hscroll > .sg-pricing {
  padding-bottom: 2.2rem;
  margin-bottom: -1.35rem;
}

/* Formularios: sí se puede escribir y seleccionar */
body.theme-public input,
body.theme-public textarea,
body.theme-public select,
body.theme-public [contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

body.theme-public img,
body.theme-public svg,
body.theme-public picture,
body.theme-public video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

body.theme-public::before {
  display: none !important;
}

body.theme-public .sg-public {
  overflow-x: clip;
}

body.theme-public *:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

/* ---- Reset de la cabecera del proyecto antiguo ---- */
body.theme-public .cabecera {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top);
    background: rgb(11 11 11 / 38%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    box-shadow: none;
    transition: transform 280ms var(--easing-spring);
}
body.theme-public .sg-header-cuenta {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-999);
    background: #e1060096;
    backdrop-filter: blur(16px) saturate(1.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 16px rgba(225, 6, 0, 0.18);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
body.theme-public .sg-header-cuenta i {
  font-size: 1.08rem;
  color: inherit;
}
body.theme-public .sg-header-cuenta:hover,
body.theme-public .sg-header-cuenta:focus-visible {
  background: color-mix(in srgb, var(--color-red) 58%, transparent);
  color: #fff;
  outline: none;
}
body.theme-public .sg-header-cuenta--in {
  background: color-mix(in srgb, var(--color-green) 46%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 16px rgba(22, 163, 74, 0.2);
}
body.theme-public .sg-header-cuenta--in:hover,
body.theme-public .sg-header-cuenta--in:focus-visible {
  background: color-mix(in srgb, var(--color-green) 62%, transparent);
}
@media (max-width: 900px) {
  html:has(body.theme-public) {
    --sg-header-h: calc(4.9rem + env(safe-area-inset-top, 0px));
  }
  body.theme-public {
    background-color: #121212;
  }
  body.theme-public .sg-public,
  body.theme-public #contenido {
    background-color: var(--color-whitesmoke);
  }
  body.theme-public:not(.is-page-cancelar):not(.is-page-historia) {
    padding-top: var(--sg-header-h, 5.5rem);
  }
  html body.theme-public .cabecera,
  html body.theme-public.is-page-legal .cabecera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 8000;
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateZ(0);
    opacity: 1;
    isolation: isolate;
    will-change: top;
    transition:
      top 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.45s ease,
      backdrop-filter 0.45s ease,
      -webkit-backdrop-filter 0.45s ease;
  }
  html body.theme-public .cabecera::after,
  html body.theme-public.is-page-legal .cabecera::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: env(safe-area-inset-top, 0px);
    background: #000;
    pointer-events: none;
    z-index: 2;
  }
  html body.theme-public .cabecera.is-scroll-hidden,
  html body.theme-public.is-page-legal .cabecera.is-scroll-hidden {
    top: calc(-1 * var(--sg-header-h, 5.5rem) - 14px);
    pointer-events: none;
  }
  html body.theme-public .cabecera.is-scroll-glass,
  html body.theme-public.is-page-legal .cabecera.is-scroll-glass {
    background: rgb(0 0 0 / 64%);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-public .cabecera { transition: none; }
  body.theme-public .brand__claim { animation: none; }
}

@media (min-width: 901px) {
  body.theme-public:not(.is-page-legal):not(.is-page-cancelar):not(.is-page-historia) .cabecera {
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    transition: background 0.55s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  }
  body.theme-public:not(.is-page-legal):not(.is-page-cancelar):not(.is-page-historia) .cabecera::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgb(11 11 11 / 38%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  }
  body.theme-public:not(.is-page-legal):not(.is-page-cancelar):not(.is-page-historia) .cabecera.is-header-scrolled {
    background: transparent;
  }
  body.theme-public:not(.is-page-legal):not(.is-page-cancelar):not(.is-page-historia) .cabecera.is-header-scrolled::before {
    opacity: 1;
  }
  body.theme-public:not(.is-page-legal):not(.is-page-cancelar):not(.is-page-historia) .cabecera .cabecera__contenedor {
    position: relative;
    z-index: 1;
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  body.theme-public .cabecera::before {
    transition: none;
  }
}

body.theme-public .cabecera__contenedor {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--safe-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

body.theme-public .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

body.theme-public .brand .logo {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: var(--radius-999);
    border: 3px solid var(--color-black);
    background: var(--color-white);
    padding: 3px;
    object-fit: contain;
}

body.theme-public .brand__text { display: grid; line-height: 1; }
body.theme-public .brand__name {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  text-transform: uppercase;
}
body.theme-public .brand__claim {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  animation: sgBrandClaimIn 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}
@keyframes sgBrandClaimIn {
  0%,
  70% {
    font-weight: 900;
    color: var(--color-red);
  }
  100% {
    font-weight: 400;
    color: #fff;
  }
}

body.theme-public .nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
body.theme-public .nav__glider {
  display: none;
}

body.theme-public .nav__link,
body.theme-public .nav__cta {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-white);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-999);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
body.theme-public .nav__link:hover {
  background: var(--color-black);
  color: var(--color-white);
}
body.theme-public .nav__cta {
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-color: var(--color-red);
}
body.theme-public .nav__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (min-width: 1024px) {
  body.theme-public .nav {
    position: relative;
    isolation: isolate;
    margin-left: auto;
  }
  body.theme-public .nav__glider {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    height: 2.5rem;
    width: 0;
    border-radius: var(--radius-999);
    background: color-mix(in srgb, var(--color-red) 46%, transparent);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 8px 22px rgba(225, 6, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--nav-x, 0px), -50%, 0) scale(0.92);
    transform-origin: center center;
    transition:
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.42s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  }
  body.theme-public .nav__glider.is-on {
    opacity: 1;
    transform: translate3d(var(--nav-x, 0px), -50%, 0) scale(1);
  }
  body.theme-public .nav__link,
  body.theme-public .nav__cta {
    position: relative;
    z-index: 1;
  }
  body.theme-public .nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  body.theme-public .nav__glider {
    transition: opacity 0.2s ease;
  }
}

/* ==========================================================================
   Hamburguesa: 4 cuadrados (grid)
   ========================================================================== */
body.theme-public .btn-hamburguesa,
body.theme-public #menu-movil {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.theme-public .btn-hamburguesa:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.28);
}
body.theme-public .btn-hamburguesa .hb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  width: 30px;
  height: 30px;
  transition: transform var(--t-slow);
}
body.theme-public .btn-hamburguesa .hb-cell {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: background var(--t), transform var(--t-slow), border-radius var(--t);
}
body.theme-public .btn-hamburguesa:hover .hb-cell { background: var(--color-black); }
body.theme-public .btn-hamburguesa.is-active .hb-cell,
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-cell {
  background: var(--color-white);
  box-shadow: none;
}
body.theme-public .btn-hamburguesa.is-active .hb-grid,
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-grid {
  transform: rotate(45deg) scale(0.92);
}
body.theme-public .btn-hamburguesa.is-active .hb-cell:nth-child(1),
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-cell:nth-child(1) { border-radius: 999px 3px 3px 3px; }
body.theme-public .btn-hamburguesa.is-active .hb-cell:nth-child(2),
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-cell:nth-child(2) { border-radius: 3px 999px 3px 3px; }
body.theme-public .btn-hamburguesa.is-active .hb-cell:nth-child(3),
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-cell:nth-child(3) { border-radius: 3px 3px 3px 999px; }
body.theme-public .btn-hamburguesa.is-active .hb-cell:nth-child(4),
body.theme-public .btn-hamburguesa[aria-expanded="true"] .hb-cell:nth-child(4) { border-radius: 3px 3px 999px 3px; }

/* ==========================================================================
   Menú móvil — overlay editorial 2026: glass, jerarquía clara, animación
   ========================================================================== */
body.theme-public #menu-movil {
  position: fixed !important;
  top: calc(3.65rem + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10020 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgb(4 4 6 / 99%) !important;
  opacity:          0;
  visibility:       hidden;
  pointer-events:  none;
  transition: opacity 380ms var(--easing-spring), visibility 380ms ease;
}
body.theme-public #menu-movil[hidden] { display: none !important; }
body.theme-public #menu-movil.is-open {
  opacity:         1;
  visibility:      visible;
  pointer-events:  auto;
}

/* Cierre dirigido por JS (WAAPI): sin transition CSS que compita en iOS */
body.theme-public #menu-movil.mm-close-animating,
body.theme-public #menu-movil.mm-close-animating .mm-sheet {
  transition: none !important;
}

body.theme-public #menu-movil .mm-sheet {
  position:      relative;
  width:         100%;
  max-width:     100%;
  margin:        0 !important;
  min-height:    0 !important;
  max-height:    min(88dvh, 720px) !important;
  display:       flex !important;
  flex-direction: column !important;
  gap:           0.35rem !important;
  padding:       0.5rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
  transform:     translateY(100%) !important;
  opacity:       0;
  transition: transform 340ms var(--easing-spring), opacity 260ms ease;
  border-radius:  var(--radius-30) var(--radius-30) 0 0;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(229, 9, 20, 0.2), transparent 55%),
    linear-gradient(180deg, #0f0f12 0%, #060607 100%);
  color:          var(--color-white);
  border:         1px solid rgba(255, 255, 255, 0.1);
  border-bottom:  0;
  box-shadow:     0 -28px 80px -20px rgba(0, 0, 0, 0.75);
  overflow:       hidden;
  touch-action:   pan-y;
}
body.theme-public #menu-movil.is-open .mm-sheet {
  transform: translateY(0) !important;
  opacity: 1;
}
body.theme-public #menu-movil .mm-sheet::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.32rem;
  margin: 0.35rem auto 0.5rem;
  border-radius: var(--radius-999);
  background: rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

body.theme-public #menu-movil .mm-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.15rem 0.25rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
body.theme-public #menu-movil .mm-brandbox {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
body.theme-public #menu-movil .mm-brandtext {
  min-width: 0;
}
body.theme-public #menu-movil .mm-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-999);
  background: var(--color-white);
  padding: 2px;
  box-shadow: 0 14px 36px -14px rgba(229, 9, 20, 0.55);
}
body.theme-public #menu-movil .mm-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase !important;
  color: var(--color-red);
  margin: 0 0 0.15rem;
  text-align: left;
}
body.theme-public #menu-movil .mm-brand {
  margin: 0;
  font-size: clamp(1.35rem, 4.2vw, 1.65rem) !important;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-wrap: balance;
}

body.theme-public #menu-movil .mm-nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.5rem 0 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
body.theme-public #menu-movil .mm-nav::-webkit-scrollbar { width: 4px; }
body.theme-public #menu-movil .mm-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

body.theme-public #menu-movil .mm-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white) !important;
  border-radius: var(--radius-20, 20px);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), transform var(--t);
  opacity: 0;
  transform: translateY(12px);
}
body.theme-public #menu-movil.is-open .mm-item {
  animation: mmItemIn 440ms var(--easing-spring) forwards;
}
body.theme-public #menu-movil.is-open .mm-item:nth-child(1) { animation-delay: 60ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(2) { animation-delay: 110ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(3) { animation-delay: 160ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(4) { animation-delay: 210ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(5) { animation-delay: 260ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(6) { animation-delay: 310ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(7) { animation-delay: 360ms; }
body.theme-public #menu-movil.is-open .mm-item:nth-child(8) { animation-delay: 410ms; }

@keyframes mmItemIn {
  to { opacity: 1; transform: translateY(0); }
}

body.theme-public #menu-movil .mm-item:hover,
body.theme-public #menu-movil .mm-item:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.theme-public #menu-movil .mm-item__ico {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--color-white) !important;
}
body.theme-public #menu-movil .mm-item__text {
  min-width: 0;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
}
body.theme-public #menu-movil .mm-item__arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  transition: transform var(--t), color var(--t);
}
body.theme-public #menu-movil .mm-item:hover .mm-item__arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.95);
}

body.theme-public #menu-movil .mm-item--cta {
  background: var(--color-red) !important;
  border-color: var(--color-red) !important;
  color: var(--color-white) !important;
  box-shadow: 0 18px 44px -18px rgba(229, 9, 20, 0.75);
  margin-bottom: 0.15rem;
}
body.theme-public #menu-movil .mm-item--cta .mm-item__ico {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(0, 0, 0, 0.18);
}
body.theme-public #menu-movil .mm-item--cta .mm-item__arrow {
  color: rgba(255, 255, 255, 0.9);
}
body.theme-public #menu-movil .mm-item--cta:hover {
  background: #ff1f2c !important;
  border-color: #ff1f2c !important;
  transform: translateY(-2px);
}

body.menu-abierto { overflow: hidden; }

body.menu-abierto .btn-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 360px) {
  body.theme-public #menu-movil .mm-item {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    grid-template-columns: 2.25rem 1fr auto;
  }
  body.theme-public #menu-movil .mm-item__ico { width: 2.25rem; height: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-public #menu-movil,
  body.theme-public #menu-movil .mm-sheet,
  body.theme-public #menu-movil .mm-item {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.theme-public #menu-movil.is-open .mm-sheet { transform: none !important; }
}

/* Para el leer mas o menos de la sección de Método Saya */

/* ===== Método Saya - Leer más ===== */

.sg-readmore{
    width:100%;
}

.sg-readmore__content{
    position:relative;
    overflow:hidden;
    max-height:8.2em;
    transition:max-height .45s ease;
}

.sg-readmore__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2em;
    background: linear-gradient(to bottom, rgb(248 244 244 / 29%), rgb(251 248 248 / 93%));
    pointer-events: none;
    transition: opacity .25s;
}

.sg-readmore.is-open .sg-readmore__content{
    max-height:5000px;
}

.sg-readmore.is-open .sg-readmore__content::after{
    opacity:0;
}

.sg-readmore__btn {
    margin-top: 16px;
    background: none;
    color: #e10700;
    border: 1px solid rgb(225 7 0 / 83%);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    cursor: pointer;
    transition: .25s;
}

.sg-readmore__btn:hover {
    background: #e10600;
    border-color: #e10600;
    color: white;
}

/* ==========================================================================
   HOME · Hero
   ========================================================================== */
.sg-public { isolation: isolate; }

.sg-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--safe-pad);
  min-width: 0;
}

.sg-hero {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  overflow: clip;
  padding: clamp(2.4rem, 6vw, 5.2rem) 0 clamp(2rem, 5vw, 4rem);
}

.sg-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0,0,0,0.92) 32%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%),
    url('../img/hero-saya-desktop.png') right center / cover no-repeat;
  filter: contrast(1.05) brightness(0.92);
  z-index: 0;
}
.sg-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1rem;
    background: linear-gradient(180deg, transparent, #f5f5f5);
    z-index: 1;
    pointer-events: none;
}

.sg-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(30rem, 72svh, 50rem);
}

.sg-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.sg-hero__rotator,
.sg-hero__slide {
  min-width: 0;
  width: 100%;
}

.sg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid rgba(245, 245, 245, 0.45);
  border-radius: var(--radius-999);
  color: var(--color-whitesmoke);
}

.sg-hero__title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--color-white);
  text-wrap: balance;
}

.sg-hero__title em {
  font-style: normal;
  color: var(--color-yellow);
  text-shadow: 0 0 24px rgba(255, 212, 0, 0.35);
}

.sg-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-whitesmoke);
}

.sg-hero__lead {
  margin: 1.4rem 0 0;
  max-width: 46ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.86);
}

.sg-hero__manifiesto {
  margin: 2.1rem 0 0;
  max-width: 42ch;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.92);
}

.sg-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 3rem 0 3rem; padding: 0; }
.sg-hero__chips li {
    margin: 0;
    padding: 10px 10px 0px 0px;
    font-size: var(--bh-text-mini);
    font-weight: 500;
    color: #ffd400;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}
body.theme-public .sg-grupo__when p { margin: 0; font-size: clamp(1.18rem, 2.8vw, 1.32rem); font-weight: 200; line-height: 1.45; color: #121212; }

.sg-hero__cta {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.sg-hero__cta .btn-saya {
  flex: 0 0 auto;
  width: fit-content;
}

.sg-hero__meta {
  align-self: end;
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: var(--radius-30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sg-hero__meta strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
.sg-hero__meta p { margin: 0; color: var(--color-whitesmoke); font-size: 1.2rem; }

/* ==========================================================================
   Botones del frontend
   ========================================================================== */
.btn-saya {
  --bg: var(--color-black);
  --fg: var(--color-white);
  --bd: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-5);
  border: solid 0.6px var(--color-white);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t) var(--easing-spring),
              background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t);
}
.btn-saya:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.btn-saya:active { transform: translateY(0); }

.btn-saya--cta {
  --bg: var(--color-red);
  --fg: var(--color-white);
  --bd: var(--color-red);
}
@keyframes sgCtaBounce {
  0%, 100% { transform: translateY(0); }
  14% { transform: translateY(-8px); }
  28% { transform: translateY(0); }
  42% { transform: translateY(-6px); }
  56% { transform: translateY(0); }
  70% { transform: translateY(-3px); }
  84% { transform: translateY(0); }
}
@keyframes sgCtaBounceCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  14% { transform: translateX(-50%) translateY(-8px); }
  28% { transform: translateX(-50%) translateY(0); }
  42% { transform: translateX(-50%) translateY(-6px); }
  56% { transform: translateX(-50%) translateY(0); }
  70% { transform: translateX(-50%) translateY(-3px); }
  84% { transform: translateX(-50%) translateY(0); }
}
body.theme-public .btn-saya--cta {
  transition: filter 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}
body.theme-public .btn-saya--cta:hover,
body.theme-public .btn-saya--cta:focus-visible {
  filter: brightness(1.08);
  color: var(--color-white);
  background: var(--color-red);
  animation: sgCtaBounce 0.9s ease;
}
body.theme-public .sg-hero__cta > a.btn-saya--cta,
body.theme-public .sg-hero__cta > a.btn-saya--cta:hover,
body.theme-public .sg-hero__cta > a.btn-saya--cta:focus-visible {
  border: none;
  background: var(--color-red);
  color: var(--color-white);
}

.btn-saya--ghost { width: fit-content; --bg: transparent; --fg: var(--color-white); --bd: rgba(245, 245, 245, 0.45); }
.btn-saya--ghost:hover {
  --bg: var(--color-white);
  --fg: var(--color-black);
  --bd: var(--color-white);
  color: var(--color-black);
}

.btn-saya--light {
  --bg: var(--color-white);
  --fg: var(--color-black);
  --bd: var(--color-black);
}
.btn-saya--light:hover { --bg: var(--color-black); --fg: var(--color-white); }

.btn-saya--soft {
  --bg: rgba(0, 0, 0, 0.05);
  --fg: var(--color-black);
  --bd: rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Bloques editoriales
   ========================================================================== */
.sg-section {
  padding: clamp(3rem, 6vw, 5.6rem) 0;
  scroll-margin-top: clamp(4rem, 10vh, 6rem);
}
/* Secciones con ancla — separación extra para la cabecera sticky y el safe-area */
body.theme-public :is(#calendario, #precios, #grupos, #faq, #contacto, #seccion-quien, #donde, #filosofia) {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + clamp(4rem, 10vh, 6rem));
}

.sg-section__head {
  display: grid;
  align-items: start;
  column-gap: clamp(0.85rem, 2.4vw, 1.55rem);
  row-gap: clamp(0.55rem, 1.6vw, 0.9rem);
  margin: 0 0 clamp(0.4rem, 1.2vw, 0.8rem);
  min-width: 0;
}
.sg-section__head > div,
.sg-section__head > .sg-quien {
  min-width: 0;
}
.sg-section--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.sg-section--gray {
  background: var(--color-black);
  color: var(--color-white);
}

.sg-section__num {
    font-size: var(--bh-text);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: black;
    font-weight: 800;
    align-self: start;
    padding-top: 0.4rem;
    border-top: 2px solid #0c0b0b;
    display: block;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.sg-section__title {
  margin: 0;
  margin-top: 2rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.sg-section--dark .sg-section__num,
.sg-section--gray .sg-section__num {
  color: var(--color-yellow);
  border-top-color: var(--color-yellow);
}

.sg-section__lead {
    max-width: 60ch;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: inherit;
    opacity: 0.92;
    margin: 2rem 0 4rem;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.sg-card {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-20);
  padding: clamp(1rem, 2vw, 1.6rem);
  transition: transform var(--t) var(--easing-spring),
              border-color var(--t), box-shadow var(--t);
}
.sg-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-black);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.sg-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sg-card p { margin: 0; line-height: 1.55; color: var(--color-gray-500); }

.sg-section--dark .sg-card,
.sg-section--gray .sg-card {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.14);
}
.sg-section--dark .sg-card p,
.sg-section--gray .sg-card p {
  color: rgba(245, 245, 245, 0.78);
}
.sg-section--dark .sg-card:hover,
.sg-section--gray .sg-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   02 · Filosofía Saya — sección estatement con número monumental,
   pull-quote en amarillo y tres pilares numerados.
   ========================================================================== */
.sg-philo {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 212, 0, 0.06), transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(225, 6, 0, 0.07), transparent 60%),
    var(--color-black);
}

.sg-philo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sg-philo__bignum,
.sg-bignum {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  font-size: clamp(14rem, 28vw, 26rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}
.sg-section--dark .sg-bignum,
.sg-section--gray .sg-bignum,
.sg-philo .sg-philo__bignum {
  color: transparent;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.08);
}
.sg-section:not(.sg-section--dark):not(.sg-section--gray) .sg-bignum {
  color: gray;
  -webkit-text-stroke: 0;
}

/* Modificador: número gigante colocado a la izquierda (para contrarrestar
   secciones donde el contenido está alineado a la derecha) */
.sg-bignum--left {
  right: auto;
  left: -1.4rem;
}

/* Contenedor de sección que quiera alojar un sg-bignum */
.sg-section--bignum {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sg-section--bignum > .sg-wrap { position: relative; z-index: 1; }

.sg-philo__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas:
    "head pillars"
    "quote pillars";
  gap: clamp(1.4rem, 3vw, 3rem) clamp(1.4rem, 3vw, 3.6rem);
  align-items: start;
}

.sg-philo__head { grid-area: head; }
.sg-philo__head .sg-section__num {
  display: inline-block;
  margin-bottom: 1rem;
  padding-top: 0.4rem;
  border-top: 2px solid var(--color-yellow);
  color: var(--color-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.sg-philo__head .sg-section__title {
  margin: 0;
  margin-top: 2rem;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--color-white);
}
.sg-philo__head .sg-section__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
}
.sg-philo__head .sg-section__title em::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% 0;
  background: var(--color-yellow);
  z-index: -1;
  border-radius: var(--radius-5);
  transform: skew(-6deg);
}
.sg-philo__head .sg-section__title em { color: var(--color-black); }

.sg-philo__quote {
  grid-area: quote;
  margin: 0;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border-left: 3px solid var(--color-red);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border-radius: 0 var(--radius-20) var(--radius-20) 0;
}
.sg-philo__quote blockquote {
  margin: 0 0 0.8rem;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.92);
}
.sg-philo__quote blockquote strong {
  color: var(--color-white);
  font-weight: 800;
}
.sg-philo__quote figcaption {
  font-size: 1.1rem;
  color: rgba(245, 245, 245, 0.6);
  letter-spacing: 0.02em;
}
.sg-philo__quote .sg-ki {
  color: var(--color-yellow);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sg-philo__pillars { grid-area: pillars; list-style: none; margin: 0; padding: 0; display: grid; gap: 5rem; }
.sg-philo__pillars li {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-20);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--t), background var(--t), transform var(--t) var(--easing-spring);
}
.sg-philo__pillars li:hover, body.theme-public .sg-women {
  border-color: var(--color-yellow);
  background: rgba(255, 212, 0, 0.06);
}
.sg-philo__idx {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-999);
  border: 1px solid var(--color-yellow);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--color-yellow);
}
.sg-philo__pillars h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
.sg-philo__pillars p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.78);
}

@media (max-width: 960px) {
  .sg-philo__pillars { gap: 2rem; }
  .sg-philo__wrap {
    grid-template-columns: 1fr;
    gap: 4rem;
    grid-template-areas:
      "head"
      "quote"
      "pillars";
  }
  .sg-philo__bignum,
  .sg-bignum {
    top: 0;
    right: 0;
    font-size: clamp(10rem, 38vw, 18rem);
  }
  .sg-bignum--left {
    right: auto;
    left: -0.4rem;
  }
}
@media (max-width: 560px) {
  .sg-philo__pillars { gap: 1.4rem; }
}

/* Pasos / método */
.sg-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.sg-steps li {
  counter-increment: step;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-20);
  padding: 1.1rem 1.2rem 1.2rem;
  position: relative;
}
.sg-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 0.6rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--color-red);
}
.sg-steps strong { display: block; margin-bottom: 0.25rem; font-size: clamp(1rem, 2.1vw, 1.7rem); }
.sg-steps p { margin: 0; color: var(--color-gray-500); }

/* ==========================================================================
   FAQ — Acordeón único: al abrir uno se cierran los demás.
   Animación con grid-template-rows (técnica 2026).
   ========================================================================== */
.sg-faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.2vw, 1rem);
  align-items: start;
}
@media (max-width: 900px) { .sg-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sg-faq { grid-template-columns: 1fr; } }

.sg-faq__item {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-20);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  height: fit-content;
}
.sg-faq__item:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.sg-faq__item.is-open {
  border-color: var(--color-black);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

.sg-faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1.04rem);
  line-height: 1.25;
  color: var(--color-black);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.sg-faq__qtxt { text-wrap: balance; }

.sg-faq__icon {
  position: relative;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-block;
  border-radius: var(--radius-999);
  background: var(--color-black);
  transition: background var(--t), transform var(--t-slow) var(--easing-spring);
}
.sg-faq__icon::before,
.sg-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-slow) var(--easing-spring), opacity var(--t);
}
.sg-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.sg-faq__item.is-open .sg-faq__icon { background: var(--color-red); transform: rotate(180deg); }
.sg-faq__item.is-open .sg-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.sg-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 0.42s var(--easing-spring),
    opacity 0.28s ease;
  opacity: 0;
}
.sg-faq__a > .sg-faq__inner {
  min-height: 0;
  overflow: hidden;
}
.sg-faq__inner {
  transform: translateY(-0.35rem);
  opacity: 0;
  transition:
    transform 0.36s var(--easing-spring),
    opacity 0.28s ease;
}
.sg-faq__item.is-open .sg-faq__a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.sg-faq__item.is-open .sg-faq__inner {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.06s;
}
.sg-faq__item.is-closing .sg-faq__a {
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}
.sg-faq__item.is-closing .sg-faq__inner {
  transform: translateY(-0.25rem);
  opacity: 0;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
  transition-delay: 0s;
}

.sg-faq__inner p {
  margin: 0;
  padding: 0 1.25rem 1.15rem 3.75rem;
  color: var(--color-gray-500);
  line-height: 1.55;
  font-size: 0.95rem;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .sg-faq__inner p { padding-left: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-faq__a,
  .sg-faq__inner,
  .sg-faq__item.is-closing .sg-faq__a,
  .sg-faq__item.is-closing .sg-faq__inner { transition: none; }
  .sg-faq__inner { transform: none; opacity: 1; }
  .sg-faq__icon, .sg-faq__icon::before, .sg-faq__icon::after { transition: none; }
}

/* ==========================================================================
   04 · Calendario · estilo "card panel" inspirado en la referencia
   Aside coloreado (rojo coral) + cuerpo neutro con tira de meses,
   cabecera de días y grid de días. Día de hoy = píldora roja.
   ========================================================================== */
.cal-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  background: var(--color-white);
  border-radius: var(--radius-30);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cal-card__hidden { position: absolute; left: -9999px; }

/* ---- Aside ---- */
.cal-card__side {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 2vw, 0.5rem);
}
.cal-card__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(80% 60% at 100% 100%, rgba(0,0,0,0.18), transparent 65%);
  pointer-events: none;
}
.cal-card__eyebrow {
  position: relative;
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.cal-card__topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
}
.cal-card__day {
  font-size: clamp(4.4rem, 10vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.86;
}
.cal-card__month {
  position: relative;
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cal-card__year {
    position: relative;
    margin: 0rem 0 1.6rem;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--color-black);
    line-height: 1;
}
.cal-card__notes {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.cal-card__notes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.2rem;
}
.cal-card__notes li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.cal-card__notes span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}
.cal-card__notes strong { font-weight: 800; }

.cal-card__refresh {
  position: relative;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-999);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.cal-card__refresh:hover {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
  transform: translateY(-1px);
}
.cal-card__refresh i { transition: transform var(--t-slow); }
.cal-card__refresh:hover i { transform: rotate(180deg); }
.cal-card__refresh.is-spinning i { animation: sgRefreshSpin 0.8s linear infinite; }
@keyframes sgRefreshSpin {
  to { transform: rotate(360deg); }
}

/* ---- Body ---- */
.cal-card__body {
  padding: clamp(1.4rem, 2.4vw, 2.2rem) clamp(1.4rem, 2.4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.cal-card__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cal-months {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 2vw, 2.85rem);
  font-weight: 700;
}
.cal-months__item {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #73737357;
  user-select: none;
  transition: color var(--t), opacity var(--t);
}
.cal-months__item.is-current {
  color: var(--color-red);
  position: relative;
}
.cal-months__item.is-current::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 3px;
  background: var(--color-red);
  border-radius: var(--radius-999);
}

.cal-card__weekhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--color-red);
  padding: 1.35rem 0 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cal-card__grid { position: relative; }
.cal-host { width: 100%; }

/* Reescribimos completamente el grid generado por calendario.js */
body.theme-public #cal-publico .cal {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
}
body.theme-public #cal-publico .cal .cab { display: none; }
body.theme-public #cal-publico .vacia {
  background: transparent;
  border: none;
  min-height: 1px;
}

body.theme-public #cal-publico .dia {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-999);
  color: var(--color-black);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.4vw, 1.04rem);
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t) var(--easing-spring);
  outline-offset: 2px;
}
body.theme-public #cal-publico .dia .dia__numero {
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

/* Punto VERDE inferior cuando hay disponibilidad */
body.theme-public #cal-publico .dia--verde::after {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: var(--radius-999);
  background: var(--color-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
  z-index: 1;
}

/* Hover: anillo gris suave */
body.theme-public #cal-publico .dia:not([aria-disabled="true"]):hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* "Hoy" subrayado discreto en negro, sin destacar tipo píldora */
body.theme-public #cal-publico .dia--hoy {
  background: transparent;
  color: var(--color-black);
}
body.theme-public #cal-publico .dia--hoy .dia__numero {
  position: relative;
}
body.theme-public #cal-publico .dia--hoy .dia__numero::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px 0;
  height: 2px;
  background: var(--color-black);
  border-radius: var(--radius-999);
}

/* Días pasados / sin huecos / domingo */
body.theme-public #cal-publico .dia--rojo {
  color: var(--color-gray-300);
  cursor: not-allowed;
}
body.theme-public #cal-publico .dia--rojo:hover { background: transparent; transform: none; }
body.theme-public #cal-publico .dia--pasado { opacity: 0.42; }
body.theme-public #cal-publico .dia--rojo .dia__numero { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Ocultamos el badge antiguo (lo sustituye el dot) */
body.theme-public #cal-publico .badge {
  display: none;
}

/* Foco accesible */
body.theme-public #cal-publico .dia:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Leyenda */
.cal-card__legend {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.98rem;
  color: var(--color-gray-500);
  letter-spacing: 0.04em;
}
.cal-card__legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-999);
  margin-right: 0.4rem;
  vertical-align: middle;
}
.cal-card__legend-dot--free  { background: var(--color-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
.cal-card__legend-dot--off   { background: rgba(0,0,0,0.18); }

/* Responsive del calendario */
@media (max-width: 900px) {
  .cal-card { grid-template-columns: 1fr; }
  .cal-card__side {
    padding: 1.4rem 1.4rem 1.6rem;
    gap: 0.6rem;
  }
  .cal-card__day { font-size: clamp(4rem, 16vw, 5.6rem); }
  .cal-card__year { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 1rem; }
  .cal-card__notes li { padding: 0.5rem 0; }
}

@media (max-width: 600px) {
  .cal-card__topbar { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .cal-months { gap: 0.35rem 0.55rem; }
  .cal-months__item { font-size: 0.74rem; letter-spacing: 0.1em; }
  .cal-card__weekhead { font-size: 0.6rem; letter-spacing: 0.18em; gap: 0.25rem; }
  body.theme-public #cal-publico .cal { gap: 0.2rem; }
  body.theme-public #cal-publico .dia { font-size: 0.92rem; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .cal-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
  .cal-card__day { font-size: 3.2rem; }
}

/* Contacto */
.sg-contacto {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-30);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 5vw, 4.4rem);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
.sg-contacto--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sg-contacto__copy {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.sg-contacto__copy .sg-section__num {
  margin: 0;
  color: var(--color-yellow);
  border-top-color: var(--color-yellow);
}
.sg-contacto__copy .sg-section__title {
  margin: 0;
  margin-top: 3rem;
  color: var(--color-white);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.sg-contacto__lead { margin: 0; max-width: 42ch; color: rgba(245, 245, 245, 0.86); font-size: clamp(0.98rem, 1.5vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }

.sg-contacto__canales {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.2rem 0 0;
}

.sg-contacto__nota { margin: 0.35rem 0 0; max-width: 46ch; color: rgba(245, 245, 245, 0.78); font-size: clamp(0.98rem, 1.5vw, 1.2rem); line-height: 1.45; }
body.theme-public .sg-contacto__copy > a.btn-saya {
  margin-top: 0.25rem;
  margin-bottom: 1.65rem;
}
body.theme-public .sg-contacto__copy > a.btn-saya.sg-contacto__vcard {
    color: var(--color-green-soft);
    border-color: var(--color-green-soft);
}
body.theme-public .sg-contacto__copy > a.btn-saya.sg-contacto__vcard:hover,
body.theme-public .sg-contacto__copy > a.btn-saya.sg-contacto__vcard:focus-visible {
  color: var(--color-white);
  background: var(--color-green-soft);
  border-color: var(--color-green-soft);
}

body.theme-public .sg-field--check,
body.theme-public .sg-field.sg-field--check {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0.4rem 0 0;
  color: rgba(245, 245, 245, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
}
body.theme-public .sg-field.sg-field--check span {
  flex: 1 1 auto;
  min-width: 0;
}

body.theme-public .sg-field--check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(245, 245, 245, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

body.theme-public .sg-field--check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-yellow);
  transform: scale(0);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.theme-public .sg-field--check input[type="checkbox"]:checked::after {
  transform: scale(1);
  opacity: 1;
}

body.theme-public .sg-contacto__privacidad {
  margin: 0.15rem 0 0;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.theme-public .sg-field--check a {
  color: var(--color-yellow);
}
.sg-contacto h2,
.sg-contacto h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}
.sg-contacto p { margin: 0.8rem 0 2rem; color: rgba(245, 245, 245, 0.86); line-height: 1.55; }
.sg-contacto__noscript {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  font-size: 0.92rem;
}
.sg-contacto__noscript a { color: var(--color-yellow); }
.sg-contacto__form {
  min-width: 0;
  gap: 1.1rem;
}
.sg-contacto__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  margin-top: 0.2rem;
  width: fit-content;
}
.sg-contacto--split .sg-contacto__actions .btn-saya {
  width: 100%;
  max-width: 18rem;
}
.sg-field__opt {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--color-yellow);
}
.sg-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sg-contacto .feedback {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.sg-contacto .feedback--err {
  color: #ff8a80;
}

@media (max-width: 900px) {
  .sg-contacto,
  .sg-contacto--split {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .sg-contacto__lead { max-width: none; }
  .sg-contacto--split .sg-contacto__actions .btn-saya {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .sg-contacto {
    padding: 1.7rem 1.35rem 1.9rem;
    border-radius: var(--radius-20);
  }
}

/* Face ID + check (modal de contacto enviado)
   Solo órbita circular + check. Sin marco/recuadro amarillo. */
.sg-faceid {
  --fid: clamp(5.8rem, 18vw, 7.4rem);
  position: relative;
  width: var(--fid);
  height: var(--fid);
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: visible;
}
.sg-faceid__orbit,
.sg-faceid .sg-apple-check {
  grid-area: 1 / 1;
  background: transparent !important;
  box-shadow: none !important;
}
.sg-faceid__orbit {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--color-yellow);
  border-right-color: rgba(255, 212, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}
.sg-faceid .sg-apple-check {
  width: 68%;
  height: 68%;
  opacity: 0;
  transform: scale(0.86);
  background: transparent !important;
  filter: none !important;
}
.sg-faceid .sg-apple-check svg {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: visible;
}
.sg-faceid .sg-apple-check__circle,
.sg-faceid .sg-apple-check__mark {
  fill: none !important;
  filter: none !important;
}
.sg-faceid.is-scanning .sg-faceid__orbit {
  opacity: 1;
  animation: sgFaceOrbit 0.9s linear infinite;
}
.sg-faceid.is-ok .sg-faceid__orbit {
  opacity: 0 !important;
  visibility: hidden;
  animation: none;
}
.sg-faceid.is-ok .sg-apple-check {
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.theme-public #dlg-contacto-ok .sg-final {
  width: min(100%, 22rem);
  max-width: 100%;
  min-height: 0;
  padding-inline: clamp(0.75rem, 4vw, 1.5rem);
  box-sizing: border-box;
}
body.theme-public #dlg-contacto-ok .sg-final__text {
  max-width: none;
  width: 100%;
  padding-inline: 0.25rem;
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  line-height: 1.35;
  text-wrap: balance;
  animation: none;
  opacity: 0;
  box-sizing: border-box;
}
body.theme-public #dlg-contacto-ok .sg-final__sub {
  margin: -0.2rem 0 0;
  max-width: none;
  width: 100%;
  padding-inline: 0.25rem;
  text-align: center;
  color: rgba(245, 245, 245, 0.82);
  font-size: clamp(0.9rem, 3.6vw, 1.02rem);
  line-height: 1.45;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(6px);
  box-sizing: border-box;
}
body.theme-public #dlg-contacto-ok .sg-faceid.is-ok ~ .sg-final__text,
body.theme-public #dlg-contacto-ok .sg-faceid.is-ok ~ .sg-final__sub {
  animation: sgAppleText 420ms cubic-bezier(.2,.85,.25,1) 980ms forwards;
}

@keyframes sgFaceOrbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-donde__pin { animation: none; }
  .sg-faceid.is-scanning .sg-faceid__orbit {
    animation: none;
    opacity: 1;
  }
  .sg-faceid .sg-apple-check { opacity: 1; transform: none; }
  body.theme-public #dlg-contacto-ok .sg-final__text,
  body.theme-public #dlg-contacto-ok .sg-final__sub {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Pie */
.pie { padding: 24px 10px; background: #121212; font-family: Dosis, sans-serif; text-align: center; }
body.theme-public .pie {
  color: rgba(245, 245, 245, 0.78);
}
body.theme-public .pie__contenedor {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--safe-pad);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

body.theme-public .pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.1rem;
}

body.theme-public .pie__legal a {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 700;
}

body.theme-public .pie__legal a:hover,
body.theme-public .pie__legal a:focus-visible {
  text-decoration: underline;
}

body.theme-public .sg-quien {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: clamp(2rem, 4.4vw, 3.1rem);
  align-items: center;
  margin-top: 3rem;
}

body.theme-public .sg-quien__foto { width: 9.5rem; height: 9.5rem; border-radius: 50%; object-fit: cover; object-position: center 20%; border: solid 13px #f8f8f6a1; margin-bottom: 0; }

body.theme-public .sg-quien__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  min-width: 0;
}

body.theme-public .sg-quien__body {
  min-width: 0;
  display: grid;
  gap: 1.45rem;
}

body.theme-public .sg-quien__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 0;
  padding: 0;
}

body.theme-public .sg-quien__facts li {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #121212;
}

body.theme-public .sg-quien__facts span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c5c5c;
}

body.theme-public .sg-quien__body .sg-section__lead {
  margin: 0;
}

body.theme-public a.sg-quien__more,
body.theme-public a.sg-quien__more:hover,
body.theme-public a.sg-quien__more:focus-visible {
  justify-self: end;
  margin-top: 0.35rem;
  border: none;
  background: var(--color-red);
  color: var(--color-white);
}
body.theme-public .sg-section--dark .sg-quien__facts li { color: #f5f5f5; }
body.theme-public .sg-section--dark .sg-quien__facts span { color: rgba(245, 245, 245, 0.55); }

body.theme-public.is-page-legal,
body.theme-public.is-page-legal .sg-legal,
body.theme-public.is-page-legal .sg-legal * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

@media (min-width: 901px) {
  body.theme-public.is-page-legal .cabecera {
    background: rgb(11 11 11 / 72%);
  }
}

body.theme-public.is-page-legal.is-legal-leave .sg-public,
body.theme-public.is-page-legal.is-legal-leave .cabecera,
body.theme-public.is-page-legal.is-legal-leave .pie {
  animation: sgLegalOut 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}
@keyframes sgLegalOut {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(0, -22px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-public.is-page-legal.is-legal-leave .sg-public,
  body.theme-public.is-page-legal.is-legal-leave .cabecera,
  body.theme-public.is-page-legal.is-legal-leave .pie {
    animation: none;
  }
}

body.theme-public .sg-legal-page {
  padding-block: clamp(1.75rem, 5vw, 4.75rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

body.theme-public .sg-legal {
  max-width: 80rem;
  margin-inline: auto;
  padding-block: 0;
}

body.theme-public .sg-legal__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

body.theme-public.is-page-legal .sg-legal h1,
body.theme-public.is-page-legal .sg-legal h2,
body.theme-public.is-page-legal .sg-legal h3 {
  text-transform: none;
}

@media (max-width: 520px) {
  body.theme-public .sg-legal__head {
    gap: 0.75rem;
  }
}

body.theme-public .sg-legal__lead {
  margin: 0 0 2rem;
  color: #5c5c5c;
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.55;
}

body.theme-public .sg-legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-black);
}

body.theme-public .sg-legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--step-0);
  font-weight: 800;
}

body.theme-public .sg-legal p,
body.theme-public .sg-legal li {
  color: #5c5c5c;
  font-weight: 500;
  line-height: 1.6;
  font-size: var(--step-0);
}

body.theme-public .sg-legal p { margin: 0 0 0.85rem; }
body.theme-public .sg-legal ul,
body.theme-public .sg-legal ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
body.theme-public .sg-legal li + li { margin-top: 0.35rem; }
body.theme-public .sg-legal a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
body.theme-public .sg-legal a:hover,
body.theme-public .sg-legal a:focus-visible {
  color: var(--color-black);
}
body.theme-public .sg-legal__meta {
  margin-top: 2rem;
  color: #8a8a8a;
}
body.theme-public .sg-legal__meta small { font-size: var(--step--1); }

body.theme-public .sg-legal-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(9, 9, 9, 0.22);
  transform: scale(1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    color 0.35s ease;
}
@media (max-width: 520px) {
  body.theme-public .sg-legal-back {
    width: 2.6rem;
    height: 2.6rem;
  }
  body.theme-public .sg-legal-back svg {
    width: 18px;
    height: 18px;
  }
}
body.theme-public .sg-legal-back svg {
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
body.theme-public .sg-legal-back:hover,
body.theme-public .sg-legal-back:focus-visible {
  transform: scale(1.12);
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 0 14px 32px rgba(9, 9, 9, 0.28);
  outline: none;
}
body.theme-public .sg-legal-back:hover svg,
body.theme-public .sg-legal-back:focus-visible svg {
  transform: translateX(-2px);
}
body.theme-public .sg-legal-back:active {
  transform: scale(0.96);
  transition-duration: 0.15s;
}

body.theme-public.is-page-legal .pie__legal a[aria-current="page"] {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body.theme-public.is-page-legal .nav {
    display: flex;
  }
  body.theme-public.is-page-legal .nav__cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
  }
  body.theme-public.is-page-legal .brand__claim {
    display: none;
  }
}

body.theme-public .sg-donde {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: stretch;
}

body.theme-public .sg-donde__mapa {
  position: relative;
  margin: 0;
  border-radius: var(--radius-20);
  overflow: hidden;
  border: 10px solid rgb(9 9 9 / 22%);
  min-height: 16rem;
  isolation: isolate;
}

body.theme-public .sg-donde__leaflet {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  position: relative;
  z-index: 0;
  touch-action: pan-y;
}
body.theme-public .sg-donde__leaflet.leaflet-container,
body.theme-public .sg-donde__mapa .leaflet-container {
  z-index: 0;
  touch-action: pan-y;
}
body.theme-public .sg-donde__pinwrap {
  background: none;
  border: 0;
  overflow: visible;
}
body.theme-public .sg-donde__mapa .leaflet-marker-icon {
  overflow: visible;
}
body.theme-public .sg-donde__pin {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  transform-origin: center bottom;
  animation: sgPinBounce 1.85s ease-in-out infinite;
  border: solid 10px #0000008f;
  border-radius: 999px;
}
@keyframes sgPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

body.theme-public .sg-donde__llegar {
  position: absolute;
  left: auto;
  right: 1.05rem;
  bottom: 1.05rem;
  transform: none;
  border: none;
  z-index: 1200;
  pointer-events: auto;
  white-space: nowrap;
}
body.theme-public a.sg-donde__llegar,
body.theme-public a.sg-donde__llegar:hover,
body.theme-public a.sg-donde__llegar:focus-visible {
  border: none;
  background: var(--color-red);
  color: var(--color-white);
}
body.theme-public a.sg-donde__llegar:hover,
body.theme-public a.sg-donde__llegar:focus-visible {
  filter: brightness(1.08);
  transform: none;
  animation: sgCtaBounce 0.9s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

body.theme-public .sg-donde__cards {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

@media (max-width: 800px) {
  body.theme-public .sg-donde {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.theme-public #seccion-quien .sg-section__head {
    justify-items: stretch;
    text-align: left;
  }
  body.theme-public #seccion-quien .sg-section__num {
    margin-inline: 0;
    justify-self: start;
    text-align: left;
  }
  body.theme-public .sg-quien {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2rem;
    margin-top: 2.4rem;
    width: 100%;
  }
  body.theme-public .sg-quien__media {
    align-items: center;
  }
  body.theme-public .sg-quien__body {
    gap: 1.55rem;
    justify-items: center;
  }
  body.theme-public .sg-quien__facts {
    justify-content: center;
    gap: 1rem 1.6rem;
  }
  body.theme-public .sg-quien__body .sg-section__title,
  body.theme-public .sg-quien__body .sg-section__lead {
    text-align: center;
  }
  body.theme-public .sg-quien__body .sg-section__lead {
    margin-inline: auto;
  }
  body.theme-public a.sg-quien__more,
  body.theme-public a.sg-quien__more:hover,
  body.theme-public a.sg-quien__more:focus-visible {
    justify-self: center;
    width: auto;
    max-width: 100%;
  }
}
body.theme-public .pie small { color: rgba(245, 245, 245, 0.72); }
body.theme-public .pie b { color: #f5f5f5; }

/* ==========================================================================
   Mobile dock — flotante, vidrio, tendencias 2026.
   ========================================================================== */
.sg-dock { display: none; }

@media (max-width: 900px) {
  body.theme-public { padding-bottom: calc(5.85rem + env(safe-area-inset-bottom)); }

  .sg-dock {
    position: fixed;
    inset-inline: 0;
    bottom: max(env(safe-area-inset-bottom), 0.55rem);
    z-index: 9400;
    width: min(100% - 1rem, 28rem);
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-999);
    box-shadow:
      0 20px 56px -22px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    isolation: isolate;
    transform-origin: bottom center;
    transform: translate3d(0, calc(100% + 2.2rem), 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.58s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.72s linear,
      border-color 0.7s cubic-bezier(0.45, 0.05, 0.55, 0.95),
      box-shadow 0.7s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  }

  .sg-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(12, 12, 12, 0.84);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  }

  .sg-dock > * {
    position: relative;
    z-index: 1;
  }

  .sg-dock.is-dock-in {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sg-dock.is-dock-on-light {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 20px 56px -22px rgba(0, 0, 0, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .sg-dock.is-dock-on-light::before {
    opacity: 1;
  }
  .sg-dock.is-dock-on-light .sg-dock__item {
    color: rgba(245, 245, 245, 0.62);
  }
  .sg-dock.is-dock-on-light .sg-dock__item:hover:not(.is-dock-on):not(.is-dock-fade),
  .sg-dock.is-dock-on-light .sg-dock__item:focus-visible:not(.is-dock-on):not(.is-dock-fade) {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
  }
  .sg-dock.is-dock-on-light .sg-dock__item.is-dock-fade {
    color: rgba(245, 245, 245, 0.62) !important;
    animation: sgDockOffOnLight 0.4s ease forwards;
  }

  body.menu-abierto .sg-dock,
  body.menu-abierto .sg-dock.is-dock-in {
    transform: translateY(140%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .sg-dock {
      transform: none;
      transition: opacity 0.28s ease, visibility 0.28s linear, border-color 0.28s ease;
    }
    .sg-dock::before {
      transition: opacity 0.28s ease;
    }
    .sg-dock.is-dock-in {
      transform: none;
    }
    body.menu-abierto .sg-dock,
    body.menu-abierto .sg-dock.is-dock-in {
      transform: none;
    }
  }

  .sg-dock__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3.1rem;
    border-radius: var(--radius-999);
    border: 0;
    background: transparent;
    color: rgba(10, 10, 10, 0.52);
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 750;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.42s ease, color 0.42s ease, transform 0.28s ease, flex 0.42s ease, padding 0.42s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .sg-dock__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sg-dock__item i { font-size: 1.08rem; color: inherit; }
  .sg-dock__item:hover:not(.is-dock-on):not(.is-dock-fade),
  .sg-dock__item:focus-visible:not(.is-dock-on):not(.is-dock-fade) {
    background: #ececec;
    color: rgba(10, 10, 10, 0.72);
    transform: translateY(-1px);
    outline: none;
  }

  .sg-dock__item.is-dock-on {
    flex: 1.65 1 0;
    min-width: 6.8rem;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding-inline: 0.7rem 0.55rem;
    background: var(--color-red) !important;
    color: #fff !important;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    animation: sgDockOn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .sg-dock__item.is-dock-on span {
    overflow: visible;
    text-overflow: unset;
  }
  .sg-dock__item.is-dock-on i {
    font-size: 0.92rem;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius-999);
    background: #ffffff;
    color: #0a0a0a !important;
  }
  .sg-dock__item.is-dock-on:hover,
  .sg-dock__item.is-dock-on:focus,
  .sg-dock__item.is-dock-on:focus-visible,
  .sg-dock__item.is-dock-on:active {
    background: var(--color-red) !important;
    color: #fff !important;
    transform: none;
  }
  .sg-dock__item.is-dock-fade {
    background: transparent !important;
    color: rgba(10, 10, 10, 0.52) !important;
    animation: sgDockOff 0.4s ease forwards;
  }
  .sg-dock__item.is-dock-fade i {
    width: auto;
    height: auto;
    background: transparent;
    color: inherit !important;
    font-size: 1.08rem;
  }
  @keyframes sgDockOn {
    from { background: transparent; transform: scale(0.96); }
    to { background: var(--color-red); transform: scale(1); }
  }
  @keyframes sgDockOff {
    from { background: var(--color-red); color: #fff; }
    to { background: transparent; color: rgba(10, 10, 10, 0.52); }
  }
  @keyframes sgDockOffOnLight {
    from { background: var(--color-red); color: #fff; }
    to { background: transparent; color: rgba(245, 245, 245, 0.62); }
  }

  body.theme-public .nav { display: none; }
  body.theme-public .btn-hamburguesa { display: none !important; }
  body.theme-public.is-page-legal .nav { display: flex !important; }
}

/* Tablet y móvil: hero centrado vertical y horizontalmente */
@media (max-width: 900px) {
  body.theme-public .sg-section {
    padding-block: clamp(3.8rem, 11vw, 5.4rem);
  }
  body.theme-public .sg-section__head {
    row-gap: 1.15rem;
    margin-bottom: 1.85rem;
  }
  body.theme-public .sg-wrap {
    padding-inline: max(var(--safe-pad), 1rem);
  }
  body.theme-public .sg-grid,
  body.theme-public .sg-steps {
    gap: 1.15rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-public #precios.sg-section--bignum {
    overflow: visible;
  }
  body.theme-public .sg-pricing {
    touch-action: pan-x pan-y;
    margin-inline: 0;
    padding-inline: 0.15rem 0.85rem;
    scroll-padding-inline: 0.15rem;
  }
  body.theme-public .sg-grupos__scroll {
    margin-inline: 0;
    padding-inline: 0.15rem 0.85rem;
    scroll-padding-inline: 0.15rem;
  }
  body.theme-public .sg-pricing,
  body.theme-public .sg-grupos__scroll {
    scrollbar-width: none;
  }
  body.theme-public .sg-pricing::-webkit-scrollbar,
  body.theme-public .sg-grupos__scroll::-webkit-scrollbar {
    height: 0;
    display: none;
  }
  body.theme-public .sg-crumbs:not([hidden]) {
    display: flex;
    margin-top: 1.15rem;
    margin-bottom: 0.35rem;
  }
  body.theme-public .sg-pricing__legal {
    margin-top: 2rem !important;
  }
  body.theme-public #contacto.sg-section--bignum {
    overflow: visible;
  }
  .sg-contacto,
  .sg-contacto--split {
    padding: clamp(1.7rem, 5.5vw, 2.2rem);
    gap: 2.1rem;
  }
  body.theme-public .sg-contacto__copy > a.btn-saya {
    margin-top: 1.05rem;
    margin-bottom: 0.15rem;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
  }
  .sg-contacto__lead,
  .sg-contacto__nota {
    margin-bottom: 0.45rem;
  }
  .sg-contacto__copy {
    overflow: visible;
  }
  body.theme-public .sg-plan {
    flex: 0 0 min(82vw, 20.5rem);
    width: min(82vw, 20.5rem);
    min-width: min(82vw, 20.5rem);
  }

  .sg-hero__bg {
    background:
      linear-gradient(110deg, rgba(0,0,0,0.92) 32%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%),
      url('../img/hero-saya.png') right center / cover no-repeat;
  }
  .sg-hero__inner {
    grid-template-columns: 1fr;
    min-height: clamp(28rem, 78svh, 51rem);
    align-items: start;
    justify-items: center;
    text-align: center;
    padding-block: clamp(2rem, 6vw, 3.6rem);
  }
  .sg-hero__copy {
    align-items: center;
    justify-content: flex-start;
  }
  .sg-hero__title { letter-spacing: -0.03em; text-wrap: balance; }
  .sg-hero__lead { margin-inline: auto; }
  .sg-hero__manifiesto { margin-inline: auto; }
  .sg-hero__chips { justify-content: center; }
  .sg-hero__cta { justify-content: center; }
  .sg-hero__meta {
    display: none;
  }

  .sg-hero.is-hero-swap .sg-hero__copy {
    display: contents;
  }
  .sg-hero.is-hero-swap .sg-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: start;
    align-items: start;
    justify-items: center;
    overflow: visible;
  }
  .sg-hero.is-hero-swap .sg-hero__kicker {
    grid-row: 1;
    grid-column: 1;
  }
  .sg-hero.is-hero-swap .sg-hero__rotator,
  .sg-hero.is-hero-swap .sg-hero__meta {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    max-width: 32rem;
    justify-self: center;
  }
  .sg-hero.is-hero-swap .sg-hero__rotator {
    overflow: hidden;
  }
  .sg-hero.is-hero-swap .sg-hero__cta {
    grid-row: 3;
    grid-column: 1;
  }
  .sg-hero.is-hero-swap .sg-hero__slide,
  .sg-hero.is-hero-swap .sg-hero__meta {
    backface-visibility: hidden;
    transition:
      transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.8s linear;
  }
  .sg-hero.is-hero-swap .sg-hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.7rem, 2.6vw, 1.05rem);
    align-self: start;
    align-content: start;
    text-align: center;
    justify-items: center;
    padding: 20px;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .sg-hero__kicker {
    margin: 0;
  }
  .sg-hero__cta {
    margin: 0;
  }
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-in,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-in {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
  }
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-wait,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-wait {
    transform: translate3d(108%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-out,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-out {
    transform: translate3d(-108%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .sg-hero.is-hero-swap-prep .sg-hero__slide,
  .sg-hero.is-hero-swap-prep .sg-hero__meta {
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .sg-section__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .sg-section__num {
    letter-spacing: 0.18em;
  }
}
@media (max-width: 480px) {
  .sg-grid { grid-template-columns: 1fr; }
  .sg-steps { grid-template-columns: 1fr; }
  .sg-contacto { grid-template-columns: 1fr; }
  .sg-contacto__actions { justify-content: flex-start; }
  .sg-contacto--split .sg-contacto__actions .btn-saya { width: 100%; max-width: none; }
  .sg-hero__chips {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    margin-bottom: 1rem;
  }
  .sg-hero__inner {
    min-height: clamp(26rem, 85svh, 48rem);
  }
  .sg-hero.is-hero-swap .sg-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .sg-hero.is-hero-swap .sg-hero__slide,
  .sg-hero.is-hero-swap .sg-hero__meta {
    transform: none;
    transition: opacity 0.35s ease, visibility 0.35s linear;
  }
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-in,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-in,
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-wait,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-wait,
  .sg-hero.is-hero-swap .sg-hero__slide.is-hero-out,
  .sg-hero.is-hero-swap .sg-hero__meta.is-hero-out {
    transform: none;
  }
}

/* Landscape de móvil (alturas pequeñas) */
@media (max-height: 480px) and (orientation: landscape) {
  .sg-hero { padding: 1.4rem 0; }
  .sg-hero__inner { min-height: 14rem; grid-template-columns: 1fr 1fr; }
  .sg-hero.is-hero-swap .sg-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .sg-dock { padding-block: 0.25rem; }
  .sg-dock__item { min-height: 2.4rem; font-size: 0.56rem; }
  .sg-dock__item.is-dock-on { transform: translateY(-0.2rem); }
}

@keyframes sgPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.55); }
  70%      { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
}

/* ==========================================================================
   Modales · sistema 2026 (mobile first, iPhone-safe, fluid type)
   - Sheet en móvil (bottom sheet), card centrada en tablet/desktop
   - Sin botón X (cierra con "Cancelar" o backdrop)
   - Animación de entrada suave
   ========================================================================== */
body.theme-public dialog.sg-modal {
  --m-gap: clamp(0.7rem, 2.5vw, 1.1rem);
  --m-pad: clamp(1.05rem, 3.5vw, 1.6rem);
  --m-radius: clamp(1.1rem, 4vw, 1.6rem);

  display: block;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100% - 1.4rem, 440px);
  max-width: min(100% - 1.4rem, 500px);
  max-height: calc(100dvh - max(env(safe-area-inset-top), 0.6rem) - max(env(safe-area-inset-bottom), 0.6rem) - 1.2rem);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--m-radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(229, 9, 20, 0.18), transparent 55%),
    linear-gradient(180deg, #101010, #050505);
  color: var(--color-white);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: sgModalIn 0.32s var(--easing-spring) both;
}
body.theme-public dialog.sg-modal.sg-modal--closing {
  pointer-events: none;
  animation: none !important;
}
body.theme-public dialog.sg-modal[hidden] { display: none !important; }

body.theme-public dialog.sg-modal::backdrop {
    background: rgb(26 25 25 / 67%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Limpiamos restos del antiguo botón × por si queda en algún sitio */
body.theme-public dialog.sg-modal .modal-close { display: none !important; }

/* Estructura interna en columna */
body.theme-public dialog.sg-modal {
  display: flex;
  flex-direction: column;
}

body.theme-public .sg-modal__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: var(--m-pad) var(--m-pad) calc(var(--m-pad) - 0.4rem);
}
body.theme-public .sg-modal__header:not(:has(.sg-modal__logo)) {
  grid-template-columns: 1fr;
}
body.theme-public .sg-modal__logo {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-999);
    border: solid 4px #ffffff96;
}
body.theme-public .sg-modal__eyebrow {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.15rem;
}
body.theme-public .sg-modal__title {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-yellow);
  line-height: 1.15;
  text-wrap: balance;
}

body.theme-public .sg-modal__body {
  padding: var(--m-pad);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  display: flex;
  flex-direction: column;
  gap: var(--m-gap);
  flex: 1 1 auto;
  min-height: 0;
}
body.theme-public .sg-modal__body::-webkit-scrollbar { width: 4px; }
body.theme-public .sg-modal__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
body.theme-public .sg-modal__body--center { align-items: center; justify-content: center; text-align: center; }

body.theme-public .sg-modal__text {
    margin: 0;
    font-size: clamp(0.92rem, 1.5rem, 1.2rem);
    line-height: 1.55;
    color: rgba(245, 245, 245, 0.86);
}
body.theme-public .sg-modal__text strong { color: var(--color-white); }

body.theme-public .sg-modal__link {
  display: inline-block;
  align-self: flex-start;
  margin-top: -1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: color var(--t), text-decoration-color var(--t);
}
body.theme-public .sg-modal__link:hover {
  color: var(--color-yellow);
  text-decoration-color: var(--color-yellow);
}

body.theme-public #dlg-login #login-fb {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.15rem;
  align-self: stretch;
}

/* Form */
body.theme-public .sg-form {
  display: grid;
  gap: 1.65rem;
}
body.theme-public .sg-field {
  display: grid;
  gap: 0.35rem;
}
body.theme-public .sg-field.sg-field--check {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
body.theme-public .sg-field__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.7);
}
body.theme-public .sg-field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: max(16px, 1rem); /* iOS: evita zoom al focar */
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-10);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
body.theme-public .sg-field__input:focus {
  outline: 0;
  border-color: var(--color-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
}
body.theme-public textarea.sg-field__input { min-height: 6.5rem; resize: vertical; }
body.theme-public .sg-field__input::placeholder { color: rgba(245, 245, 245, 0.4); }

/* iOS / Chrome autofill: evita fondo amarillo y mantiene el ojo visible */
body.theme-public .sg-field__input:-webkit-autofill,
body.theme-public .sg-field__input:-webkit-autofill:hover,
body.theme-public .sg-field__input:-webkit-autofill:focus,
body.theme-public .sg-field__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-white) !important;
  caret-color: var(--color-white);
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: background-color 99999s ease-out 0s;
}

/* Evitar que contenedores con overflow / blur recorten el botón ojo en móvil */
body.theme-public .campo.has-pw-toggle,
body.theme-public .campo.has-pw-toggle .pw-toggle-field {
  overflow: visible;
}
body.theme-public dialog.sg-modal .campo.has-pw-toggle,
body.theme-public dialog.sg-modal .campo.has-pw-toggle .pw-toggle-field {
  overflow: visible;
}

/* Ojo contraseña: contraste alto (body público hereda texto negro; backdrop-filter puede recortar capas) */
body.theme-public .pw-toggle,
body.theme-public dialog.sg-modal .pw-toggle {
  z-index: 25;
  color: #ffffff !important;
  background: transparent;
  border: transparent;
  border-radius: var(--radius-10, 10px);
  width: 2.65rem;
  height: 2.65rem;
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body.theme-public .pw-toggle:hover,
body.theme-public .pw-toggle:focus-visible,
body.theme-public dialog.sg-modal .pw-toggle:hover,
body.theme-public dialog.sg-modal .pw-toggle:focus-visible {
  color: var(--color-yellow, #ffd400) !important;
  background: rgba(28, 28, 32, 0.98) !important;
  border-color: rgba(255, 212, 0, 0.65) !important;
}
body.theme-public .pw-toggle svg,
body.theme-public .pw-toggle svg path,
body.theme-public dialog.sg-modal .pw-toggle svg,
body.theme-public dialog.sg-modal .pw-toggle svg path {
  fill: currentColor !important;
  opacity: 1 !important;
  vector-effect: non-scaling-stroke;
}

/* Sugerencia de corrección de email ("¿Quisiste decir …?") */
body.theme-public .sg-typo {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--color-white);
  background: rgba(255, 209, 0, 0.1);
  border: 1px solid rgba(255, 209, 0, 0.4);
  border-radius: var(--radius-10);
  animation: sgTypoIn 220ms var(--easing-spring) both;
}
body.theme-public .sg-typo[hidden] { display: none !important; }
body.theme-public .sg-typo__text { flex: 1 1 auto; min-width: 0; color: rgba(245, 245, 245, 0.9); }
body.theme-public .sg-typo__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 0.15rem;
  font: inherit;
  font-weight: 800;
  color: var(--color-yellow);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
body.theme-public .sg-typo__btn:hover { filter: brightness(1.15); }
body.theme-public .sg-typo__close {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(245, 245, 245, 0.7);
  background: transparent;
  border: 0;
  border-radius: var(--radius-999);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
body.theme-public .sg-typo__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}
@keyframes sgTypoIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-typo { animation: none; }
}

/* Misma sugerencia para campos legacy fuera de .sg-field */
body.theme-public .campo .sg-typo { margin-top: 0.35rem; }

/* Gate anti-typo inline dentro del modal de reserva */
body.theme-public .sg-typo-gate {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-10);
  background: rgba(255, 209, 0, 0.08);
  border: 1px solid rgba(255, 209, 0, 0.55);
  color: var(--color-white);
  line-height: 1.5;
  animation: sgTypoIn 220ms var(--easing-spring) both;
}
body.theme-public .sg-typo-gate strong { color: var(--color-yellow); }
body.theme-public .sg-typo-gate code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1rem 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-5, 6px);
  color: rgba(245, 245, 245, 0.95);
  word-break: break-all;
}
body.theme-public .sg-typo-gate__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
body.theme-public .sg-typo-gate__acts .btn-saya {
  flex: 1 1 12rem;
  justify-content: center;
}
@media (max-width: 560px) {
  body.theme-public .sg-typo-gate__acts .btn-saya { flex: 1 1 100%; }
}

/* Acciones */
body.theme-public .sg-modal__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: var(--m-gap) var(--m-pad) var(--m-pad);
  background: transparent;
}
body.theme-public .sg-modal__actions .btn-saya {
  flex: 0 0 auto;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
}

/* En paso de revisión y en la pantalla final ocultamos la cabecera
 * "Cita previa / Reserva tu sesión" para dejar todo el foco en el resumen
 * / la confirmación. Al pulsar "Editar" se quita la clase y vuelve. */
body.theme-public dialog.sg-modal.is-step3 > .sg-modal__header,
body.theme-public dialog.sg-modal.is-final  > .sg-modal__header {
  display: none;
}

/* Pantalla final: el dialog deja de comportarse como tarjeta. Sólo se
 * ve el check + el texto, sin fondo ni borde ni sombra. El backdrop sigue. */
body.theme-public dialog.sg-modal.is-final {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: center;
  align-items: center;
  width: min(100% - 1.4rem, 420px);
  max-height: calc(100dvh - max(env(safe-area-inset-top), 0.5rem) - max(env(safe-area-inset-bottom), 0.5rem) - 0.8rem);
  margin: auto;
}
body.theme-public dialog.sg-modal.is-final .sg-modal__body { background: transparent; }

/* -------------------------------------------------------------------------
 * Paso 3 · Revisión (antes de confirmar)
 * ------------------------------------------------------------------------- */
body.theme-public .sg-modal__subtitle {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
body.theme-public .sg-review {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-20);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-public .sg-review__row {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
body.theme-public .sg-review__row:last-child { border-bottom: 0; }
body.theme-public .sg-review dt {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 245, 245, 0.58);
  font-weight: 700;
}
body.theme-public .sg-review dd {
  margin: 0;
  font-size: clamp(0.98rem, 2.4vw, 1.05rem);
  color: var(--color-white);
  word-break: break-word;
  line-height: 1.35;
}
@media (max-width: 520px) {
  body.theme-public .sg-review__row { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* -------------------------------------------------------------------------
 * Paso final · Check estilo Apple Pay + mensaje en amarillo
 * ------------------------------------------------------------------------- */
body.theme-public .sg-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex: 1 1 auto;
  min-height: min(62dvh, 420px);
  width: 100%;
  padding: clamp(1.25rem, 4vmin, 2rem) var(--m-pad);
  margin: auto 0;
  background: transparent;
  box-sizing: border-box;
}
body.theme-public .sg-apple-check {
  --size: clamp(5.5rem, 18vw, 7.5rem);
  width: var(--size);
  height: var(--size);
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: transparent;
}
body.theme-public .sg-apple-check svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
body.theme-public .sg-apple-check__circle {
  stroke: var(--color-yellow, #ffd100);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163;           /* 2πr ≈ 2·π·24 ≈ 150.8, +holgura */
  stroke-dashoffset: 163;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
body.theme-public .sg-apple-check__mark {
  stroke: var(--color-yellow, #ffd100);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.45));
}
body.theme-public .sg-final__text {
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
  color: var(--color-yellow, #ffd100);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  letter-spacing: 0.005em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
}
/* Animaciones solo cuando el paso está activo (.is-on lo añade el JS) */
body.theme-public .sg-apple-check.is-on .sg-apple-check__circle {
  animation: sgAppleCircle 620ms cubic-bezier(.2,.85,.25,1) 60ms forwards;
}
body.theme-public .sg-apple-check.is-on .sg-apple-check__mark {
  animation: sgAppleMark 420ms cubic-bezier(.2,.85,.25,1) 640ms forwards;
}
body.theme-public .sg-final:not([hidden]) .sg-final__text {
  animation: sgAppleText 420ms cubic-bezier(.2,.85,.25,1) 980ms forwards;
}

@keyframes sgAppleCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes sgAppleMark {
  to { stroke-dashoffset: 0; }
}
@keyframes sgAppleText {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-apple-check__circle,
  body.theme-public .sg-apple-check__mark {
    animation: none;
    stroke-dashoffset: 0;
  }
  body.theme-public .sg-final__text { animation: none; opacity: 1; transform: none; }
}

/* Reserva: lista de horas */
body.theme-public .sg-horas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  gap: 0.5rem;
}
body.theme-public .sg-horas .hora,
body.theme-public dialog.sg-modal .hora {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-5);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
body.theme-public dialog.sg-modal .hora:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
body.theme-public dialog.sg-modal .hora[aria-pressed="true"] {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 14px 30px -14px rgba(229, 9, 20, 0.7);
}

/* Highlight de fechas/horas en texto */
body.theme-public dialog.sg-modal #res-dia,
body.theme-public dialog.sg-modal #res-dia-2,
body.theme-public dialog.sg-modal #res-hora-2 {
  color: var(--color-yellow);
  font-weight: 700;
}

/* Feedback */
body.theme-public dialog.sg-modal .feedback {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-10);
  font-size: 0.92rem;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
}
body.theme-public dialog.sg-modal .feedback--ok {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
}
body.theme-public dialog.sg-modal .feedback--err {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.14);
}

/* ----- Bottom sheet en móvil (≤560px), iPhone-safe ----- */
@media (max-width: 560px) {
  body.theme-public dialog.sg-modal {
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - max(env(safe-area-inset-top), 0.4rem));
    border-radius: var(--m-radius) var(--m-radius) 0 0;
    border-bottom: 0;
    animation: sgSheetIn 0.34s var(--easing-spring) both;
  }
  body.theme-public dialog.sg-modal::before {
    content: "";
    position: absolute;
    top: 1.45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.4rem;
    height: 0.28rem;
    border-radius: var(--radius-999);
    background: rgb(255 255 255 / 86%);
  }
  body.theme-public .sg-modal__header { padding-top: calc(var(--m-pad) + 1.8rem); margin-bottom: 1rem; }
  body.theme-public .sg-modal__actions {
    padding-bottom: calc(var(--m-pad) + env(safe-area-inset-bottom));
    flex-wrap: nowrap;
    margin-top: 2rem;
    padding-left: 0;
  }
  body.theme-public .sg-modal__actions .btn-saya {
    flex: 0 0 auto;
    width: fit-content;
  }

  body.theme-public dialog.sg-modal.is-final {
    inset: 0;
    margin: auto;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    animation: sgModalIn 0.32s var(--easing-spring) both;
  }
  body.theme-public dialog.sg-modal.is-final::before {
    content: none;
  }
}

/* ----- Landscape móvil (poca altura) ----- */
@media (max-height: 520px) and (orientation: landscape) {
  body.theme-public dialog.sg-modal {
    max-height: calc(100dvh - 0.6rem);
  }
  body.theme-public .sg-modal__header { padding-block: 0.7rem; }
  body.theme-public .sg-modal__body { padding-block: 0.6rem; }
  body.theme-public .sg-modal__actions { padding-block: 0.6rem; }
  body.theme-public .sg-final {
    min-height: 0;
    padding-block: 0.85rem;
    gap: 0.75rem;
  }
  body.theme-public .sg-apple-check {
    --size: clamp(4rem, 16vh, 5.5rem);
  }
}

@keyframes sgModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sgSheetIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Compatibilidad de páginas internas (calendario, restablecer, registro,
   cancelar) con el tema público nuevo. Sin tocar su HTML.
   ========================================================================== */
body.theme-public .seccion {
  background: var(--color-whitesmoke);
  color: var(--color-black);
}
body.theme-public .seccion--oscura {
  background: var(--color-black);
  color: var(--color-white);
}
body.theme-public .seccion__contenedor {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--safe-pad);
  padding-block: clamp(2rem, 4vw, 3.4rem);
}
body.theme-public .seccion__titulo {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
body.theme-public .cabecera-cal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
body.theme-public .cal-acciones { display: flex; gap: 0.4rem; flex-wrap: wrap; }
body.theme-public .seccion--oscura .cal-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-20);
}
body.theme-public .seccion--oscura .dia {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}
body.theme-public .seccion--oscura .dia--verde {
  background: var(--color-yellow);
  color: var(--color-black);
  border-color: var(--color-yellow);
}
body.theme-public .seccion--oscura .dia--verde:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
body.theme-public .seccion--oscura .cab { color: rgba(245,245,245,.65); }

/* Botones genéricos del proyecto antiguo dentro del nuevo tema */
body.theme-public .btn--primario {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius-999);
}
body.theme-public .btn--primario:hover { filter: brightness(1.05); transform: translateY(-1px); }
body.theme-public .btn--fantasma {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: var(--radius-999);
}
body.theme-public .btn--fantasma:hover {
  background: currentColor;
  color: var(--color-black);
}

/* ==========================================================================
   Subir arriba — visible tras la 2ª sección, smooth, encima del dock
   ========================================================================== */
body.theme-public #btn-top.btn-top {
  position: fixed;
  inset: auto var(--safe-pad) calc(env(safe-area-inset-bottom) + 1.1rem) auto;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  background: var(--color-black);
  color: var(--color-white);
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-999);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  cursor: pointer;
  z-index: 95;
  transition: opacity 280ms var(--easing-spring), transform 320ms var(--easing-spring), background var(--t);
}
body.theme-public #btn-top.btn-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
body.theme-public #btn-top.btn-top:hover { background: var(--color-red); border-color: var(--color-red); }
body.theme-public #btn-top.btn-top i { font-size: 0.95rem; }

@media (max-width: 900px) {
  body.theme-public #btn-top.btn-top {
    display: none !important;
  }
}

body.menu-abierto #btn-top.btn-top {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sg-dock__item.is-dock-on i { animation: none; }
  body.theme-public dialog.sg-modal { animation: none; }
  body.theme-public #btn-top.btn-top { transition: none; }
}

/* ==========================================================================
   06 · Precios — 4 planes claros y un bloque para mujeres
   ========================================================================== */
body.theme-public .sg-pricing {
  --gap: clamp(1rem, 2.3vw, 1.5rem);
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  margin-inline: calc(var(--safe-pad, 1rem) * -1);
  padding: 1.1rem var(--safe-pad, 1rem) 1.7rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
body.theme-public .sg-pricing::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 900px) {
  body.theme-public .sg-pricing {
    margin-inline: 0;
    padding-inline: 0.15rem 0.85rem;
    scroll-padding-inline: 0.15rem;
    padding-bottom: 2.15rem;
    margin-bottom: -1.25rem;
  }
}

body.theme-public .sg-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  flex: 0 0 min(86vw, 22.5rem);
  width: min(86vw, 22.5rem);
  min-width: min(86vw, 22.5rem);
  box-sizing: border-box;
  overflow: visible;
  scroll-snap-align: start;
  padding: clamp(1.5rem, 2.4vw, 2.4rem);
  padding-bottom: 1.7rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-20);
  color: var(--color-white);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
body.theme-public .sg-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

body.theme-public .sg-plan--soft {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 209, 0, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 209, 0, 0.28);
}

body.theme-public .sg-plan--featured {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(229, 9, 20, 0.22), transparent 55%),
    linear-gradient(180deg, #141414, #0b0b0b);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 28px 60px -28px rgba(229, 9, 20, 0.55);
}
body.theme-public .sg-plan--featured:hover {
  border-color: var(--color-red);
  transform: translateY(-5px);
}

body.theme-public .sg-plan__badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: var(--radius-999);
  box-shadow: 0 14px 28px -14px rgba(229, 9, 20, 0.65);
  white-space: nowrap;
}

body.theme-public .sg-plan__head { display: grid; gap: 0.35rem; }
body.theme-public .sg-plan__eyebrow {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
}
body.theme-public .sg-plan--soft .sg-plan__eyebrow { color: var(--color-yellow); }
body.theme-public .sg-plan--featured .sg-plan__eyebrow { color: var(--color-red); }

body.theme-public .sg-plan__name {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-white);
}
body.theme-public .sg-plan__pitch {
  margin: 0.15rem 0 0;
  font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1rem);
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.78);
  text-wrap: pretty;
}

body.theme-public .sg-plan__price {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 0.5rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-public .sg-plan__amount {
  font-size: clamp(2.9rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-white);
}
body.theme-public .sg-plan--featured .sg-plan__amount {
  background: linear-gradient(180deg, #fff 0%, #ffd1d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-public .sg-plan__per {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd400;
    letter-spacing: 0;
}
body.theme-public .sg-plan__note {
  margin: -0.35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 245, 0.55);
}

body.theme-public .sg-plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1 1 auto;
}
body.theme-public .sg-plan__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.82);
}
body.theme-public .sg-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
  opacity: 0.85;
}
body.theme-public .sg-plan--featured .sg-plan__list li::before { border-color: var(--color-red); opacity: 1; }
body.theme-public .sg-plan--soft .sg-plan__list li::before { border-color: var(--color-yellow); opacity: 1; }

body.theme-public .sg-plan__cta {
    margin: auto auto 0;
    margin-top: 1.4rem;
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    padding-inline: 1.15rem;
    overflow: visible;
}

body.theme-public .sg-pricing__legal {
  margin: 0 auto clamp(2.4rem, 5vw, 3.5rem);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #9a9a9a;
}
body.theme-public .sg-pricing__legal,
body.theme-public .sg-pricing__legal * {
  color: #9a9a9a;
}

body.theme-public .sg-crumbs {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.42rem;
  margin: 0.95rem 0 0;
  min-height: 1.15rem;
  padding: 0;
  border: 0;
}
body.theme-public .sg-crumbs__dot {
  appearance: none;
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.22);
  opacity: 0.55;
  transform: scale(0.92);
  cursor: pointer;
  transition:
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.42s ease;
}
body.theme-public .sg-crumbs__dot.is-on {
  width: 1.45rem;
  opacity: 1;
  transform: scale(1);
  background: var(--color-red);
  animation: sgCrumbIn 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
body.theme-public .sg-crumbs__dot.is-off {
  animation: sgCrumbOut 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.theme-public .sg-crumbs--on-dark .sg-crumbs__dot {
  background: rgba(255, 255, 255, 0.28);
}
body.theme-public .sg-crumbs--on-dark .sg-crumbs__dot.is-on {
  background: var(--color-yellow);
}
@keyframes sgCrumbIn {
  from { transform: scale(0.7); opacity: 0.25; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes sgCrumbOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-crumbs__dot,
  body.theme-public .sg-crumbs__dot.is-on,
  body.theme-public .sg-crumbs__dot.is-off {
    animation: none;
    transition: none;
  }
}

/* ==========================================================================
   Bloque · Para ellas (independiente al final de Filosofía)
   ========================================================================== */
body.theme-public .sg-philo__after {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}
body.theme-public .sg-women {
  position: relative;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
body.theme-public .sg-women::before {
  display: none;
}

@media (max-width: 880px) {
  body.theme-public .sg-women { grid-template-columns: 1fr; }
}

body.theme-public .sg-women__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  max-width: 60ch;
  min-width: 0;
}
body.theme-public .sg-women__eyebrow {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-red);
}
body.theme-public .sg-women__title { font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; font-size: clamp(30px, 3.5vw, 49px); margin: .7em 0 0 0em; color: #dd3432; }
body.theme-public .sg-women__lead {
  margin: 0;
  font-size: clamp(0.96rem, 1.2vw + 0.45rem, 1.2rem);
  line-height: 1.6;
  color: #121212;
  text-wrap: pretty;
}
body.theme-public .sg-women__lead strong { color: #121212; }
body.theme-public .sg-section--dark .sg-women__lead,
body.theme-public .sg-section--dark .sg-women__lead strong {
  color: rgba(245, 245, 245, 0.88);
}

body.theme-public .sg-women__list {
  list-style: none;
  margin: 2.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
body.theme-public .sg-women__list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: start;
  gap: 0.7rem;
}
body.theme-public .sg-women__list li > i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-999);
  background: rgba(229, 9, 20, 0.14);
  color: var(--color-red);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}
body.theme-public .sg-women__list li > div { display: grid; gap: 0.15rem; }
body.theme-public .sg-women__list li strong {
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  font-weight: 800;
  color: #121212;
  line-height: 1.25;
}
body.theme-public .sg-women__list li span {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #3a3a3a;
    margin-top: 0.7rem;
    margin-bottom: 1rem;
}
body.theme-public .sg-section--dark .sg-women__list li strong { color: #f5f5f5; }
body.theme-public .sg-section--dark .sg-women__list li span { color: rgba(245, 245, 245, 0.74); }

body.theme-public .sg-women__small {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.78);
  border-left: 3px solid var(--color-yellow);
  background: rgba(255, 209, 0, 0.05);
  border-radius: 0 var(--radius-10) var(--radius-10) 0;
}

body.theme-public .sg-women__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-bottom: 0.2rem;
}
body.theme-public .sg-women__actions .btn-saya {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

/* Visual de la derecha: símbolo Venus grande + ficha tipográfica abajo */
body.theme-public .sg-women__visual { position: relative; z-index: 1; margin: 0; width: 100%; max-width: 460px; min-height: 28rem; justify-self: end; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 3.5%, 1.8rem); padding-bottom: clamp(1.7rem, 5vw, 2.3rem); border-radius: var(--radius-30); background: radial-gradient(55% 45% at 50% 30%, rgba(229, 9, 20, 0.32), transparent 70%), radial-gradient(70% 60% at 100% 110%, rgba(255, 209, 0, 0.1), transparent 70%), linear-gradient(180deg, #12121291 0%, #05050552 100%); overflow: hidden; isolation: isolate; backdrop-filter: blur(21px); -webkit-backdrop-filter: blur(21px); }
body.theme-public .sg-women__visual-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 35% at 50% 32%, rgba(229, 9, 20, 0.55), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
body.theme-public .sg-women__visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 92%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
body.theme-public .sg-women__visual-mark {
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 1;
  color: var(--color-red);
  filter: drop-shadow(0 20px 50px rgba(229, 9, 20, 0.5));
  pointer-events: none;
}
body.theme-public .sg-women__visual-foot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-top: 0.4rem;
}
body.theme-public .sg-women__visual-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.65);
}
body.theme-public .sg-women__visual-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-white);
  text-wrap: balance;
}
body.theme-public .sg-women__visual-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

/* Tablet/móvil: visual a ancho completo y proporción más cómoda */
@media (max-width: 880px) {
  body.theme-public .sg-women__visual {
    justify-self: stretch;
    max-width: 100%;
    min-height: 22rem;
    padding: clamp(1.2rem, 4vw, 1.8rem);
    padding-bottom: clamp(1.7rem, 5.5vw, 2.4rem);
  }
  body.theme-public .sg-women__visual-mark {
    font-size: clamp(7rem, 28vw, 14rem);
  }
}
@media (max-width: 560px) {
  body.theme-public .sg-women__visual {
    min-height: 0;
    max-height: none;
    height: auto;
  }
  body.theme-public .sg-women__visual-mark {
    font-size: clamp(5rem, 32vw, 10rem);
  }
  body.theme-public .sg-women__visual-title {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }
}

/* Utilidades */
body.theme-public .hide-mobile { display: inline; }
@media (max-width: 560px) {
  body.theme-public .hide-mobile { display: none; }
}

/* ==========================================================================
   /quien-soy — historia
   ========================================================================== */
body.theme-public.is-page-historia .cabecera,
body.theme-public.is-page-historia .sg-dock,
body.theme-public.is-page-historia #btn-top {
  display: none !important;
}
body.theme-public.is-page-historia {
  padding-bottom: 0;
}
body.theme-public.is-page-historia .sg-wrap {
  padding-inline: max(var(--safe-pad), clamp(1.35rem, 6vw, 2.25rem));
}

body.theme-public .sg-historia {
  animation: sgHistoriaIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.theme-public .sg-historia.is-leave {
  animation: sgHistoriaOut 480ms ease forwards;
}
@keyframes sgHistoriaIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes sgHistoriaOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-18px); }
}

body.theme-public .sg-historia__intro {
  background: #121212;
  color: #f5f5f5;
  padding: clamp(3.4rem, 9vw, 5.4rem) 0 clamp(2.4rem, 6vw, 4.6rem);
}
body.theme-public .sg-historia__intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}
body.theme-public .sg-historia__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.15rem;
}
body.theme-public .sg-historia__foto { width: min(11.5rem, 38vw); height: min(11.5rem, 38vw); border-radius: 50%; object-fit: cover; object-position: center 20%; border: solid 13px #f8f8f6a1; }
body.theme-public .sg-historia__volver {
  border: none;
}
body.theme-public .sg-historia__brand {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
body.theme-public .sg-historia__name {
  margin: 0 0 0.85rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #f5f5f5;
}
body.theme-public .sg-historia__kicker {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
body.theme-public .sg-historia__title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; color: #f5f5f5; text-transform: none; }
body.theme-public .sg-historia__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  margin: 1.2rem 0 0;
}
body.theme-public .sg-historia__facts div { margin: 0; }
body.theme-public .sg-historia__facts dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
}
body.theme-public .sg-historia__facts dd {
  margin: 0.2rem 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #f5f5f5;
}
body.theme-public .sg-historia__estado {
  color: var(--color-red);
}

body.theme-public .sg-historia__story {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}
body.theme-public .sg-historia__story .sg-section__title {
  margin: 0 0 1.1rem;
}
body.theme-public .sg-historia__story p {
  max-width: none;
  width: 100%;
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: #121212;
}

body.theme-public .sg-historia__proposito {
  background: #121212;
  color: #f5f5f5;
  padding: clamp(2.2rem, 5vw, 3.8rem) 0;
  transition: transform 280ms ease, background 280ms ease;
}
body.theme-public .sg-historia__proposito:hover {
  transform: translateY(-3px);
}
body.theme-public .sg-historia__proposito-kicker { margin-bottom: 2rem !important; font-weight: 800; line-height: 1.35; color: var(--color-yellow); }
body.theme-public .sg-historia__proposito-titulo {
  max-width: 68ch;
  margin: 0;
  font-size: clamp(1.2rem, 1.5vw, 1.7rem);
  letter-spacing: 6.4px;
}
body.theme-public .sg-historia__proposito p:not(.sg-historia__proposito-titulo) {
  max-width: 68ch;
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}
body.theme-public .sg-historia__proposito-end {
  margin-top: 1.1rem !important;
  font-weight: 800;
  color: var(--color-red);
}

@media (max-width: 900px) {
  body.theme-public.is-page-historia .sg-wrap {
    padding-inline: max(1.35rem, env(safe-area-inset-left, 0px), var(--safe-pad))
                   max(1.35rem, env(safe-area-inset-right, 0px), var(--safe-pad));
  }
  body.theme-public .sg-historia__intro {
    padding-top: max(2.8rem, calc(env(safe-area-inset-top, 0px) + 1.6rem));
    padding-bottom: 2.6rem;
  }
  body.theme-public .sg-historia__story,
  body.theme-public .sg-historia__proposito {
    padding-block: 2.6rem;
  }
  body.theme-public .sg-historia__proposito-titulo {
    letter-spacing: 0.1em;
    max-width: none;
  }
  body.theme-public .sg-historia__story .sg-section__title {
    margin: 0 0 1.35rem;
  }
}
@media (max-width: 700px) {
  body.theme-public .sg-historia__intro-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.8rem;
  }
  body.theme-public .sg-historia__media {
    align-items: center;
    padding-top: 0;
  }
  body.theme-public .sg-historia__facts { justify-content: center; }
  body.theme-public .sg-historia__meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-historia,
  body.theme-public .sg-historia.is-leave,
  body.theme-public .sg-historia__proposito {
    animation: none;
    transform: none;
  }
}

/* ==========================================================================
   Página /cancelar — integrada en el hero, sin modal
   - Reutiliza .sg-hero__bg (mismo fondo del index)
   - Tipografía fluida y safe-areas iPhone
   - Acciones a la derecha; en móvil, en columna full-width
   ========================================================================== */
/* PWA / iPhone: cadena de altura para evitar franja negra bajo el viewport */
html:where(:has(body.theme-public.is-page-cancelar)) {
  height: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
}
body.theme-public.is-page-cancelar {
  background: var(--color-black);
  color: var(--color-white);
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  /* Sin scroll en el documento: fondo fijo + scroll sólo en tarjeta (.sg-cancel__inner). */
  overflow: hidden;
  overscroll-behavior: none;
}
body.theme-public.is-page-cancelar .cabecera {
  flex-shrink: 0;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-public.is-page-cancelar main#contenido {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* PWA/iOS: cubrir el viewport bajo la cabecera para evitar franja vacía */
  min-height: max(
    0px,
    calc(
      100dvh - 5.75rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    )
  );
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
  overscroll-behavior: none;
}

/* Modal entrar: tipografía */
body.theme-public #dlg-login,
body.theme-public #dlg-login .sg-modal__header,
body.theme-public #dlg-login .sg-form {
  font-family: "Dosis", ui-sans-serif, system-ui, sans-serif;
}

/* Formularios en página restablecer (misma tarjeta que /cancelar) */
body.theme-public .sg-form-reset {
  display: grid;
  gap: clamp(0.65rem, 2vw, 0.95rem);
  margin: 0;
}
body.theme-public .sg-form-reset .sg-cancel__actions {
  margin-top: 2.25rem;
}
body.theme-public.is-page-cancelar .brand__name {
  color: var(--color-yellow, #ffd100);
}
body.theme-public.is-page-cancelar .brand__claim {
  color: var(--color-white);
  opacity: 0.9;
}
body.theme-public.is-page-cancelar .brand .logo {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--color-white);
}
body.theme-public.is-page-cancelar .nav__cta {
  background: var(--color-red);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
body.theme-public.is-page-cancelar .nav__cta:hover,
body.theme-public.is-page-cancelar .nav__cta:focus-visible {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  outline: none;
}
body.theme-public .sg-cancel {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--header-h, 4.2rem));
  display: grid;
  align-items: center;
  padding:
    clamp(2.4rem, 7vw, 5rem)
    var(--safe-pad, clamp(1rem, 4vw, 2rem))
    calc(clamp(2.4rem, 7vw, 5rem) + env(safe-area-inset-bottom, 0px));
  /* Un solo eje de scroll: el documento. Evita que .sg-hero__bg (absolute) y el formulario se desincronicen. */
  overflow-x: clip;
  overflow-y: visible;
  color: var(--color-white);
}
body.theme-public .sg-cancel .sg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Pantallas slim: columna a altura útil; fondo hero fijo */
body.theme-public.is-page-cancelar .sg-cancel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding:
    clamp(1rem, 3vw, 1.5rem)
    var(--safe-pad, clamp(1rem, 4vw, 2rem))
    calc(clamp(1rem, 3vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
}
body.theme-public.is-page-cancelar .sg-cancel .sg-hero__bg {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  min-height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
}
body.theme-public.is-page-cancelar .sg-wrap.sg-cancel__container {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: min(100%, 60ch);
  margin-inline: auto;
}

@media (max-width: 900px) {
  body.theme-public .sg-cancel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 5rem);
    padding: clamp(1rem, 4vw, 1.75rem) var(--safe-pad, clamp(1rem, 4vw, 2rem));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
  }
  body.theme-public.is-page-cancelar .sg-cancel {
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    padding:
      clamp(0.85rem, 3vw, 1.25rem)
      var(--safe-pad, clamp(1rem, 4vw, 2rem))
      calc(clamp(0.85rem, 3vw, 1.25rem) + env(safe-area-inset-bottom, 0px));
  }
  body.theme-public.is-page-cancelar .sg-wrap.sg-cancel__container {
    flex: 1 1 auto;
    min-height: 0;
    flex-shrink: 1;
  }
  body.theme-public .sg-cancel .sg-wrap.sg-cancel__container {
    width: 100%;
    max-width: min(100%, 60ch);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

body.theme-public .sg-cancel__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 60ch);
  margin-inline: auto;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius-30, 30px);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(229, 9, 20, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.92), rgba(5, 5, 5, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}
/* Scroll interno en la tarjeta (páginas slim): el fondo queda fijo fuera */
body.theme-public.is-page-cancelar .sg-cancel__inner {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(
    88vh,
    88dvh,
    calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6.75rem),
    calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6.75rem)
  );
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.theme-public.is-page-cancelar .sg-cancel__success {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(
    88vh,
    88dvh,
    calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6.75rem),
    calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6.75rem)
  );
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.theme-public .sg-cancel__eyebrow {
  display: inline-block;
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.6);
  font-weight: 700;
}
body.theme-public .sg-cancel__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-yellow);
  text-wrap: balance;
}
body.theme-public .sg-cancel__text {
  margin: 0;
  margin-bottom: 1rem;
  font-size: clamp(0.98rem, 1.6vw + 0.2rem, 1.08rem);
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.86);
}
body.theme-public .sg-cancel__text strong { color: var(--color-white); }

body.theme-public .sg-cancel__feedback {
  margin: 0.2rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-10, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  font-size: clamp(0.9rem, 1.4vw + 0.2rem, 1rem);
}
body.theme-public .sg-cancel__feedback.feedback--ok {
  border-color: rgba(0, 200, 120, 0.55);
  background: rgba(0, 200, 120, 0.12);
}
body.theme-public .sg-cancel__feedback.feedback--err {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.10);
}

/* -------- Pantalla de éxito: solo el check, sin fondo, centrado ---------- */
body.theme-public .sg-cancel__success {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 90ch);
  margin-inline: auto;
  display: grid;
  place-items: center;
  text-align: center;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  padding: clamp(1.4rem, 4vw, 2.4rem) var(--safe-pad, clamp(1rem, 4vw, 2rem));
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.theme-public .sg-cancel__success-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-yellow, #ffd100);
  text-wrap: balance;
}
body.theme-public .sg-cancel__success-text {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 72ch);
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
  font-size: clamp(0.95rem, 1.6vw + 0.2rem, 1.1rem);
  line-height: 1.5;
  color: var(--color-white);
  opacity: 0.92;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Animación check tipo Apple Pay (sin fondo, trazo amarillo) */
body.theme-public .sg-cancel__check {
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: transparent;
}
body.theme-public .sg-cancel__check svg {
  width: clamp(6rem, 22vw, 9rem);
  height: auto;
  overflow: visible;
}
body.theme-public .sg-cancel__circle {
  stroke: var(--color-yellow, #ffd100);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
body.theme-public .sg-cancel__mark {
  stroke: var(--color-yellow, #ffd100);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  filter: drop-shadow(0 0 6px rgba(255, 209, 0, 0.45));
}
body.theme-public .sg-cancel__check.is-on .sg-cancel__circle {
  animation: sgAppleCircle 620ms cubic-bezier(.2,.85,.25,1) 60ms forwards;
}
body.theme-public .sg-cancel__check.is-on .sg-cancel__mark {
  animation: sgAppleMark 420ms cubic-bezier(.2,.85,.25,1) 640ms forwards;
}

/* Acciones */
body.theme-public .sg-cancel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
  justify-content: flex-end;
}
body.theme-public .sg-cancel__actions .btn-saya {
  flex: 0 0 auto;
  width: fit-content;
  min-height: 2.7rem;
  font-size: clamp(0.95rem, 1.4vw + 0.2rem, 1rem);
}
/* CTA "Cancelar cita" — texto en rojo, borde rojo, igual que el del email */
body.theme-public .sg-cancel__cta {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--color-red, #e10600);
  color: var(--color-red, #e10600);
}
body.theme-public .sg-cancel__cta:hover,
body.theme-public .sg-cancel__cta:focus-visible {
  background: var(--color-red, #e10600);
  color: var(--color-white);
  outline: none;
}
body.theme-public .sg-cancel__cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Responsive · móviles y landscape pequeño */
@media (max-width: 560px) {
  body.theme-public .sg-cancel__inner {
    padding: clamp(1.1rem, 5vw, 1.6rem);
    border-radius: var(--radius-20, 20px);
  }
  body.theme-public .sg-cancel__actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
  }
  body.theme-public .sg-cancel__actions .btn-saya {
    flex: 1 1 auto;
    min-width: min(100%, 8.5rem);
    max-width: 100%;
    width: auto;
    justify-content: center;
    text-align: center;
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  body.theme-public .sg-cancel {
    min-height: auto;
    padding-top: clamp(1.2rem, 4vw, 2rem);
    padding-bottom: clamp(1.2rem, 4vw, 2rem);
  }
  body.theme-public.is-page-cancelar .sg-cancel {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-public .sg-cancel__circle,
  body.theme-public .sg-cancel__mark {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Modal baja pendiente: mismo diseño que el de sesión cerrada de la cuenta */
body.theme-public dialog.cuenta-sesion-dlg {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100% - 28px, 420px);
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #0c0e0d;
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  z-index: 12000;
}

body.theme-public dialog.cuenta-sesion-dlg[hidden] {
  display: none !important;
}

body.theme-public dialog.cuenta-sesion-dlg::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-public .cuenta-sesion-dlg__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-public .cuenta-sesion-dlg__logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

body.theme-public .cuenta-sesion-dlg__eyebrow {
  display: block;
  margin: 0 0 2px;
  color: #ffd100;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-public .cuenta-sesion-dlg__title {
  margin: 0;
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

body.theme-public .cuenta-sesion-dlg__body {
  padding: 16px 20px 8px;
}

body.theme-public .cuenta-sesion-dlg__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 3.9vw, 1.05rem);
  line-height: 1.55;
  font-weight: 600;
}

body.theme-public .cuenta-sesion-dlg__actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 20px;
}

body.theme-public .cuenta-sesion-dlg__btn {
  width: fit-content;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  background: #e10600;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

body.theme-public .cuenta-sesion-dlg__btn:hover {
  filter: brightness(1.06);
}

body.theme-public .cuenta-sesion-dlg__btn:active {
  transform: scale(0.98);
}

@media (max-width: 380px) {
  body.theme-public dialog.cuenta-sesion-dlg {
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  body.theme-public .cuenta-sesion-dlg__header,
  body.theme-public .cuenta-sesion-dlg__body,
  body.theme-public .cuenta-sesion-dlg__actions {
    padding-left: 16px;
    padding-right: 16px;
  }
}

