/* Motor de reservas de Yami: hoja que sube sobre la portada. Una pregunta por pantalla, 3 etapas. */
.rv { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.rv.is-open { visibility: visible; }
.rv__fondo { position: absolute; inset: 0; background: rgba(0, 10, 9, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.rv.is-open .rv__fondo { opacity: 1; }
.rv__hoja {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px;
  height: min(720px, calc(100svh - 28px)); padding: 18px 22px max(22px, env(safe-area-inset-bottom));
  color: var(--ink); background: var(--cream); border-radius: 26px 26px 0 0;
  transform: translateY(104%); transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
}
.rv.is-open .rv__hoja { transform: none; }
@media (min-width: 700px) { .rv { align-items: center; } .rv__hoja { border-radius: 26px; height: min(700px, calc(100svh - 48px)); } }

.rv__cabeza { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.rv__icono { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--deep); background: transparent; cursor: pointer; transition: background .2s, opacity .2s; }
.rv__icono:hover { background: rgba(4, 33, 29, .07); }
.rv__icono[hidden] { display: grid; visibility: hidden; }
.rv__etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rv__etapa { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-align: center; color: rgba(18, 33, 30, .4); transition: color .3s; }
.rv__etapa::before { content: ''; display: block; height: 4px; margin-bottom: 7px; border-radius: 4px; background: rgba(18, 33, 30, .1); transition: background .3s; }
.rv__etapa.is-hecha, .rv__etapa.is-activa { color: var(--deep); }
.rv__etapa.is-hecha::before { background: var(--teal); }
.rv__etapa.is-activa::before { background: linear-gradient(90deg, var(--teal) var(--avance, 50%), rgba(18, 33, 30, .1) 0); }

.rv__cuerpo { position: relative; flex: 1; overflow: hidden; margin-top: 18px; }
.rv__pantalla { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 4px 2px 8px;
  opacity: 0; transform: translateX(28px); pointer-events: none; transition: opacity .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1); }
.rv__pantalla.is-atras { transform: translateX(-28px); }
.rv__pantalla.is-activa { opacity: 1; transform: none; pointer-events: auto; }
.rv__titulo { margin: 8px 0 6px; font-size: clamp(27px, 7vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--deep); }
.rv__nota { margin: 0 0 22px; font-size: 15px; color: rgba(18, 33, 30, .6); min-height: 1.4em; }

.rv__opciones { display: grid; gap: 12px; }
.rv__opciones--2 { grid-template-columns: 1fr; flex: 1; max-height: 420px; }
.rv__opciones--5 { grid-template-columns: repeat(3, 1fr); }
.rv__opciones--3 { grid-template-columns: repeat(3, 1fr); }
.rv__opciones--dias { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rv__opciones--horas { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv__op {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 12px 8px;
  border: 1.5px solid rgba(4, 33, 29, .12); border-radius: 18px; color: var(--deep); background: #fff;
  font-size: 17px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .15s, color .2s;
}
.rv__op:hover { border-color: var(--teal); }
.rv__op:active { transform: scale(.97); }
.rv__op.is-elegida { border-color: var(--teal); background: var(--teal); color: #fff; }
.rv__op:disabled { opacity: .35; cursor: default; border-style: dashed; }
.rv__op:disabled:hover { border-color: rgba(4, 33, 29, .12); }
.rv__op--grande { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 0 24px; font-size: 21px; }
.rv__op--grande svg { flex-shrink: 0; width: 46px; height: 46px; color: var(--teal); }
.rv__op--grande.is-elegida svg { color: #fff; }
.rv__op--grande span { text-align: left; }
.rv__op--grande small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; opacity: .65; }
.rv__op--num { aspect-ratio: 1; font-size: 30px; }
.rv__op--num small { font-size: 13px; font-weight: 500; opacity: .6; }
.rv__op--dia { min-height: 74px; gap: 2px; padding: 8px 4px; border-radius: 14px; }
.rv__op--dia span { font-size: 12px; font-weight: 500; text-transform: capitalize; opacity: .7; }
.rv__op--dia b { font-size: 22px; }
.rv__op--hora { min-height: 54px; border-radius: 14px; font-size: 18px; }

.rv__campos { display: grid; gap: 12px; }
.rv__campo { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(18, 33, 30, .7); }
.rv__campo input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid rgba(4, 33, 29, .14); border-radius: 14px;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--deep); background: #fff; outline: 0; transition: border-color .2s; }
.rv__campo input:focus { border-color: var(--teal); }
.rv__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv__resumen { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(14, 165, 164, .1); font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--deep); }
.rv__resumen p { margin: 0; }
.rv__precio { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(14, 165, 164, .25); }
.rv__precio span { font-size: 14px; opacity: .75; }
.rv__precio b { font-size: 24px; font-weight: 700; color: var(--deep); }
.rv__resumen small { display: block; margin-top: 2px; font-size: 12px; opacity: .6; }
.rv__error { margin: 12px 0 0; font-size: 15px; font-weight: 500; color: #b4232c; min-height: 1.2em; }
.rv__boton { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; margin-top: auto; padding: 0 24px;
  border: 0; border-radius: 18px; color: #fff; background: var(--deep); font-size: 18px; font-weight: 600; cursor: pointer; transition: background .2s, opacity .2s; }
.rv__boton:hover { background: #0a3a33; }
.rv__boton:disabled { opacity: .55; cursor: default; }
.rv__boton--wa { margin-top: 14px; background: var(--teal); }
.rv__pantalla--datos .rv__boton { margin-top: 14px; }
.rv__pantalla--datos .rv__titulo { margin-bottom: 16px; }
.rv__pantalla--datos .rv__campos { gap: 10px; }
.rv__pantalla--datos .rv__campo input { min-height: 48px; }
.rv__pantalla--datos .rv__resumen { margin-top: 8px; padding: 12px 14px; font-size: 14px; }
.rv__pantalla--datos .rv__error:empty { display: none; }

.rv__aviso { display: grid; gap: 6px; margin: auto 0; padding: 22px; border-radius: 18px; background: #fff; text-align: center; font-size: 16px; line-height: 1.45; }
.rv__cargando { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: rgba(18, 33, 30, .55); }
.rv__cargando::before { content: ''; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rv-giro .8s linear infinite; }
@keyframes rv-giro { to { transform: rotate(360deg); } }
.rv__hecho { margin: auto 0; text-align: center; }
.rv__hecho svg { width: 82px; height: 82px; margin: 0 auto 18px; color: var(--teal); }
.rv__hecho .rv__titulo { margin-bottom: 12px; }
.rv__hecho p { margin: 0 auto; max-width: 340px; font-size: 16px; line-height: 1.5; color: rgba(18, 33, 30, .7); }

@media (max-height: 640px) { .rv__titulo { font-size: 25px; } .rv__nota { margin-bottom: 14px; } .rv__op--num { aspect-ratio: auto; min-height: 60px; } }
@media (prefers-reduced-motion: reduce) { .rv__hoja, .rv__pantalla, .rv__fondo { transition: none; } }

/* Títulos y resumen con Quicksand, más cercana (Kevin, 24/10/2026) */
.rv__titulo, .rv__cuando, .rv__precios b, .rv__op--num, .rv__op--dia b, .rv__op--hora { font-family: 'Quicksand', 'Hanken Grotesk', system-ui, sans-serif; font-weight: 700; }
.rv__titulo { letter-spacing: -.01em; }
.rv__fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv__pantalla--datos .rv__resumen { padding: 16px; background: var(--deep); color: var(--cream); }
.rv__cuando { font-size: 21px; line-height: 1.2; }
.rv__que { margin-top: 4px !important; font-size: 14px; line-height: 1.4; opacity: .75; }
.rv__precios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rv__precios div { padding: 10px 12px; border-radius: 12px; background: rgba(250, 249, 245, .08); }
.rv__precios div:first-child { background: var(--teal); }
.rv__precios span { display: block; font-size: 12px; opacity: .8; }
.rv__precios b { display: block; margin-top: 2px; font-size: 26px; line-height: 1.1; }
.rv__pantalla--datos .rv__boton { background: var(--teal); }
.rv__pantalla--datos .rv__boton:hover { background: #0b8786; }

.rv__rango { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(250, 249, 245, .15); }
.rv__rango span { font-size: 14px; opacity: .75; }
.rv__rango b { font-family: 'Quicksand', 'Hanken Grotesk', system-ui, sans-serif; font-size: 28px; font-weight: 700; color: var(--mint); white-space: nowrap; }

.rv__legal { margin: 10px 0 0; font-size: 12px; text-align: center; color: rgba(18, 33, 30, .55); }
.rv__legal a { color: inherit; text-decoration: underline; }
.rv__pantalla--datos .rv__legal + .rv__boton { margin-top: 8px; }
