/* ==========================================================================
   IGLESIA DEL SALVADOR — iOS 27 / Liquid Glass
   Rediseño basado en los cambios del 8 de junio de 2026 (WWDC26):
   - Material Liquid Glass con difusión de contenido para legibilidad
   - Tipografía bold alineada a la izquierda, concentricidad de radios
   - Símbolos con animación Draw On (SF Symbols 8)
   - Hero estilo Lock Screen (reloj estirado + widgets + orbes)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open, body.chat-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::selection { background: rgba(10, 132, 255, 0.45); color: #fff; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ==========================================================================
   AURORA — fondo ambiental que el vidrio refracta
   ========================================================================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(94, 92, 230, 0.14), transparent 60%),
    radial-gradient(1000px 700px at -10% 35%, rgba(10, 132, 255, 0.12), transparent 60%),
    radial-gradient(900px 900px at 70% 110%, rgba(100, 210, 255, 0.08), transparent 60%),
    var(--bg);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--aurora-blob-opacity);
  will-change: transform;
}

.aurora-blob--1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.4), transparent 70%);
  top: 8%; left: -10%;
  animation: drift-1 26s ease-in-out infinite alternate;
}

.aurora-blob--2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.32), transparent 70%);
  top: 42%; right: -14%;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.aurora-blob--3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.24), transparent 70%);
  bottom: -8%; left: 28%;
  animation: drift-3 38s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-120px, -140px) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(90px, -110px) scale(1.2); } }

/* ==========================================================================
   LIQUID GLASS — material base (intensidad máxima)
   ========================================================================== */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(1.07);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(1.07);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow-soft);
}

/* Borde especular — el "rim light" del vidrio */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Brillo refractivo interior */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
    radial-gradient(80% 50% at 88% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.glass > * { position: relative; z-index: 3; }

/* ==========================================================================
   SF SYMBOLS 8 — animación Draw On
   Cada trazo se dibuja como escritura a mano, capa por capa (--i escalonado).
   script.js calcula --len con getTotalLength().
   ========================================================================== */
.sym :is(path, polyline, polygon, circle, rect, line, ellipse) {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
}

.sym.draw :is(path, polyline, polygon, circle, rect, line, ellipse) {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur-draw) var(--ease-draw);
  transition-delay: calc(var(--i, 0) * 130ms);
}

/* ==========================================================================
   REVEAL — entrada de tarjetas al hacer scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s var(--ease-glass), transform 0.7s var(--ease-glass);
  transition-delay: var(--rd, 0ms);
}

.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   BOTONES — pills de vidrio
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--label);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow-soft);
  transition: transform var(--dur-fast) var(--ease-glass), box-shadow var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
  position: relative;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.96); }

.btn-blue {
  background: var(--glass-blue);
  box-shadow: var(--glass-blue-shadow);
  color: #fff;
}

.btn-blue:hover { box-shadow: 0 18px 50px rgba(10, 132, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn-secondary { color: var(--label); }

.btn:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   HEADER — barra de navegación flotante
   ========================================================================== */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  height: var(--header-h);
  padding: 0 10px 0 18px;
  border-radius: var(--r-pill);
  width: min(var(--container), calc(100% - 32px));
  transition: box-shadow var(--dur-base) var(--ease-glass), background var(--dur-base) ease, width var(--dur-base) var(--ease-glass);
}

.header.scrolled .header-pill {
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-shadow);
  width: min(940px, calc(100% - 32px));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: var(--weight-bold);
  font-size: var(--text-callout);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.logo-mark { color: var(--ios-blue); flex: none; }

.logo-img {
  display: block;
  height: 20px;
  width: auto;
}

.nav-center {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-center a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--label-2);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav-center a:hover {
  color: var(--label);
  background: var(--tint-hover-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  background: var(--fill-chip-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.btn-nav:hover { transform: scale(1.05); background: var(--fill-chip-hover); }

.btn-nav-blue {
  background: var(--glass-blue);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ios-red);
  box-shadow: 0 0 10px var(--ios-red);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* Menú mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: none;
  border-radius: 50%;
  background: var(--fill-chip-strong);
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--label);
  transition: transform var(--dur-fast) var(--ease-glass), opacity var(--dur-fast) ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
  z-index: 98;
}

.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 84px;
  left: 16px;
  right: 16px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-16);
  border-radius: var(--r-xl);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow);
  transform: translateY(-14px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-glass), opacity var(--dur-base) ease;
}

.nav-drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: var(--text-callout);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.nav-drawer a:hover { background: var(--tint-hover-strong); }

.nav-drawer-actions {
  display: flex;
  gap: 10px;
  padding: 10px 8px 4px;
}

.nav-drawer-actions .btn { flex: 1; }

/* ==========================================================================
   HERO — Lock Screen iOS 27
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-wallpaper {
  position: absolute;
  inset: -4%;
  z-index: 0;
}

/* Zoom lento y automático (Ken Burns), sin depender del mouse: la imagen
   respira de scale(1) a scale(1.12) y vuelve, en un ciclo largo. */
.hero-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wallpaper img { animation: none; }
}

.hero-wallpaper-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(10, 132, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(4, 4, 6, 0.35) 0%, rgba(4, 4, 6, 0.05) 35%, rgba(4, 4, 6, 0.55) 82%, var(--bg) 100%);
}

.lock {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 24px 170px;
  gap: clamp(20px, 3.2vh, 36px);
  will-change: transform;
}

@keyframes lock-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Titular — texto suelto sobre la foto, sin tarjeta */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  max-width: 780px;
  text-align: center;
  animation: lock-rise 1s var(--ease-glass) both 0.2s;
}

.hero-headline h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 80px);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  max-width: 52ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Widgets del Lock Screen — una sola superficie de vidrio, divisores internos en vez de 3 tarjetas */
.lock-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  animation: lock-rise 1s var(--ease-glass) both 0.65s;
}

.lock-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--sp-16);
  border-left: 1px solid var(--hairline-strong);
  transition: background var(--dur-fast) ease;
}

.lock-widget:first-child { border-left: none; }

.lock-widget:hover { background: var(--tint-hover); }

.lock-widget .sym { color: var(--ios-teal); }

.lock-widget-label {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label-3);
}

.lock-widget-value {
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  color: var(--label);
  letter-spacing: -0.01em;
}

/* Zona inferior: orbes + indicador home */
.lock-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 64px) 92px;
}

.lock-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  color: var(--label);
  background: var(--glass-fill-strong);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.lock-orb:hover { transform: scale(1.12); background: rgba(255, 255, 255, 0.24); }
.lock-orb:active { transform: scale(0.92); }

.lock-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
}

.lock-home-hint {
  font-size: var(--text-footnote);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  animation: hint-float 2.6s ease-in-out infinite;
}

@keyframes hint-float {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.lock-home-bar {
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SECCIONES — tipografía bold a la izquierda (iOS 27)
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 120px) 0; }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head--sub { margin-top: clamp(56px, 8vw, 88px); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--sp-12);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(10, 132, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(10, 132, 255, 0.25);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ios-teal);
}

.section-label .sym { color: var(--ios-teal); }

.section-title {
  margin: 0 0 var(--sp-12);
  font-family: var(--font-display);
  font-size: var(--text-title-1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.06;
}

.section-desc {
  margin: 0;
  font-size: var(--text-callout);
  color: var(--label-2);
  line-height: 1.55;
  max-width: 58ch;
}

/* ==========================================================================
   BANNER WHATSAPP
   ========================================================================== */
.whatsapp-banner { padding: clamp(48px, 7vw, 80px) 0 0; }

.whatsapp-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  padding: var(--sp-20) var(--sp-24);
  border-radius: var(--r-xl);
}

.whatsapp-banner-icon { color: var(--ios-green); flex: none; }

.whatsapp-banner-text {
  margin: 0;
  font-size: var(--text-body);
  color: var(--label-2);
}

.whatsapp-banner-btn { flex: none; margin-left: auto; }

/* ==========================================================================
   EN VIVO
   ========================================================================== */
.live-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.live-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: var(--sp-16);
  box-shadow: var(--glass-shadow-soft);
}

/* El reproductor real de YouTube tiene sus propios controles pegados al borde;
   un poco de relleno evita que la esquina redondeada del marco los recorte. */
.live-preview iframe {
  box-sizing: border-box;
  padding: 10px;
  border-radius: var(--r-lg);
}

.live-preview-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.live-preview-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.live-preview-link:hover .live-preview-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(10, 132, 255, 0.65);
}

.live-badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--ios-blue);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.live-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--sp-8);
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  color: var(--label-2);
}

.live-title { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: var(--sp-8); }

.live-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.live-meta-stats { font-size: var(--text-footnote); color: var(--label-3); }

.live-meta-actions { display: flex; gap: 8px; margin-left: auto; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  color: var(--label-2);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.live-pill:hover { transform: scale(1.05); background: var(--tint-hover); color: var(--label); }

.live-desc-box {
  margin: var(--sp-12) 0 var(--sp-16);
  padding: var(--sp-16) 0 0;
  border-top: 1px solid var(--hairline-strong);
}

.live-desc-text {
  margin: 0;
  font-size: var(--text-body);
  color: var(--label-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-desc-box.is-expanded .live-desc-text { -webkit-line-clamp: unset; }

.live-desc-more {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  color: var(--ios-blue);
}

.live-desc-box.is-expanded .live-desc-more { display: none; }

.live-channel-row {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-16) 0 0;
  border-top: 1px solid var(--hairline-strong);
}

.live-channel-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  flex: none;
}

.live-channel-info { display: flex; flex-direction: column; min-width: 0; }

.live-channel-name { font-weight: var(--weight-semibold); font-size: var(--text-body); }
.live-channel-subs { font-size: var(--text-caption); color: var(--label-3); }

.btn-live-channel { margin-left: auto; padding: 10px 20px; }

.live-sidebar-heading {
  margin: 4px 0 var(--sp-12);
  font-size: var(--text-footnote);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--label-3);
}

.live-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-related-link {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-md);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.live-related-link:hover { transform: translateX(4px); background: var(--tint-hover); }

.live-related-thumb {
  position: relative;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 10px; /* concéntrico */
  overflow: hidden;
  flex: none;
  background: var(--bg-elev);
}

.live-related-thumb .live-badge-new {
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  font-size: 10px;
}

.live-related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.live-related-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 4px;
}

.live-related-title {
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-related-meta { font-size: var(--text-caption); color: var(--label-3); }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.photo-gallery { padding: clamp(40px, 6vw, 72px) 0 0; }

.photo-gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.photo-gallery-inner {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y; /* deja el gesto horizontal libre para el arrastre */
}

.photo-gallery-inner.is-dragging { cursor: grabbing; }

.photo-gallery-track {
  display: flex;
  gap: 12px; /* sincronizado con script.js (gap = 12) */
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
  will-change: transform;
  user-select: none;
}

.photo-gallery-inner.is-dragging .photo-gallery-track { transition: none; }

.photo-gallery-item {
  flex: none;
  width: min(560px, 78vw);
  aspect-ratio: 3 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s var(--ease-glass);
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.photo-gallery-item:hover img { transform: scale(1.06); }

.photo-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  color: var(--label);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.photo-nav:hover { transform: translateY(-50%) scale(1.1); background: var(--glass-fill-strong); }

.photo-nav-prev { left: 18px; }
.photo-nav-next { right: 18px; }

.photo-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-20);
}

.photo-gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--label-4);
  transition: width var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.photo-gallery-dot.active {
  width: 24px;
  background: var(--label);
}

/* ==========================================================================
   VALORES
   ========================================================================== */
.valores-intro {
  margin: var(--sp-16) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-title-3);
  font-weight: var(--weight-medium);
  font-style: italic;
  color: var(--label-2);
  letter-spacing: var(--tracking-tight);
}

.valores-img {
  width: 100%;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-24);
  box-shadow: var(--glass-shadow-soft);
}

.valores-desc {
  margin: 0 0 var(--sp-8);
  max-width: 72ch;
  font-size: var(--text-callout);
  color: var(--label-2);
  line-height: 1.6;
}

.valores-cta {
  margin: 0 0 var(--sp-40);
  font-weight: var(--weight-semibold);
  color: var(--label);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.valores-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-20);
  border-radius: var(--r-lg);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.valores-item:hover { transform: translateY(-4px); background: var(--tint-hover); }

.valores-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(10, 132, 255, 0.22);
  color: var(--ios-teal);
}

.valores-name {
  font-family: var(--font-display);
  font-size: var(--text-callout);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.valores-desc-item {
  font-size: var(--text-footnote);
  color: var(--label-2);
  line-height: 1.45;
}

/* ==========================================================================
   COMUNIDAD — bento de fotos reales, sin caja ni blur (la foto es el contenido)
   ========================================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 14px;
}

.community-item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow-soft);
}

.community-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s var(--ease-glass);
}

.community-item:hover img { transform: scale(1.08); }

.community-item:nth-child(6n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 780px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 480px) {
  .community-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .community-item:nth-child(6n+1) { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   IMG STRIPS
   ========================================================================== */
.img-strip {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.img-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
  pointer-events: none;
}

/* ==========================================================================
   GRUPOS
   ========================================================================== */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-32);
  max-width: 100%;
}

.filter-btn {
  padding: 9px 18px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  color: var(--label-2);
  transition: color var(--dur-fast) ease, background var(--dur-fast) var(--ease-glass), box-shadow var(--dur-fast) ease;
  white-space: nowrap;
}

.filter-btn:hover { color: var(--label); }

.filter-btn.active {
  color: #fff;
  background: var(--glass-blue);
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.groups-grid, .impacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.group-card, .impacto-card, .instituto-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-glass), background var(--dur-base) ease, border-color var(--dur-base) ease;
}

/* Sin vidrio ni fotos: solo un borde fino que delimita la tarjeta */
.group-card, .impacto-card, .instituto-card {
  border: 1px solid var(--hairline);
}

.group-card:hover, .impacto-card:hover, .instituto-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--tint-hover);
  border-color: var(--hairline-strong);
}

.group-card-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.group-card-body, .impacto-card-body, .instituto-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-20);
  flex: 1;
}

.group-card-body h3, .impacto-card-body h3, .instituto-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-callout);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.group-card-body p, .impacto-card-body p, .instituto-card-body p {
  margin: 0;
  font-size: var(--text-footnote);
  color: var(--label-2);
  line-height: 1.5;
  flex: 1;
}

.group-cta, .instituto-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: var(--text-footnote);
  font-weight: var(--weight-bold);
  color: var(--ios-blue);
  transition: gap var(--dur-fast) var(--ease-glass);
}

.group-cta::after, .instituto-cta::after { content: "→"; }

.group-cta:hover, .instituto-cta:hover { gap: 11px; color: var(--ios-teal); }

.impacto-cta { margin-top: var(--sp-32); }

/* ==========================================================================
   INSTITUTO
   ========================================================================== */
.instituto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.instituto-card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.instituto-card-body li {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--fill-chip);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--label-2);
}

/* ==========================================================================
   CALENDARIO
   ========================================================================== */
.calendario-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: var(--sp-24);
}

.calendario-block {
  padding: var(--sp-24);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
}

.calendario-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: var(--text-title-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.calendario-block p {
  margin: 0 0 var(--sp-16);
  font-size: var(--text-body);
  color: var(--label-2);
}

.calendario-block p:last-child { margin-bottom: 0; }

.calendar-fallback {
  padding: 14px;
  border-radius: var(--r-lg);
  background: #f5f5f7;
  box-shadow: var(--glass-shadow-soft);
}

.calendar-events { display: flex; flex-direction: column; gap: 8px; }

.calendar-event {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-lg);
  transition: transform var(--dur-fast) var(--ease-glass), background var(--dur-fast) ease;
}

.calendar-event:hover { transform: translateX(5px); background: var(--tint-hover); }

.calendar-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--fill-chip);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.calendar-event-day {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.calendar-event-month {
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ios-teal);
}

.calendar-event-weekday { font-size: 10px; color: var(--label-3); text-transform: uppercase; letter-spacing: 0.05em; }

.calendar-event-body { display: flex; align-items: center; gap: 10px; min-width: 0; }

.calendar-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ios-blue);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.7);
  flex: none;
}

.calendar-event-info { display: flex; flex-direction: column; min-width: 0; }

.calendar-event-time {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--label-3);
}

.calendar-event-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.calendar-event--extra { display: none; }
.calendar-events--expanded .calendar-event--extra { display: flex; }

.calendar-more-btn {
  display: block;
  margin: var(--sp-8) auto 0;
  padding: 10px 22px;
  border: none;
  background: none;
  border-radius: var(--r-pill);
  font-size: var(--text-footnote);
  font-weight: var(--weight-bold);
  color: var(--ios-blue);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.calendar-more-btn:hover { color: var(--ios-teal); background: var(--tint-hover); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--hairline-strong);
  overflow: hidden;
  transition: background var(--dur-fast) ease;
}

.faq-item:last-child { border-bottom: none; }

.faq-item.open { background: var(--tint-hover); }

.faq-question {
  position: relative;
  width: 100%;
  padding: var(--sp-16) 52px var(--sp-16) var(--sp-20);
  border: none;
  background: none;
  text-align: left;
  font-size: var(--text-callout);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--label);
  transition: background var(--dur-fast) ease;
}

.faq-item:not(.open):hover .faq-question { background: var(--tint-hover); }

.faq-question::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--label-2);
  border-bottom: 2px solid var(--label-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-glass);
}

.faq-item.open .faq-question::after { transform: translateY(-30%) rotate(225deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--sp-20);
  font-size: var(--text-body);
  color: var(--label-2);
  line-height: 1.55;
  transition: max-height var(--dur-base) var(--ease-glass), padding var(--dur-base) var(--ease-glass);
}

.faq-item.open .faq-answer {
  max-height: 480px;
  padding: 0 var(--sp-20) var(--sp-20);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
/* Envoltorio sin el filtro: acá vive la sombra, para que no la invierta y se
   vea como un brillo raro (el filter de abajo afecta todo lo que está dentro). */
.contact-map-frame {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: var(--sp-24);
  box-shadow: var(--glass-shadow-soft);
}

.contact-map {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  /* fondo blanco a propósito: el filtro de abajo lo invierte a un gris oscuro,
     el mismo tono al que queda el propio chrome blanco de Google Maps */
  background: #fff;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85);
}

.contact-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-left { display: flex; flex-direction: column; gap: 18px; }

.contact-info {
  padding: var(--sp-20) var(--sp-24);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
}

.contact-info p { margin: 0 0 8px; font-size: var(--text-body); color: var(--label-2); }
.contact-info p:last-child { margin: 0; }
.contact-info strong { color: var(--label); font-weight: var(--weight-semibold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-20);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  flex: 1;
}

.contact-form input, .contact-form textarea, .chat-input {
  padding: 13px 16px;
  border: none;
  border-radius: var(--r-md);
  background: var(--fill-chip);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px var(--hairline);
  color: var(--label);
  font-size: var(--text-body);
  transition: box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
  resize: vertical;
}

.contact-form input::placeholder, .contact-form textarea::placeholder, .chat-input::placeholder {
  color: var(--label-3);
}

.contact-form input:focus, .contact-form textarea:focus, .chat-input:focus {
  outline: none;
  background: var(--fill-chip-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(10, 132, 255, 0.6);
}

/* Honeypot anti-spam: oculto para personas, visible para bots que rellenan todo. */
.contact-form-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow-soft);
}

/* ==========================================================================
   GENEROSIDAD
   ========================================================================== */
.generosidad-img {
  width: 100%;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-24);
  box-shadow: var(--glass-shadow-soft);
}

.donacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  /* El botón "DAR" salta directo acá — este margen evita que el pill
     flotante del header tape las cards al llegar. */
  scroll-margin-top: calc(var(--header-h) + 40px);
}

.donacion-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-24);
  border-radius: var(--r-xl);
  transition: transform var(--dur-base) var(--ease-glass), background var(--dur-base) ease;
}

.donacion-card:hover { transform: translateY(-5px); background: var(--tint-hover); }

.donacion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(10, 132, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(10, 132, 255, 0.22);
  color: var(--ios-teal);
}

.donacion-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-title-3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.donacion-card p {
  margin: 0;
  font-size: var(--text-footnote);
  color: var(--label-2);
  line-height: 1.55;
  word-break: break-word;
}

.donacion-card .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: var(--sp-32) 0 130px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  padding: var(--sp-20) var(--sp-24);
  border-radius: var(--r-xl);
}

.footer-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-footnote);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
}

.footer-logo-img {
  display: block;
  height: 26px;
  width: auto;
}

.footer-copy { margin: 0; font-size: var(--text-caption); color: var(--label-3); }

/* ==========================================================================
   BARRA ASISTENTE
   ========================================================================== */
.assistant-bar-wrap {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.assistant-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate)) brightness(1.1);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate)) brightness(1.1);
  box-shadow: var(--glass-shadow);
  transition: transform var(--dur-fast) var(--ease-glass), box-shadow var(--dur-fast) ease;
}

.assistant-bar:focus-within {
  transform: scale(1.015);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(10, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.assistant-icon {
  display: inline-flex;
  color: var(--ios-teal);
  flex: none;
}

.assistant-label {
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  color: var(--label-2);
}

.assistant-placeholder-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.assistant-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: var(--text-footnote);
  color: var(--label-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-glass);
}

.assistant-placeholder.fade-in { opacity: 1; transform: none; }
.assistant-placeholder.fade-out { opacity: 0; transform: translateY(-8px); }
.assistant-placeholder--hidden { opacity: 0 !important; }

.assistant-input {
  width: 100%;
  border: none;
  background: none;
  color: var(--label);
  font-size: var(--text-footnote);
  padding: 8px 0;
}

.assistant-input:focus { outline: none; }

.assistant-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: var(--glass-blue);
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex: none;
  transition: transform var(--dur-fast) var(--ease-glass);
}

.assistant-submit:hover { transform: scale(1.1); }
.assistant-submit:active { transform: scale(0.9); }

/* ==========================================================================
   CHAT DRAWER
   ========================================================================== */
.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(4, 4, 6, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
}

.chat-overlay.open { opacity: 1; pointer-events: auto; }

.chat-drawer {
  position: fixed;
  z-index: 111;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  height: min(640px, calc(100vh - 80px));
  border-radius: var(--r-xl);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate)) brightness(1.08);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate)) brightness(1.08);
  box-shadow: var(--glass-shadow);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-glass), opacity var(--dur-base) ease;
}

.chat-drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.chat-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-20) var(--sp-20) var(--sp-12);
}

.chat-grabber {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--label-3);
}

.chat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-callout);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.chat-header-actions { display: flex; gap: 8px; }

.chat-btn-minimize, .chat-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  color: var(--label-2);
  transition: transform var(--dur-fast) var(--ease-glass), color var(--dur-fast) ease;
}

.chat-btn-minimize:hover, .chat-btn-close:hover { transform: scale(1.1); color: var(--label); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--sp-8) var(--sp-20) var(--sp-16);
  overscroll-behavior: contain;
}

.chat-msg { display: flex; gap: 10px; animation: msg-in 0.45s var(--ease-glass) both; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.chat-msg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  flex: none;
  margin-top: 2px;
}

.chat-msg-content {
  padding: var(--sp-12) var(--sp-16);
  border-radius: 20px;
  border-top-left-radius: 6px;
  max-width: 85%;
}

.chat-msg-content p { margin: 0; font-size: var(--text-footnote); line-height: 1.5; }

.chat-msg-user { justify-content: flex-end; }

.chat-msg-user .chat-msg-content {
  background: var(--glass-blue);
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  border-top-right-radius: 6px;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.chat-msg-user .chat-msg-content::before, .chat-msg-user .chat-msg-content::after { display: none; }

.chat-msg-feedback { display: flex; gap: 6px; margin-top: 8px; }

.chat-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--fill-chip-strong);
  color: var(--label-3);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.chat-feedback-btn:hover { color: var(--label); background: var(--fill-chip-hover); }

.chat-footer { padding: 0 var(--sp-20) var(--sp-20); }

.chat-disclaimer {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--label-3);
  text-align: center;
}

.chat-disclaimer-link { text-decoration: underline; }

.chat-input-form { display: flex; gap: 8px; }

.chat-input { flex: 1; border-radius: var(--r-pill); }

.chat-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: var(--glass-blue);
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex: none;
  transition: transform var(--dur-fast) var(--ease-glass);
}

.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn:active { transform: scale(0.9); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  z-index: 120;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--glass-shadow);
  font-size: var(--text-footnote);
  font-weight: var(--weight-semibold);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-glass);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .live-page { grid-template-columns: 1fr; }
  .live-sidebar { max-width: 640px; }
}

@media (max-width: 880px) {
  .nav-center, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .nav-drawer { display: flex; }
  .header-pill { justify-content: space-between; padding: 0 8px 0 18px; }

  .contact-bottom { grid-template-columns: 1fr; }
  .contact-img { min-height: 320px; }

  .whatsapp-banner-inner { flex-direction: column; align-items: flex-start; }
  .whatsapp-banner-btn { margin-left: 0; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }

  .lock { padding-bottom: 190px; }
  .lock-widgets { grid-template-columns: 1fr 1fr; }
  .lock-widget:last-child { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--hairline-strong); }
  .lock-bottom { padding-bottom: 86px; }
  .lock-home-hint { font-size: 12px; }
  .lock-home-bar { width: 110px; }

  .photo-gallery-item { width: 86vw; }
  .photo-nav-prev { left: 8px; }
  .photo-nav-next { right: 8px; }

  .live-meta-actions { margin-left: 0; }
  .filter-tabs { border-radius: var(--r-lg); }

  .footer { padding-bottom: 110px; }
  .chat-drawer { right: 10px; left: 10px; width: auto; bottom: 10px; height: min(620px, calc(100dvh - 60px)); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sym :is(path, polyline, polygon, circle, rect, line, ellipse) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .reveal { opacity: 1; transform: none; }
}
