/* Booking pop-up: opens from every "Agendar…" link and sends the request by WhatsApp. */
.ag-root { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; box-sizing: border-box; visibility: hidden; pointer-events: none; }
.ag-root.open { visibility: visible; pointer-events: auto; }
.ag-back { position: absolute; inset: 0; background: rgba(6, 22, 15, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s ease; }
.ag-root.open .ag-back { opacity: 1; }

.ag-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box;
  padding: 28px 26px 24px; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, #1F5A3F 0%, #123826 55%, #0A2219 100%);
  border: 1px solid rgba(195, 213, 138, .22); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  font-family: 'Manrope', system-ui, sans-serif;
  opacity: 0; translate: 0 40px; scale: .96; clip-path: inset(30% 0 0 0 round 28px);
  transition: opacity .55s ease, translate .8s cubic-bezier(.16, 1, .3, 1), scale .8s cubic-bezier(.16, 1, .3, 1), clip-path .8s cubic-bezier(.65, 0, .35, 1);
}
.ag-root.open .ag-card { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0 round 28px); }
.ag-card > * { transition: opacity .6s ease, translate .7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(.12s + var(--k, 0) * .06s); }
.ag-root:not(.open) .ag-card > * { opacity: 0; translate: 0 14px; transition-delay: 0s; }

.ag-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; transition: rotate .5s cubic-bezier(.16, 1, .3, 1), background-color .3s; }
.ag-x:hover { rotate: 90deg; background: rgba(255, 255, 255, .14); }
.ag-logo { width: 42px; height: 42px; display: block; margin-bottom: 14px; }
.ag-t { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; margin: 0 48px 6px 0; }
.ag-t em { color: #B9CA8A; font-weight: 400; }
.ag-s { font-size: 14px; line-height: 1.55; color: #C9D3BF; margin: 0 0 20px; }
.ag-f { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.ag-l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C9D3BF; margin-bottom: 7px; padding: 0; }
.ag-l b { color: #D3E39C; }
.ag-l i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: #9FB09A; }
.ag-in { width: 100%; box-sizing: border-box; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .95); color: #13261D; font: 600 16px Manrope, system-ui, sans-serif; padding: 0 16px; transition: box-shadow .4s, border-color .4s; }
.ag-in:focus { outline: none; box-shadow: 0 0 0 4px rgba(169, 192, 106, .4); }
.ag-in.bad { border-color: #F2C9A8; box-shadow: 0 0 0 3px rgba(242, 201, 168, .35); }
.ag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ag-seg { height: 46px; border-radius: 14px; cursor: pointer; font: 700 14px Manrope, system-ui, sans-serif; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); transition: background-color .45s, color .45s, border-color .45s, transform .35s cubic-bezier(.16, 1, .3, 1); }
.ag-seg:hover { border-color: #A9C06A; }
.ag-seg:active { transform: scale(.96); }
.ag-seg[aria-pressed="true"] { background: #A9C06A; color: #0F2E22; border-color: #A9C06A; }
.ag-f.bad .ag-seg { border-color: #F2C9A8; }
.ag-err { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #F2C9A8; min-height: 0; }
.ag-err:empty { display: none; }
.ag-go { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 8px 24px 8px 8px; border: 0; border-radius: 999px; background: #fff; color: #0F2E22; font: 800 16px Manrope, system-ui, sans-serif; cursor: pointer; margin-top: 6px; transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
.ag-go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.ag-go span { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.6px solid #A9C06A; background: #0F2E22; color: #C3D58A; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ag-note { text-align: center; font-size: 12px; color: #9FB09A; margin: 12px 0 0; }
.ag-shake { animation: agShake .5s ease; }
@keyframes agShake { 25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
html.ag-lock, html.ag-lock body { overflow: hidden; }

@media (max-width: 560px) {
  .ag-root { place-items: end center; padding: 0; }
  .ag-card { max-width: none; border-radius: 26px 26px 0 0; max-height: 92dvh; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); clip-path: inset(0 0 0 0 round 26px 26px 0 0); translate: 0 100%; scale: 1; }
  .ag-root.open .ag-card { clip-path: inset(0 0 0 0 round 26px 26px 0 0); }
  .ag-t { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-back, .ag-card, .ag-card > *, .ag-x, .ag-seg, .ag-go { transition: none !important; animation: none !important; }
}
