/* Poly Reservas — el tema puede cambiar estos colores con --pres-* */
.pres-app {
	--pres-accent: var(--wp--preset--color--accent, #1f1f1f);
	--pres-accent-text: var(--wp--preset--color--base, #fff);
	--pres-border: color-mix(in srgb, currentColor 18%, transparent);
	--pres-soft: color-mix(in srgb, currentColor 5%, transparent);
	--pres-radius: 12px;
	max-width: 760px;
	margin-inline: auto;
}
.pres-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pres-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: pres; flex-wrap: wrap; }
.pres-steps li { counter-increment: pres; display: flex; align-items: center; gap: .4rem; font-size: .85rem; opacity: .55; }
.pres-steps li::before { content: counter(pres); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; }
.pres-steps li.is-active { opacity: 1; font-weight: 600; }
.pres-steps li.is-active::before { background: var(--pres-accent); color: var(--pres-accent-text); border-color: var(--pres-accent); }
.pres-steps li.is-done { opacity: .85; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pres-steps li + li::after { content: none; }
.pres-cat { font-size: 1rem; margin: 1.5rem 0 .6rem; }
.pres-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.pres-option { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; border: 1px solid var(--pres-border); border-radius: var(--pres-radius); background: var(--pres-soft); transition: border-color .15s, transform .15s; }
.pres-option:hover, .pres-option:focus-visible { border-color: var(--pres-accent); transform: translateY(-1px); }
.pres-option:focus-visible { outline: 2px solid var(--pres-accent); outline-offset: 2px; }
.pres-option-title { font-weight: 600; }
.pres-option-meta { font-size: .85rem; opacity: .75; font-variant-numeric: tabular-nums; }
.pres-option-desc { font-size: .85rem; opacity: .7; line-height: 1.4; }
.pres-person { flex-direction: row; align-items: center; gap: .8rem; }
.pres-person img, .pres-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.pres-avatar { display: grid; place-items: center; background: var(--pres-accent); color: var(--pres-accent-text); font-weight: 600; }
.pres-person-text { display: flex; flex-direction: column; gap: .15rem; }
.pres-summary { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-left: 3px solid var(--pres-accent); background: var(--pres-soft); border-radius: 0 var(--pres-radius) var(--pres-radius) 0; }
.pres-summary span { font-size: .9rem; opacity: .8; }
.pres-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.pres-weeklabel { font-weight: 600; font-variant-numeric: tabular-nums; }
.pres-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin-bottom: 1.25rem; }
.pres-day { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: .55rem 0; border: 1px solid var(--pres-border); border-radius: var(--pres-radius); }
.pres-day-name { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.pres-day-num { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pres-day.is-selected { background: var(--pres-accent); color: var(--pres-accent-text); border-color: var(--pres-accent); }
.pres-day.is-selected .pres-day-name { opacity: .9; }
.pres-day.is-empty { opacity: .35; cursor: default; }
.pres-day:focus-visible { outline: 2px solid var(--pres-accent); outline-offset: 2px; }
.pres-slots-title { font-weight: 600; margin: 0 0 .6rem; }
.pres-slots-title::first-letter, .pres-done-when::first-letter { text-transform: uppercase; }
.pres-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.pres-slot { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: .6rem 0; border: 1px solid var(--pres-border); border-radius: 999px; font-variant-numeric: tabular-nums; }
.pres-slot:hover, .pres-slot:focus-visible { background: var(--pres-accent); color: var(--pres-accent-text); border-color: var(--pres-accent); }
.pres-form { display: grid; gap: 1rem; max-width: 480px; }
.pres-field { display: flex; flex-direction: column; gap: .3rem; }
.pres-label { font-size: .9rem; font-weight: 600; }
.pres-field input, .pres-field textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--pres-border); border-radius: 8px; background: transparent; color: inherit; }
.pres-field input:focus, .pres-field textarea:focus { outline: 2px solid var(--pres-accent); outline-offset: 1px; }
.pres-hint, .pres-policy { font-size: .8rem; opacity: .7; margin: 0; }
.pres-trap { position: absolute !important; left: -9999px !important; }
.pres-button { font: inherit; font-weight: 600; cursor: pointer; padding: .85rem 1.6rem; border: 0; border-radius: 999px; background: var(--pres-accent); color: var(--pres-accent-text); justify-self: start; }
.pres-button:disabled { opacity: .6; cursor: wait; }
.pres-button-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.pres-link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pres-link:disabled { opacity: .35; cursor: default; text-decoration: none; }
.pres-muted { opacity: .7; }
.pres-error { color: #b42318; min-height: 1em; margin: 0; }
.pres-done { display: flex; flex-direction: column; gap: .4rem; padding: 2rem; border: 1px solid var(--pres-border); border-radius: var(--pres-radius); }
.pres-done-kicker { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pres-done-title { margin: 0; }
.pres-done-when { margin: 0; font-size: 1.15rem; font-weight: 600; }
@media (max-width: 520px) {
	.pres-days { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
	.pres-steps li:not(.is-active) { font-size: 0; gap: 0; }
	.pres-steps li:not(.is-active)::before { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .pres-option { transition: none; } }
