/* Agenda en línea de Propulse (tarjeta clara que funciona sobre fondos oscuros y claros) */
.agenda-widget-wrap { max-width: 760px; margin: 34px auto 0; text-align: left; }
.cal-wrap-w { margin: 18px 0 6px; }
.ag { --ag-ink: #0B1220; --ag-muted: #5B6578; --ag-line: #E3E8F0; --ag-blue: #2E5BFF; --ag-green: #12C77F; --ag-soft: #F4F7FB; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ag-ink); width: 100%; text-align: left; }
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
.ag-card { background: #fff; border-radius: 22px; border: 1px solid var(--ag-line); padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 80px -40px rgba(8, 14, 32, .55); }
.ag-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ag-head strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.ag-head span { font-size: .82rem; color: var(--ag-muted); }
.ag-primero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; border: 1.5px solid rgba(18, 199, 127, .45); background: linear-gradient(120deg, rgba(46, 91, 255, .06), rgba(18, 199, 127, .1)); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; margin-bottom: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.ag-primero:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(18, 199, 127, .8); }
.ag-primero-t { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0b8f5a; }
.ag-primero b { font-size: .98rem; flex: 1 1 auto; }
.ag-primero i { font-style: normal; font-weight: 800; color: var(--ag-blue); font-size: .86rem; }
.ag-diasbox { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ag-dias { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px; flex: 1; scrollbar-width: none; }
.ag-dias::-webkit-scrollbar { display: none; }
.ag-nav { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ag-nav:hover { background: var(--ag-soft); }
.ag-dia { flex: 0 0 62px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0; border-radius: 14px; border: 1.5px solid var(--ag-line); background: #fff; cursor: pointer; font: inherit; color: var(--ag-ink); transition: border-color .15s ease, background .15s ease; }
.ag-dia small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ag-muted); }
.ag-dia b { font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.ag-dia:hover { border-color: var(--ag-blue); }
.ag-dia.is-on { background: var(--ag-ink); border-color: var(--ag-ink); color: #fff; }
.ag-dia.is-on small { color: rgba(255, 255, 255, .7); }
.ag-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.ag-hora { padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--ag-line); background: #fff; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ag-ink); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.ag-hora:hover { border-color: var(--ag-green); background: rgba(18, 199, 127, .1); color: #0b8f5a; transform: translateY(-1px); }
.ag-resumen { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ag-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.ag-resumen small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ag-muted); }
.ag-resumen b { display: block; font-size: .98rem; margin: 2px 0; }
.ag-resumen span { font-size: .78rem; color: var(--ag-muted); }
.ag-link { border: 0; background: none; color: var(--ag-blue); font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; text-decoration: underline; flex-shrink: 0; }
.ag-form { display: grid; gap: 12px; }
.ag-form label { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--ag-muted); }
.ag-form label small { font-weight: 500; }
.ag-form input[type="text"], .ag-form input[type="tel"], .ag-form input[type="email"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ag-line); background: #fff; font: inherit; font-size: 16px; color: var(--ag-ink); }
.ag-form input:focus { outline: 0; border-color: var(--ag-blue); box-shadow: 0 0 0 3px rgba(46, 91, 255, .14); }
.ag-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.4; }
.ag-consent input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--ag-blue); }
.ag-consent a { color: var(--ag-blue); text-decoration: underline; }
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFECEC; color: #B3261E; font-size: .84rem; font-weight: 700; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.ag-btn-main { background: linear-gradient(120deg, var(--ag-blue), #1ba8d8 55%, var(--ag-green)); color: #fff; box-shadow: 0 14px 30px -14px rgba(46, 91, 255, .8); width: 100%; }
.ag-btn-main:hover { transform: translateY(-1px); }
.ag-btn-main:disabled { opacity: .7; cursor: default; transform: none; }
.ag-btn-sec { background: var(--ag-soft); color: var(--ag-ink); border: 1px solid var(--ag-line); }
.ag-btn-wa { background: #25D366; color: #06210f; }
.ag-foot { margin: 0; text-align: center; font-size: .76rem; color: var(--ag-muted); }
.ag-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ag-giro .7s linear infinite; }
.is-loading .ag-spin { display: inline-block; }
.is-loading span { opacity: .85; }
.ag-load { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 54px 10px; color: var(--ag-muted); font-weight: 600; font-size: .92rem; }
.ag-load .ag-spin { display: inline-block; border-color: var(--ag-line); border-top-color: var(--ag-blue); width: 22px; height: 22px; }
.ag-err { text-align: center; padding: 30px 6px; display: grid; gap: 14px; justify-items: center; }
.ag-err p { margin: 0; color: var(--ag-muted); font-weight: 600; }
.ag-ok { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.ag-ok h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.ag-ok p { margin: 0; color: var(--ag-muted); font-size: .92rem; }
.ag-ok-fecha { font-size: 1.1rem !important; color: var(--ag-ink) !important; font-weight: 800; }
.ag-ok-fecha small { font-weight: 600; color: var(--ag-muted); }
.ag-check svg { width: 56px; height: 56px; fill: none; stroke: var(--ag-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ag-check circle { fill: rgba(18, 199, 127, .12); }
.ag-tip { text-align: left; background: rgba(46, 91, 255, .06); border: 1px solid rgba(46, 91, 255, .18); border-radius: 14px; padding: 12px 14px; font-size: .86rem; color: var(--ag-ink); line-height: 1.5; margin-top: 4px; }
.ag-tip b { display: block; margin-bottom: 3px; color: var(--ag-blue); }
@keyframes ag-giro { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .ag-card { border-radius: 18px; }
  .ag-horas { grid-template-columns: repeat(3, 1fr); max-height: 300px; }
  .ag-nav { display: none; }
  .ag-primero i { width: 100%; }
}

.ag-hora { white-space: nowrap; }
@media (max-width: 520px) { .ag-hora { font-size: .84rem; padding: 11px 2px; } }
