/* Alobri — página de demo: agenda propia, captura de leads y brochures por país.
   Usa los tokens de site.css (claro/oscuro) y solo agrega los componentes de esta página. */
.ag-hero .h1 { font-size: 52px; }
.ag-steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-steps-mini li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ag-steps-mini .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accentSoft); color: var(--accent); font: 700 15px "JetBrains Mono", monospace; }
.ag-steps-mini b { display: block; font-size: 16px; }
.ag-steps-mini span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.ag-app { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ag-panel { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ag-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.ag-stepper { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.ag-stepper button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.ag-stepper button .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--subtle); font: 700 12px "JetBrains Mono", monospace; }
.ag-stepper button[aria-current="step"] { border-color: var(--accent); color: var(--text); }
.ag-stepper button[aria-current="step"] .n { background: var(--accent); color: var(--onAccent); }
.ag-stepper button.done .n { background: var(--ok); color: #fff; }
.ag-stepper button:disabled { cursor: default; opacity: .6; }
.ag-step { display: none; flex-direction: column; gap: 18px; }
.ag-step.on { display: flex; }
.ag-step h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ag-label { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ag-label small { font-weight: 500; color: var(--muted); font-size: 13px; }
.ag-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text); }
.ag-chip .flag { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); }
.ag-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accentSoft); color: var(--accent); }
.ag-chip[aria-pressed="true"] .flag { color: var(--accent); }
.ag-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ag-field { display: flex; flex-direction: column; gap: 6px; }
.ag-field label { font-size: 14px; font-weight: 700; }
.ag-field input, .ag-field select, .ag-field textarea { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; }
.ag-field textarea { padding: 12px 14px; min-height: 84px; resize: vertical; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ag-field [aria-invalid="true"] { border-color: #DC2626; }
.ag-field .err { font-size: 13px; color: #DC2626; display: none; }
.ag-field [aria-invalid="true"] ~ .err { display: block; }
.ag-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.ag-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ag-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ag-consent a { color: var(--accent); text-decoration: underline; }
.ag-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ag-actions .btn { min-width: 180px; }
.ag-channel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ag-channel button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; min-height: 64px; }
.ag-channel button b { display: block; font-size: 15px; }
.ag-channel button span { font-size: 13px; color: var(--muted); }
.ag-channel button svg { flex: none; }
.ag-channel button[aria-pressed="true"] { border-color: var(--accent); background: var(--accentSoft); }
.ag-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.ag-day { flex: none; scroll-snap-align: start; width: 86px; min-height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ag-day small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.ag-day b { font-size: 22px; font-weight: 800; }
.ag-day em { font-style: normal; font-size: 11px; color: var(--ok); font-weight: 700; }
.ag-day[disabled] { opacity: .45; cursor: default; }
.ag-day[disabled] em { color: var(--muted); }
.ag-day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--onAccent); }
.ag-day[aria-pressed="true"] small, .ag-day[aria-pressed="true"] em { color: var(--onAccent); }
.ag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ag-slot { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 700 15px "JetBrains Mono", monospace; cursor: pointer; }
.ag-slot:hover { border-color: var(--accent); }
.ag-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.ag-tz { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ag-tz select { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 8px; max-width: 260px; }
.ag-slots.is-embed { display: block; }
.ag-embed-t { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.ag-embed { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ag-embed iframe { display: block; width: 100%; height: 680px; border: 0; }
.ag-embed-l { margin: 10px 0 0; font-size: 13px; }
.ag-embed-l a { color: var(--muted); }
@media (max-width: 640px) { .ag-embed iframe { height: 760px; } }
.ag-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.ag-skel { height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--subtle), var(--line), var(--subtle)); background-size: 200% 100%; animation: agsk 1.2s infinite; }
@keyframes agsk { to { background-position: -200% 0; } }
.ag-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; display: none; }
.ag-msg.show { display: block; }
.ag-msg.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ag-msg.ok { background: var(--okSoft); color: var(--ok); }
[data-theme="dark"] .ag-msg.err { background: #2A1215; color: #FCA5A5; border-color: #4C1D24; }
.ag-done { text-align: left; }
.ag-done .big { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--okSoft); color: var(--ok); }
.ag-done .big svg { flex: none; }
.ag-done .big b { font-size: 18px; display: block; color: var(--text); }
.ag-done .big span { color: var(--muted); font-size: 14px; }
.ag-sum { display: grid; gap: 10px; font-size: 14px; }
.ag-sum div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ag-sum div:last-child { border-bottom: 0; padding-bottom: 0; }
.ag-sum dt, .ag-sum span { color: var(--muted); }
.ag-sum b { text-align: right; }
.ag-price { padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; }
.ag-price .k { font: 500 12px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #A9ABFF; }
.ag-price .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.ag-price .u { font-size: 13px; color: #C3C6DE; }
.ag-price select { margin-top: 10px; width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid #2E3354; background: #11141E; color: #fff; padding: 0 10px; }
.ag-wa { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.ag-wa p { font-size: 14px; color: var(--muted); }
.ag-wa b { color: var(--text); display: block; font-size: 15px; }

.br-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.br-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.br-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.br-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.br-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.br-card h3 { font-size: 19px; font-weight: 800; }
.br-card .meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.br-card .meta b { color: var(--text); }
.br-card .btn { min-height: 46px; font-size: 15px; }
.br-card.all { background: var(--ink); color: #fff; border-color: var(--ink); }
.br-card.all .meta, .br-card.all .meta b { color: #C3C6DE; }
.br-cover { aspect-ratio: 17 / 22; border-radius: 10px; overflow: hidden; background: var(--photo); position: relative; }
.br-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-cover .lbl { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-weight: 800; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.br-lock { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.br-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-modal { position: fixed; inset: 0; background: rgba(7,9,15,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 80; }
.ag-modal.show { display: flex; }
.ag-modal .box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: 20px; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ag-modal .x { align-self: flex-end; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: 20px; }
.ag-preview { display: none; padding: 10px 14px; border-radius: 12px; background: var(--orangeSoft); color: var(--orangeText); font-size: 13px; font-weight: 600; }
.ag-preview.show { display: block; }

@media (max-width: 1000px) {
  .ag-app { grid-template-columns: 1fr; }
  .ag-side { position: static; }
}
@media (max-width: 760px) {
  .ag-hero .h1 { font-size: 36px; }
  .ag-panel { padding: 18px; border-radius: 18px; }
  .ag-row, .ag-row3, .ag-channel { grid-template-columns: 1fr; }
  .ag-actions .btn { width: 100%; }
  .ag-step h2 { font-size: 22px; }
}

/* Selector de países desplegable (sustituye a los chips) */
.ag-ms { position: relative; max-width: 420px; }
.ag-ms-btn { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; cursor: pointer; }
.ag-ms-btn::-webkit-details-marker { display: none; }
.ag-ms-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.ag-ms[open] .ag-ms-btn { border-color: var(--accent); }
.ag-ms-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.ag-ms-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.ag-ms-opt:hover { background: var(--accentSoft); }
.ag-ms-opt input { width: 16px; height: 16px; margin: 0; }
.ag-ms-opt .flag { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); width: 22px; }
