/* ==========================================================
   Flujo de reserva pública — Plantilla "Fotografía"
   Misma identidad editorial de la landing: negro profundo,
   cobre/dorado, serif elegante. Mismas clases/estructura que
   la plantilla base, solo retinteada.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0F0F11;
    --surface: #17171a;
    --border: rgba(245,243,238,0.10);
    --text: #f5f3ee;
    --text-2: #a8a49a;
    --text-3: #78756c;
    --gold: var(--marca-oro, #c9a15c);
    --gold-soft: rgba(193,154,91,0.12);
    --maroon: var(--marca-maroon, #c9a15c);
    --maroon-hover: #ddbb7c;
    --success: #4caf7d;
    --success-soft: rgba(76,175,125,0.12);
    --danger: #e0685a;
    --danger-soft: rgba(224,104,90,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

body.reservar {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at top, rgba(193,154,91,.06), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.reservar a { color: inherit; }

.contenedor { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---- Header simple ---- */
.rv-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.rv-header a.volver {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    text-decoration: none; color: var(--text); flex-shrink: 0;
}
.rv-header__titulo { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; }
.rv-header__paso { font-size: 11px; color: var(--text-2); letter-spacing: .04em; text-transform: uppercase; }

/* ---- Barra de progreso con etiquetas ---- */
.rv-progreso { display: flex; padding: 14px 16px 0; max-width: 560px; margin: 0 auto; gap: 4px; }
.rv-progreso__paso { flex: 1; text-align: center; }
.rv-progreso__linea { height: 2px; background: var(--border); margin-bottom: 8px; transition: background .2s ease; }
.rv-progreso__paso.completo .rv-progreso__linea,
.rv-progreso__paso.activo .rv-progreso__linea { background: var(--gold); }
.rv-progreso__etiqueta { font-size: 9.5px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.rv-progreso__paso.activo .rv-progreso__etiqueta { color: var(--gold); }

/* ---- Resumen fijo ---- */
.rv-resumen {
    max-width: 560px; margin: 14px auto 0; padding: 12px 16px;
    background: var(--gold-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
    display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-left: 16px; margin-right: 16px;
    color: var(--text-2);
}
.rv-resumen strong { color: var(--text); }
.rv-resumen .precio { margin-left: auto; font-weight: 600; color: var(--gold); }

/* ---- Contenido ---- */
.rv-main { padding: 24px 0 20px; animation: rv-fade-in .4s ease; }
@keyframes rv-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.rv-titulo { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 32px; letter-spacing: .005em; margin: 4px 0 6px; }
.rv-subtitulo { color: var(--text-2); font-size: 13px; margin: 0 0 24px; font-weight: 300; }

/* ---- Tarjetas seleccionables ---- */
.rv-opciones { display: flex; flex-direction: column; gap: 10px; }
.rv-opcion { position: relative; }
.rv-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.rv-opcion label {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.rv-opcion label:hover { border-color: var(--gold); transform: translateY(-1px); }
.rv-opcion input:checked + label {
    border-color: var(--gold); box-shadow: 0 0 0 2px rgba(193,154,91,.18); background: #1a170f;
}
.rv-opcion label.rv-seleccionando { animation: rv-select-pulse .32s ease; }
@keyframes rv-select-pulse { 0% { transform: scale(1); } 40% { transform: scale(0.97); border-color: var(--gold); } 100% { transform: scale(1); } }
.rv-opcion label:active { transform: scale(0.99); }
.rv-opcion__check {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: border-color .15s ease, background .15s ease;
}
.rv-opcion input:checked + label .rv-opcion__check { border-color: var(--gold); background: var(--gold); }
.rv-opcion__check svg { width: 12px; height: 12px; color: #17130a; opacity: 0; transition: opacity .1s ease; }
.rv-opcion input:checked + label .rv-opcion__check svg { opacity: 1; }

/* ---- Fecha ---- */
.rv-fechas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rv-fechas-grid .rv-opcion label { flex-direction: column; padding: 14px 4px; text-align: center; gap: 2px; }
.rv-fechas-grid .dia-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }
.rv-fechas-grid .dia-nombre { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.rv-fechas-grid .rv-opcion__check { display: none; }

/* ---- Empleado (fotógrafo): póster vertical ---- */
.rv-empleados-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rv-opcion--empleado label {
    flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0;
    border: none; border-radius: var(--radius-md); background: #17171a;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.rv-opcion--empleado label:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.rv-opcion--empleado .foto-wrap { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #1f1f23; overflow: hidden; }
.rv-opcion--empleado .foto-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rv-opcion--empleado label:hover .foto-wrap img { transform: scale(1.05); }
.rv-opcion--empleado .foto-wrap .sin-foto {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #1f1f23, #0F0F11);
    color: var(--gold); font-family: 'Playfair Display', serif; font-size: 52px;
}
.rv-opcion--empleado .foto-wrap::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.8) 100%);
}
.rv-opcion--empleado .check-flotante {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center; border: none;
    transition: background .15s ease;
}
.rv-opcion--empleado .check-flotante svg { width: 15px; height: 15px; color: var(--gold); opacity: 0; transition: opacity .15s ease; }
.rv-opcion--empleado .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 14px 16px; color: #fff; }
.rv-opcion--empleado .nombre { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 18px; display: block; }
.rv-opcion--empleado .especialidad { font-size: 10.5px; color: var(--gold); display: block; margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.rv-opcion--empleado label { position: relative; }

.rv-opcion--empleado input:checked + label { transform: scale(1.03); box-shadow: 0 0 0 2px var(--gold), 0 12px 28px rgba(0,0,0,.5); }
.rv-opcion--empleado input:checked + label .check-flotante { background: var(--gold); }
.rv-opcion--empleado input:checked + label .check-flotante svg { opacity: 1; color: #17130a; }
.rv-opcion--empleado label.rv-seleccionando { animation: rv-empleado-pulso .32s ease; }
@keyframes rv-empleado-pulso { 0% { transform: scale(1.03); } 45% { transform: scale(0.98); } 100% { transform: scale(1.03); } }

/* ---- Servicio (sesión): catálogo ---- */
.rv-servicios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-opcion--servicio label { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rv-opcion--servicio label:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rv-opcion--servicio img { width: 100%; height: 110px; object-fit: cover; transition: transform .4s ease; }
.rv-opcion--servicio label:hover img { transform: scale(1.04); }
.rv-opcion--servicio .sin-imagen { width: 100%; height: 110px; background: #1f1f23; }
.rv-opcion--servicio .cuerpo { padding: 12px 12px 14px; }
.rv-opcion--servicio .nombre { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 16px; }
.rv-opcion--servicio .desc { font-size: 11px; color: var(--text-2); margin: 3px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }
.rv-opcion--servicio .meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
.rv-opcion--servicio .precio { color: var(--gold); font-weight: 600; }
.rv-opcion--servicio .duracion { color: var(--text-3); }
.rv-opcion--servicio .rv-opcion__check { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }

/* ---- Hora ---- */
.rv-horas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rv-horas-grid .rv-opcion label { justify-content: center; padding: 14px 4px; font-weight: 500; font-size: 13px; }
.rv-horas-grid .rv-opcion__check { display: none; }

.rv-vacio { text-align: center; padding: 40px 20px; color: var(--text-2); }
.rv-vacio svg { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 10px; }

/* ---- Barra fija "Continuar" ---- */
.rv-barra-continuar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--bg); border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.rv-barra-continuar .contenido { max-width: 560px; margin: 0 auto; }
.rv-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 15px; background: var(--gold); color: #17130a;
    border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; font-family: inherit; transition: background .15s ease, transform .1s ease;
}
.rv-btn:hover { background: var(--maroon-hover); }
.rv-btn:active { transform: scale(0.99); }
.rv-btn[disabled] { opacity: .4; cursor: not-allowed; }
.rv-btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(23,19,10,.35); border-top-color: #17130a; border-radius: 50%; animation: rv-spin .6s linear infinite; }
.rv-btn.cargando .spinner { display: inline-block; }
.rv-btn.cargando .texto-btn { opacity: .85; }
@keyframes rv-spin { to { transform: rotate(360deg); } }

/* ---- Formulario de datos ---- */
.rv-campo { margin-bottom: 16px; }
.rv-campo label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); }
.rv-campo input {
    width: 100%; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; background: var(--surface); color: var(--text);
    transition: border-color .15s ease;
}
.rv-campo input:focus { outline: none; border-color: var(--gold); }
.rv-campo input.invalido { border-color: var(--danger); }
.rv-campo .error-campo { display: none; color: var(--danger); font-size: 12px; margin-top: 4px; }
.rv-campo input.invalido + .error-campo { display: block; }

.rv-flash { padding: 11px 14px; border-radius: var(--radius-sm); margin: 12px 16px 0; font-size: 13px; }
.rv-flash.error { background: var(--danger-soft); color: var(--danger); }
.rv-flash.success { background: var(--success-soft); color: var(--success); }

/* ---- Confirmación ---- */
.rv-confirmacion { text-align: center; padding: 34px 0 10px; }
.rv-check {
    width: 68px; height: 68px; border-radius: 50%; background: var(--success-soft);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
    animation: rv-check-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.rv-check svg { width: 32px; height: 32px; color: var(--success); }
@keyframes rv-check-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rv-confirmacion h1 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 30px; margin: 0 0 8px; }
.rv-confirmacion p.sub { color: var(--text-2); font-size: 13px; margin: 0 0 24px; font-weight: 300; }

.rv-ticket {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 20px; text-align: left; margin-bottom: 16px;
}
.rv-ticket__fila { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.rv-ticket__fila:last-child { border-bottom: none; }
.rv-ticket__fila .label { color: var(--text-2); }
.rv-ticket__fila .valor { font-weight: 600; }

.rv-acciones-confirmacion { display: flex; gap: 8px; margin-bottom: 10px; }
.rv-btn-secundario {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font-weight: 500; font-size: 13px;
    text-decoration: none; cursor: pointer; font-family: inherit;
}
.rv-btn-secundario svg { width: 16px; height: 16px; }
.rv-btn-secundario.whatsapp { color: #fff; background: #25d366; border-color: #25d366; font-weight: 600; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.rv-btn-secundario.whatsapp:hover { background: #1ebd5a; }
.rv-btn-secundario.whatsapp svg { fill: #fff; stroke: none; width: 18px; height: 18px; }

@media (min-width: 640px) {
    .rv-servicios-grid { grid-template-columns: repeat(3, 1fr); }
    .rv-fechas-grid { grid-template-columns: repeat(4, 1fr); }
    .rv-empleados-grid { grid-template-columns: repeat(3, 1fr); }
    .contenedor, .rv-progreso, .rv-resumen, .rv-barra-continuar .contenido { max-width: 640px; }
}
@media (min-width: 900px) {
    .rv-empleados-grid { grid-template-columns: repeat(4, 1fr); }
    body.paso-ancho .contenedor, body.paso-ancho .rv-progreso, body.paso-ancho .rv-resumen { max-width: 860px; }
}
