/* espacio-login.css — «Conoce nuestro espacio» en la página de acceso del cliente (carrusel + visor de foto grande). */
.esp-box { margin: 22px 0 6px; text-align: center; }
.esp-head { display: flex; align-items: center; gap: 12px; }
.esp-line { flex: 1; height: 2px; border-radius: 2px; background: var(--primary, #4f46e5); opacity: .45; }
.esp-t { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--primary, #4f46e5); }
.esp-sub { margin: 4px 0 14px; font-size: 14px; color: #64748b; }

.esp-wrap { position: relative; }
.esp-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 6px; }
.esp-track::-webkit-scrollbar { display: none; }
.esp-tile { flex: 0 0 calc(50% - 6px); aspect-ratio: 4 / 3.3; padding: 0; border: 0; border-radius: 16px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; background: #e2e8f0; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); -webkit-tap-highlight-color: transparent; }
.esp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.esp-tile:hover img { transform: scale(1.04); }
.esp-box.uno .esp-tile { flex-basis: 100%; aspect-ratio: 16 / 10; }

.esp-a { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(238, 236, 255, .95); color: var(--primary, #4f46e5); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px rgba(15, 23, 42, .25); }
.esp-a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.esp-prev { left: -10px; } .esp-prev svg { transform: rotate(180deg); } .esp-next { right: -10px; }
.esp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.esp-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: transform .2s, background .2s; }
.esp-dots button.on { background: var(--primary, #4f46e5); transform: scale(1.15); }

/* con reseñas en PC: va dentro del panel lateral; en la tarjeta se oculta */
.esp-panel { display: none; }
@media (min-width: 901px) {
  body.sb-split .esp-card { display: none; }
  body.sb-split .esp-panel { display: block; }
  .esp-panel { margin-top: 18px; }
  .esp-panel .esp-t { font-size: 18px; }
}

/* visor de foto grande */
.esp-lb { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 22, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s ease; }
.esp-lb.on { opacity: 1; }
.esp-lb-stage { position: relative; max-width: 100vw; max-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 56px 12px; box-sizing: border-box; }
.esp-lb-img { max-width: min(96vw, 1600px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); border-radius: 12px; display: block; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: .6; filter: blur(6px); transition: opacity .25s, filter .25s; }
.esp-lb-img.ok { opacity: 1; filter: none; }
.esp-lb-spin { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: esp-spin .8s linear infinite; opacity: 0; transition: opacity .15s; pointer-events: none; }
.esp-lb.loading .esp-lb-spin { opacity: 1; }
.esp-lb-x, .esp-lb-a { position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.esp-lb-x { top: 14px; right: 14px; }
.esp-lb-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.esp-lb-a { top: 50%; transform: translateY(-50%); }
.esp-lb-a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.esp-lb-prev { left: 12px; } .esp-lb-prev svg { transform: rotate(180deg); } .esp-lb-next { right: 12px; }
.esp-lb-n { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e2e8f0; font-size: 13px; font-weight: 600; }
html.esp-lb-open, html.esp-lb-open body { overscroll-behavior: contain; }
@keyframes esp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .esp-lb, .esp-tile img, .esp-lb-img { transition: none; } .esp-lb-spin { animation: none; } }
body.dark-login .esp-sub, .dark-mode .esp-sub { color: #94a3b8; }
