@charset "UTF-8";
/* El Batman · Reservas — estilo del formulario. Todo va dentro de .ebr. */

.ebr {
	--ebr-rojo: #B3261E;
	--ebr-rojo-osc: #7A1712;
	--ebr-rojo-suave: #FDF1EF;
	--ebr-tinta: #1F1B19;
	--ebr-gris: #5E5652;
	--ebr-fondo: #FAF7F4;
	--ebr-linea: #EAE3DE;
	--ebr-borde: #D9CFC9;
	--ebr-apagado: #8F847E;
	--ebr-verde: #2E7D4F;
	--ebr-ambar: #C98A00;
	color: var(--ebr-tinta);
	font-size: 16px;
	line-height: 1.5;
}
.ebr *, .ebr *::before, .ebr *::after { box-sizing: border-box; }
.ebr button { font: inherit; text-transform: none; letter-spacing: normal; line-height: 1.3; box-shadow: none; }
/* El tema aplica estilos propios a todos los botones; aquí se neutralizan. */
.ebr button:hover, .ebr button:focus { text-transform: none; }
.ebr h3 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 14px; color: var(--ebr-tinta); }
.ebr-cargando .ebr-rejilla { pointer-events: none; }

.ebr-tarjeta { background: #fff; border: 1px solid var(--ebr-linea); border-radius: 20px; padding: 24px; }
.ebr-columnas { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .ebr-columnas { grid-template-columns: 1fr; } }

/* Sala */
.ebr-sala { max-width: 420px; margin-bottom: 20px; }

/* Calendario */
.ebr-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ebr-cal-cab .ebr-mes { margin: 0; }
.ebr-flecha { width: 44px; height: 44px; padding: 0 !important; border-radius: 12px; border: 1px solid var(--ebr-linea) !important; background: #fff !important; color: var(--ebr-tinta) !important; font-size: 26px; line-height: 1 !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ebr-flecha:hover:not(:disabled) { background: var(--ebr-fondo); }
.ebr-flecha:disabled { color: #CFC6C1; cursor: default; }
.ebr-rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ebr-dsem { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ebr-gris); padding-bottom: 4px; }
.ebr-dia { min-width: 0; height: 52px; border-radius: 12px; border: 1px solid var(--ebr-linea); background: #fff; color: var(--ebr-tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-weight: 500; padding: 0; transition: background .15s, border-color .15s; }
@media (hover: hover) { .ebr-dia:hover:not(:disabled) { border-color: var(--ebr-rojo); background: var(--ebr-rojo-suave); } }
.ebr-dia:disabled { background: #F6F2EF; border-color: #F6F2EF; color: #ABA19C; cursor: default; }
.ebr-dia--sel, .ebr-dia--sel:hover:not(:disabled) { background: var(--ebr-rojo); border-color: var(--ebr-rojo); color: #fff; }
.ebr-punto { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: transparent; }
.ebr-dia--libre .ebr-punto, .ebr-punto--libre { background: var(--ebr-verde); }
.ebr-dia--pocos .ebr-punto, .ebr-punto--pocos { background: var(--ebr-ambar); }
.ebr-punto--no { background: #CFC6C1; }
.ebr-dia--sel .ebr-punto { background: #fff; }
.ebr-leyenda { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #F0EAE6; font-size: 13px; color: var(--ebr-gris); }
.ebr-leyenda span { display: inline-flex; align-items: center; gap: 8px; }

/* Turnos */
.ebr-ayuda { color: var(--ebr-gris); margin: 0; }
.ebr-lista-turnos { display: flex; flex-direction: column; gap: 10px; }
.ebr-turno { width: 100%; min-height: 72px; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--ebr-linea); background: #fff; color: var(--ebr-tinta); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ebr-turno:hover:not(:disabled) { border-color: var(--ebr-rojo); }
.ebr-turno:disabled { background: #F6F2EF; color: var(--ebr-apagado); cursor: default; }
.ebr-turno--sel { border-color: var(--ebr-rojo); background: var(--ebr-rojo-suave); }
.ebr-turno-txt, .ebr-turno-precio { display: flex; flex-direction: column; gap: 2px; }
.ebr-turno-txt strong { font-family: Montserrat, sans-serif; font-size: 17px; }
.ebr-turno-txt span { font-size: 14px; color: var(--ebr-gris); }
.ebr-turno-precio { align-items: flex-end; }
.ebr-turno-precio strong { font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 800; }
.ebr-estado { font-size: 13px; font-weight: 600; color: #2A6342; }
.ebr-turno:disabled .ebr-estado { color: var(--ebr-apagado); }
.ebr-turno--sel .ebr-estado { color: var(--ebr-rojo); }

/* Formulario */
.ebr-formulario { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.ebr-formulario h3 { margin: 0; }
.ebr-resumen-corto { background: var(--ebr-fondo); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.ebr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ebr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .ebr-grid, .ebr-grid--3 { grid-template-columns: 1fr; } }
.ebr-campo { display: flex; flex-direction: column; gap: 6px; }
.ebr-campo label { font-size: 14px; font-weight: 600; }
.ebr input[type="text"], .ebr input[type="tel"], .ebr input[type="email"], .ebr select {
	height: 50px; width: 100%; border: 1px solid var(--ebr-borde); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ebr-tinta); background: #fff; box-shadow: none; margin: 0;
}
.ebr input:focus, .ebr select:focus, .ebr button:focus-visible { outline: 3px solid rgba(179, 38, 30, .25); outline-offset: 1px; border-color: var(--ebr-rojo); }

.ebr-fieldset { border: 0; margin: 0; padding: 0; }
.ebr-fieldset legend { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; padding: 0 0 10px; }
.ebr-extras { display: flex; flex-direction: column; gap: 10px; }
.ebr-extra { width: 100%; min-height: 62px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--ebr-linea); background: #fff; color: var(--ebr-tinta); display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; }
.ebr-extra--on { border-color: var(--ebr-rojo); background: var(--ebr-rojo-suave); }
.ebr-check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; border: 2px solid #BDB2AC; background: #fff; position: relative; }
.ebr-extra--on .ebr-check { background: var(--ebr-rojo); border-color: var(--ebr-rojo); }
.ebr-extra--on .ebr-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ebr-extra-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ebr-extra-txt span { font-size: 13px; color: var(--ebr-gris); text-transform: none; }
.ebr-extra-precio { font-family: Montserrat, sans-serif; white-space: nowrap; }

.ebr-totales { border: 1px solid var(--ebr-linea); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ebr-fila { display: flex; justify-content: space-between; gap: 12px; }
.ebr-fila span:first-child { color: var(--ebr-gris); }
.ebr-fila--total { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 18px; padding-top: 8px; border-top: 1px dashed var(--ebr-borde); }
.ebr-fila--total span:first-child { color: var(--ebr-tinta); }
.ebr-pago { margin-top: 6px; background: var(--ebr-rojo-suave); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ebr-fila--ahora { font-weight: 700; color: var(--ebr-rojo-osc); }
.ebr-fila--ahora span:first-child { color: var(--ebr-rojo-osc); }

.ebr-nota { font-size: 14px; color: var(--ebr-gris); margin: 0; }
.ebr-check-linea { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.ebr-check-linea input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ebr-rojo); }
.ebr-check-linea a { color: var(--ebr-rojo); }
.ebr-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ebr-error { background: #FDECEA; color: #8C1D18; border-radius: 10px; padding: 10px 14px; margin: 0; font-weight: 600; }
.ebr-boton { height: 56px; border: 0; border-radius: 14px; background: var(--ebr-rojo); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; transition: background .15s; }
.ebr-boton:hover:not(:disabled) { background: var(--ebr-rojo-osc); }
.ebr-boton:disabled { opacity: .7; cursor: wait; }
.ebr-seguro { text-align: center; font-size: 13px; color: var(--ebr-gris); margin: 0; }

/* Pulido: carga sin «falsos completos», respuesta al pulsar, números estables */
.ebr-dia--carga, .ebr-dia--carga:disabled { background: #fff; border-color: var(--ebr-linea); color: var(--ebr-tinta); animation: ebr-pulso 1.1s .15s ease-in-out infinite both; }
@keyframes ebr-pulso { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.ebr-cargando-txt { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #F0EAE6; font-size: 13px; color: var(--ebr-gris); }
.ebr-dia, .ebr-turno, .ebr-boton, .ebr-flecha { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease-out; }
.ebr-dia:active:not(:disabled), .ebr-turno:active:not(:disabled), .ebr-boton:active:not(:disabled), .ebr-flecha:active:not(:disabled) { transform: scale(.97); }
.ebr-dia, .ebr-precio, .ebr-total, .ebr-resumen { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
	.ebr-dia--carga { animation: none; opacity: .6; }
	.ebr-dia, .ebr-turno, .ebr-boton, .ebr-flecha { transition: none; }
	.ebr-dia:active:not(:disabled), .ebr-turno:active:not(:disabled), .ebr-boton:active:not(:disabled), .ebr-flecha:active:not(:disabled) { transform: none; }
}

/* =========================================================
   Calendario con más vida (sin recargar):
   días tintados según disponibilidad, una rayita por turno,
   días pasados apagados, «hoy» marcado, sugerencias a la derecha.
   ========================================================= */
.ebr { --ebr-verdeS: #EAF5EE; --ebr-verdeB: #BFDFCB; --ebr-ambarS: #FFF6E3; --ebr-ambarB: #F0D9A6; }
.ebr-dsem { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 13px; }
.ebr-rejilla { gap: 8px; }
.ebr-dia { height: 60px; gap: 6px; border-radius: 12px; font-weight: 500; }
.ebr-dia-num { font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.ebr-dia--libre { background: var(--ebr-verdeS); border-color: var(--ebr-verdeB); }
.ebr-dia--pocos { background: var(--ebr-ambarS); border-color: var(--ebr-ambarB); }
.ebr-dia--no:disabled { background: #F7F4F2; border-color: #F7F4F2; color: #B7AEA9; }
.ebr-dia--no .ebr-dia-num { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.ebr-dia--pasado:disabled { background: transparent; border-color: transparent; color: #CFC6C1; }
.ebr-dia--hoy { box-shadow: inset 0 0 0 2px var(--ebr-tinta); }
.ebr-dia--hoy::after { content: "Hoy"; position: absolute; top: 3px; right: 5px; font-size: 9px; font-weight: 600; color: var(--ebr-gris); }
.ebr-dia { position: relative; }
@media (hover: hover) {
	.ebr-dia--libre:hover:not(:disabled), .ebr-dia--pocos:hover:not(:disabled) { border-color: var(--ebr-rojo); background: #fff; box-shadow: 0 1px 2px rgba(31, 27, 25, .05), 0 6px 16px -6px rgba(31, 27, 25, .07); }
}
.ebr-dia--sel, .ebr-dia--sel:hover:not(:disabled) { background: var(--ebr-rojo); border-color: var(--ebr-rojo); color: #fff; box-shadow: 0 6px 16px -6px rgba(179, 38, 30, .45); }
.ebr-dia--sel::after { color: rgba(255, 255, 255, .8); }

/* Una rayita por turno */
.ebr-dia-turnos { display: inline-flex; gap: 3px; }
.ebr-dia-turnos i { display: block; width: 8px; height: 3px; border-radius: 2px; background: rgba(31, 27, 25, .14); }
.ebr-dia-turnos i.si { background: var(--ebr-verde); }
.ebr-dia--sel .ebr-dia-turnos i { background: rgba(255, 255, 255, .35); }
.ebr-dia--sel .ebr-dia-turnos i.si { background: #fff; }

/* Leyenda */
.ebr-muestra { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid; }
.ebr-muestra--libre { background: var(--ebr-verdeS); border-color: var(--ebr-verdeB); }
.ebr-muestra--pocos { background: var(--ebr-ambarS); border-color: var(--ebr-ambarB); }
.ebr-muestra--no { background: #F7F4F2; border-color: #EAE3DE; }
.ebr-leyenda-barras .ebr-dia-turnos { margin-right: 2px; }

/* Panel derecho: sugerencias */
.ebr-sugerencias h3 { margin-bottom: 12px; }
.ebr-rapidos { display: flex; flex-direction: column; gap: 8px; }
.ebr-rapido { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--ebr-linea); border-radius: 14px; background: #fff; color: var(--ebr-tinta); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .15s ease, background-color .15s ease, transform .12s ease-out; }
.ebr-rapido-fecha { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 48px; border-radius: 10px; background: var(--ebr-verdeS); line-height: 1.1; }
.ebr-rapido-fecha strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ebr-rapido-fecha span { font-size: 12px; color: var(--ebr-gris); }
.ebr-rapido-txt { display: flex; flex-direction: column; font-size: 15px; }
.ebr-rapido-precio { font-size: 14px; color: var(--ebr-gris); font-variant-numeric: tabular-nums; }
.ebr-rapido-flecha { font-size: 22px; color: var(--ebr-gris); }
@media (hover: hover) { .ebr-rapido:hover { border-color: var(--ebr-rojo); } .ebr-rapido:hover .ebr-rapido-flecha { color: var(--ebr-rojo); } }
.ebr-rapido:active { transform: scale(.98); }
.ebr-sig-mes { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ebr-linea); border-radius: 12px; background: #fff; color: var(--ebr-tinta); font-weight: 600; cursor: pointer; }
.ebr-horarios-tit { margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--ebr-tinta); }
.ebr-horarios { margin: 0; display: flex; flex-direction: column; }
.ebr-horarios div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid #F0EAE6; }
.ebr-horarios dt { display: flex; flex-direction: column; font-size: 15px; }
.ebr-horarios dt span { font-size: 14px; color: var(--ebr-gris); font-variant-numeric: tabular-nums; }
.ebr-horarios dd { margin: 0; font-size: 14px; color: var(--ebr-gris); font-variant-numeric: tabular-nums; }

/* Panel de turnos: cabecera con «Cambiar día» y entrada suave al elegir día */
.ebr-turnos-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ebr-cambiar { border: 0; background: none; padding: 8px 0; color: var(--ebr-rojo); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ebr-entra > * { animation: ebr-entra .22s ease-out both; }
.ebr-entra > :nth-child(2) { animation-delay: .04s; }
.ebr-entra > :nth-child(3) { animation-delay: .08s; }
@keyframes ebr-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
	.ebr-rejilla { gap: 4px; }
	.ebr-dia { height: 52px; border-radius: 10px; gap: 5px; }
	.ebr-dia-num { font-size: 15px; }
	.ebr-dia-turnos i { width: 6px; }
	.ebr-dia--hoy::after { display: none; }
	.ebr-tarjeta { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ebr-entra > * { animation: none; }
	.ebr-rapido { transition: none; } .ebr-rapido:active { transform: none; }
}
@media (max-width: 860px) { .ebr-rapido:nth-child(n+4) { display: none; } .ebr-turnos { scroll-margin-top: 96px; } }

/* ---------- Revisión de accesibilidad y pulido (auditoría antes de producción) ---------- */
.ebr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Botón de pagar: el reseteo de .ebr button le quitaba peso y tamaño. */
.ebr .ebr-boton { font-weight: 600; font-size: 17px; }
.ebr .ebr-flecha { font-size: 26px; }
/* Pesos: solo se cargan 500 y 600. */
.ebr h3, .ebr-fieldset legend, .ebr-fila--ahora { font-weight: 600; }
.ebr-turno-precio strong, .ebr-fila--total { font-weight: 600; }
/* Foco bien visible (contraste suficiente sobre blanco y crema). */
.ebr input:focus-visible, .ebr select:focus-visible, .ebr button:focus-visible, .ebr a:focus-visible { outline: 2px solid var(--ebr-rojo); outline-offset: 2px; }
.ebr input:focus:not(:focus-visible), .ebr select:focus:not(:focus-visible) { outline: 2px solid var(--ebr-rojo); outline-offset: 0; }
/* Hover solo con ratón: en el móvil no se queda pegado tras tocar. */
.ebr-boton:hover:not(:disabled) { background: var(--ebr-rojo); }
@media (hover: hover) { .ebr-boton:hover:not(:disabled) { background: var(--ebr-rojo-osc); } }
/* Rayitas de turnos más visibles: no depender solo del color de fondo del día. */
.ebr-dia-turnos { gap: 3px; }
.ebr-dia-turnos i { height: 5px; border-radius: 3px; background: rgba(31, 27, 25, .32); }
.ebr-dia-turnos i.si { background: var(--ebr-verde); }
.ebr-dia--sel .ebr-dia-turnos i { background: rgba(255, 255, 255, .45); }
.ebr-dia--sel .ebr-dia-turnos i.si { background: #fff; }
.ebr-dia--sel, .ebr-dia--sel:hover:not(:disabled) { box-shadow: 0 4px 12px -6px rgba(179, 38, 30, .07); }
.ebr-dia--hoy::after { display: none; } /* «Hoy» se marca con el borde y se dice en la etiqueta. */
/* Errores en cada campo. */
.ebr .ebr-campo--error input, .ebr .ebr-campo--error input:focus { border-color: var(--ebr-rojo); border-width: 2px; }
.ebr-error-campo { margin: 6px 0 0; color: var(--ebr-rojo-osc); font-size: 14px; line-height: 1.4; }
.ebr-error-campo[hidden] { display: none; }
.ebr-error--carga { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ebr-reintentar { min-height: 44px; padding: 0 16px; border: 1px solid var(--ebr-rojo); border-radius: 10px; background: #fff; color: var(--ebr-rojo); font-weight: 600; cursor: pointer; }
/* Captcha: solo ocupa sitio si Cloudflare pide al cliente que lo marque. */
.ebr-captcha { display: flex; justify-content: center; margin-top: 12px; }
.ebr-captcha:empty { display: none; }

/* Aviso al volver de cancelar el pago en el banco */
.ebr-aviso-pago {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-left: 4px solid #B3261E;
	border-radius: 0 10px 10px 0;
	background: #FBF3F2;
	color: #1F1B19;
	font-size: 16px;
	line-height: 1.5;
}
.ebr-aviso-pago strong { color: #B3261E; }

/* Campos obligatorios */
.ebr-oblig { color: #B3261E; font-weight: 700; }
.ebr-nota-oblig { margin: -6px 0 14px; font-size: 13px; color: #6b625d; }
