/* =========================================================
   RESERVA — estilos del flujo de reserva (detalle.html)
   Se carga DESPUÉS de estilos.css y comun.css.
   Secciones: 1) caja de precio  2) campos  3) ventanas
              4) calendario  5) carrusel  6) datos/pago/comprobante
              7) resumen  8) celular
   ========================================================= */

/* ---------- 1) CAJA DE PRECIO: SIEMPRE flotante en computadora, compacta y proporcional a la altura de la pantalla ---------- */
@media (min-width: 901px) {
    .detail-sidebar { top: 16px; }
    .detail-price-box {
        padding: clamp(12px, 2vh, 18px) 20px 0;   /* el espacio de abajo lo pone el pie con el botón */
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);      /* red de seguridad: solo si la pantalla es MUY baja, el contenido se desplaza por dentro */
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
    .detail-price-box > :last-child:not(.rv-caja-pie) { padding-bottom: clamp(12px, 2vh, 18px); }

    /* PIE DE LA CAJA: el botón de reservar siempre visible, pegado abajo y un poco más grande */
    .detail-price-box .rv-caja-pie {
        position: sticky; bottom: 0; z-index: 5;
        background: #fff;
        padding: 8px 0 clamp(12px, 2vh, 18px);
    }
    .detail-price-box .rv-caja-pie::before {          /* degradado suave para que el contenido no se corte de golpe bajo el botón */
        content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
        background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none;
    }
    .detail-price-box #btn-reservar {
        display: block; width: 100%;
        min-height: clamp(46px, 7vh, 54px);
        font-size: 1rem; font-weight: 700;
        box-shadow: 0 8px 18px rgba(26, 27, 38, .16);
    }
    .detail-newsletter-box,                    /* ya existe en el pie de página; aquí hacía la barra más alta que la pantalla */
    .detail-policy-extra { display: none; }
    /* los espacios se encogen solos según el alto de la pantalla (entre 4px y 10px) */
    .detail-price-per { margin-bottom: clamp(4px, 1.1vh, 8px); }
    .detail-field { margin-bottom: clamp(4px, 1.1vh, 8px); }
    .tipo-tour { margin-bottom: clamp(4px, 1.1vh, 8px); }
    .aviso-grupal { margin-bottom: clamp(4px, 1.1vh, 8px); padding: 6px 10px; }
    .detail-select { padding: clamp(6px, 1vh, 8px) 12px; }
    .detail-price-box .rv-fecha-btn { padding: clamp(6px, 1vh, 8px) 12px; }   /* con .detail-price-box para ganarle a las reglas globales de abajo */
    .detail-price-box .rv-stepper { padding: 3px 5px; }
    .detail-price-box .rv-stepper button { width: clamp(26px, 4vh, 30px); height: clamp(26px, 4vh, 30px); }
    .detail-price-box .rv-total { margin-top: clamp(6px, 1.2vh, 10px); padding: clamp(5px, .9vh, 8px) 14px; }
    .detail-price-box .rv-cupon { margin-top: 2px; }
    .detail-price-box .rv-cupon-abrir { padding: 3px 2px; font-size: .8rem; }
    .detail-policy { margin-top: clamp(6px, 1.2vh, 10px); gap: clamp(3px, .6vh, 5px); }
}
/* Compactación automática por pasos (la activa reserva.js SOLO si el contenido no cabe en la pantalla) */
@media (min-width: 901px) {
    /* paso 1: espacios más cortos */
    .detail-price-box.rv-c1 { padding-top: 12px; }
    .detail-price-box.rv-c1 .detail-price-per,
    .detail-price-box.rv-c1 .detail-field,
    .detail-price-box.rv-c1 .tipo-tour,
    .detail-price-box.rv-c1 .aviso-grupal { margin-bottom: 4px; }
    .detail-price-box.rv-c1 .detail-field-label { margin-bottom: 2px; }
    .detail-price-box.rv-c1 .rv-total { margin-top: 5px; }
    .detail-price-box.rv-c1 .rv-caja-pie { padding-top: 6px; }
    .detail-price-box.rv-c1 .detail-policy { margin-top: 6px; gap: 2px; }
    /* paso 2: controles un poco más bajos */
    .detail-price-box.rv-c2 .detail-select,
    .detail-price-box.rv-c2 .rv-fecha-btn { padding-top: 5px; padding-bottom: 5px; font-size: .85rem; }
    .detail-price-box.rv-c2 .rv-stepper { padding: 2px 5px; }
    .detail-price-box.rv-c2 .rv-stepper button { width: 26px; height: 26px; font-size: 1rem; }
    .detail-price-box.rv-c2 .rv-total { padding: 4px 12px; }
    .detail-price-box.rv-c2 .rv-total-precio b { font-size: 1.2rem; }
    .detail-price-box.rv-c2 .rv-total-det { font-size: .7rem; }
    .detail-price-box.rv-c2 .rv-cupon-abrir { padding: 2px; font-size: .76rem; }
    .detail-price-box.rv-c2 #btn-reservar { min-height: 44px; }
    /* cupón aplicado: versión compacta en computadora */
    .detail-price-box .rv-cupon-ok { margin-top: 6px; padding: 7px 10px; gap: 8px; border-radius: 12px; }
    .detail-price-box .rv-cupon-icono { width: 22px; height: 22px; }
    .detail-price-box .rv-cupon-icono svg { width: 12px; height: 12px; }
    .detail-price-box .rv-cupon-ok strong { font-size: .8rem; }
    .detail-price-box .rv-cupon-ok small { font-size: .7rem; }
    .detail-price-box .rv-cupon-quitar { padding: 4px 10px; font-size: .72rem; }
    /* paso 3: letras secundarias más pequeñas */
    .detail-price-box.rv-c3 .detail-policy-item { font-size: .7rem; line-height: 1.25; }
    .detail-price-box.rv-c3 .detail-field-label { font-size: .64rem; }
    .detail-price-box.rv-c3 .aviso-grupal { font-size: .72rem; padding: 5px 9px; }
}

/* Aviso "Más opciones ↓": solo aparece si, aun compactando, hay contenido escondido abajo */
.rv-mas-opciones {
    /* En el flujo normal (encima del botón): ocupa su propio espacio y ya no tapa el contenido */
    position: relative; display: flex; margin: 0 auto 6px; justify-content: center;
    align-items: center; gap: 5px;
    padding: 3px 12px; border: 1px solid #e1e4ec; border-radius: 50px;
    background: #fff; color: #1a1b26; font-family: inherit; font-size: .72rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(26, 27, 38, .14); cursor: pointer;
    animation: rv-mas-rebota .9s ease-in-out infinite alternate;
}
@keyframes rv-mas-rebota { from { translate: 0 0; } to { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .rv-mas-opciones { animation: none; } }
.rv-mas-opciones[hidden] { display: none; }
.rv-mas-opciones:hover { border-color: #ff4500; color: #ff4500; }
@media (max-width: 900px) { .rv-mas-opciones { display: none; } }
.detail-policy-item { font-size: .78rem; }

/* ---------- 2) CAMPOS FECHA Y PARTICIPANTES ---------- */
.rv-fecha-btn {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff;
    font-family: inherit; font-size: .9rem; color: #888; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.rv-fecha-btn svg { width: 18px; height: 18px; flex: none; color: #ff4500; }
.rv-fecha-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-fecha-btn span::first-letter, .rv-cal-nav strong::first-letter, .rv-top-info span::first-letter,
.rv-cal-pie p.elegida::first-letter, .rv-res-filas dd::first-letter { text-transform: uppercase; }
.rv-fecha-btn i { font-style: normal; font-size: .8rem; color: #888; }
.rv-fecha-btn.con-valor { color: #1a1b26; font-weight: 600; }
.rv-fecha-btn:hover { border-color: #ff4500; }
.rv-fecha-btn:focus-visible, .rv-stepper button:focus-visible { outline: 3px solid rgba(255,69,0,.35); outline-offset: 2px; }

.rv-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid #ddd; border-radius: 10px; padding: 4px 6px; }
.rv-stepper output { font-size: .9rem; font-weight: 600; color: #1a1b26; }
.rv-stepper button {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #555;
    font-size: 1.1rem; line-height: 1; cursor: pointer; transition: .2s;
}
.rv-stepper button:hover:not(:disabled) { background: #ff4500; border-color: #ff4500; color: #fff; }
.rv-stepper button:disabled { opacity: .3; cursor: default; }

/* Total debajo de "Participantes": etiqueta + detalle a la izquierda, monto a la derecha */
.rv-total {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding: 9px 14px;
    border-radius: 12px; background: #f5f6f9;
}
.rv-total[hidden] { display: none; }
.rv-total-izq { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rv-total-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a1b26; }
.rv-total-det { display: block; font-size: .74rem; line-height: 1.3; color: #777; }
.rv-total-det .rv-ahorro { color: #0f7a3c; font-weight: 600; }
.rv-total-precio { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; white-space: nowrap; }
.rv-total-precio b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; color: #1a1b26; }
.rv-total-antes { display: flex; align-items: center; gap: 6px; line-height: 1; }
.rv-total-antes s { font-size: .78rem; color: #999; }
.rv-total-antes .rv-ahorro { font-style: normal; font-size: .68rem; font-weight: 700; color: #0f7a3c; background: #e3f5ea; padding: 2px 7px; border-radius: 50px; }

/* Cupón de descuento */
.rv-cupon { margin-top: 8px; }
.rv-cupon-abrir { display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px; border: 0; background: none; font-family: inherit; font-size: .82rem; font-weight: 600; color: #ff4500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-cupon-abrir[hidden] { display: none; }
.rv-cupon-abrir svg { width: 16px; height: 16px; flex: none; }
.rv-cupon-abrir span { text-decoration: underline; text-underline-offset: 3px; }
.rv-cupon-abrir:focus-visible, .rv-cupon-aplicar:focus-visible, .rv-cupon-quitar:focus-visible, .rv-cupon-input:focus-visible { outline: 3px solid rgba(255,69,0,.35); outline-offset: 2px; }
.rv-cupon-form[hidden], .rv-cupon-ok[hidden] { display: none; }
.rv-cupon-fila { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.rv-cupon-input {
    width: 92px; flex: none; height: 32px; padding: 0 8px; border: 1px solid #ddd; border-radius: 8px; background: #fff;
    font-family: inherit; font-size: .88rem; font-weight: 700; letter-spacing: .25em; text-indent: .25em; text-align: center; color: #1a1b26; transition: border-color .2s, box-shadow .2s;
}
.rv-cupon-input::placeholder { color: #ccc; font-weight: 600; }
.rv-cupon-input:focus { outline: none; border-color: #ff4500; box-shadow: 0 0 0 2px rgba(255,69,0,.15); }
.rv-cupon-input[aria-invalid="true"] { border-color: #d62839; }
.rv-cupon-input.error { animation: rv-sacude .35s; }
@keyframes rv-sacude { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.rv-cupon-aplicar {
    flex: none; height: 32px; padding: 0 12px; border: 1px solid #1a1b26; border-radius: 8px; background: #fff; color: #1a1b26;
    font-family: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .15s; touch-action: manipulation;
}
.rv-cupon-aplicar:hover:not(:disabled) { background: #1a1b26; color: #fff; }
.rv-cupon-aplicar:active:not(:disabled) { transform: scale(.97); }
.rv-cupon-aplicar:disabled { border-color: #e4e4ea; color: #b5b5bf; cursor: default; }
@media (max-width: 900px) { .rv-cupon-input { font-size: 16px; } }   /* 16px evita el zoom automático del iPhone */
.rv-cupon-msg { margin-top: 6px; font-size: .78rem; font-weight: 600; color: #d62839; }
.rv-cupon-msg:empty { display: none; }
.rv-cupon-ok { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #f0faf4; border: 1px solid #cdeedd; color: #0b6b35; }
.rv-cupon-icono { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1f9c5a; color: #fff; }
.rv-cupon-icono svg { width: 16px; height: 16px; }
.rv-cupon-ok > div { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
.rv-cupon-ok strong { font-size: .86rem; }
.rv-cupon-ok small { font-size: .76rem; color: #4f8f6a; }
.rv-cupon-quitar { flex: none; padding: 6px 12px; border: 1px solid #bfe6d0; border-radius: 50px; background: #fff; font-family: inherit; font-size: .76rem; font-weight: 700; color: #0b6b35; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.rv-cupon-quitar:hover { color: #d62839; border-color: #f2b8bf; background: #fff5f6; }

/* ---------- 3) VENTANAS (base) ---------- */
body.rv-lock { overflow: hidden; }
.rv-fondo {
    position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(26,27,38,.55); opacity: 0; transition: opacity .25s ease;
}
.rv-fondo.abierta { opacity: 1; }
.rv-hoja {
    position: relative; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
    max-width: 100%; outline: none; color: #1a1b26;
    opacity: 0; transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.rv-fondo.abierta .rv-hoja { opacity: 1; transform: none; }
.rv-hoja *, .rv-hoja *::before, .rv-hoja *::after { box-sizing: border-box; }
.rv-hoja button, .rv-hoja input { font-family: inherit; }

.rv-x, .rv-atras {
    flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4f4f5; color: #1a1b26;
    font-size: 1rem; cursor: pointer; transition: background .2s;
}
.rv-x:hover, .rv-atras:hover { background: #e8e8ec; }
.rv-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: #1a1b26; text-decoration: underline; cursor: pointer; }

.rv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 50px;
    padding: 14px 26px; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
    transition: transform .15s, box-shadow .2s, opacity .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.rv-btn:active { transform: scale(.97); }
.rv-btn--primario { background: linear-gradient(90deg, #ff4500, #ffcc00); color: #1a1b26; box-shadow: 0 8px 18px rgba(255,69,0,.28); }
.rv-btn--primario:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(255,69,0,.4); }
.rv-btn:disabled { background: #e8e8ec; color: #9a9aa5; box-shadow: none; cursor: default; }
.rv-btn--wa { background: #1fa855; color: #fff; box-shadow: 0 8px 18px rgba(31,168,85,.28); }
.rv-btn--ig { background: linear-gradient(45deg, #f9a03f, #dd2a7b 55%, #8134af); color: #fff; box-shadow: 0 8px 18px rgba(221,42,123,.28); }
.rv-hoja a:focus-visible, .rv-hoja button:focus-visible, .rv-hoja input:focus-visible { outline: 3px solid rgba(255,69,0,.4); outline-offset: 2px; }

.rv-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 3500; max-width: 90vw; transform: translate(-50%, 12px);
    background: #1a1b26; color: #fff; padding: 11px 20px; border-radius: 50px; font-size: .85rem; font-weight: 600;
    opacity: 0; pointer-events: none; transition: .3s;
}
.rv-toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 4) CALENDARIO ---------- */
.rv-hoja--cal { width: 400px; padding: 20px 20px 22px; }
.rv-cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rv-cal-top h3 { font-size: 1.15rem; font-weight: 800; }
.rv-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rv-quick button { background: #f4f4f5; border: 0; border-radius: 50px; padding: 8px 16px; font-size: .8rem; color: #333; cursor: pointer; transition: .2s; }
.rv-quick button:hover:not(:disabled) { background: #ff4500; color: #fff; }
.rv-quick button:disabled { opacity: .4; cursor: default; }
.rv-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rv-cal-nav strong { font-size: 1rem; }
.rv-cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e3e3e8; background: #fff; color: #555; cursor: pointer; font-size: .9rem; }
.rv-cal-nav button:hover:not(:disabled) { border-color: #ff4500; color: #ff4500; }
.rv-cal-nav button:disabled { opacity: .3; cursor: default; }
.rv-cal-sem, .rv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.rv-cal-sem span { font-size: .72rem; font-weight: 600; color: #999; padding-bottom: 6px; }
.rv-dia {
    aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; color: #1a1b26;
    font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; touch-action: manipulation;
}
@media (hover: hover) { .rv-dia:hover:not(:disabled):not(.sel) { background: #f4f4f5; } }   /* en celular el hover se queda pegado al tocar */
.rv-dia.no { color: #c9c9d1; font-weight: 400; cursor: default; }
.rv-dia.hoy:not(.sel) { box-shadow: inset 0 0 0 1.5px #d6d6dd; }
.rv-dia.sel, .rv-dia.sel:hover { background: #ff4500; color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(255,69,0,.35); }
.rv-cal-pie { margin-top: 16px; display: grid; gap: 12px; }
.rv-cal-pie p { text-align: center; font-size: .82rem; color: #777; min-height: 1.2em; }
.rv-cal-pie p.elegida { color: #1a1b26; font-weight: 700; }
.rv-cal-pie .rv-btn { width: 100%; }

/* ---------- 5) VENTANA PRINCIPAL + CARRUSEL ---------- */
.rv-hoja--flujo { width: min(1080px, 100%); height: min(94vh, 900px); height: min(94dvh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.rv-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #eee; }
.rv-top-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rv-top-info strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-top-info span { font-size: .8rem; color: #777; }
.rv-top-info .rv-link { font-size: .8rem; }

.rv-progreso { padding: 14px 24px 4px; }
.rv-prog-barra { height: 6px; border-radius: 6px; background: #eee; overflow: hidden; }
.rv-prog-barra i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffcc00, #ff4500); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rv-prog-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; font-size: .76rem; color: #a0a0aa; text-align: center; }
.rv-prog-pasos li.activo { color: #1a1b26; font-weight: 700; }
.rv-prog-pasos li.hecho { color: #ff4500; font-weight: 600; }
.rv-prog-pasos li.hecho::before { content: '✓ '; }
.rv-prog-movil { display: none; margin-top: 8px; font-size: .8rem; color: #777; }


.rv-cuerpo {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 14px 24px 22px; display: grid; align-content: start; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "paso resumen"; align-items: start;
}
.rv-cuerpo.sin-resumen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "paso"; }
.rv-paso { grid-area: paso; min-width: 0; }
.rv-paso.rv-entra { animation: rv-entra .4s cubic-bezier(.2,.8,.2,1); }
@keyframes rv-entra { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.rv-tit { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; outline: none; }
.rv-sub { color: #666; font-size: .92rem; margin: -6px 0 18px; }
.rv-sub-tit { font-size: 1.05rem; font-weight: 800; margin: 24px 0 10px; }
.rv-centro { text-align: center; }

/* carga */
.rv-carga { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 22px; }
.rv-carga-txt { font-weight: 600; color: #555; font-size: .95rem; }
.rv-spin {
    width: 56px; height: 56px; border-radius: 50%;
    background: conic-gradient(#ff4500, #ffcc00, #ff4500, #8b0000, #ff4500);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    animation: rv-giro .9s linear infinite;
}
@keyframes rv-giro { to { transform: rotate(360deg); } }
.rv-sk { gap: 14px; }
.rv-sk i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f0f0f3 25%, #e3e3ea 37%, #f0f0f3 63%); background-size: 400% 100%; animation: rv-brillo 1.4s ease infinite; }
.rv-sk i:nth-child(1) { width: 60%; } .rv-sk i:nth-child(2) { width: 90%; height: 20px; } .rv-sk i:nth-child(3) { width: 100%; height: 56px; }
.rv-sk i:nth-child(4) { width: 70%; } .rv-sk i.g { height: 46px; border-radius: 50px; margin-top: auto; }
@keyframes rv-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
.rv-pista--sk { overflow: hidden; }

/* carrusel */
.rv-carrusel { position: relative; }
.rv-pista { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.rv-pista::-webkit-scrollbar { display: none; }
@media (min-width: 701px) {
    .rv-pista--pocas { justify-content: center; }
    .rv-pista--pocas .rv-card { flex: 0 1 380px; }
}
.rv-card {
    flex: 0 0 calc((100% - 36px) / 3); min-width: 290px; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff;
    border: 1px solid #e6e6ec; border-radius: 18px; transition: box-shadow .25s, transform .25s;
}
.rv-card:not(.rv-sk):hover { box-shadow: 0 14px 34px rgba(26,27,38,.12); transform: translateY(-2px); }
.rv-card-top { display: flex; align-items: center; gap: 10px; }
.rv-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c, #ff4500); color: #fff; display: grid; place-items: center; overflow: hidden; font-size: .78rem; font-weight: 800; }
.rv-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.rv-prov { display: flex; flex-direction: column; font-size: .84rem; font-weight: 700; line-height: 1.2; min-width: 0; }
.rv-prov small { font-weight: 400; color: #888; font-size: .7rem; }
.rv-badge { margin-left: auto; flex: none; background: #d62839; color: #fff; font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.rv-card h3 { font-size: 1rem; line-height: 1.3; font-weight: 800; }
.rv-desc { font-size: .84rem; color: #666; line-height: 1.5; }
.rv-desc.rv-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-mas { align-self: flex-start; font-size: .8rem; margin-top: -6px; }
.rv-feat { list-style: none; display: grid; gap: 7px; padding-top: 2px; }
.rv-feat li { display: flex; gap: 10px; font-size: .82rem; line-height: 1.35; color: #333; }
.rv-feat svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #555; }
.rv-feat small { color: #999; }
.rv-horas { border-top: 1px solid #eee; padding-top: 10px; }
.rv-horas p { font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.rv-horas div { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-horas button { border: 1px solid #d9d9e0; background: #fff; border-radius: 8px; padding: 8px 14px; font-size: .85rem; cursor: pointer; }
.rv-horas button.on { background: #1a1b26; border-color: #1a1b26; color: #fff; }
.rv-hora1 { font-size: .82rem; color: #555; border-top: 1px solid #eee; padding-top: 10px; }
.rv-precio { margin-top: auto; padding-top: 10px; border-top: 1px solid #eee; display: grid; gap: 3px; }
.rv-precio > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-precio strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; }
.rv-precio s { color: #999; font-size: .85rem; }
.rv-precio s + strong { color: #d62839; }
.rv-precio em { font-style: normal; font-size: .72rem; font-weight: 700; color: #d62839; background: #fdecee; padding: 2px 7px; border-radius: 6px; }
.rv-precio small { font-size: .78rem; color: #777; }
.rv-precio .rv-aviso-cupos { color: #b4380a; font-weight: 600; }
.rv-precio .rv-cupon-linea { color: #0f7a3c; font-weight: 600; }
.rv-card .rv-btn { width: 100%; }

.rv-flecha { position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #1a1b26; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.rv-flecha[hidden] { display: none; }
.rv-flecha--prev { left: -14px; } .rv-flecha--next { right: -14px; }
.rv-puntos { display: none; justify-content: center; gap: 6px; margin-top: 4px; }
.rv-puntos[hidden] { display: none; }
.rv-puntos i { width: 7px; height: 7px; border-radius: 7px; background: #d6d6dd; transition: .25s; }
.rv-puntos i.on { width: 20px; background: #ff4500; }

.rv-vacio { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 10px; }
.rv-vacio svg { width: 110px; margin-bottom: 6px; }
.rv-vacio h2 { font-size: 1.2rem; font-weight: 800; }
.rv-vacio p { color: #666; max-width: 380px; font-size: .92rem; }
.rv-vacio .rv-btn { margin-top: 8px; }

/* ---------- 6) DATOS · PAGO · COMPROBANTE ---------- */
.rv-form { display: grid; gap: 16px; max-width: 560px; }
.rv-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-campo label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.rv-campo input {
    width: 100%; padding: 13px 14px; border: 1.5px solid #dcdce2; border-radius: 12px; background: #fff;
    font-size: 16px; color: #1a1b26; transition: border-color .2s, box-shadow .2s;   /* 16px evita el zoom automático del iPhone */
}
.rv-campo input:focus { outline: none; border-color: #ff4500; box-shadow: 0 0 0 3px rgba(255,69,0,.15); }
.rv-campo.con-error input { border-color: #d62839; }
.rv-opc { font-weight: 400; color: #999; }
.rv-ayuda { font-size: .78rem; color: #888; margin-top: 5px; }
.rv-error { font-size: .8rem; color: #d62839; margin-top: 5px; font-weight: 600; }
.rv-error:empty { display: none; }
.rv-tel { display: flex; gap: 8px; }
.rv-tel input:first-child { width: 88px; flex: none; text-align: center; }

.rv-metodos { display: grid; gap: 10px; margin-bottom: 14px; }
.rv-metodo { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid #eee; border-radius: 14px; }
.rv-metodo > svg { width: 26px; height: 26px; flex: none; }
.rv-metodo > div { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.rv-metodo small { color: #777; font-size: .8rem; }
.rv-metodo.off { background: #fafafa; opacity: .65; }
.rv-metodo.on { border-color: #ff4500; background: #fff8f4; }
.rv-metodo.on > svg { color: #ff4500; }
.rv-chip { flex: none; background: #e8e8ec; color: #555; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.rv-aviso { background: #fff4ec; border: 1px solid #ffb38a; color: #7a2e00; border-radius: 12px; padding: 12px 14px; font-size: .87rem; line-height: 1.45; }
.rv-opciones { display: grid; gap: 10px; }
.rv-opcion { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid #e3e3e8; border-radius: 14px; cursor: pointer; transition: .2s; }
.rv-opcion input { position: absolute; opacity: 0; }
.rv-opcion.on { border-color: #ff4500; background: #fff8f4; }
.rv-opcion:focus-within { outline: 3px solid rgba(255,69,0,.35); outline-offset: 2px; }
.rv-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #bbb; transition: .2s; }
.rv-opcion.on .rv-radio { border-color: #ff4500; background: #ff4500; box-shadow: inset 0 0 0 4px #fff; }
.rv-opcion-txt { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.rv-opcion-txt small { color: #777; font-size: .8rem; }
.rv-opcion > b { font-size: 1.05rem; }
.rv-cuentas { display: grid; gap: 10px; }
.rv-cuenta { padding: 14px; border-radius: 14px; background: #f7f7fa; display: grid; gap: 8px; }
.rv-cuenta-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.rv-cuenta-top span { color: #777; font-size: .8rem; }
.rv-cuenta-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-cuenta-num code { font-size: 1.1rem; font-weight: 700; letter-spacing: .4px; word-break: break-all; }
.rv-cuenta small { color: #777; font-size: .8rem; }
.rv-copiar { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid #d9d9e0; background: #fff; border-radius: 50px; padding: 8px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.rv-copiar svg, .rv-codigo svg { width: 15px; height: 15px; }
.rv-copiar:hover { border-color: #ff4500; color: #ff4500; }
.rv-nota { font-size: .78rem; color: #888; margin-top: 12px; line-height: 1.45; }

.rv-ok { display: grid; place-items: center; margin: 4px 0 12px; }
.rv-ok svg { width: 68px; height: 68px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rv-ok circle { stroke: #1fa855; fill: #eafaf0; stroke-dasharray: 152; stroke-dashoffset: 152; animation: rv-trazo .7s .1s ease forwards; }
.rv-ok path { stroke: #1fa855; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rv-trazo .4s .7s ease forwards; }
@keyframes rv-trazo { to { stroke-dashoffset: 0; } }
.rv-lista-pasos { list-style: none; display: grid; gap: 16px; margin: 20px auto; max-width: 560px; }
.rv-lista-pasos li { display: flex; gap: 14px; align-items: flex-start; }
.rv-lista-pasos li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #1a1b26; color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.rv-lista-pasos li > div { display: flex; flex-direction: column; gap: 4px; font-size: .94rem; }
.rv-lista-pasos small { color: #666; font-size: .82rem; line-height: 1.5; }
.rv-codigo { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; border: 1.5px dashed #ff4500; background: #fff8f4; color: #1a1b26; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.rv-envio { display: flex; gap: 12px; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.rv-envio .rv-btn { flex: 1 1 220px; }
.rv-paso .rv-nota { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

/* aceptación de términos y riesgos (paso de pago) */
.rv-acepto { margin-top: 26px; padding: 16px 18px; display: grid; gap: 14px; border: 1.5px solid #e3e3e8; border-radius: 14px; background: #fff; transition: border-color .2s, background .2s; }
.rv-acepto .rv-acepto-tit { margin: 0; }
.rv-acepto.error { border-color: #d62839; background: #fff7f8; animation: rv-sacude .4s; }
.rv-chk { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .88rem; line-height: 1.5; color: #333; }
.rv-chk input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.rv-chk-caja { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid #b5b5bf; border-radius: 7px; display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s; }
.rv-chk-caja svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .25s .05s; }
.rv-chk input:checked + .rv-chk-caja { background: #ff4500; border-color: #ff4500; }
.rv-chk input:checked + .rv-chk-caja svg { stroke-dashoffset: 0; }
.rv-chk input:focus-visible + .rv-chk-caja { outline: 3px solid rgba(255,69,0,.4); outline-offset: 2px; }
.rv-chk a { color: #1a1b26; font-weight: 700; text-decoration: underline; }
.rv-acepto-error { color: #d62839; font-size: .82rem; font-weight: 600; }
.rv-acepto-error:empty { display: none; }
@keyframes rv-sacude { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.rv-btn.bloqueado, .rv-btn.bloqueado:hover { background: #e8e8ec; color: #9a9aa5; box-shadow: none; cursor: pointer; }

.rv-pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eee; background: #fff; }
.rv-pie[hidden] { display: none; }
.rv-pie-total { display: flex; flex-direction: column; line-height: 1.15; }
.rv-pie-total small { font-size: .74rem; color: #888; }
.rv-pie-total b { font-size: 1.3rem; font-weight: 800; }

/* ---------- 7) RESUMEN (derecha en computadora, plegable en celular) ---------- */
.rv-resumen { grid-area: resumen; position: sticky; top: 0; border: 1px solid #e6e6ec; border-radius: 18px; padding: 18px; background: #fff; }
.rv-res-toggle { display: none; }
.rv-res-tit { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.rv-res-exp { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.rv-res-foto { width: 64px; height: 64px; flex: none; border-radius: 12px; background: #eee center / cover; }
.rv-res-exp strong { display: block; font-size: .88rem; line-height: 1.3; }
.rv-res-exp small { color: #888; font-size: .76rem; }
.rv-res-filas { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid #eee; font-size: .83rem; }
.rv-res-filas div { display: flex; justify-content: space-between; gap: 12px; }
.rv-res-filas dt { color: #888; flex: none; }
.rv-res-filas dd { text-align: right; font-weight: 600; }
.rv-res-cuenta { display: grid; gap: 8px; padding-top: 14px; font-size: .88rem; }
.rv-res-cuenta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rv-res-cuenta > div:first-child span:last-child { font-weight: 800; font-size: 1.05rem; }
.rv-res-pagar { background: #fff4ec; color: #7a2e00; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.rv-res-pagar b { font-size: 1.1rem; }
.rv-res-desc { color: #0f7a3c; font-weight: 600; }
.rv-res-tot { padding-top: 8px; border-top: 1px dashed #e4e4ea; font-weight: 700; }
.rv-res-tot b { font-size: 1.05rem; font-weight: 800; }
.rv-res-cuenta.con-desc > div:first-child span:last-child { font-weight: 400; font-size: inherit; }
.rv-res-nota { display: flex; gap: 8px; margin-top: 14px; font-size: .76rem; color: #1f7a45; line-height: 1.4; }
.rv-res-nota svg { width: 16px; height: 16px; flex: none; }

/* ---------- 8) CELULAR ---------- */
@media (max-width: 700px) {
    .rv-fondo { padding: 0; align-items: flex-end; }
    .rv-hoja { border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; width: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
    .rv-hoja--cal { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
    .rv-hoja--flujo { height: 100vh; height: 100dvh; border-radius: 0; }
    .rv-top { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
    .rv-progreso { padding: 12px 16px 2px; }
    .rv-prog-pasos { display: none; }
    .rv-prog-movil { display: block; }
    .rv-cuerpo { padding: 14px 16px 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "resumen" "paso"; gap: 16px; }
    .rv-pie { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .rv-pie .rv-btn { flex: 1; max-width: 250px; padding: 14px 18px; }
    .rv-fila { grid-template-columns: 1fr; }
    .rv-card { flex-basis: 86%; min-width: 0; }
    .rv-flecha { display: none; }
    .rv-puntos { display: flex; }
    .rv-tit { font-size: 1.2rem; }

    /* sin overflow:hidden: dentro de un grid de altura fija hacía que la fila del resumen se colapsara y se encimara con el título */
    .rv-resumen { position: static; padding: 0; border-radius: 14px; }
    .rv-res-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-radius: 13px; background: #f7f7fa; font-size: .9rem; font-weight: 700; color: #1a1b26; cursor: pointer; }
    .rv-res-toggle .rv-res-total { margin-left: auto; font-size: 1rem; }
    .rv-res-toggle i { font-style: normal; transition: transform .25s; }
    .rv-resumen.abierto .rv-res-toggle i { transform: rotate(180deg); }
    .rv-resumen.abierto .rv-res-toggle { border-radius: 13px 13px 0 0; }
    .rv-res-cuerpo { display: none; padding: 16px; }
    .rv-resumen.abierto .rv-res-cuerpo { display: block; }
    .rv-res-tit { display: none; }
    .rv-toast { bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-hoja, .rv-fondo, .rv-prog-barra i, .rv-paso.rv-entra, .rv-card { transition: none; animation: none; }
    .rv-spin { animation-duration: 2.5s; }
    .rv-sk i { animation: none; }
    .rv-ok circle, .rv-ok path { animation: none; stroke-dashoffset: 0; }
    .rv-acepto.error { animation: none; }
    .rv-cupon-input.error { animation: none; }
    .rv-chk-caja, .rv-chk-caja svg { transition: none; }
}

/* ---------- 9) ARREGLO: desbordamiento horizontal en celular (ya existía antes de la reserva) ----------
   La página medía ~470px en un celular de 390px: la caja de reserva quedaba 80px fuera de pantalla.
   Causas: columnas del grid que no se encogían y el campo de correo del newsletter. */
@media (max-width: 900px) {
    .detail-layout > * { min-width: 0; }
    .newsletter-input { min-width: 0; }
}