/* Formulario de reservas WawaBe. Todo va dentro de .wwr para no chocar con el tema. */
.wwr {
  --wwr-morado: #544bb4;
  --wwr-morado-osc: #433a9c;
  --wwr-morado-suave: #eeecfb;
  --wwr-rosa: #f68ebf;
  --wwr-amarillo: #f5b133;
  --wwr-texto: #2b2560;
  --wwr-gris: #7a76a3;
  --wwr-linea: #e7e4f5;
  --wwr-verde-wa: #25d366;
  max-width: 720px;
  margin: 0 auto;
  color: var(--wwr-texto);
  font-family: inherit;
}
.wwr *, .wwr *::before, .wwr *::after { box-sizing: border-box; }
.wwr [hidden] { display: none !important; }

.wwr .wwr-paso {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  margin: 0 0 16px;
  box-shadow: 0 6px 24px rgba(84, 75, 180, .10);
  border: 1px solid var(--wwr-linea);
  scroll-margin-top: 90px;
}
.wwr h3 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: var(--wwr-morado);
}
.wwr h3 span {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--wwr-morado); color: #fff; font-size: .95rem;
}

/* minmax(0, 1fr): sin esto un texto largo ensancha la columna y se sale del cuadro */
.wwr .wwr-opciones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.wwr button.wwr-opcion {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 100%; min-width: 0;
  white-space: normal; overflow-wrap: anywhere; height: auto;
  padding: 14px 16px; margin: 0; text-align: left;
  background: #fff; color: var(--wwr-texto);
  border: 2px solid var(--wwr-linea); border-radius: 16px;
  font: inherit; line-height: 1.3; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wwr button.wwr-opcion:hover { border-color: #cfc9f1; background: #faf9ff; }
.wwr button.wwr-opcion.activa { border-color: var(--wwr-morado); background: var(--wwr-morado-suave); }
.wwr .wwr-opcion > span:not(.wwr-icono):not(.wwr-precio) { flex: 1; min-width: 0; }
.wwr .wwr-opcion b { display: block; font-size: 1.02rem; }
.wwr .wwr-opcion small { display: block; color: var(--wwr-gris); font-size: .85rem; margin-top: 2px; }
.wwr .wwr-icono { font-size: 1.8rem; flex: none; }
.wwr .wwr-precio { flex: none; max-width: 45%; text-align: right; font-weight: 800; color: var(--wwr-morado); }

.wwr .wwr-campo { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; margin: 0 0 12px; font-weight: 700; font-size: .9rem; color: var(--wwr-morado); }
.wwr .wwr-campo input, .wwr .wwr-campo textarea {
  width: 100%; max-width: 100%; min-width: 0; margin: 0; min-height: 44px;
  -webkit-appearance: none; appearance: none;
  border: 2px solid var(--wwr-linea); border-radius: 12px;
  padding: 10px 12px; font: inherit; font-weight: 400; color: var(--wwr-texto); background: #fff;
}
.wwr .wwr-campo input:focus, .wwr .wwr-campo textarea:focus { outline: none; border-color: var(--wwr-morado); box-shadow: 0 0 0 4px var(--wwr-morado-suave); }
.wwr .wwr-fila { display: flex; gap: 12px; flex-wrap: wrap; }

.wwr .wwr-horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 8px; }
.wwr button.wwr-horario {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px; margin: 0; background: #fff; color: var(--wwr-texto);
  border: 2px solid var(--wwr-linea); border-radius: 14px; font: inherit; cursor: pointer;
}
.wwr button.wwr-horario small { color: var(--wwr-gris); font-size: .78rem; }
.wwr button.wwr-horario:hover:not(:disabled) { border-color: #cfc9f1; }
.wwr button.wwr-horario.activa { background: var(--wwr-morado); border-color: var(--wwr-morado); color: #fff; }
.wwr button.wwr-horario.activa small { color: #e6e3ff; }
.wwr button.wwr-horario:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.wwr .wwr-contador { display: flex; align-items: center; gap: 10px; }
.wwr .wwr-contador button {
  width: 42px; height: 42px; padding: 0; margin: 0; border-radius: 50%;
  border: none; background: var(--wwr-morado-suave); color: var(--wwr-morado);
  font-size: 1.4rem; font-weight: 800; line-height: 1; cursor: pointer;
}
.wwr .wwr-contador output { min-width: 32px; text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--wwr-texto); }

.wwr .wwr-aviso, .wwr .wwr-nota { color: var(--wwr-gris); font-size: .9rem; margin: 6px 0 10px; }
.wwr .wwr-error { color: #c62839; font-weight: 700; margin: 10px 0; }
.wwr .wwr-error:empty { display: none; }
.wwr .wwr-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wwr .wwr-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: .85rem; color: var(--wwr-gris); cursor: pointer; }
.wwr .wwr-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--wwr-morado); }
.wwr .wwr-promo { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff7e6; border: 2px dashed var(--wwr-amarillo); color: var(--wwr-texto); font-weight: 600; }

.wwr .wwr-resumen {
  background: linear-gradient(120deg, var(--wwr-morado-suave), #fde8f1 60%, #fdf1dc);
  border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; line-height: 1.6;
}
.wwr .wwr-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #cfc9f1; margin-top: 8px; padding-top: 8px; }
.wwr .wwr-total b { font-size: 1.25rem; color: var(--wwr-morado); }

.wwr .wwr-btn {
  display: block; width: 100%; padding: 14px 20px; margin: 0;
  background: var(--wwr-morado); color: #fff !important; text-align: center; text-decoration: none;
  border: none; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 6px 16px rgba(84, 75, 180, .3);
}
.wwr .wwr-btn:hover { background: var(--wwr-morado-osc); }
.wwr .wwr-btn:disabled { opacity: .6; cursor: wait; }
.wwr .wwr-btn-wa { background: var(--wwr-verde-wa); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.wwr .wwr-btn-wa:hover { background: #1fb457; }
.wwr button.wwr-enlace { display: block; margin: 14px auto 0; background: none; border: none; color: var(--wwr-morado); text-decoration: underline; font: inherit; cursor: pointer; }

.wwr .wwr-exito { background: #fff; border-radius: 22px; padding: 26px 22px; text-align: center; box-shadow: 0 6px 24px rgba(84, 75, 180, .12); }
.wwr .wwr-exito .wwr-resumen { text-align: left; margin-top: 16px; }
.wwr .wwr-codigo {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--wwr-amarillo); color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: .08em;
}
.wwr .wwr-exito h3 { justify-content: center; margin-top: 14px; }

@media (max-width: 520px) {
  .wwr .wwr-paso { padding: 16px; border-radius: 18px; }
  .wwr .wwr-fila { flex-direction: column; gap: 0; }
}
