/* css/onboarding.css — Onboarding literario Libreos v2
   Cormorant Garamond · Paleta sepia · Sin emojis
   ─────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════
   OVERLAY & FONDO
   ═══════════════════════════════════════════════════ */

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #3e271a 0%, #5e3f29 40%, #7b5234 100%);
  overflow: hidden;
}

.ob-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

.ob-overlay.show {
  display: flex;
}

/* ═══════════════════════════════════════════════════
   PANTALLA 1 — SPLASH COMPLETO
   ═══════════════════════════════════════════════════ */

.ob-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  width: 100%;
  max-width: 520px;
  gap: 0;
}

.ob-hedera {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #b58963;
  opacity: 0;
  margin-bottom: 20px;
  animation: obFadeDown 0.8s ease 0.1s forwards;
}

.ob-logo-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  color: #faf4ed;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  animation: obLogoExpand 1s cubic-bezier(.22,1,.36,1) 0.3s forwards;
  margin-bottom: 18px;
}

.ob-ornament-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 160px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: obFadeUp 0.6s ease 1s forwards;
}

.ob-ornament-line::before,
.ob-ornament-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #b58963;
  opacity: 0.6;
}

.ob-ornament-diamond {
  width: 6px;
  height: 6px;
  background: #b58963;
  transform: rotate(45deg);
  opacity: 0.8;
  flex-shrink: 0;
}

.ob-splash-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: #faf4ed;
  line-height: 1.3;
  margin: 0 0 16px;
  opacity: 0;
  animation: obFadeUp 0.8s ease 1.1s forwards;
}

.ob-splash-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #c9a983;
  line-height: 1.6;
  margin: 0 0 36px;
  opacity: 0;
  animation: obFadeUp 0.8s ease 1.4s forwards;
}

.ob-btn-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fdf4dc;
  background: linear-gradient(135deg, #d4a820 0%, #b8860b 45%, #7a4a18 100%);
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 20px rgba(112, 66, 20, 0.4), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: obFadeUp 0.7s ease 1.7s forwards;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.ob-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ob-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(112, 66, 20, 0.5), inset 0 1px 0 rgba(255,255,255,.2);
}

.ob-btn-primary:hover::after {
  transform: translateX(100%);
}

.ob-btn-primary:active {
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   CONTENEDOR MODAL (Pantallas 2–5)
   ═══════════════════════════════════════════════════ */

.ob-modal-wrap {
  width: 100%;
  max-width: min(500px, 95vw);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ob-modal-inner {
  background: linear-gradient(180deg, rgba(247,239,229,.9) 0%, rgba(235,220,198,.85) 100%);
  border: 1px solid rgba(62,39,26,.3);
  border-radius: 22px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.25);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(88svh, 680px);
  position: relative;
}

/* Textura sutil en el modal */
.ob-modal-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  border-radius: inherit;
}

/* ═══════════════════════════════════════════════════
   CABECERA DEL MODAL (progreso + back)
   ═══════════════════════════════════════════════════ */

.ob-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.ob-progress-roman {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #996b47;
  display: flex;
  gap: 6px;
  align-items: center;
}

.ob-progress-roman .ob-step-num {
  color: #996b47;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.ob-progress-roman .ob-step-num.active {
  color: #3e271a;
  font-weight: 700;
}

.ob-progress-roman .ob-step-sep {
  color: rgba(153,107,71,.4);
}

.ob-back-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  color: #7b5234;
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.ob-back-btn:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.ob-back-btn[hidden] {
  visibility: hidden;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   PASOS (contenedor de cada pantalla 2–5)
   ═══════════════════════════════════════════════════ */

.ob-step-body {
  padding: 22px 26px 28px;
}

.ob-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 400;
  color: #3e271a;
  line-height: 1.2;
  margin: 0 0 6px;
  text-align: center;
}

.ob-step-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #7b5234;
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   CHIPS — MOOD (stack vertical, P2)
   ═══════════════════════════════════════════════════ */

.ob-chips-mood {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.ob-chip-mood {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(62, 39, 26, 0.06);
  border: 1px solid rgba(62, 39, 26, 0.18);
  color: #5e3f29;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  width: 100%;
  position: relative;
}

.ob-chip-mood:hover {
  background: rgba(62, 39, 26, 0.1);
  border-color: rgba(62, 39, 26, 0.32);
  color: #3e271a;
  transform: translateX(3px);
}

.ob-chip-mood.selected {
  background: linear-gradient(145deg, #b8905a, #9e7a46);
  border-color: transparent;
  color: #faf4ed;
  box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translateX(0);
}

.ob-chip-selected-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
  margin-left: 8px;
}

.ob-chip-mood.selected .ob-chip-selected-mark {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════
   MICRO-FEEDBACK (tooltip literario)
   ═══════════════════════════════════════════════════ */

.ob-micro-feedback {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #7b5234;
  text-align: center;
  min-height: 22px;
  padding: 6px 12px 8px;
  transition: opacity 0.25s ease;
  line-height: 1.4;
}

.ob-micro-feedback.visible {
  animation: obFeedbackIn 0.28s ease forwards;
}

@keyframes obFeedbackIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   CHIPS — GÉNEROS (grid 2 col, P3)
   ═══════════════════════════════════════════════════ */

.ob-chips-genres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.ob-chip-genre {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(62, 39, 26, 0.06);
  border: 1px solid rgba(62, 39, 26, 0.18);
  color: #5e3f29;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.ob-chip-genre:hover {
  background: rgba(62, 39, 26, 0.1);
  border-color: rgba(62, 39, 26, 0.3);
  color: #3e271a;
}

.ob-chip-genre.selected {
  background: linear-gradient(145deg, #b8905a, #9e7a46);
  border-color: transparent;
  color: #faf4ed;
  box-shadow: 0 3px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.18);
}

.ob-chip-genre.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ob-chip-genre .ob-chip-prefix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}

.ob-chip-genre.selected .ob-chip-prefix {
  opacity: 1;
  transform: scale(1);
}

/* Contador de géneros */
.ob-genre-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.ob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #b58963;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
}

.ob-dot.filled {
  background: #b58963;
  border-color: #b58963;
  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════
   CHIPS — RITMO (P4)
   ═══════════════════════════════════════════════════ */

.ob-chips-pace {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.ob-chip-pace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(62, 39, 26, 0.06);
  border: 1px solid rgba(62, 39, 26, 0.18);
  color: #5e3f29;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  width: 100%;
}

.ob-chip-pace:hover {
  background: rgba(62, 39, 26, 0.1);
  border-color: rgba(62, 39, 26, 0.3);
  color: #3e271a;
  transform: translateX(3px);
}

.ob-chip-pace.selected {
  background: linear-gradient(145deg, #b8905a, #9e7a46);
  border-color: transparent;
  color: #faf4ed;
  box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translateX(0);
}

.ob-chip-pace.selected .ob-chip-selected-mark {
  opacity: 1;
  transform: scale(1);
}

/* Separador ornamental */
.ob-ornament-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #b58963;
  opacity: 0.5;
}

.ob-ornament-sep::before,
.ob-ornament-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}

.ob-ornament-sep-diamond {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Intereses secundarios */
.ob-interests-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b58963;
  text-align: center;
  margin-bottom: 10px;
  display: block;
}

.ob-chips-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 4px;
}

.ob-chip-interest {
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px dashed rgba(62, 39, 26, 0.3);
  color: #7b5234;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ob-chip-interest:hover {
  border-style: solid;
  border-color: #b58963;
  color: #3e271a;
  background: rgba(181, 137, 99, 0.06);
}

.ob-chip-interest.selected {
  border-style: solid;
  background: rgba(181, 137, 99, 0.12);
  border-color: #b58963;
  color: #3e271a;
}

/* ═══════════════════════════════════════════════════
   BOTONES DE NAVEGACIÓN
   ═══════════════════════════════════════════════════ */

.ob-btn-next {
  display: block;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #b58963 0%, #7b5234 100%);
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  margin-top: 18px;
}

.ob-btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.15);
}

.ob-btn-next:active:not(:disabled) {
  transform: translateY(0);
}

.ob-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Botón final (dorado) */
.ob-btn-final {
  background: linear-gradient(135deg, #d4a820 0%, #b8860b 45%, #7a4a18 100%);
  box-shadow: 0 5px 20px rgba(112, 66, 20, 0.4), inset 0 1px 0 rgba(255,255,255,.2);
  color: #fdf4dc;
}

.ob-btn-final:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(112, 66, 20, 0.5), inset 0 1px 0 rgba(255,255,255,.2);
}

/* Estado de carga literario */
.ob-btn-loading {
  font-style: italic;
  font-weight: 400;
  pointer-events: none;
  opacity: 0.85;
}

.ob-ellipsis::after {
  content: '…';
  animation: obEllipsis 1.4s steps(4, end) infinite;
}

@keyframes obEllipsis {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ═══════════════════════════════════════════════════
   PANTALLA 5 — RECOMENDACIÓN
   ═══════════════════════════════════════════════════ */

.ob-rec-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b58963;
  text-align: center;
  margin-bottom: 12px;
  display: block;
  opacity: 0;
  animation: obFadeUp 0.5s ease 0.1s forwards;
}

.ob-rec-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  opacity: 0;
  animation: obFadeUp 0.6s ease 0.25s forwards;
}

/* Portada */
.ob-rec-cover {
  width: 68px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), -2px 0 0 rgba(0,0,0,.1);
  background: linear-gradient(145deg, #e8d9c5, #d9c2a6);
  position: relative;
}

.ob-rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Fallback portada cuando no hay imagen */
.ob-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.ob-cover-fallback-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: #3e271a;
  line-height: 1.3;
  word-break: break-word;
}

/* Info libro */
.ob-rec-info {
  flex: 1;
  min-width: 0;
}

.ob-rec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3e271a;
  margin: 0 0 2px;
  line-height: 1.2;
}

.ob-rec-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: #7b5234;
  margin: 0 0 8px;
}

.ob-rec-divider {
  height: 1px;
  background: linear-gradient(90deg, #b58963, transparent);
  margin-bottom: 8px;
  opacity: 0.4;
}

.ob-rec-why-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  color: #996b47;
  margin: 0 0 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ob-rec-reason {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  color: #3f291a;
  line-height: 1.5;
  margin: 0;
}

/* Chips eco de contexto */
.ob-rec-context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  opacity: 0;
  animation: obFadeUp 0.5s ease 0.8s forwards;
}

.ob-rec-chip {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  color: #7b5234;
  background: rgba(181,137,99,.12);
  border: 1px solid rgba(181,137,99,.3);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Separador ornamental en rec */
.ob-rec-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  opacity: 0;
  animation: obFadeUp 0.5s ease 0.6s forwards;
}

.ob-rec-sep::before,
.ob-rec-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #b58963;
  opacity: 0.35;
}

/* CTAs de recomendación */
.ob-rec-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  opacity: 0;
  animation: obFadeUp 0.6s ease 1s forwards;
}

.ob-btn-explore {
  display: block;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fdf4dc;
  background: linear-gradient(135deg, #d4a820 0%, #b8860b 45%, #7a4a18 100%);
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 5px 18px rgba(112,66,20,.4), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  text-align: center;
}

.ob-btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(112,66,20,.5), inset 0 1px 0 rgba(255,255,255,.2);
}

.ob-btn-more {
  display: block;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: #7b5234;
  background: rgba(62,39,26,.06);
  border: 1px solid rgba(62,39,26,.2);
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
  text-align: center;
}

.ob-btn-more:hover {
  background: rgba(62,39,26,.1);
  border-color: rgba(62,39,26,.35);
  transform: translateY(-1px);
}

/* Micro-copy de biblioteca */
.ob-rec-saved {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #b58963;
  text-align: center;
  margin-top: 10px;
  opacity: 0;
  animation: obFadeUp 0.5s ease 1.4s forwards;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════
   TRANSICIONES ENTRE PANTALLAS
   ═══════════════════════════════════════════════════ */

.ob-screen-enter {
  animation: obScreenEnter 0.32s ease forwards;
}

.ob-screen-exit {
  animation: obScreenExit 0.22s ease forwards;
}

@keyframes obScreenEnter {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes obScreenExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

/* ═══════════════════════════════════════════════════
   ANIMACIONES BASE
   ═══════════════════════════════════════════════════ */

@keyframes obFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes obFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

@keyframes obLogoExpand {
  from { opacity: 0; letter-spacing: -0.05em; }
  to   { opacity: 1; letter-spacing: 0.32em; }
}

@keyframes obShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}

.ob-shake {
  animation: obShake 0.38s ease !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .ob-splash {
    padding: 32px 20px;
  }

  .ob-splash-headline {
    font-size: 1.45rem;
  }

  .ob-btn-primary {
    padding: 13px 32px;
    font-size: 1rem;
  }

  .ob-modal-wrap {
    max-width: 100%;
    padding: 0 8px;
  }

  .ob-modal-inner {
    border-radius: 16px;
    max-height: min(90svh, 660px);
  }

  .ob-step-body {
    padding: 16px 16px 20px;
  }

  .ob-step-title {
    font-size: 1.35rem;
  }

  .ob-chips-genres {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .ob-chip-genre {
    font-size: 0.86rem;
    padding: 9px 10px;
  }

  .ob-chip-mood,
  .ob-chip-pace {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  /* Rec screen en móvil */
  .ob-rec-cover {
    width: 60px;
    height: 88px;
  }

  .ob-rec-title {
    font-size: 1rem;
  }

  .ob-rec-reason {
    font-size: 0.88rem;
  }

  .ob-btn-explore,
  .ob-btn-more {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-height: 680px) {
  .ob-splash {
    padding: 20px 24px;
  }

  .ob-splash-headline {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .ob-splash-lead {
    margin-bottom: 24px;
  }

  .ob-modal-inner {
    max-height: min(92svh, 580px);
  }

  .ob-step-body {
    padding: 12px 18px 16px;
  }

  .ob-chips-pace {
    gap: 5px;
  }

  .ob-chip-pace,
  .ob-chip-mood {
    padding: 9px 14px;
  }
}
