/* ============================================================
   RAYSCAN 5D – COVER FLOW  |  Light Mode · Apple Style
   Paleta corporativa RAY: azul cobalto + cielo + blancos
   Tipografía: SF Pro Display via system-ui + DM Sans (Google)
   ============================================================ */

/* ---------- GOOGLE FONT IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   TOKENS DE COLOR – Identidad RAY
   Primary:   #0057B8  (azul cobalto RAY)
   Secondary: #00AEEF  (azul cielo RAY)
   Accent:    #003F8A  (azul profundo)
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:           #F2F5FA;
  --bg2:          #E8EDF5;
  --bg-glass:     rgba(255,255,255,0.72);
  --bg-card:      #FFFFFF;
  --bg-card-info: #F7F9FC;

  /* RAY Brand Blues */
  --ray-cobalt:   #0057B8;   /* azul cobalto – primario */
  --ray-sky:      #00AEEF;   /* azul cielo – secundario */
  --ray-deep:     #003F8A;   /* azul profundo */
  --ray-light:    #E8F4FD;   /* azul pálido – fondos */
  --ray-mid:      #B8D9F5;   /* azul medio */

  /* Texto */
  --text-primary:  #0A1628;
  --text-second:   #3D5170;
  --text-muted:    #7A8BA8;
  --text-light:    #A8B8CC;

  /* Bordes */
  --border:        rgba(0,87,184,0.10);
  --border-mid:    rgba(0,87,184,0.18);
  --border-strong: rgba(0,87,184,0.35);

  /* Sombras */
  --shadow-sm:   0 1px 4px rgba(0,63,138,0.08), 0 2px 12px rgba(0,87,184,0.06);
  --shadow-md:   0 4px 24px rgba(0,63,138,0.10), 0 8px 40px rgba(0,87,184,0.08);
  --shadow-lg:   0 12px 60px rgba(0,63,138,0.14), 0 24px 80px rgba(0,87,184,0.10);
  --shadow-glow: 0 0 0 3px rgba(0,87,184,0.14), 0 8px 40px rgba(0,87,184,0.18);

  /* Radios */
  --radius-lg:  20px;
  --radius-md:  12px;
  --radius-sm:   8px;
  --radius-pill: 100px;

  /* Transiciones */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans:      0.5s var(--ease);
  --trans-fast: 0.22s var(--ease);

  /* Layout */
  --header-h:   64px;
  --thumb-h:    82px;
  --prog-h:     3px;

  /* Tipografía */
  --font:  'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
           'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* Fondo con textura sutil tipo Apple */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,
      rgba(0,174,239,0.07) 0%,
      transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 100%,
      rgba(0,87,184,0.05) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER – Apple navbar glass
   ============================================================ */
.site-header {
  height: var(--header-h);
  background: rgba(242,245,250,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
}

.header-inner { display: flex; align-items: center; gap: 16px; }

/* Logo RAY wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}
.brand-ray  { color: var(--ray-cobalt); }
.brand-scan { color: var(--ray-sky); }

.brand-5d {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--ray-cobalt) 0%, var(--ray-sky) 100%);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.brand-sep {
  width: 1px;
  height: 20px;
  background: var(--border-mid);
  border-radius: 1px;
}

.header-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Contador */
.slide-counter {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-glass);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
#currentSlide {
  color: var(--ray-cobalt);
  font-weight: 800;
  font-size: 0.9rem;
}
.sep { color: var(--text-light); margin: 0 1px; }

/* ============================================================
   STAGE
   ============================================================ */
.carousel-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Perspectiva 3D */
.carousel-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  position: relative;
}

.carousel-track {
  position: relative;
  transform-style: preserve-3d;
  /* Tamaño se asigna dinámicamente por JS */
}

/* ============================================================
   SLIDE
   ============================================================ */
.slide {
  position: absolute;
  top: 0; left: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  transform-origin: center center;
  /* transform/opacity/filter → JS */
}

/* ============================================================
   CARD – Estilo Apple: blanco, radio generoso, sombra suave
   ============================================================ */
.slide-card {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition:
    border-color var(--trans-fast),
    box-shadow   var(--trans-fast);
}

/* Card activa: borde azul sutil + sombra glow */
.slide.cf-active .slide-card {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* ─── Reflejo inferior (vidrio Apple) ─── */
.slide.cf-active .slide-card::after {
  content: '';
  position: absolute;
  bottom: -48%;
  left: 5%;
  right: 5%;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(0,87,184,0.06) 0%,
    transparent 100%
  );
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform: scaleY(-1);
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.7;
}

/* ============================================================
   VIDEO
   ============================================================ */
.video-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  background: #000;
  overflow: hidden;
  /* El border-radius se hereda del clip del parent */
}

.slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* ============================================================
   PLAY OVERLAY – minimalista Apple
   ============================================================ */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,22,40,0.22);
  cursor: pointer;
  transition: background var(--trans-fast), opacity var(--trans-fast);
  opacity: 1;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay:hover { background: rgba(10,22,40,0.08); }

/* Cards laterales: overlay oscuro, no clicable */
.slide:not(.cf-active) .play-overlay {
  background: rgba(10,22,40,0.45);
  pointer-events: none;
}

/* Botón de play — círculo blanco glassmorphism */
.play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ray-cobalt);
  font-size: 1.3rem;
  box-shadow:
    0 4px 24px rgba(0,63,138,0.20),
    0 0 0 1px rgba(255,255,255,0.5);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
}

.play-overlay:hover .play-icon {
  transform: scale(1.1);
  background: #fff;
  box-shadow:
    0 8px 32px rgba(0,63,138,0.28),
    0 0 0 1px rgba(255,255,255,0.8);
}

.play-icon i { margin-left: 4px; }

/* ============================================================
   INFO BAR – minimalista, fondo blanco tenue
   ============================================================ */
.slide-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card-info);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  transition: opacity var(--trans-fast);
}

/* Info de cards no activas se atenúa */
.slide:not(.cf-active) .slide-info {
  opacity: 0.5;
}

.slide-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ray-mid);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px;
  transition: color var(--trans-fast);
}

.slide.cf-active .slide-num {
  color: var(--ray-sky);
}

.slide-text { flex: 1; min-width: 0; }

.slide-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.slide-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TAGS – píldoras de color por categoría */
.slide-tag {
  flex-shrink: 0;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
  /* Default: azul RAY */
  background: var(--ray-light);
  color: var(--ray-cobalt);
  border-color: var(--ray-mid);
}

/* Tags por categoría */
.slide-tag.tag-ia        { background: #F0EEFF; color: #5B3FC8; border-color: #C4B5FD; }
.slide-tag.tag-seguridad { background: #FFF1F0; color: #C0392B; border-color: #FECACA; }
.slide-tag.tag-cirugia   { background: #FFF5EB; color: #C05A00; border-color: #FDD9A8; }
.slide-tag.tag-ortodoncia { background: #EDFAF3; color: #1A7A4A; border-color: #A7F3D0; }
.slide-tag.tag-endodoncia { background: #FFF7ED; color: #B45309; border-color: #FDE68A; }
.slide-tag.tag-navegacion { background: #F0F9FF; color: #0369A1; border-color: #BAE6FD; }
.slide-tag.tag-medicion  { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.slide-tag.tag-smartdent { background: linear-gradient(135deg,var(--ray-light),#EEF6FF); color: var(--ray-deep); border-color: var(--ray-mid); }

/* ============================================================
   LÍNEA DE SUELO (floor glow)
   ============================================================ */
.floor-glow {
  position: absolute;
  /* posicionado dinámicamente por JS */
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,87,184,0.3) 25%,
    rgba(0,174,239,0.5) 50%,
    rgba(0,87,184,0.3) 75%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 1px;
}

/* ============================================================
   NAV BUTTONS – Apple SF style
   ============================================================ */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-mid);
  color: var(--ray-cobalt);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

.nav-btn:hover {
  background: var(--ray-cobalt);
  color: #fff;
  border-color: var(--ray-cobalt);
  box-shadow: 0 4px 20px rgba(0,87,184,0.30);
  transform: translateY(-50%) scale(1.08);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.nav-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

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

/* ============================================================
   THUMB BAR
   ============================================================ */
.thumb-bar {
  height: var(--thumb-h);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  scrollbar-width: none;
  position: relative;
  z-index: 200;
}
.thumb-bar::-webkit-scrollbar { display: none; }

.thumb-dot {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  max-width: 72px;
  text-align: center;
  line-height: 1.2;
  transition: all var(--trans-fast);
}

.thumb-dot .dot-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}

.thumb-dot:hover {
  color: var(--ray-cobalt);
  background: var(--ray-light);
  border-color: var(--ray-mid);
}

.thumb-dot:hover .dot-num {
  border-color: var(--ray-cobalt);
  color: var(--ray-cobalt);
  background: #fff;
}

.thumb-dot.active {
  color: var(--ray-cobalt);
  background: var(--ray-light);
  border-color: var(--border-strong);
}

.thumb-dot.active .dot-num {
  background: var(--ray-cobalt);
  border-color: var(--ray-cobalt);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,87,184,0.35);
}

.thumb-dot .dot-label {
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-outer {
  height: var(--prog-h);
  background: var(--bg2);
  flex-shrink: 0;
  position: relative;
  z-index: 200;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--ray-deep), var(--ray-cobalt), var(--ray-sky));
  transition: width var(--trans);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 6px rgba(0,87,184,0.3);
}

/* ============================================================
   LIGHTBOX – Modal fixed, completamente fuera del contexto 3D
   ============================================================ */

/* Telón oscuro — position fixed sobre todo */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 800;
  pointer-events: none;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.lb-backdrop.active {
  background: rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  cursor: pointer;
}

/* Modal contenedor — centrado, fixed, z-index sobre el telón */
.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition:
    opacity   0.42s var(--ease),
    transform 0.42s cubic-bezier(0.34, 1.38, 0.64, 1);
}
.lb-modal.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Inner – envuelve video + meta */
.lb-modal-inner {
  display: flex;
  flex-direction: column;
  width: min(88vw, 960px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(0,87,184,0.30),
    0 40px 120px rgba(0,20,60,0.60),
    0 0 80px rgba(0,174,239,0.12);
  background: #fff;
}

/* Zona del video — ratio 16:9 */
.lb-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lb-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Barra de meta debajo del video */
.lb-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-card-info);
  border-top: 1px solid var(--border);
}

.lb-meta-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ray-sky);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px;
  opacity: 0.7;
}

.lb-meta-text { flex: 1; min-width: 0; }

.lb-meta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.lb-meta-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.lb-meta-tag {
  flex-shrink: 0;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ray-light);
  color: var(--ray-cobalt);
  border: 1px solid var(--ray-mid);
  white-space: nowrap;
}

/* Botón X — esquina superior derecha del modal */
.lb-close-btn {
  position: fixed;
  top: clamp(14px, 3vh, 32px);
  right: clamp(14px, 3vw, 32px);
  z-index: 910;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  border: 1.5px solid var(--border-mid);
  color: var(--ray-cobalt);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,63,138,0.20);
  opacity: 0;
  transform: scale(0.7) rotate(-90deg);
  pointer-events: none;
  transition:
    opacity   0.3s var(--ease) 0.18s,
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1) 0.18s,
    background 0.18s ease,
    color 0.18s ease;
}
.lb-close-btn.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}
.lb-close-btn:hover {
  background: var(--ray-cobalt);
  color: #fff;
  border-color: var(--ray-cobalt);
}

/* Punto pulsante "Reproduciendo" en el botón X */
.lb-close-btn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--ray-sky);
  border-radius: 50%;
  border: 1.5px solid #fff;
  animation: pulseDot 1.5s ease infinite;
}
.lb-close-btn.active::after {
  display: block;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.6); opacity: 0.5; }
}

/* Atenuar el entorno cuando lb-mode está activo */
body.lb-mode .site-header,
body.lb-mode .carousel-wrapper,
body.lb-mode .thumb-bar,
body.lb-mode .progress-bar-outer {
  filter: brightness(0.45) blur(1px);
  pointer-events: none;
  transition: filter 0.4s var(--ease);
}
body:not(.lb-mode) .site-header,
body:not(.lb-mode) .carousel-wrapper,
body:not(.lb-mode) .thumb-bar,
body:not(.lb-mode) .progress-bar-outer {
  filter: none;
  pointer-events: auto;
  transition: filter 0.4s var(--ease);
}

/* ============================================================
   HINTS
   ============================================================ */
.swipe-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: hintFade 4s var(--ease) forwards 1.5s;
  opacity: 0;
  z-index: 300;
}

.key-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  animation: hintFade 5.5s var(--ease) forwards 2s;
  z-index: 300;
}

.key-badge {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-mid);
  color: var(--text-second);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,63,138,0.08);
  font-family: var(--font);
}

@keyframes hintFade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(5px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

.key-hint .key-badge { transform: none; }
@keyframes hintFadeKey {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}
.key-hint { animation-name: hintFadeKey; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-prev { left: 10px; }
  .nav-next { right: 10px; }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --thumb-h:  64px;
  }
  .site-header { padding: 0 1.2rem; }
  .brand-sep, .header-sub { display: none; }
  .slide-desc { display: none; }
  .thumb-dot .dot-label { display: none; }
  .thumb-dot { max-width: 42px; padding: 4px 5px; }
  .nav-prev { left: 6px; }
  .nav-next { right: 6px; }
  .nav-btn { width: 38px; height: 38px; font-size: 0.82rem; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--ray-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ray-cobalt); }
