/*
 * Incubadora · Reservas — estructura mínima de los bloques en la web.
 * El aspecto lo pone el tema con estas variables (todas opcionales):
 *   --ib-color-texto, --ib-color-suave, --ib-color-acento, --ib-color-sobre-acento, --ib-color-ok, --ib-color-error,
 *   --ib-color-fondo-suave, --ib-color-borde, --ib-color-campo, --ib-fuente-titulos, --ib-radio, --ib-radio-campos
 */
:where(.ib-reservar, .ib-bono, .ib-servicios) {
  --_texto: var(--ib-color-texto, currentColor);
  --_suave: var(--ib-color-suave, color-mix(in srgb, currentColor 65%, transparent));
  --_acento: var(--ib-color-acento, #1b1b1b);
  --_sobre: var(--ib-color-sobre-acento, #fff);
  --_ok: var(--ib-color-ok, #1a8a53);
  --_error: var(--ib-color-error, #b3261e);
  --_borde: var(--ib-color-borde, color-mix(in srgb, currentColor 22%, transparent));
  --_fondo: var(--ib-color-fondo-suave, color-mix(in srgb, currentColor 5%, transparent));
  --_campo: var(--ib-color-campo, #fff);
  --_titulos: var(--ib-fuente-titulos, inherit);
  --_radio: var(--ib-radio, 12px);
  --_radio-c: var(--ib-radio-campos, 8px);
}
.ib-reservar, .ib-bono { color: var(--_texto); }
.ib-reservar [hidden], .ib-bono [hidden] { display: none !important; }
.ib-form { display: flex; flex-direction: column; gap: 1.5em; }
.ib-paso { border: 0; margin: 0; padding: 0; min-width: 0; }
.ib-paso[hidden] { display: none; }
.ib-paso > legend { font-weight: 700; margin-bottom: .65em; padding: 0; font-size: 1.05em; font-family: var(--_titulos); }
.ib-opciones { display: flex; flex-wrap: wrap; gap: .5em; }
.ib-dias { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4em; scroll-snap-type: x proximity; }
.ib-opcion { font: inherit; min-width: 2.9em; min-height: 2.9em; padding: .45em .8em; border: 1px solid var(--_borde); border-radius: var(--_radio-c); background: transparent; color: inherit; cursor: pointer; line-height: 1.2; }
.ib-opcion--dia { flex: none; scroll-snap-align: start; white-space: nowrap; }
.ib-opcion--hora { display: inline-flex; flex-direction: column; align-items: center; gap: .1em; }
.ib-opcion__quedan { font-size: .72em; font-weight: 500; opacity: .75; }
.ib-opcion:hover:not(:disabled) { border-color: var(--_acento); }
.ib-opcion[aria-pressed="true"] { background: var(--_acento); border-color: var(--_acento); color: var(--_sobre); font-weight: 700; }
.ib-opcion:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.ib-opcion:focus-visible, .ib-enviar:focus-visible, .ib-tarjeta:focus-visible, .ib-boton-sec:focus-visible { outline: 2px solid var(--_acento); outline-offset: 2px; }
.ib-ayuda { margin: .5em 0 0; font-size: .9em; color: var(--_suave); }

/* Tarjetas de servicio (paso 1 y bloque de cheque regalo) */
.ib-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75em; }
.ib-tarjeta { font: inherit; color: inherit; text-align: start; display: flex; flex-direction: column; gap: .35em; padding: 1em 1.1em; border: 1px solid var(--_borde); border-radius: var(--_radio); background: transparent; cursor: pointer; }
.ib-tarjeta:hover { border-color: var(--_acento); }
.ib-tarjeta[aria-pressed="true"] { border-color: var(--_acento); box-shadow: inset 0 0 0 1px var(--_acento); background: var(--_fondo); }
.ib-tarjeta__nombre { font-weight: 700; font-family: var(--_titulos); font-size: 1.05em; line-height: 1.25; }
.ib-tarjeta__datos { display: flex; flex-wrap: wrap; gap: .2em .8em; font-size: .9em; color: var(--_suave); }
.ib-tarjeta__precio { font-weight: 700; color: var(--_texto); }
.ib-tarjeta__desc { font-size: .88em; color: var(--_suave); line-height: 1.45; }
.ib-elegido { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4em 1em; padding: .8em 1em; border-radius: var(--_radio); background: var(--_fondo); }
.ib-elegido strong { font-family: var(--_titulos); }
.ib-elegido button { font: inherit; font-size: .9em; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Campos */
.ib-datos { display: flex; flex-direction: column; gap: .9em; }
.ib-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .9em; }
.ib-campo { display: flex; flex-direction: column; gap: .3em; }
.ib-campo label { font-weight: 600; font-size: .95em; }
.ib-campo input, .ib-campo textarea, .ib-campo select { font: inherit; padding: .65em .8em; border: 1px solid var(--_borde); border-radius: var(--_radio-c); background: var(--_campo); color: #1b1b1b; width: 100%; box-sizing: border-box; }
.ib-campo small { color: var(--_suave); font-size: .82em; }
.ib-codigo { display: flex; gap: .5em; }
.ib-codigo input { text-transform: uppercase; letter-spacing: .05em; }
.ib-boton-sec { font: inherit; font-weight: 600; padding: .6em 1em; border: 1px solid var(--_borde); border-radius: var(--_radio-c); background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }
.ib-boton-sec:hover { border-color: var(--_acento); }
.ib-codigo__estado { margin: .35em 0 0; font-size: .9em; font-weight: 600; }
.ib-codigo__estado:empty { display: none; }
.ib-codigo__estado.is-ok { color: var(--_ok); }
.ib-codigo__estado.is-error { color: var(--_error); }
.ib-privacidad { display: flex; align-items: flex-start; gap: .6em; font-size: .92em; }
.ib-privacidad input { margin-top: .25em; width: 1.1em; height: 1.1em; flex: none; }
.ib-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ib-condiciones { margin: 0; padding: .8em 1em; border-inline-start: 3px solid var(--_borde); font-size: .9em; color: var(--_suave); white-space: pre-line; }

/* Resumen y pago */
.ib-resumen { padding: 1em 1.1em; border: 1px solid var(--_borde); border-radius: var(--_radio); display: flex; flex-direction: column; gap: .35em; }
.ib-resumen__linea { display: flex; justify-content: space-between; gap: 1em; font-variant-numeric: tabular-nums; }
.ib-resumen__linea--total { margin-top: .3em; padding-top: .5em; border-top: 1px solid var(--_borde); font-weight: 700; font-size: 1.1em; }
.ib-resumen__linea--ahora { font-weight: 700; }
.ib-metodos { display: grid; gap: .5em; }
.ib-metodo { display: flex; align-items: flex-start; gap: .7em; padding: .75em .9em; border: 1px solid var(--_borde); border-radius: var(--_radio-c); cursor: pointer; }
.ib-metodo:has(input:checked) { border-color: var(--_acento); box-shadow: inset 0 0 0 1px var(--_acento); }
.ib-metodo input { margin-top: .2em; flex: none; accent-color: var(--_acento); }
.ib-metodo strong { display: block; }
.ib-metodo small { color: var(--_suave); }
.ib-enviar, .ib-otra { align-self: flex-start; font: inherit; font-weight: 700; padding: .85em 1.7em; border: 0; border-radius: var(--_radio-c); background: var(--_acento); color: var(--_sobre); cursor: pointer; text-decoration: none; display: inline-block; }
.ib-enviar:disabled { opacity: .6; cursor: progress; }
.ib-estado { margin: 0; min-height: 1.2em; font-weight: 600; }
.ib-estado:empty { display: none; }
.ib-estado.is-error { color: var(--_error); }
.ib-hecho { padding: 1.4em; border-radius: var(--_radio); background: var(--_fondo); border-inline-start: 4px solid var(--_ok); }
.ib-hecho.is-pendiente { border-inline-start-color: var(--_acento); }
.ib-hecho p { margin: 0 0 .6em; }
.ib-hecho__titulo { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--_suave); }
.ib-hecho__cuando { font-size: 1.2em; font-weight: 700; }
.ib-hecho__acciones { display: flex; flex-wrap: wrap; gap: .6em; margin-top: .8em; }
.ib-otra { background: transparent; color: inherit; border: 1px solid var(--_borde); }

/* Bloque "Servicios y precios" */
.ib-servicios__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25em; }
.ib-servicio { display: flex; flex-direction: column; border: 1px solid var(--_borde); border-radius: var(--_radio); overflow: hidden; margin: 0; }
.ib-servicio__foto { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ib-servicio__cuerpo { display: flex; flex-direction: column; gap: .45em; padding: 1.1em 1.2em 1.3em; flex: 1; }
.ib-servicio__nombre { margin: 0; font-family: var(--_titulos); }
.ib-servicio__datos { margin: 0; display: flex; flex-wrap: wrap; gap: .2em 1em; color: var(--_suave); }
.ib-servicio__precio { font-weight: 700; color: var(--_texto); }
.ib-servicio__desc { margin: 0; color: var(--_suave); font-size: .95em; line-height: 1.5; }
.ib-servicio__boton { align-self: flex-start; margin-top: auto; padding: .65em 1.3em; border-radius: var(--_radio-c); background: var(--_acento); color: var(--_sobre); font-weight: 700; text-decoration: none; }
.ib-servicio__boton:hover, .ib-servicio__boton:focus { color: var(--_sobre); opacity: .9; }

.ib-reservar--cerrado, .ib-bono--cerrado { padding: 1em 1.2em; border: 1px dashed var(--_borde); border-radius: var(--_radio); color: var(--_suave); }
