/* Relief Reservas: widget de citas. Colores del kit de Elementor del sitio. */
.rr {
  --rr-tinta: #1f1f1f;
  --rr-texto: #4a4f57;
  --rr-suave: #6b7280;
  --rr-marca: #144c57;
  --rr-marca-2: #25798f;
  --rr-linea: #dfe7ea;
  --rr-fondo: #f9f8f9;
  --rr-libre: #e8f2f4;
  --rr-acento: #9fcd2f;
  --rr-error: #b42318;
  --rr-radio: 14px;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--rr-texto);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}
.rr *, .rr *::before, .rr *::after { box-sizing: border-box; }
.rr.rr .rr-cuerpo { background: #fff; border-radius: 20px; padding: clamp(20px, 4vw, 40px); min-height: 320px; }
.rr h2, .rr h3 { font-family: inherit; color: var(--rr-tinta); letter-spacing: -0.01em; margin: 0; }
.rr p { margin: 0; }
.rr.rr button { font-family: inherit; cursor: pointer; }
.rr.rr :focus-visible { outline: 3px solid var(--rr-marca-2); outline-offset: 2px; }
/* Títulos y avisos reciben foco por código (lectores de pantalla): sin anillo. */
.rr.rr [tabindex="-1"]:focus, .rr.rr [tabindex="-1"]:focus-visible { outline: none; }
.rr [hidden] { display: none !important; }
.rr.rr .rr-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rr.rr .rr-vivo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Encabezado */
.rr.rr .rr-encabezado { margin-bottom: 24px; }
.rr.rr .rr-marca { color: var(--rr-marca-2); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.rr.rr .rr-titulo { font-size: clamp(22px, 3vw, 28px); font-weight: 500; line-height: 1.2; }
.rr.rr .rr-datos { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--rr-texto); }
.rr.rr .rr-datos li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.rr.rr .rr-desc { margin-top: 12px; max-width: 62ch; color: var(--rr-texto); }
.rr.rr .rr-aviso { margin: 0 0 18px; padding: 12px 16px; background: var(--rr-fondo); border-radius: 10px; }
.rr.rr .rr-aviso-error { background: #fef3f2; color: var(--rr-error); }

/* Calendario y horas */
.rr.rr .rr-reja { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.rr.rr .rr-mes-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rr.rr .rr-mes-titulo { font-size: 18px; font-weight: 500; }
.rr.rr .rr-mes-cab button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rr-libre); color: var(--rr-marca); display: grid; place-items: center; padding: 0; transition: background .15s; }
.rr.rr .rr-mes-cab button:hover:not(:disabled) { background: #d3e6ea; }
.rr.rr .rr-mes-cab button:disabled { background: transparent; color: #c3c7cc; cursor: default; }
.rr.rr .rr-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rr.rr .rr-dsem { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--rr-suave); padding: 4px 0 8px; }
.rr.rr .rr-dia { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; color: #a3a8ae; font-size: 15px; padding: 0; display: grid; place-items: center; }
.rr.rr .rr-dia:disabled { cursor: default; }
.rr.rr .rr-dia-libre { background: var(--rr-libre); color: var(--rr-marca); font-weight: 600; transition: background .15s, color .15s; }
.rr.rr .rr-dia-libre:hover { background: #d3e6ea; }
.rr.rr .rr-dia[aria-pressed="true"] { background: var(--rr-marca); color: #fff; }
.rr.rr .rr-zona { margin-top: 20px; }
.rr.rr .rr-zona label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--rr-tinta); margin-bottom: 6px; }
.rr.rr .rr-zona-sel { width: 100%; height: 44px; border: 1px solid var(--rr-linea); border-radius: 10px; padding: 0 12px; background: #fff; color: var(--rr-tinta); font: inherit; font-size: 15px; }
.rr.rr .rr-horas-titulo { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.rr.rr .rr-horas-lista { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: #cfd8dc transparent; }
.rr.rr .rr-hora { height: 48px; border: 1.5px solid var(--rr-marca-2); color: var(--rr-marca); background: #fff; border-radius: 10px; font-size: 16px; font-weight: 600; transition: background .15s, color .15s; }
.rr.rr .rr-hora:hover { background: var(--rr-marca); border-color: var(--rr-marca); color: #fff; }

/* Formulario */
.rr.rr .rr-volver { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--rr-marca); font-size: 15px; font-weight: 500; padding: 6px 0; margin-bottom: 16px; }
.rr.rr .rr-reja-form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.rr.rr .rr-resumen { margin-top: 16px; display: grid; gap: 10px; }
.rr.rr .rr-resumen-fecha, .rr.rr .rr-resumen-zona { display: flex; gap: 10px; align-items: flex-start; }
.rr.rr .rr-resumen-fecha .rr-ico, .rr.rr .rr-resumen-zona .rr-ico { margin-top: 3px; color: var(--rr-marca-2); }
.rr.rr .rr-resumen-fecha strong { color: var(--rr-tinta); font-weight: 600; }
.rr.rr .rr-resumen-zona a { color: var(--rr-marca); word-break: break-all; }
.rr.rr .rr-form { display: grid; gap: 16px; }
.rr.rr .rr-campo label { display: block; font-size: 14px; font-weight: 500; color: var(--rr-tinta); margin-bottom: 6px; }
.rr.rr .rr-req { color: var(--rr-error); }
/* .rr x3: el kit de Elementor pinta input:not([type=button]):not([type=submit]) de gris y le ganaba. */
.rr.rr.rr .rr-campo input, .rr.rr.rr .rr-campo textarea { width: 100%; margin: 0; border: 1px solid #cfd8dc; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4; color: var(--rr-tinta); background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.rr.rr.rr .rr-campo input { height: 48px; }
.rr.rr.rr .rr-campo textarea { min-height: 112px; resize: vertical; }
.rr.rr.rr .rr-campo input::placeholder, .rr.rr.rr .rr-campo textarea::placeholder { color: #9aa1a9; opacity: 1; }
.rr.rr.rr .rr-campo input:hover, .rr.rr.rr .rr-campo textarea:hover { border-color: #aebbc0; }
.rr.rr.rr .rr-campo input:focus, .rr.rr.rr .rr-campo textarea:focus { outline: none; background: #fff; border-color: var(--rr-marca-2); box-shadow: 0 0 0 3px rgba(37, 121, 143, .18); }
.rr.rr.rr .rr-campo [aria-invalid="true"] { border-color: var(--rr-error); }
.rr.rr.rr .rr-campo [aria-invalid="true"]:focus { border-color: var(--rr-error); box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.rr.rr .rr-error-campo, .rr.rr .rr-error-form { color: var(--rr-error); font-size: 14px; margin-top: 6px; }
.rr.rr .rr-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rr.rr .rr-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rr.rr .rr-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 0; border-radius: 30px; background: var(--rr-marca); color: #fff; font-size: 16px; font-weight: 600; transition: background .15s, transform .1s; }
.rr.rr .rr-boton:hover:not(:disabled) { background: var(--rr-marca-2); }
.rr.rr .rr-boton:active:not(:disabled) { transform: scale(.98); }
.rr.rr .rr-boton:disabled { opacity: .65; cursor: progress; }
.rr.rr .rr-boton-sec { background: #fff; color: var(--rr-marca); border: 1.5px solid var(--rr-marca); }
.rr.rr .rr-boton-sec:hover:not(:disabled) { background: var(--rr-libre); }
.rr.rr .rr-boton-peligro { background: var(--rr-error); }
.rr.rr .rr-boton-peligro:hover:not(:disabled) { background: #912018; }

/* Confirmación y gestión */
.rr.rr .rr-listo { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.rr.rr .rr-sello { width: 64px; height: 64px; border-radius: 50%; background: var(--rr-acento); color: #fff; display: grid; place-items: center; }
.rr.rr .rr-sello .rr-ico { width: 32px; height: 32px; stroke-width: 2.4; }
.rr.rr .rr-listo-cancelada .rr-sello { background: #c3c7cc; }
.rr.rr .rr-tarjeta { width: 100%; text-align: left; background: var(--rr-fondo); border-radius: var(--rr-radio); padding: 20px 22px; display: grid; gap: 10px; margin: 4px 0 8px; }
.rr.rr .rr-tarjeta-titulo { font-size: 18px; font-weight: 600; color: var(--rr-tinta); }
.rr.rr .rr-tachada .rr-resumen-fecha strong { text-decoration: line-through; }
.rr.rr .rr-estado { justify-self: start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: #e6f4d7; color: #3d6a0c; }
.rr.rr .rr-estado-cancelada { background: #eceef0; color: var(--rr-suave); }
.rr.rr .rr-pie a { color: var(--rr-marca); font-weight: 500; }
.rr.rr .rr-legal { margin: -4px 0 0; font-size: 13px; color: var(--rr-suave); }
.rr.rr .rr-legal a { color: var(--rr-marca); text-decoration: underline; text-underline-offset: 2px; }
.rr.rr .rr-legal a:hover, .rr.rr .rr-legal a:focus { color: var(--rr-marca-2); }
.rr.rr .rr-vacio { text-align: center; padding: 40px 12px; display: grid; gap: 12px; justify-items: center; max-width: 520px; margin: 0 auto; }
.rr.rr .rr-vacio h3 { font-size: 20px; font-weight: 500; }

/* Cargando */
.rr.rr .rr-cargando { display: grid; place-items: center; gap: 14px; padding: 80px 0; color: var(--rr-suave); }
.rr.rr .rr-giro { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--rr-libre); border-top-color: var(--rr-marca); animation: rr-giro .8s linear infinite; }
@keyframes rr-giro { to { transform: rotate(360deg); } }

/* Ventana para los enlaces a #book */
.rr-sin-scroll { overflow: hidden; }
/* Anclada arriba (no centrada) para que no brinque al cambiar de paso y de alto. */
.rr-ventana { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 2 * max(24px, 5vh)); margin: max(24px, 5vh) auto auto; padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(25, 20, 26, .35); overflow: auto; overscroll-behavior: contain; }
.rr-ventana::backdrop { background: rgba(25, 20, 26, .55); }
.rr-ventana .rr-ventana-contenido:focus { outline: none; }
.rr-ventana .rr-ventana-barra { position: sticky; top: 0; height: 0; z-index: 3; }
.rr-ventana.rr-ventana button.rr-cerrar, .rr-ventana.rr-ventana button.rr-cerrar:hover, .rr-ventana.rr-ventana button.rr-cerrar:focus { position: absolute; top: 16px; right: 16px; margin: 0; padding: 0; width: 40px; height: 40px; min-height: 0; border-radius: 50%; border: 0; background: #f1eef2; color: #1f1f1f; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: none; cursor: pointer; transition: background .15s; }
.rr-ventana.rr-ventana button.rr-cerrar svg { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rr-ventana.rr-ventana button.rr-cerrar:focus { outline: none; }
.rr-ventana.rr-ventana button.rr-cerrar:focus-visible { outline: 3px solid #25798f; outline-offset: 2px; }

/* Estados explícitos: el tema y el kit de Elementor pintan button:hover/:focus de otro color. */
.rr.rr button { text-transform: none; letter-spacing: normal; box-shadow: none; text-decoration: none; }
.rr.rr .rr-hora:focus { background: #fff; color: var(--rr-marca); border-color: var(--rr-marca-2); }
.rr.rr .rr-hora:hover { background: var(--rr-marca); color: #fff; border-color: var(--rr-marca); }
.rr.rr .rr-dia-libre:focus { background: var(--rr-libre); color: var(--rr-marca); }
.rr.rr .rr-dia-libre:hover { background: #d3e6ea; color: var(--rr-marca); }
.rr.rr .rr-dia[aria-pressed="true"], .rr.rr .rr-dia[aria-pressed="true"]:hover, .rr.rr .rr-dia[aria-pressed="true"]:focus { background: var(--rr-marca); color: #fff; }
.rr.rr .rr-dia:disabled, .rr.rr .rr-dia:disabled:hover { background: transparent; color: #a3a8ae; }
.rr.rr .rr-volver, .rr.rr .rr-volver:hover, .rr.rr .rr-volver:focus { background: none; color: var(--rr-marca); border: 0; }
.rr.rr .rr-volver:hover { text-decoration: underline; }
.rr.rr .rr-boton:focus { background: var(--rr-marca); color: #fff; }
.rr.rr .rr-boton:hover:not(:disabled) { background: var(--rr-marca-2); color: #fff; }
.rr.rr .rr-boton-sec, .rr.rr .rr-boton-sec:focus { background: #fff; color: var(--rr-marca); }
.rr.rr .rr-boton-sec:hover:not(:disabled) { background: var(--rr-libre); color: var(--rr-marca); }
.rr.rr .rr-boton-peligro, .rr.rr .rr-boton-peligro:focus { background: var(--rr-error); color: #fff; }
.rr.rr .rr-boton-peligro:hover:not(:disabled) { background: #912018; color: #fff; }
.rr.rr .rr-mes-cab button:focus { background: var(--rr-libre); color: var(--rr-marca); }
.rr.rr .rr-mes-cab button:hover:not(:disabled) { background: #d3e6ea; color: var(--rr-marca); }
.rr.rr .rr-mes-cab button:disabled, .rr.rr .rr-mes-cab button:disabled:hover { background: transparent; color: #c3c7cc; }
.rr-ventana.rr-ventana button.rr-cerrar:hover { background: #e3dee5; }

@media (max-width: 720px) {
  .rr.rr .rr-reja, .rr.rr .rr-reja-form { grid-template-columns: 1fr; }
  .rr.rr .rr-horas-lista { max-height: none; grid-template-columns: repeat(2, 1fr); }
  .rr.rr .rr-cuerpo { border-radius: 16px; }
  .rr-ventana { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  /* En móvil la barra sí ocupa alto: la X ya no tapa el título. */
  .rr-ventana .rr-ventana-barra { height: 60px; background: #fff; }
  .rr-ventana.rr-ventana button.rr-cerrar, .rr-ventana.rr-ventana button.rr-cerrar:hover, .rr-ventana.rr-ventana button.rr-cerrar:focus { top: 10px; right: 12px; }
  .rr-ventana .rr.rr .rr-cuerpo { padding-top: 4px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .rr.rr .rr-col-horas { scroll-margin-top: 72px; }
  .rr.rr .rr-acciones .rr-boton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rr.rr *, .rr *::before, .rr *::after { animation-duration: .01ms !important; transition: none !important; }
}
