/* =====================================================================
   CAZU — Design system de la página pública (perfil digital de negocio)
   Mobile-first. Tokens en :root, sobreescritos por variables inline
   por negocio (color_primary/secondary/background) desde la vista.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,800,900&display=swap');

:root {
  --cz-ink: #17171A;
  --cz-ink-soft: #6B6B70;
  --cz-surface: #FFFFFF;
  --cz-bg: #FAFAF8;
  --cz-accent: #C2542C;
  --cz-on-accent: #FFFFFF;
  /* Acento usado como COLOR DE TEXTO/foco: business.php lo baja al color
     de texto principal si el acento no tiene 4.5:1 sobre el fondo. */
  --cz-accent-text: var(--cz-accent);
  --cz-border: rgba(23, 23, 26, 0.09);
  --cz-radius-lg: 28px;
  --cz-radius-md: 20px;
  --cz-radius-sm: 12px;
  --cz-shadow-soft: 0 24px 60px -28px rgba(23, 23, 26, 0.35), 0 2px 10px -2px rgba(23, 23, 26, 0.06);
  --cz-shadow-btn: 0 1px 2px rgba(23, 23, 26, 0.04);
  --cz-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cz-font-display: 'Satoshi', 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cz-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.cz-body {
  margin: 0;
  background: var(--cz-bg);
  color: var(--cz-ink);
  font-family: var(--cz-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
button { font: inherit; }

/* ---------- Foco visible (accesibilidad) ----------
   Ningún enlace/botón de la página pública declaraba su propio anillo de
   foco (solo el input del formulario de marketing lo tenía) — quien
   navega con teclado dependía del azul por defecto del navegador, que
   además desentona sobre un .cz-btn--solid pintado con el color de marca
   del negocio. Usa var(--cz-accent) para que respete la paleta que cada
   negocio eligió, no un color fijo. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cz-accent-text);
  outline-offset: 2px;
}

.cz-page {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--cz-bg);
  position: relative;
}

/* ---------- Hero ---------- */
.cz-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 38vh;
  min-height: 200px;
  overflow: hidden;
  background: var(--cz-accent-hero-bg, var(--cz-ink));
}
.cz-hero img.cz-hero-img {
  /* object-position real viene inline desde business.php, calculado con el
     punto focal guardado por cada sede (cover_focal_x/cover_focal_y, ver
     Identidad visual → "Punto focal de la portada"). "center 30%" acá
     queda solo como resguardo si por algo el inline no llegara a
     renderizarse — coincide con el default de la columna en la base de
     datos, así que el comportamiento visual no cambia si falta. */
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.cz-hero-scrim {
  position: absolute; inset: 0;
  /* Fallback simple (navegadores sin soporte de color-mix): degradado neutro. */
  background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,0.88) 100%);
  /* Degradado teñido con el color de marca del negocio, de punta a punta.
     La franja inferior se mantiene sólida (no solo "más oscura") para
     que el nombre/categoría y el avatar sean legibles sin importar qué
     tan cargada esté la foto que subió el negocio ahí abajo. */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--cz-accent-hero-bg, #17171A) 30%, transparent) 0%,
    transparent 34%,
    color-mix(in srgb, var(--cz-accent-hero-bg, #17171A) 78%, black 22%) 78%,
    color-mix(in srgb, var(--cz-accent-hero-bg, #17171A) 88%, black 40%) 100%
  );
}
.cz-hero-noimg { display:flex; align-items:flex-end; justify-content:center; padding-bottom: 2.5rem; }
.cz-hero-overlay-text {
  position: absolute; left: 0; right: 0;
  /* El avatar solapa el límite foto/sheet y su borde superior queda a
     50px del fondo del hero (ver .cz-avatar-wrap .cz-avatar: bottom:-34px
     + 84px de alto). Antes este bloque reservaba solo 58px → apenas 8px
     de aire real entre "RESTAURANTE" y el círculo, que en pantallas
     chicas se leía como si el texto y el logo se tocaran/colapsaran.
     82px deja ~32px de respiro real, consistente con el resto del
     espaciado del hero. */
  bottom: 82px;
  padding: 1.75rem 1.5rem 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.cz-hero-name {
  font-family: var(--cz-font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}
.cz-hero-category {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

/* Avatar flotante que solapa el límite foto/sheet */
.cz-avatar-wrap { position: relative; height: 0; }
.cz-avatar-wrap .cz-avatar {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 84px; height: 84px; border-radius: 50%;
  border: 4px solid var(--cz-surface);
  box-shadow: var(--cz-shadow-soft);
  overflow: hidden; background: var(--cz-surface);
  z-index: 3;
}
/* cover (no padding) para que el logo del cliente siempre llene el
   círculo de borde a borde — con "contain" un logo no cuadrado (muy
   ancho, o con mucho margen transparente) quedaba flotando chico
   dentro del círculo y visualmente "no se veía circular". */
.cz-avatar img { width: 100%; height: 100%; object-fit: cover; background: var(--cz-surface); }

/* ---------- Sheet (contenido) ---------- */
.cz-sheet {
  position: relative;
  background: var(--cz-bg);
  border-radius: var(--cz-radius-lg) var(--cz-radius-lg) 0 0;
  margin-top: -28px;
  padding: 2.75rem 1.25rem 3rem;
  z-index: 2;
}

.cz-profile { text-align: center; padding: 0 0 0.5rem; }
.cz-profile .cz-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 4px solid var(--cz-surface); box-shadow: var(--cz-shadow-soft); }
.cz-profile .cz-avatar--square { border-radius: var(--cz-radius-md); }
.cz-name { font-family: var(--cz-font-display); font-weight: 800; font-size: 1.55rem; margin: 0 0 0.2rem; letter-spacing: -0.02em; }
.cz-category { color: var(--cz-accent-text); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 0.75rem; }
.cz-description { color: var(--cz-ink-soft); font-size: 0.95rem; max-width: 40ch; margin: 0 auto; }

/* Cuando el hero ya trae el nombre superpuesto en la foto, el bloque
   .cz-profile del sheet omite nombre/categoría (ver render) y sólo
   deja avatar + descripción. */

/* ---------- Social icons ---------- */
.cz-social-row {
  display: flex; justify-content: center; gap: 0.65rem; flex-wrap: wrap;
  margin: 1.25rem 0 1.75rem;
}
.cz-social-icon {
  flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cz-surface); color: var(--cz-ink);
  border: 1px solid var(--cz-border);
  box-shadow: var(--cz-shadow-btn);
  transition: transform 0.25s var(--cz-ease), background 0.25s var(--cz-ease), color 0.25s var(--cz-ease);
}
.cz-social-icon:active { transform: scale(0.92); }
.cz-social-icon:hover { background: var(--cz-accent); color: var(--cz-on-accent); }

/* ---------- Botones tipo lista (link_button / whatsapp / menu / etc.) ---------- */
.cz-btn {
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%;
  background: var(--cz-surface);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--cz-shadow-btn);
  min-height: 44px;
  touch-action: manipulation;
  transition: transform 0.2s var(--cz-ease), box-shadow 0.2s var(--cz-ease), border-color 0.2s var(--cz-ease);
}
.cz-btn:active { transform: scale(0.98); }
.cz-btn:hover { border-color: var(--cz-accent); }
.cz-btn-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--cz-accent) 12%, transparent);
  color: var(--cz-accent-text);
  display: flex; align-items: center; justify-content: center;
}
.cz-btn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.cz-btn-label { font-weight: 600; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-btn-subtitle { font-size: 0.8rem; color: var(--cz-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-btn-chevron { flex: none; color: var(--cz-ink-soft); opacity: 0.6; }

/* Botón de "Déjanos tu reseña" (sin calificación aún configurada): título
   más grande que un botón normal para que invite más a hacer clic. */
.cz-btn[data-link-type="google_review"] .cz-btn-label { font-size: 1.15rem; font-weight: 700; }

.cz-btn--solid {
  background: var(--cz-accent); border-color: var(--cz-accent); color: var(--cz-on-accent);
  justify-content: center; cursor: pointer;
}
.cz-btn--solid .cz-btn-label { color: var(--cz-on-accent); text-align: center; }
.cz-btn--solid:hover { filter: brightness(1.05); }

/* ---------- Tarjeta destacada de calificación de Google ---------- */
/* Dorado fijo (no la variable --cz-accent del negocio): así se lee como
   una calificación de verdad en cualquier paleta, igual que en Google/
   Apple/Yelp, en vez de competir con el color de marca del negocio. */
.cz-review-card {
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%;
  background: var(--cz-surface);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--cz-shadow-btn);
  min-height: 44px;
  touch-action: manipulation;
  transition: transform 0.2s var(--cz-ease), border-color 0.2s var(--cz-ease);
}
.cz-review-card:active { transform: scale(0.98); }
.cz-review-card:hover { border-color: var(--cz-accent); }
.cz-review-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, #F5A623 16%, transparent);
  color: #F5A623;
  display: flex; align-items: center; justify-content: center;
}
.cz-review-body { flex: 1; min-width: 0; }
.cz-review-title {
  /* El CTA principal de la tarjeta: más grande y llamativo que el resto,
     para invitar a dejar la reseña (en vez de que "Reseñar" cargue con
     todo el peso visual). */
  display: block; font-weight: 800; font-size: 1rem; color: var(--cz-ink);
  font-family: var(--cz-font-display); margin-bottom: 0.2rem;
}
.cz-review-score-row { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.15rem; }
.cz-review-score { font-weight: 800; font-size: 1.1rem; color: var(--cz-ink); font-family: var(--cz-font-display); }
.cz-review-stars { display: inline-flex; gap: 1px; transform: translateY(1px); }
/* #C4841C en vez del dorado original #F5A623 (auditoría sep/2026,
   accesibilidad): la estrella llena sobre la tarjeta blanca daba 2.03:1 —
   muy por debajo del 3:1 mínimo de WCAG para gráficos con significado
   (aquí la diferencia de color es justo lo que distingue una estrella
   llena de una vacía). Este tono da 3.15:1 en claro y sigue leyéndose
   bien en oscuro (5.27:1 sobre --cz-surface oscuro). */
.cz-review-star { color: #C4841C; display: inline-flex; }
.cz-review-star--empty { color: var(--cz-border); }
.cz-review-count { display: block; font-size: 0.8rem; color: var(--cz-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-review-action {
  /* Tamaño normal: el CTA grande ahora es el título "Deja tu reseña"
     (.cz-review-title) arriba de la calificación, no este texto. */
  flex: none; font-weight: 700; font-size: 0.88rem; color: var(--cz-accent-text);
  display: flex; align-items: center; gap: 0.1rem;
}
.cz-review-action svg { opacity: 0.75; }

/* ---------- Cards genéricas (horarios, etc.) ---------- */
.cz-card {
  background: var(--cz-surface);
  border: 1px solid var(--cz-border);
  border-radius: var(--cz-radius-md);
  padding: 1.1rem 1.1rem 1.2rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--cz-shadow-btn);
}
.cz-card-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--cz-ink); }
.cz-card-head svg { color: var(--cz-accent-text); }

.cz-hours-list { list-style: none; margin: 0; padding: 0; }
.cz-hours-list li { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.92rem; border-top: 1px solid var(--cz-border); }
.cz-hours-list li:first-child { border-top: none; }
.cz-hours-list li span:first-child { color: var(--cz-ink-soft); }

/* ---------- Mapa incrustado (sep/2026) ---------- */
.cz-map { border-radius: var(--cz-radius-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/10; border: 1px solid var(--cz-border); }
.cz-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Promoción ---------- */
.cz-promo { border-radius: var(--cz-radius-md); overflow: hidden; background: var(--cz-surface); border: 1px solid var(--cz-border); margin-bottom: 1rem; box-shadow: var(--cz-shadow-btn); }
.cz-promo-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cz-promo-body { padding: 1rem 1.1rem 1.2rem; }
.cz-eyebrow { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cz-accent-text); font-weight: 700; margin-bottom: 0.4rem; }
.cz-promo-body h3 { margin: 0 0 0.3rem; font-family: var(--cz-font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.2rem; }
.cz-promo-body p { margin: 0 0 0.75rem; color: var(--cz-ink-soft); font-size: 0.9rem; }
.cz-promo-cta { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: var(--cz-accent-text); }

/* ---------- Formulario de marketing ---------- */
.cz-form-body { color: var(--cz-ink-soft); font-size: 0.9rem; margin: 0 0 1rem; }
.cz-field { display: block; margin-bottom: 0.85rem; }
.cz-field span { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--cz-ink); }
.cz-field input {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--cz-radius-sm);
  border: 1px solid var(--cz-border); font-size: 1rem; font-family: inherit; background: var(--cz-bg);
  color: var(--cz-ink); min-height: 44px;
}
.cz-field input::placeholder { color: var(--cz-ink-soft); opacity: 1; }
.cz-field input:focus { outline: 2px solid var(--cz-accent-text); outline-offset: 1px; }
.cz-checkbox { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.78rem; color: var(--cz-ink-soft); margin-bottom: 1.1rem; }
.cz-checkbox input { margin-top: 0.2rem; width: 18px; height: 18px; flex: none; }
.cz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cz-form-note { font-size: 0.72rem; color: var(--cz-ink-soft); text-align: center; margin: 0.75rem 0 0; }
.cz-form-note a { text-decoration: underline; }
.cz-form-success { text-align: center; font-weight: 600; color: var(--cz-accent-text); padding: 1rem 0; }
.cz-field-error { color: #B3261E; font-size: 0.78rem; margin-top: 0.3rem; }

/* ---------- Galería / imagen / video / texto / divider ---------- */
/* Carrusel horizontal (sep/2026, ajuste pedido por Cazu): reemplaza la
   grilla cuadrada de antes. Se sangra hasta el borde del .cz-sheet/.cz-sheet-ig
   (padding horizontal 1.25rem en ambos — ver ese selector más arriba) y
   cada foto conserva su alto/ancho real en vez de forzarse a un recorte
   1:1, así que una imagen de promoción — casi siempre horizontal, no
   cuadrada — se ve completa en vez de cortada por los lados. */
.cz-gallery {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  margin: 0 -1.25rem 1rem;
  padding: 0 1.25rem 0.3rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cz-border) transparent;
}
.cz-gallery::-webkit-scrollbar { height: 5px; }
.cz-gallery::-webkit-scrollbar-thumb { background: var(--cz-border); border-radius: 999px; }
/* Cada foto es un <button> (antes un <div>) para poder abrirla en grande —
   ver .cz-lightbox más abajo y public.js — así que se resetea la apariencia
   nativa de botón (auditoría sep/2026, P2.5). */
.cz-gallery-item {
  flex: 0 0 auto;
  height: 200px;
  border-radius: var(--cz-radius-sm); overflow: hidden;
  border: 0; padding: 0; margin: 0; background: var(--cz-surface); cursor: zoom-in;
  display: block; font: inherit; scroll-snap-align: start;
}
.cz-gallery-item img { display: block; height: 100%; width: auto; max-width: none; object-fit: cover; }
.cz-gallery-item:focus-visible { outline: 2px solid var(--cz-accent-text); outline-offset: 2px; }
/* Una sola foto (p. ej. un afiche de promoción suelto, sin más fotos en la
   galería): en vez de un carrusel de un solo elemento pegado a la
   izquierda, ocupa todo el ancho a un alto generoso — se ve grande, no
   como una tira angosta. */
.cz-gallery:has(> :only-child) { display: block; margin: 0 0 1rem; padding: 0; }
.cz-gallery:has(> :only-child) .cz-gallery-item { height: auto; width: 100%; aspect-ratio: 4 / 3; }
.cz-gallery:has(> :only-child) .cz-gallery-item img { width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .cz-gallery-item { height: 260px; }
}

/* Lightbox de la galería: capa a pantalla completa con la foto tocada/
   clickeada a tamaño real, cerrable con la X, con click afuera o Escape.
   Progressive enhancement — ver public.js; sin JS, la galería sigue
   funcionando como grilla de fotos normal. */
.cz-lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 18, 0.92); padding: 1.5rem; opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.cz-lightbox.is-open { opacity: 1; pointer-events: auto; }
.cz-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--cz-radius-md); object-fit: contain; }
.cz-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cz-lightbox-close:hover { background: rgba(255,255,255,0.25); }
@media (prefers-reduced-motion: reduce) {
  .cz-lightbox { transition: none; }
}
.cz-image-block, .cz-image-block-img { border-radius: var(--cz-radius-md); overflow: hidden; margin-bottom: 1rem; }
.cz-image-block-img { width: 100%; }
.cz-video { position: relative; padding-top: 56.25%; border-radius: var(--cz-radius-md); overflow: hidden; margin-bottom: 1rem; }
.cz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cz-text-block { margin-bottom: 1rem; }
.cz-text-block h3 { font-family: var(--cz-font-display); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.35rem; }
.cz-text-block p { color: var(--cz-ink-soft); margin: 0; }
.cz-divider { height: 1px; background: var(--cz-border); margin: 1.5rem 0; }

/* ---------- Plantilla 'instagram': perfil tipo red social ----------
   Foto de perfil = logo, destacadas circulares = enlaces (WhatsApp,
   redes, menú, reseña, ubicación...), portada = "publicación". */
.cz-ig-header { padding: 2.75rem 1.25rem 0.25rem; text-align: center; }
.cz-ig-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 0.9rem;
  padding: 3px;
  background: linear-gradient(135deg, #F9C34B 0%, #E85D4E 35%, #C2166B 65%, #7B3FE4 100%);
  display: flex; align-items: center; justify-content: center;
}
.cz-ig-avatar {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--cz-surface); border: 3px solid var(--cz-surface);
  display: flex; align-items: center; justify-content: center;
}
.cz-ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cz-ig-avatar-fallback { font-family: var(--cz-font-display); font-weight: 800; font-size: 2rem; color: var(--cz-accent-text); }
.cz-ig-name { font-family: var(--cz-font-display); font-weight: 800; font-size: 1.3rem; margin: 0 0 0.15rem; letter-spacing: -0.01em; }
.cz-ig-category { color: var(--cz-accent-text); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.cz-ig-bio { color: var(--cz-ink-soft); font-size: 0.9rem; max-width: 34ch; margin: 0 auto 1.4rem; line-height: 1.5; }

.cz-ig-highlights-wrap { position: relative; }
.cz-ig-highlights {
  display: flex; gap: 1.15rem; overflow-x: auto; padding: 0 1.25rem 1.6rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cz-ig-highlights::-webkit-scrollbar { display: none; }
.cz-ig-highlight { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: 68px; text-decoration: none; }

/* "Desliza para ver más" — visible solo mientras falten destacadas por
   ver a la derecha (ver toggle .has-more en public.js); se oculta sola
   al llegar al final del scroll, como en los stories de Instagram.
   (sep/2026, corregido a pedido de Cazu: "la animación de que deslice
   parece que fuera un botón" — antes el ícono llevaba fondo, borde y
   sombra IDÉNTICOS a los círculos de destacadas de verdad, así que se
   veía y se sentía clicable (la gente intentaba tocarlo), pero no hace
   nada — pointer-events:none, es solo un indicador. Se le quitó todo
   el "cuerpo" de botón: ahora es solo la flechita, sin fondo/borde/
   sombra, apoyada en el degradado — se lee como pista visual, no como
   control. La animación también se suavizó (antes 3px, muy parecida al
   "presiona y suelta" de un botón real; ahora 2px y más lenta).) */
.cz-ig-highlights-wrap .cz-ig-scroll-hint {
  position: absolute; top: 0; right: 0; bottom: 1.6rem; width: 40px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.3rem;
  background: linear-gradient(90deg, transparent, var(--cz-bg) 55%);
  opacity: 0; transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--cz-ease), transform 0.3s var(--cz-ease);
}
.cz-ig-highlights-wrap.has-more .cz-ig-scroll-hint { opacity: 1; transform: translateX(0); }
.cz-ig-scroll-hint-icon {
  color: var(--cz-ink-soft);
  opacity: 0.55;
  display: flex; align-items: center; justify-content: center;
  animation: cz-hint-nudge 2.4s ease-in-out infinite;
}
@keyframes cz-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .cz-ig-scroll-hint-icon { animation: none; }
}
.cz-ig-highlight-ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--cz-bg); border: 1.5px solid var(--cz-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cz-accent-text);
  transition: transform .15s ease;
}
.cz-ig-highlight:active .cz-ig-highlight-ring { transform: scale(0.94); }
.cz-ig-highlight.is-featured .cz-ig-highlight-ring { background: var(--cz-accent); border-color: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 0 0 3px var(--cz-bg), 0 0 0 4.5px var(--cz-accent); }
.cz-ig-highlight.is-featured .cz-ig-highlight-label { font-weight: 700; }
.cz-ig-highlight-label {
  font-size: 0.68rem; color: var(--cz-ink); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 68px;
}

.cz-ig-post {
  margin: 0 1.25rem 1.5rem; border: 1px solid var(--cz-border); border-radius: var(--cz-radius-md);
  overflow: hidden; background: var(--cz-surface); box-shadow: var(--cz-shadow-btn);
}
.cz-ig-post-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; }
.cz-ig-post-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--cz-bg); flex: none; }
.cz-ig-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cz-ig-post-head strong { font-size: 0.85rem; }
.cz-ig-post-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cz-bg); }
.cz-ig-post-image img { width: 100%; height: 100%; object-fit: cover; }
.cz-ig-post-caption { padding: 0.75rem 0.9rem 0.95rem; font-size: 0.85rem; color: var(--cz-ink); line-height: 1.55; }
.cz-ig-post-caption strong { margin-right: 0.35rem; }

.cz-sheet-ig { margin-top: 0; border-radius: 0; padding: 0 1.25rem 3rem; }

/* ---------- Footer / marca CAZU ---------- */
.cz-footer { text-align: center; padding-top: 1.5rem; }
.cz-footer a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--cz-ink-soft); font-weight: 600; }
.cz-footer .cz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cz-accent); display: inline-block; }

/* ---------- Estado: negocio pausado ---------- */
.cz-paused { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 2rem; text-align: center; }
.cz-paused-card { max-width: 380px; }
.cz-paused-card h1 { font-family: var(--cz-font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.4rem; margin-bottom: 0.5rem; }
.cz-paused-card p { color: var(--cz-ink-soft); line-height: 1.55; }
.cz-notice-logo { width: 72px; height: 72px; margin: 0 auto 1.1rem; border-radius: 50%; overflow: hidden; border: 1px solid var(--cz-border); box-shadow: var(--cz-shadow-btn); background: var(--cz-surface); }
.cz-notice-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-notice-icon { width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cz-surface); border: 1px solid var(--cz-border); color: var(--cz-ink-soft); box-shadow: var(--cz-shadow-btn); }

/* ---------- Animación de entrada (mejora progresiva) ----------
   Por defecto TODO es visible: si JavaScript no llega a ejecutarse
   (bloqueado, lento, deshabilitado) el contenido nunca debe depender
   de JS para poder verse. Solo cuando <html class="js"> confirma que
   JS corrió (ver business.php) se activa el estado oculto-y-revela,
   controlado por IntersectionObserver en public.js. */
.cz-reveal { opacity: 1; }
html.js .cz-reveal { opacity: 0; transform: translateY(10px); }
html.js .cz-reveal.cz-in { opacity: 1; transform: translateY(0); transition: opacity 0.45s var(--cz-ease), transform 0.45s var(--cz-ease); }
@media (prefers-reduced-motion: reduce) {
  html.js .cz-reveal, html.js .cz-reveal.cz-in { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Plantilla 'dark': tema oscuro real ----------
   No es un simple "fondo negro": --cz-ink/--cz-surface/--cz-border son
   fijos claros en :root (pensados para fondos claros) y nunca se
   sobreescriben por negocio, así que un color_background oscuro por sí
   solo dejaría tarjetas y bordes ilegibles. Esta clase (en <body>, ver
   business.php) redefine esas variables para un contraste correcto de
   verdad, igual que ya hace .cz-page-ig con su propio layout. */
.cz-theme-dark {
  --cz-ink: #F3F3F1;
  --cz-ink-soft: #AFAFB6;
  --cz-surface: #1E1E22;
  --cz-border: rgba(255, 255, 255, 0.10);
  --cz-shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.6), 0 2px 10px -2px rgba(0, 0, 0, 0.35);
  --cz-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* Detalle propio del tema oscuro (sep/2026, a pedido de Cazu: la plantilla
   "Oscuro" usaba exactamente los mismos bloques que "Minimal" — un simple
   recoloreado no era suficiente para justificarla como plantilla aparte).
   Resplandor suave del color de acento detrás del avatar, anillo con brillo
   en vez del borde plano de siempre, y una línea degradada de cierre bajo
   el perfil — el tipo de detalle que separa un lounge/bar premium de una
   tarjeta genérica con fondo negro. Se activa por TEMA (.cz-theme-dark), no
   por plantilla: lo recibe cualquier negocio con fondo oscuro, haya
   empezado desde "Oscuro" o desde otra plantilla y oscurecido los colores
   a mano en Identidad visual — así ambos caminos llegan al mismo resultado
   premium, que es justo la idea original de que el fondo sea libre. */
.cz-theme-dark .cz-profile { position: relative; }
.cz-theme-dark .cz-profile::before {
  content: '';
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cz-accent) 32%, transparent) 0%, transparent 70%);
  filter: blur(4px);
  pointer-events: none; z-index: 0;
}
.cz-theme-dark .cz-profile .cz-avatar {
  position: relative; z-index: 1;
  border-color: color-mix(in srgb, var(--cz-accent) 55%, var(--cz-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cz-accent) 30%, transparent), var(--cz-shadow-soft);
}
.cz-theme-dark .cz-name, .cz-theme-dark .cz-category, .cz-theme-dark .cz-description { position: relative; z-index: 1; }
.cz-theme-dark .cz-profile::after {
  content: '';
  position: relative; z-index: 1;
  display: block; width: 36px; height: 2px; margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--cz-accent), transparent);
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .cz-page { border-radius: var(--cz-radius-lg); margin-top: 0; overflow: hidden; box-shadow: var(--cz-shadow-soft); }
  /* Oct/2026: el fondo de afuera sigue el color elegido (un tono más oscuro),
     antes era gris o negro fijo y parecía que el color no cambiaba. */
  body.cz-body { background: color-mix(in srgb, var(--cz-bg) 90%, #000); padding: 2.5rem 1rem; }
  body.cz-theme-dark { background: color-mix(in srgb, var(--cz-bg) 70%, #000); }
}
@media (min-width: 1024px) {
  body.cz-body { padding: 3.5rem 1rem; }
  .cz-page { max-width: 480px; }
}

/* ==========================================================================
   Revisión de diseño sep/2026
   ========================================================================== */

/* WhatsApp como acción principal: relleno con el color de marca. El texto
   usa --cz-on-accent, que business.php ya garantiza legible (≥ 4.5:1). */
.cz-body .cz-btn.cz-btn--primary { background: var(--cz-accent); border-color: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--cz-accent) 70%, transparent); }
.cz-body .cz-btn--primary .cz-btn-icon { background: color-mix(in srgb, var(--cz-on-accent) 16%, transparent); color: var(--cz-on-accent); }
.cz-body .cz-btn--primary .cz-btn-subtitle { color: color-mix(in srgb, var(--cz-on-accent) 72%, transparent); }
.cz-body .cz-btn--primary .cz-btn-chevron { color: var(--cz-on-accent); opacity: 0.75; }
.cz-body .cz-btn--primary:hover { border-color: var(--cz-accent); filter: brightness(1.04); }

/* "Abierto ahora / Cerrado · abre…" (opening_status_chip() en bootstrap.php) */
.cz-open-chip { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.65rem; padding: 0.32rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--cz-surface); color: var(--cz-ink); border: 1px solid var(--cz-border); }
.cz-open-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9A9AA0; flex: none; }
.cz-open-chip.is-open::before { background: #22A35A; box-shadow: 0 0 0 3px rgba(34, 163, 90, 0.2); }
.cz-hero-overlay-text .cz-open-chip { background: rgba(0, 0, 0, 0.38); color: #fff; border-color: rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cz-open-chip-row { display: flex; justify-content: center; margin: -0.4rem 0 1rem; }

/* Formulario: marca de campo opcional */
.cz-field .cz-optional { font-style: normal; font-weight: 500; color: var(--cz-ink-soft); }

/* En pantallas anchas la página es una columna angosta: detrás va la foto
   de portada difuminada en vez de un fondo plano vacío (se ve mucho mejor
   al mostrarla en una demo desde el portátil). */
@media (min-width: 720px) {
  body.cz-has-cover::before {
    content: ''; position: fixed; inset: -60px; z-index: -1; pointer-events: none;
    background: var(--cz-cover) center / cover no-repeat;
    filter: blur(50px) saturate(1.15); opacity: 0.4;
  }
  .cz-theme-dark.cz-has-cover::before { opacity: 0.3; }
}

/* ==========================================================================
   Plantilla "Estudio" (oct/2026) — referencia de Cazu: app moderna con
   tipografía protagonista. Urbanist en todo (titular 800 muy apretado),
   auras de color de marca difuminadas, franja redondeada con tarjetas
   numeradas, cifras reales de Google y barra inferior negra. Siempre clara;
   el color de marca llega en --cz-accent (brand_accent_on_white) y la
   franja en --st-band / --st-on-band (calculados en business.php).
   ========================================================================== */
body.cz-tpl-studio { background: #FFFFFF; }
.cz-page-st { background: #FFFFFF; max-width: 480px; padding-bottom: 116px; overflow: hidden; }
.st { --st-font: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --st-ink: #0B0B0F; --st-soft: #464650; font-family: var(--st-font); color: var(--st-ink); }
.st b, .st strong { font-weight: 700; }

/* Arriba: logo + estado */
.st-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.st-mark { width: 46px; height: 46px; border-radius: 15px; overflow: hidden; background: var(--st-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: 0 8px 18px -10px rgba(11,11,15,.6); }
.st-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.st-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(11,11,15,.08); font-size: 13px; font-weight: 500; color: #2E2E36; }
.st-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #A1A1AA; }
.st-status.is-open .st-status-dot { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }

/* Portada tipográfica */
.st-hero { position: relative; padding: 32px 24px 40px; }
.st-aura { position: absolute; inset: -90px -60px auto auto; width: 330px; height: 330px; pointer-events: none; z-index: 0; }
.st-aura span { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .7; }
.st-aura span:nth-child(1) { width: 220px; height: 220px; right: 40px; top: 70px; background: color-mix(in srgb, var(--cz-accent) 70%, #fff); opacity: .45; }
.st-aura span:nth-child(2) { width: 170px; height: 170px; right: -10px; top: 10px; background: color-mix(in srgb, var(--cz-accent) 45%, #fff); }
.st-aura span:nth-child(3) { width: 140px; height: 140px; right: 120px; top: 190px; background: color-mix(in srgb, var(--cz-accent) 35%, #fff); opacity: .5; }
.st-hero > *:not(.st-aura) { position: relative; z-index: 1; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(11,11,15,.1); font-size: 13.5px; font-weight: 500; letter-spacing: .005em; color: var(--st-ink); }
.st-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cz-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cz-accent) 22%, transparent); }
.st-title { margin: 0 0 16px; font-family: var(--st-font); font-weight: 700; font-size: clamp(42px, 13vw, 58px); line-height: .96; letter-spacing: -0.045em; color: var(--st-ink); overflow-wrap: anywhere; }
.st-lede { margin: 0 0 28px; max-width: 32ch; font-size: 16.5px; line-height: 1.5; font-weight: 400; color: var(--st-soft); }
.st-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.st-cta { display: inline-flex; align-items: center; gap: 11px; padding: 12px 24px 12px 12px; border-radius: 999px; background: var(--st-ink); color: #fff; font-weight: 600; font-size: 16.5px; letter-spacing: -0.005em; box-shadow: 0 16px 30px -14px rgba(11,11,15,.75); transition: transform .2s var(--cz-ease); }
.st-cta:active { transform: scale(.97); }
.st-cta-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cz-accent); color: var(--cz-on-accent); }
.st-note { max-width: 18ch; font-size: 13.5px; line-height: 1.35; font-weight: 400; color: var(--st-soft); }
.st-facts { display: flex; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(11,11,15,.1); }
.st-facts > div { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.st-facts > div + div { padding-left: 14px; border-left: 1px solid rgba(11,11,15,.1); }
.st-facts b { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.st-facts b i { font-style: normal; font-size: 17px; color: #F5A524; margin-left: 2px; }
.st-facts span { font-size: 13px; font-weight: 400; color: var(--st-soft); }

/* Franja de accesos */
.st-band { position: relative; overflow: hidden; margin: 0 10px; padding: 24px 0 26px; border-radius: 32px; background: var(--st-band); color: var(--st-on-band); isolation: isolate; }
.st-band-aura { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--cz-accent) 85%, #fff) 0%, transparent 70%),
  radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--cz-accent) 60%, #000) 0%, transparent 70%); opacity: .75; }
.st-band-head { display: flex; align-items: center; justify-content: space-between; margin: 0 22px 16px; }
.st-band-title { margin: 0; font-family: var(--st-font); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.st-band-count { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .85; }
.st-cards { display: flex; gap: 12px; overflow-x: auto; padding: 0 22px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 22px; scrollbar-width: none; }
.st-cards::-webkit-scrollbar { display: none; }
.st-card { position: relative; flex: 0 0 60%; min-height: 176px; display: flex; flex-direction: column; padding: 14px 16px 18px; border-radius: 24px; scroll-snap-align: start; color: var(--st-ink);
  background: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 45%, color-mix(in srgb, var(--cz-accent) 22%, #fff) 100%);
  box-shadow: 0 18px 32px -22px rgba(0,0,0,.65); transition: transform .2s var(--cz-ease); }
.st-card:active { transform: scale(.97); }
.st-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.st-card-n { font-size: 12.5px; font-weight: 600; color: #8A8A94; letter-spacing: .02em; }
.st-card-arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--st-ink); color: #fff; }
.st-card-ic { margin: 14px 0 10px; color: color-mix(in srgb, var(--cz-accent) 85%, #000); }
.st-card-kicker { font-size: 13px; font-weight: 500; color: #6B6B75; }
.st-card-title { font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

/* Cuerpo */
.st-body { padding: 24px 16px 8px; }
.st-feature { position: relative; display: block; overflow: hidden; isolation: isolate; min-height: 186px; margin-bottom: 16px; padding: 24px 22px 26px; border-radius: 30px; color: var(--st-on-band); background: var(--st-band); box-shadow: 0 24px 44px -28px rgba(11,11,15,.8); }
.st-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--cz-accent) 90%, #fff) 0%, transparent 65%),
  radial-gradient(40% 50% at 0% 0%, color-mix(in srgb, var(--cz-accent) 50%, #000) 0%, transparent 70%); }
.st-feature-kicker { display: block; font-size: 13.5px; font-weight: 500; opacity: .8; margin-bottom: 8px; }
.st-feature-title { display: block; max-width: 12ch; font-family: var(--st-font); font-weight: 700; font-size: 29px; line-height: 1.05; letter-spacing: -0.035em; }
.st-feature-score { display: block; margin-top: 16px; font-size: 14px; font-weight: 500; opacity: .92; }
.st-feature-score b { font-size: 18px; font-weight: 700; }
.st-stars { color: #FBBF24; letter-spacing: 1px; }
.st-feature-arrow { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--st-ink); }
.st-cover { margin: 0 0 16px; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3; background: #F2F2F4; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-block { margin-bottom: 14px; }
.st-body .cz-btn, .st-body .cz-section-title, .st-body h2, .st-body h3 { font-family: var(--st-font); }
.st-footer { padding-top: 1rem; }

/* Barra inferior */
.st-tabbar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; gap: 4px; padding: 6px; border-radius: 24px; background: rgba(11,11,15,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 36px -14px rgba(11,11,15,.6); }
.st-tabbar a { width: 64px; min-height: 52px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.72); transition: background .15s var(--cz-ease), color .15s var(--cz-ease); }
.st-tabbar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.st-tabbar a.is-active { background: #fff; color: var(--st-ink); }

@media (min-width: 560px) {
  body.cz-tpl-studio { background: color-mix(in srgb, var(--cz-accent) 9%, #F1F1F4); }
  .cz-page-st { border-radius: 36px; }
}
@media (prefers-reduced-motion: reduce) { .st-cta, .st-card { transition: none; } }

/* ==========================================================================
   Plantilla "Instagram" — rediseño oct/2026: se ve como un perfil real.
   Barra con el usuario, foto con aro + cifras (solo datos reales de Google),
   nombre/bio a la izquierda, botones "Mensaje / Cómo llegar", destacadas y
   cuadrícula de fotos 3×N. Ver public/partials/instagram_header.php.
   ========================================================================== */
.cz-ig2 { text-align: left; padding: 0 0 0.25rem; font-family: 'Urbanist', var(--cz-font-sans); }
.cz-ig2-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.cz-ig2-handle { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--cz-ink); }
.cz-ig2-live { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(23,23,26,.06); color: var(--cz-ink-soft); }
.cz-ig2-live.is-open { background: rgba(22,163,74,.12); color: #15803D; }
.cz-ig2-row { display: flex; align-items: center; gap: 20px; padding: 6px 16px 12px; }
.cz-ig2 .cz-ig-ring { width: 88px; height: 88px; margin: 0; flex: none; padding: 3px; }
.cz-ig2-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.cz-ig2-stats > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cz-ig2-stats b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--cz-ink); line-height: 1.15; }
.cz-ig2-stats span { font-size: 13px; color: var(--cz-ink-soft); font-weight: 400; }
.cz-ig2-info { padding: 0 16px; }
.cz-ig2 .cz-ig-name { font-family: 'Urbanist', var(--cz-font-display); font-size: 16px; font-weight: 600; margin: 0; letter-spacing: 0; }
.cz-ig2-cat { margin: 2px 0 6px; font-size: 14px; color: var(--cz-ink-soft); font-weight: 400; }
.cz-ig2 .cz-ig-bio { max-width: none; margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--cz-ink); text-align: left; }
.cz-ig2-meta { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13.5px; font-weight: 500; color: var(--cz-accent-text); }
.cz-ig2-meta svg { flex: none; }
.cz-ig2-actions { display: flex; gap: 8px; padding: 16px 16px 20px; }
.cz-ig2-btn { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: rgba(23,23,26,.07); color: var(--cz-ink); font-weight: 600; font-size: 14.5px; text-align: center; transition: filter .15s var(--cz-ease), transform .15s var(--cz-ease); }
.cz-ig2-btn.is-main { background: var(--cz-accent); color: var(--cz-on-accent); }
.cz-ig2-btn:active { transform: scale(.97); }
.cz-ig2 .cz-ig-highlights { padding: 2px 16px 18px; gap: 16px; }
.cz-ig2 .cz-ig-highlight { width: 66px; }
.cz-ig2 .cz-ig-highlight-label { font-family: 'Urbanist', var(--cz-font-sans); font-weight: 500; }
.cz-ig2-tabs { display: flex; justify-content: center; border-top: 1px solid var(--cz-border); }
.cz-ig2-tabs span { display: grid; place-items: center; width: 100%; padding: 10px 0; color: var(--cz-ink-soft); }
.cz-ig2-tabs span.is-active { color: var(--cz-ink); box-shadow: inset 0 1.5px 0 var(--cz-ink); }
.cz-ig2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 1.25rem; }
.cz-ig2-grid figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cz-border); }
.cz-ig2-grid img { width: 100%; height: 100%; object-fit: cover; }
.cz-theme-dark .cz-ig2-btn { background: rgba(255,255,255,.1); }
.cz-theme-dark .cz-ig2-btn.is-main { background: var(--cz-accent); }
.cz-theme-dark .cz-ig2-live { background: rgba(255,255,255,.1); }

/* Barra inferior con texto bajo cada ícono (oct/2026). */
.st-tabbar a span { line-height: 1; }
.st-tabbar a.is-active span { font-weight: 600; }

/* ---------- Carrusel de galería (oct/2026) ----------
   Varias fotos en un mismo bloque: una foto a todo el ancho por vez, pasa
   sola (public.js), se desliza con el dedo y tiene puntos para saltar. */
.cz-slider { position: relative; margin: 0 0 1rem; }
.cz-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--cz-radius-md); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cz-slides::-webkit-scrollbar { display: none; }
.cz-slides .cz-gallery-item { flex: 0 0 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.cz-slides .cz-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.cz-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.cz-dot-btn { pointer-events: auto; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; transition: width .25s var(--cz-ease), background .25s var(--cz-ease); }
.cz-dot-btn.is-active { width: 20px; background: #fff; }
/* Área de toque cómoda sin agrandar el punto. */
.cz-dot-btn { position: relative; }
.cz-dot-btn::after { content: ""; position: absolute; inset: -10px -4px; }
.st-body .cz-slides, .st-body .cz-gallery-item { border-radius: 26px; }
.st-body .cz-slides .cz-gallery-item { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .cz-slides { scroll-behavior: auto; } }

/* ---------- Bloque "Publicación" (oct/2026) ----------
   Como un post de Instagram: encabezado con el logo, foto 4:5 o carrusel
   (contador 1/3 + puntos, sin pasar solo), texto y "Ver más" al enlace. */
.cz-post { background: var(--cz-surface); border: 1px solid var(--cz-border); border-radius: 20px; overflow: hidden; margin: 0 0 1rem; }
.cz-post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.cz-post-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--cz-bg); font-weight: 700; padding: 2px; background-image: linear-gradient(135deg, #F9C34B, #E85D4E 35%, #C2166B 65%, #7B3FE4); }
.cz-post-av img, .cz-post-av span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--cz-surface); border: 2px solid var(--cz-surface); display: grid; place-items: center; font-size: 13px; }
.cz-post-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cz-post-who strong { font-size: 14px; font-weight: 600; }
.cz-post-who span { font-size: 12.5px; color: var(--cz-ink-soft); }
.cz-post-media { position: relative; margin: 0; }
.cz-post-slide { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; margin: 0; background: var(--cz-bg); cursor: pointer; border-radius: 0; height: auto; }
.cz-post-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-post .cz-slides { border-radius: 0; }
.cz-post .cz-slides .cz-post-slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; scroll-snap-stop: always; }
.cz-post-count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.cz-post .cz-dots { position: static; padding: 10px 0 0; }
.cz-post .cz-dot-btn { width: 6px; height: 6px; background: #C8C8CE; box-shadow: none; }
.cz-post .cz-dot-btn.is-active { width: 6px; background: var(--cz-accent); }
.cz-post-body { padding: 8px 14px 14px; }
.cz-post-caption { margin: 0; font-size: 14.5px; line-height: 1.5; }
.cz-post-caption strong { font-weight: 600; margin-right: 4px; }
.cz-post-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--cz-accent-text); }
/* En la plantilla Instagram, las publicaciones van de borde a borde como el feed. */
.cz-sheet-ig .cz-post { margin: 0 -1.25rem 1.25rem; border-radius: 0; border-left: 0; border-right: 0; }
.cz-theme-dark .cz-post { background: rgba(255,255,255,.04); }
.cz-theme-dark .cz-post-av img, .cz-theme-dark .cz-post-av span { border-color: var(--cz-bg); background: var(--cz-bg); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Instagram: cuadrícula enlazada a cada publicación + arreglo del aro
   destacado que se cortaba arriba (la sombra quedaba fuera del scroll). */
.cz-ig2 .cz-ig-highlights { padding: 8px 16px 18px; }
.cz-ig2-grid a { position: relative; display: block; }
.cz-ig2-multi { position: absolute; top: 7px; right: 7px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

.cz-demo-note { margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--cz-ink-soft); text-align: center; }

/* Oct/2026: Urbanist en todas las plantillas (pedido de Cazu) y pesos más
   livianos — el nombre en 700, botones en 600 — para que nada grite. */
:root { --cz-font-display: 'Urbanist', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --cz-font-sans: 'Urbanist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.cz-hero-name, .cz-name { font-weight: 700; letter-spacing: -0.03em; }
.cz-hero-category, .cz-category { font-weight: 500; letter-spacing: 0.06em; }
.cz-btn-label { font-weight: 600; }
.cz-description { font-weight: 400; }

/* Estudio: segundo botón destacado al lado del principal (contorno). */
.st-cta-2 { background: #fff; color: var(--st-ink, #0B0B0F); box-shadow: inset 0 0 0 1.5px rgba(11,11,15,.14); }
.st-cta-2 .st-cta-ic { background: color-mix(in srgb, var(--cz-accent) 16%, #fff); color: var(--st-ink, #0B0B0F); }
.st-actions .st-cta { flex: 0 1 auto; }

/* Galería con formato elegible (oct/2026): --cz-ar lo pone BlockRenderer. */
.cz-gallery:has(> :only-child) .cz-gallery-item { aspect-ratio: var(--cz-ar, 4 / 3); }
.cz-slides .cz-gallery-item { aspect-ratio: var(--cz-ar, 4 / 3); }

/* Promoción con afiche ya diseñado: se ve completo (oct/2026). */
.cz-promo-img--full img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* ==========================================================================
   Pasada de jerarquía y espacios en TODAS las plantillas (oct/2026).
   Escala de 8 px: 8 entre elementos de un grupo, 12 entre botones, 24-32
   entre grupos. Pesos: nombre 700, títulos de tarjeta 600, texto 400.
   ========================================================================== */
/* Botones de lista (Portada y bloques en general) */
.cz-btn, .cz-review-card { margin-bottom: 12px; padding: 14px 16px; min-height: 64px; border-radius: 18px; }
.cz-btn-icon, .cz-review-icon { width: 42px; height: 42px; }
.cz-btn-label { font-size: 1rem; letter-spacing: -0.005em; }
.cz-btn-subtitle { font-size: 0.84rem; margin-top: 2px; }
.cz-review-title { font-weight: 600; font-size: 1rem; }
.cz-review-score { font-weight: 700; }
.cz-review-count { font-size: 0.84rem; }
/* Separación entre el grupo de botones y el contenido (promo, galería, horario, formulario) */
.cz-promo, .cz-gallery, .cz-slider, .cz-post, .cz-video, .cz-card, .cz-text-block { margin-top: 12px; }
.cz-btn + .cz-reveal .cz-promo, .cz-reveal:has(.cz-btn) + .cz-reveal:has(.cz-promo, .cz-slider, .cz-gallery, .cz-post) { margin-top: 24px; }
.cz-promo-body { padding: 16px 18px 20px; }
.cz-promo-body h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.cz-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
/* Portada: nombre protagonista, categoría discreta, descripción legible */
.cz-hero-name { font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 6px; }
.cz-hero-category { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; opacity: 0.8; margin-bottom: 12px; }
.cz-description { font-size: 1rem; line-height: 1.55; max-width: 34ch; }
.cz-sheet > .cz-reveal:first-child .cz-description { margin-bottom: 24px !important; }
.cz-footer { padding-top: 32px; }
/* Instagram: aire entre bloques del feed */
.cz-sheet-ig > .cz-reveal { margin-bottom: 0; }
.cz-ig2-info { padding-bottom: 4px; }
/* Estudio: aire entre secciones */
.st-band { margin-top: 8px; }
.st-body > .st-block + .st-block { margin-top: 4px; }

/* ---------- Portada con tarjetas de vidrio (oct/2026) ----------
   La foto de portada, difuminada, queda de fondo de toda la página y las
   tarjetas son translúcidas con desenfoque. "Sólido" en Logo y colores lo
   apaga (card_style = solid). Los botones destacados siguen sólidos con el
   color de marca para que la acción principal no pierda fuerza. */
/* Fondo de Portada (26/10/2026, después de varias pruebas con Cazu):
   - NO es position: fixed. En iPhone, Safari pinta distinto lo fijo que queda
     debajo de su barra de arriba y se veía una línea/franja del degradado.
   - El fondo cubre toda la página (la foto difuminada arriba que se funde al
     color de fondo, más el velo) y se recorta al ancho (sin scroll lateral).
   - El "movimiento sutil" al bajar lo da public.js: la foto se mueve más lento
     que el contenido (--cz-par), sin dejar huecos ni líneas. */
body.cz-glass .cz-page { background: var(--cz-bg); isolation: isolate; overflow: hidden; overflow: clip; }
body.cz-glass .cz-page::before { content: ""; position: absolute; top: -40px; left: -40px; right: -40px; bottom: -40px; z-index: -2; background: var(--cz-cover) center top / cover no-repeat; filter: blur(32px) saturate(1.25); transform: translate3d(0, var(--cz-par, 0px), 0) scale(1.1); will-change: transform; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%); }
/* Arriba arranca con el color de fondo exacto: Safari pinta su barra con ese
   color y así empalma sin línea con la página. */
body.cz-glass .cz-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--cz-bg) 0px, color-mix(in srgb, var(--cz-bg) 30%, transparent) 200px, color-mix(in srgb, var(--cz-bg) 66%, transparent) 40%, var(--cz-bg) 100%); }
body.cz-glass .cz-sheet { background: transparent; }
body.cz-glass .cz-btn:not(.cz-btn--primary), body.cz-glass .cz-review-card, body.cz-glass .cz-promo, body.cz-glass .cz-card, body.cz-glass .cz-social-icon, body.cz-glass .cz-post {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 14px 32px -20px rgba(0, 0, 0, 0.7);
}
body.cz-glass:not(.cz-theme-dark) .cz-btn:not(.cz-btn--primary), body.cz-glass:not(.cz-theme-dark) .cz-review-card, body.cz-glass:not(.cz-theme-dark) .cz-promo,
body.cz-glass:not(.cz-theme-dark) .cz-card, body.cz-glass:not(.cz-theme-dark) .cz-social-icon, body.cz-glass:not(.cz-theme-dark) .cz-post {
  background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.7);
}
body.cz-glass .cz-form input, body.cz-glass .cz-form textarea { background: rgba(0, 0, 0, 0.18); border-color: rgba(255, 255, 255, 0.16); }
@media (min-width: 560px) { body.cz-glass { background: color-mix(in srgb, var(--cz-bg) 70%, #000); } }

/* ==========================================================================
   Plantilla "Portada" — rediseño oct/2026 (moderno, estilo app; Cazu: "se
   ve muy IA, genérica y saturada"). Ver public/partials/portada.php.
   Fondo: la portada difuminada pero calmada (menos saturación y un velo
   más denso del color de fondo); superficies translúcidas suaves.
   ========================================================================== */
.cz-page-pt { --pt-r: 22px; --pt-ink: var(--cz-ink); --pt-soft: var(--cz-ink-soft);
  --pt-surface: color-mix(in srgb, var(--cz-bg) 94%, #000); --pt-line: rgba(23,23,26,.08); padding-bottom: 8px; }
.cz-theme-dark .cz-page-pt { --pt-surface: rgba(255,255,255,.06); --pt-line: rgba(255,255,255,.09); }
body.cz-glass .cz-page-pt { --pt-surface: rgba(255,255,255,.07); }
body.cz-glass:not(.cz-theme-dark) .cz-page-pt { --pt-surface: rgba(255,255,255,.62); --pt-line: rgba(23,23,26,.07); }
/* Fondo difuminado más tranquilo que antes */
body.cz-glass .cz-page-pt::before { filter: blur(48px) saturate(.75) brightness(.9); }
body.cz-glass .cz-page-pt::after { background: linear-gradient(180deg, var(--cz-bg) 0px, color-mix(in srgb, var(--cz-bg) 55%, transparent) 200px, color-mix(in srgb, var(--cz-bg) 80%, transparent) 40%, var(--cz-bg) 100%); }
.pt { font-family: 'Urbanist', var(--cz-font-sans); color: var(--pt-ink); }

/* Foto en tarjeta redondeada */
.pt-cover { position: relative; margin: 28px 18px 0; height: clamp(250px, 70vw, 340px); border-radius: 28px; overflow: hidden; background: var(--pt-surface); box-shadow: 0 24px 48px -28px rgba(0,0,0,.6); }
.pt-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.22) 100%); pointer-events: none; }
.pt-cover-status { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: #18181B; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pt-cover-status i, .pt-open i { width: 8px; height: 8px; border-radius: 50%; background: #A1A1AA; display: inline-block; }
.pt-cover-status.is-open i, .pt-open.is-open i { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }

/* Encabezado */
.pt-intro { position: relative; padding: 0 22px 8px; }
.pt-logo { display: block; width: 76px; height: 76px; margin: -38px 0 16px 10px; border-radius: 22px; overflow: hidden; position: relative; z-index: 2; background: var(--cz-bg); box-shadow: 0 0 0 4px var(--cz-bg), 0 12px 24px -12px rgba(0,0,0,.5); }
.pt-logo img { width: 100%; height: 100%; object-fit: cover; }
.pt-intro--nocover { padding-top: 32px; }
.pt-intro--nocover .pt-logo { margin: 0 0 16px; }
.pt-cat { display: inline-flex; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--cz-accent-text); background: color-mix(in srgb, var(--cz-accent) 16%, transparent); }
.pt-name { margin: 0 0 10px; font-family: 'Urbanist', var(--cz-font-display); font-weight: 700; font-size: clamp(32px, 9.5vw, 42px); line-height: 1.02; letter-spacing: -0.035em; color: var(--pt-ink); }
.pt-desc { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--pt-soft); max-width: 36ch; }
.pt-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--pt-surface); box-shadow: inset 0 0 0 1px var(--pt-line); font-size: 13.5px; font-weight: 500; color: var(--pt-ink); }
.pt-pill b { font-weight: 700; }
.pt-star { color: #F5A524; }

/* Acciones: dos botones lado a lado */
.pt-actions { display: flex; gap: 10px; }
.pt-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 16px; border-radius: 999px; background: var(--pt-surface); box-shadow: inset 0 0 0 1px var(--pt-line); color: var(--pt-ink); font-weight: 600; font-size: 15.5px; text-align: center; transition: transform .2s var(--cz-ease), filter .2s var(--cz-ease); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pt-btn--main { background: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--cz-accent) 80%, #000); }
.pt-btn:active { transform: scale(.97); }
.pt-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-actions .pt-btn:only-child { flex: 1 1 100%; }

/* Accesos agrupados en una sola tarjeta */
.pt-list { margin: 20px 16px 0; border-radius: var(--pt-r); background: var(--pt-surface); box-shadow: inset 0 0 0 1px var(--pt-line); overflow: hidden; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.pt-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; color: var(--pt-ink); transition: background .15s var(--cz-ease); }
.pt-row + .pt-row { box-shadow: inset 0 1px 0 var(--pt-line); }
.pt-row:active { background: color-mix(in srgb, var(--pt-ink) 6%, transparent); }
.pt-row-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--cz-accent) 16%, transparent); color: var(--cz-accent-text); }
.pt-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pt-row-text strong { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-row-text span { font-size: 13px; color: var(--pt-soft); }
.pt-row-go { color: var(--pt-soft); opacity: .7; }

/* Redes en círculos */
.pt-socials { display: flex; justify-content: center; gap: 12px; margin: 20px 16px 0; }
.pt-socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pt-surface); box-shadow: inset 0 0 0 1px var(--pt-line); color: var(--pt-ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Contenido */
.pt-content { padding: 12px 16px 0; }
.pt-section { margin-top: 24px; }
.pt-h2 { margin: 0 4px 12px; font-family: 'Urbanist', var(--cz-font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--pt-ink); }
.pt-section .cz-promo, .pt-section .cz-card, .pt-section .cz-post, .pt-section .cz-slider, .pt-section .cz-gallery { margin-top: 0; }
.pt-section .cz-promo, .pt-section .cz-card, .pt-section .cz-post { border-radius: var(--pt-r); background: var(--pt-surface); border: 0; box-shadow: inset 0 0 0 1px var(--pt-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pt-section .cz-gallery:has(> :only-child) .cz-gallery-item, .pt-section .cz-slides { border-radius: var(--pt-r); }
.pt-footer { padding-top: 32px; }
/* El vidrio anterior (cajas sueltas) no aplica a esta plantilla nueva */
body.cz-glass .cz-page-pt .cz-btn:not(.cz-btn--primary) { background: var(--pt-surface); }

/* Portada: reseñas destacadas en tarjeta propia (oct/2026). */
.pt-review { display: flex; align-items: center; gap: 14px; margin: 16px 16px 0; padding: 16px; border-radius: var(--pt-r); color: var(--pt-ink);
  background: linear-gradient(135deg, color-mix(in srgb, #F5A524 20%, var(--pt-surface)) 0%, var(--pt-surface) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #F5A524 35%, var(--pt-line)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .2s var(--cz-ease); }
.pt-review:active { transform: scale(.98); }
.pt-review-score { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.pt-review-score b { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.pt-review-stars { color: #F5A524; font-size: 13px; letter-spacing: 1px; margin-top: 4px; }
.pt-review-stars span { opacity: .3; }
.pt-review-stars--big { font-size: 16px; margin: 0; }
.pt-review-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-review-text strong { font-size: 16px; font-weight: 600; }
.pt-review-text span { font-size: 13px; color: var(--pt-soft); }
.pt-review-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #F5A524; color: #1F1300; flex: none; }

/* ==========================================================================
   Pulido final de las 3 plantillas (oct/2026)
   ========================================================================== */
/* Instagram: publicaciones como tarjetas con borde (antes de borde a borde) */
.cz-sheet-ig .cz-post { margin: 0 0 16px; border-radius: 20px; border: 1px solid var(--cz-border); box-shadow: 0 10px 24px -20px rgba(0,0,0,.35); }
.cz-sheet-ig .cz-post-media, .cz-sheet-ig .cz-post .cz-slides { border-radius: 0; }
.ig-h2, .st-h2 { margin: 28px 2px 12px; font-family: 'Urbanist', var(--cz-font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--cz-ink); }
.st-h2 { color: var(--st-ink, #0B0B0F); }
.cz-sheet-ig { padding-top: 4px; }
.cz-ig2-grid { margin-bottom: 4px; }
/* Tarjetas de horario y formulario: mismo radio, aire y jerarquía en todas */
.cz-card { border-radius: 20px; padding: 18px 18px 20px; }
.cz-card-head { font-weight: 600; font-size: 1.02rem; margin-bottom: 12px; gap: 10px; }
.cz-card-head svg { width: 18px; height: 18px; }
.cz-hours-list li { padding: 10px 0; font-size: 0.95rem; }
.cz-hours-list li span:last-child { font-weight: 500; }
.cz-form-body { font-size: 0.95rem; line-height: 1.5; margin-bottom: 16px; }
.cz-field span { font-weight: 500; font-size: 0.86rem; }
.cz-field input { min-height: 48px; border-radius: 12px; }
.cz-form button[type="submit"] { min-height: 52px; border-radius: 999px; font-weight: 600; }
/* Promoción: título y CTA con mejor jerarquía */
.cz-promo { border-radius: 20px; }
.cz-promo-cta { margin-top: 4px; font-weight: 600; }
/* Estudio: el contenido respira igual que Portada */
.st-body .cz-card, .st-body .cz-promo, .st-body .cz-post { border-radius: 24px; }

/* Estudio: estado del horario una sola vez, bajo los botones (oct/2026). */
.st-open { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; font-weight: 500; color: var(--st-soft, #464650); }
.st-open .st-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #A1A1AA; }
.st-open.is-open .st-status-dot { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.st-top { justify-content: flex-start; }

/* Logo más grande (oct/2026, pedido de Cazu). */
.st-mark { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.st-top { padding-top: 24px; }
.pt-logo { width: 88px; height: 88px; margin-top: -44px; border-radius: 24px; }
.pt-intro--nocover .pt-logo { margin-top: 0; }

/* Color propio de un bloque (oct/2026): en Estudio el botón principal toma
   ese color (normalmente es negro). */
.st-cta.has-color { background: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--cz-accent) 80%, #000); }
.st-cta.has-color .st-cta-ic { background: color-mix(in srgb, var(--cz-on-accent) 18%, transparent); color: var(--cz-on-accent); }

.st-body--top { padding-bottom: 0; }
.st-body--top + .st-band { margin-top: 0; }

/* Instagram: indicador de "hay más historias" solo con desvanecido (sin
   flecha), del alto de los círculos y sus nombres (oct/2026). */
.cz-ig2 .cz-ig-highlights-wrap .cz-ig-scroll-hint { top: 0; bottom: 0; width: 72px; padding: 0; transform: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cz-bg) 0%, transparent) 0%, color-mix(in srgb, var(--cz-bg) 70%, transparent) 45%, var(--cz-bg) 100%); }
.cz-ig2 .cz-ig-highlights-wrap.has-more .cz-ig-scroll-hint { opacity: 1; }

/* ---------- Principios de diseño (oct/2026): énfasis, unidad, simplicidad ----------
   Estudio: la franja de accesos pasa a un tono claro para que la tarjeta de
   reseñas sea el único bloque fuerte; sin numeración decorativa.
   Portada: la tarjeta de reseñas usa el color de la marca (estrellas doradas).
   Promoción: sin la etiqueta repetida bajo el título "Promociones".
   Horarios: el día de hoy resaltado. */
.cz-page-st .st-band { background: color-mix(in srgb, var(--cz-accent) 8%, #FFFFFF); color: var(--st-ink); }
.cz-page-st .st-band-aura { display: none; }
.cz-page-st .st-card { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 24px -18px rgba(0,0,0,.35); }
.st-card-top { justify-content: flex-end; }
.pt-review { background: linear-gradient(135deg, color-mix(in srgb, var(--cz-accent) 18%, var(--pt-surface)) 0%, var(--pt-surface) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cz-accent) 30%, var(--pt-line)); }
.pt-review-go { background: var(--cz-accent); color: var(--cz-on-accent); }
.cz-page-st .cz-promo .cz-eyebrow, .cz-page-pt .cz-promo .cz-eyebrow { display: none; }
.cz-hours-list li.is-today { font-weight: 600; color: var(--cz-ink); }
.cz-hours-list li.is-today em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--cz-accent) 16%, transparent); color: var(--cz-accent-text); vertical-align: 1px; }

/* ==========================================================================
   Plantilla "Cuadrícula" (oct/2026): mosaicos tipo widgets. Ver
   public/partials/grid.php. Una sola familia (Urbanist) y una escala corta:
     32/600 nombre · 19/600 acción principal · 17/600 títulos de sección ·
     15/500 mosaicos · 13.5/400 textos de apoyo (gris) · 12.5/600 etiquetas.
   Solo el nombre y la acción principal llevan peso y color fuerte; las
   secciones (Síguenos, Visítanos, Promociones...) guían el recorrido.
   Variables: --cz-bg (fondo claro), --gr-tile, --gr-dark, --cz-accent.
   ========================================================================== */
body.cz-tpl-grid { background: var(--cz-bg); }
.cz-page-gr { background: var(--cz-bg); max-width: 460px; padding: 14px 14px 28px; }
.gr { --gr-font: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --gr-ink: #1C1A18; --gr-soft: #66615B; --gr-r: 22px;
  --gr-shadow: 0 1px 0 rgba(28,26,24,.05), 0 12px 28px -22px rgba(28,26,24,.45);
  font-family: var(--gr-font); color: var(--gr-ink); }
.cz-page-gr .gr-body, .cz-page-gr .gr-body :is(h2, h3, h4, p, a, span, li, label, input, textarea, button, strong, small) { font-family: var(--gr-font); }
.gr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(76px, auto); gap: 10px; grid-auto-flow: row dense; }
.gr-t { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 14px; overflow: hidden; border-radius: var(--gr-r); background: var(--gr-tile); color: inherit; text-decoration: none; box-shadow: var(--gr-shadow); transition: transform .18s var(--cz-ease), box-shadow .18s var(--cz-ease); }
a.gr-t:active { transform: scale(.98); }
a.gr-t:focus-visible { outline: 2px solid var(--cz-accent-text); outline-offset: 2px; }
@media (hover: hover) { a.gr-t:hover { box-shadow: 0 1px 0 rgba(28,26,24,.05), 0 16px 32px -20px rgba(28,26,24,.5); } }
.gr-t.w4 { grid-column: span 4; } .gr-t.w2 { grid-column: span 2; } .gr-t.w1 { grid-column: span 1; }
.gr-t.h2 { grid-row: span 2; }

.gr-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cz-accent) 11%, #FFFFFF); color: var(--cz-accent-text); }
.gr-label { display: block; margin-top: auto; font-size: 15px; font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; text-wrap: balance; }
.gr-sub { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; line-height: 1.35; color: var(--gr-soft); }

/* Títulos de sección: guían el recorrido */
.gr-sec { margin: 26px 4px 10px; font-family: var(--gr-font); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--gr-ink); }

/* Encabezado */
.gr-hero { padding: 18px 18px 20px; }
.gr-hero-top { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gr-logo { width: 56px; height: 56px; flex: none; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--cz-accent); color: var(--cz-on-accent); font-weight: 600; font-size: 22px; box-shadow: 0 0 0 1px rgba(28,26,24,.06), 0 8px 18px -12px rgba(0,0,0,.45); }
.gr-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.gr-open { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 12px; border-radius: 999px; background: rgba(28,26,24,.05); font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--gr-soft); }
.gr-open i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #A8A29E; }
.gr-open.is-open { color: #1D6337; background: rgba(22,163,74,.09); }
.gr-open.is-open i { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.gr-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cz-accent-text); }
.gr-name { margin: 0; font-family: var(--gr-font); font-size: clamp(28px, 8.5vw, 32px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; color: var(--gr-ink); overflow-wrap: anywhere; text-wrap: balance; }
.gr-lede { margin: 10px 0 0; max-width: 36ch; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--gr-soft); text-wrap: pretty; }

/* Acción principal: el único mosaico de color fuerte */
.gr-main { padding: 16px; background: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--cz-accent) 85%, #000); }
.gr-main .gr-ic { background: color-mix(in srgb, var(--cz-on-accent) 16%, transparent); color: var(--cz-on-accent); }
.gr-main .gr-label { font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.gr-main .gr-sub { color: color-mix(in srgb, var(--cz-on-accent) 74%, transparent); }
.gr-go { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cz-on-accent) 16%, transparent); }
.gr-main.is-wide { flex-direction: row; align-items: center; gap: 12px; }
.gr-main.is-wide .gr-label { margin-top: 0; font-size: 17px; }
.gr-main.is-wide .gr-go { position: static; margin-left: auto; order: 3; }

/* Reseña */
.gr-rev { padding: 16px; background: var(--gr-dark); color: #FFFFFF; }
.gr-rev .gr-ic { background: rgba(255,255,255,.12); color: #FBBF24; }
.gr-score { font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gr-stars { margin-top: 6px; font-size: 12px; letter-spacing: 2px; color: #FBBF24; }
.gr-rev .gr-sub { color: rgba(255,255,255,.68); }
.gr-rev-light .gr-rev { color: var(--gr-ink); }
.gr-rev-light .gr-rev .gr-sub { color: var(--gr-soft); }
.gr-rev-light .gr-rev .gr-ic { background: #FEF3C7; color: #B45309; }
.gr-rev-light .gr-stars { color: #F59E0B; }
.gr-alt { padding: 16px; }
.gr-alt .gr-label { font-size: 17px; font-weight: 500; }

/* Foto */
.gr-photo { padding: 0; background: color-mix(in srgb, var(--cz-accent) 8%, #EEE); }
.gr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cuadritos */
.gr-sm { align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; text-align: center; }
.gr-sm .gr-label { margin: 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gr-sm-text { min-width: 0; max-width: 100%; }
.gr-sm.is-wide { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px; text-align: left; }
.gr-sm.is-wide .gr-label { font-size: 15px; }
.gr-sm.h2 { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px; }
.gr-sm.h2 .gr-sm-text { margin-top: auto; }

/* Cómo llegar */
.gr-map { flex-direction: row; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(120deg, var(--gr-tile) 40%, color-mix(in srgb, var(--cz-accent) 9%, var(--gr-tile))); }
.gr-map-text { min-width: 0; flex: 1; }
.gr-map .gr-label { margin: 0; }
.gr-map .gr-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-pin { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cz-accent); color: var(--cz-on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cz-accent) 14%, transparent); }

/* Resto de bloques como mosaicos anchos */
.gr-block { margin-bottom: 10px; }
.gr-hours { margin-top: 10px; }
.cz-page-gr .cz-card, .cz-page-gr .cz-promo, .cz-page-gr .cz-form-card { border: 0; border-radius: var(--gr-r); background: var(--gr-tile); box-shadow: var(--gr-shadow); }
.cz-page-gr .cz-card-head { font-size: 15px; font-weight: 500; color: var(--gr-ink); }
.cz-page-gr .cz-promo .cz-eyebrow { display: none; }
.cz-page-gr .gr-body h3, .cz-page-gr .cz-promo-body h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
/* Horarios compactos: días en gris, horas alineadas, hoy resaltado */
.cz-page-gr .cz-hours-list li { padding-top: 9px; padding-bottom: 9px; font-size: 14.5px; }
.cz-page-gr .cz-hours-list li > :first-child { color: var(--gr-soft); font-weight: 400; }
.cz-page-gr .cz-hours-list li > :last-child { color: var(--gr-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.cz-page-gr .cz-hours-list li.is-today > :first-child, .cz-page-gr .cz-hours-list li.is-today > :last-child { color: var(--gr-ink); font-weight: 600; }
.gr-footer { padding-top: 1rem; }
.gr-footer, .gr-footer a, .gr-footer p { font-family: var(--gr-font); }

@media (min-width: 560px) {
  body.cz-tpl-grid { background: color-mix(in srgb, var(--cz-bg) 92%, #1C1A18); }
  .cz-page-gr { margin-top: 24px; margin-bottom: 24px; border-radius: 34px; padding: 18px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) { .gr-t { transition: none; } }

/* Cuadrícula · Enlaces (oct/2026): filas con ícono y tarjetas con foto.
   El título nunca se corta a una línea: hasta 2 líneas y luego "…". */
.gr-row { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; min-height: 76px; }
.gr-row-text { flex: 1; min-width: 0; }
.gr-row .gr-label { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-row.w2 { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; }
.gr-row-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(28,26,24,.05); color: var(--gr-soft); }
.gr-card { padding: 0; }
.gr-card-img { position: relative; flex: 1; min-height: 0; display: block; overflow: hidden; background: color-mix(in srgb, var(--cz-accent) 8%, #EEE); }
.gr-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--cz-ease); }
@media (hover: hover) { a.gr-card:hover .gr-card-img img { transform: scale(1.03); } }
.gr-card-text { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px 13px; }
.gr-card .gr-label { flex: 1; margin: 0; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-card-go { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cz-accent); color: var(--cz-on-accent); }
.gr-card.is-big { grid-row: span 3; }
.gr-card.is-big .gr-label { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gr-card.is-big .gr-card-go { width: 30px; height: 30px; }

/* ---------- Tarjeta de fidelización (oct/2026, bloque "loyalty") ----------
   Tarjeta tipo wallet con el color de la marca (o el del bloque): sellos de
   adorno, un botón claro y la mención de Google/Apple Wallet. */
.cz-loyalty { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0 0 1rem; padding: 20px 20px 16px; border-radius: 22px; overflow: hidden; text-decoration: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cz-accent) 100%, #fff 0%) 0%, color-mix(in srgb, var(--cz-accent) 78%, #000) 100%);
  color: var(--cz-on-accent); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--cz-accent) 70%, #000); isolation: isolate; }
.cz-loyalty::before { content: ""; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: color-mix(in srgb, var(--cz-on-accent) 12%, transparent); z-index: -1; }
.cz-loyalty::after { content: ""; position: absolute; right: 30px; bottom: -90px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--cz-on-accent) 7%, transparent); z-index: -1; }
.cz-loy-top { display: flex; align-items: center; gap: 10px; }
.cz-loy-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--cz-on-accent) 16%, transparent); }
.cz-loy-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.cz-loy-title { font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.cz-loy-sub { font-size: 14.5px; line-height: 1.45; opacity: .85; max-width: 34ch; }
.cz-loy-stamps { display: flex; gap: 7px; margin: 6px 0 4px; }
.cz-loy-stamp { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, var(--cz-on-accent) 45%, transparent); }
.cz-loy-stamp.is-on { border-style: solid; border-color: transparent; background: var(--cz-on-accent); color: var(--cz-accent); }
.cz-loy-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cz-on-accent); color: var(--cz-accent); font-weight: 700; font-size: 15px; }
.cz-loy-wallet { font-size: 11.5px; opacity: .65; margin-top: 2px; }
.cz-loyalty:active { transform: scale(.99); }
.cz-loy-stamp.is-on svg path { fill: currentColor; }

/* ---------- Cuadrícula en modo oscuro con degradado (28/10/2026) ----------
   Se activa sola si el fondo elegido es oscuro (clase gr-darkmode).
   Degradado en el body (se mueve con la página, sin position: fixed): brillos
   del color de marca (--cz-accent) y del color principal (--cz-accent-hero-bg).
   Arriba empieza con el fondo exacto para empalmar con la barra de Safari. */
body.cz-tpl-grid.gr-darkmode {
  background-color: var(--cz-bg);
  background-image:
    linear-gradient(180deg, var(--cz-bg) 0px, transparent 160px),
    radial-gradient(70% 40% at 100% 10%, color-mix(in srgb, var(--cz-accent) 42%, transparent) 0%, transparent 72%),
    radial-gradient(75% 38% at 0% 42%, color-mix(in srgb, var(--cz-accent-hero-bg) 40%, transparent) 0%, transparent 72%),
    radial-gradient(80% 36% at 100% 82%, color-mix(in srgb, var(--cz-accent) 30%, transparent) 0%, transparent 72%);
  background-repeat: no-repeat;
}
.gr-darkmode .cz-page-gr { background: transparent; box-shadow: none; }
.gr-darkmode .gr { --gr-ink: #F5F3F7; --gr-soft: rgba(245, 243, 247, .64);
  --gr-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 36px -26px rgba(0,0,0,.85); }
.gr-darkmode .gr-t, .gr-darkmode .cz-page-gr .cz-card, .gr-darkmode .cz-page-gr .cz-promo, .gr-darkmode .cz-page-gr .cz-form-card {
  background: color-mix(in srgb, var(--gr-tile) 72%, transparent);
  border: 1px solid rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.gr-darkmode .gr-main { background: linear-gradient(135deg, var(--cz-accent) 0%, color-mix(in srgb, var(--cz-accent) 70%, var(--cz-accent-hero-bg)) 100%); border: 0; }
.gr-darkmode .gr-rev { background: color-mix(in srgb, var(--gr-dark) 85%, transparent); color: #FFFFFF; }
.gr-darkmode .gr-ic { background: color-mix(in srgb, var(--cz-accent) 24%, transparent); color: var(--cz-accent-text); }
.gr-darkmode .gr-main .gr-ic { background: color-mix(in srgb, var(--cz-on-accent) 16%, transparent); color: var(--cz-on-accent); }
.gr-darkmode .gr-open { background: rgba(255,255,255,.08); }
.gr-darkmode .gr-open.is-open { color: #86EFAC; background: rgba(34,197,94,.16); }
.gr-darkmode .gr-row-go { background: rgba(255,255,255,.08); }
.gr-darkmode .gr-photo { background: rgba(255,255,255,.06); }
.gr-darkmode .gr-map { background: linear-gradient(120deg, color-mix(in srgb, var(--gr-tile) 72%, transparent) 40%, color-mix(in srgb, var(--cz-accent) 18%, transparent)); }
@media (hover: hover) { .gr-darkmode a.gr-t:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -24px rgba(0,0,0,.9); } }
@media (min-width: 560px) { body.cz-tpl-grid.gr-darkmode { background-color: var(--cz-bg); } }
/* Cuadrícula oscura: el logo del encabezado de una Publicación va sobre blanco (un logo negro no se veía) */
.gr-darkmode .cz-post-av img { background: #FFFFFF; border-radius: 50%; }

/* ---------- Estudio más compacto (28/10/2026, Cazu: "hay mucho espacio") ----------
   Menos aire bajo el encabezado y entre secciones; las tarjetas de "Todo en
   un toque" ya no dejan un hueco grande arriba del ícono (la flecha va en la
   esquina y el contenido abajo). */
.st-hero { padding-bottom: 18px; }
.st-body { padding-top: 14px; }
.st-body--top { padding-top: 6px; }
.st-feature { min-height: 0; margin-bottom: 12px; padding: 20px 22px 22px; }
.st-band { padding: 18px 0 18px; }
.st-band-head { margin-bottom: 12px; }
.cz-page-st .st-card { min-height: 128px; justify-content: flex-end; padding: 16px 16px 16px; }
.cz-page-st .st-card-top { position: absolute; top: 12px; right: 12px; margin: 0; }
.cz-page-st .st-card-ic { margin: 0 0 8px; }
.st-cover { margin-bottom: 12px; }
.st-block { margin-bottom: 12px; }
.st-h2 { margin: 22px 2px 10px; }
/* Cuadrícula: el bloque de texto libre va en un mosaico como el resto (antes quedaba suelto). */
.cz-page-gr .cz-text-block { margin: 0; padding: 18px 18px 20px; border-radius: var(--gr-r); background: var(--gr-tile); box-shadow: var(--gr-shadow); }
.cz-page-gr .cz-text-block h3 { font-family: var(--gr-font); font-size: 17px; font-weight: 600; color: var(--gr-ink); }
.cz-page-gr .cz-text-block p { font-size: 14.5px; line-height: 1.5; color: var(--gr-soft); }
.gr-darkmode .cz-page-gr .cz-text-block { background: color-mix(in srgb, var(--gr-tile) 72%, transparent); border: 1px solid rgba(255,255,255,.07); }

/* ---------- Promoción con elementos de venta (oct/2026) ----------
   Etiqueta, precio grande + precio tachado + "Ahorras X %", nota con punto y
   botón sólido cuando hay precio. Funciona en todas las plantillas. */
.cz-promo-badge { display: inline-flex; align-items: center; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--cz-accent); color: var(--cz-on-accent); }
.cz-promo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 8px; }
.cz-promo-price b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cz-promo-price s { font-size: 15px; opacity: .6; font-variant-numeric: tabular-nums; }
.cz-promo-save { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, #16A34A 16%, transparent); color: #15803D; }
.cz-theme-dark .cz-promo-save { color: #86EFAC; background: rgba(34,197,94,.16); }
.cz-promo-note { display: flex; align-items: center; gap: 7px; margin: 0 0 10px !important; font-size: 13.5px !important; font-weight: 600; }
.cz-promo-note i { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.22); flex: none; }
.cz-promo-cta.is-button { display: inline-flex; min-height: 46px; padding: 0 20px; margin-top: 4px; border-radius: 999px; background: var(--cz-accent); color: var(--cz-on-accent); align-items: center; }
