/* =========================================================
   Sitio público + flujo de agendado
   ========================================================= */
html { scroll-padding-top: 88px; }
.small { font-size: 14px; }
.center { text-align: center; }

.demo-bar { background: var(--primary-800); color: #E0E7FF; font-size: 13px; padding: 6px 0; text-align: center; }
.demo-bar strong { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); }
.main-nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; transition: color var(--dur-fast), background-color var(--dur-fast); }
.main-nav a:hover { color: var(--primary); background: var(--primary-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle { display: none; }

@media (max-width: 1080px) { .header-phone span { display: none; } .header-phone { min-width: 44px; padding: 0; } }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; inset: 100% 0 auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: var(--s-2) var(--s-4) var(--s-4); }
  .main-nav a { padding: 14px 12px; font-size: 16px; }
}
@media (max-width: 520px) {
  .header-inner { gap: var(--s-2); }
  .brand-text small { display: none; }
  .header-phone { display: none; }
  .brand img { width: 44px; }
  .header-actions .btn-primary { padding: 0 var(--s-3); font-size: 14px; }
  .header-actions .btn-primary .icon { display: none; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--s-16) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: var(--s-10); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .serv-grid h2, .ubi-info h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.cross { position: relative; width: 12px; height: 12px; flex: none; }
.cross::before, .cross::after { content: ''; position: absolute; background: var(--accent); border-radius: 1px; }
.cross::before { left: 4px; top: 0; width: 4px; height: 12px; }
.cross::after { top: 4px; left: 0; width: 12px; height: 4px; }
@media (max-width: 767px) { .section { padding: var(--s-12) 0; } .section-head { margin-bottom: var(--s-8); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-16) 0 var(--s-20); background:
  radial-gradient(ellipse 60% 70% at 85% 20%, rgba(27, 42, 158, .09), transparent 70%),
  radial-gradient(ellipse 40% 50% at 100% 100%, rgba(217, 45, 42, .06), transparent 70%),
  var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(27, 42, 158, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(105deg, transparent 45%, #000 80%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-12); align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: var(--s-5); }
.lead { font-size: 18px; color: var(--text-muted); max-width: 58ch; margin-bottom: var(--s-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); list-style: none; padding: 0; margin: 0; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.trust li { display: flex; align-items: center; gap: var(--s-2); }
.trust .icon { color: var(--primary); }

.next-slots { padding: var(--s-6); box-shadow: var(--shadow-lg); border-radius: var(--r-xl); }
.ns-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.ns-head h2 { display: flex; gap: var(--s-2); align-items: center; font-size: 17px; margin: 0; }
.ns-head h2 .icon { color: var(--primary); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--success); white-space: nowrap; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.ns-list { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.ns-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.ns-item:hover { border-color: var(--primary-100); background: var(--primary-50); }
.ns-date { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--primary-50); color: var(--primary); flex: none; line-height: 1; }
.ns-date b { font-family: var(--font-head); font-size: 20px; }
.ns-date small { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ns-body { flex: 1; min-width: 0; }
.ns-body strong { display: block; font-size: 15px; }
.ns-body span { display: block; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-time { font-family: var(--font-head); font-weight: 700; color: var(--primary); white-space: nowrap; font-size: 15px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); } .hero { padding: var(--s-10) 0 var(--s-12); } }
@media (max-width: 520px) { .hero-cta .btn { width: 100%; } }

.emergency { background: var(--accent-50); border-block: 1px solid #F8CFCF; color: #7F1D1D; }
.emergency-inner { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-3); }
.emergency p { margin: 0; font-size: 15px; }
.emergency .icon { color: var(--accent); }
.emergency a { color: #7F1D1D; font-weight: 700; }

/* ---------- Especialidades ---------- */
.esp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
.esp-card { display: flex; flex-direction: column; height: 100%; padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out); }
.esp-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.esp-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--primary-50); color: var(--primary); margin-bottom: var(--s-4); transition: background-color var(--dur), color var(--dur); }
.esp-card:hover .esp-ico { background: var(--primary); color: #fff; }
.esp-card h3 { font-size: 18px; margin-bottom: var(--s-2); }
.esp-card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.esp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--primary); margin-top: var(--s-2); }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-12); align-items: center; }
.serv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.serv-list li { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); }
.serv-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-50); color: var(--accent-700); flex: none; }
.serv-list h3 { font-size: 16px; margin-bottom: 4px; }
.serv-list p { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 920px) { .serv-grid { grid-template-columns: 1fr; gap: var(--s-8); } }
@media (max-width: 600px) { .serv-list { grid-template-columns: 1fr; } }

/* ---------- Médicos ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-chip { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-full); border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all var(--dur-fast); }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.med-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s-4); }
.med-card { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.med-top { display: flex; gap: var(--s-3); align-items: center; }
.med-top .avatar { width: 56px; height: 56px; font-size: 18px; }
.med-top h3 { font-size: 17px; margin: 0 0 2px; }
.med-top p { margin: 0; font-size: 14px; color: var(--primary); font-weight: 600; }
.med-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); flex: 1; }
.med-meta li { display: flex; gap: var(--s-2); align-items: center; }
.med-meta .icon { width: 16px; height: 16px; color: var(--text-subtle); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0 0 var(--s-10); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: s; }
.steps li { position: relative; padding: var(--s-6); text-align: center; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 48px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dashed var(--primary-100); }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; box-shadow: 0 0 0 6px var(--primary-50); }
.steps h3 { font-size: 18px; }
.steps p { color: var(--text-muted); margin: 0; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li::after { display: none; } }

/* ---------- Ubicación ---------- */
.ubi-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-10); align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-3); }
.contact-list .icon { color: var(--primary); margin-top: 3px; }
.contact-list strong { display: block; font-size: 14px; }
.contact-list span, .contact-list a { font-size: 15px; color: var(--text-muted); }
.contact-list a { color: var(--primary); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.hours th, .hours td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; }
.hours td { color: var(--text-muted); text-align: right; }
.hours tr.today { background: var(--primary-50); }
.hours tr.today th::after { content: 'Hoy'; margin-left: var(--s-2); font-size: 11px; padding: 2px 8px; border-radius: var(--r-full); background: var(--primary); color: #fff; vertical-align: 2px; }
.map { overflow: hidden; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 920px) { .ubi-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); min-height: 56px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-subtle); transition: transform var(--dur); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); margin: 0; color: var(--text-muted); }

/* ---------- CTA + footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-800), var(--primary) 70%); color: #fff; padding: var(--s-12) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background:
  linear-gradient(var(--accent), var(--accent)) center / 64px 100% no-repeat,
  linear-gradient(var(--accent), var(--accent)) center / 100% 64px no-repeat; opacity: .18; transform: rotate(12deg); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-6); flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: var(--s-2); }
.cta-band p { color: #C7D2FE; margin: 0; font-size: 17px; }

.site-footer { background: #0B1240; color: #CBD5E1; padding: var(--s-12) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: var(--s-8); padding-bottom: var(--s-8); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: #CBD5E1; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #94A3B8; }
.brand-footer { margin-bottom: var(--s-3); }
.brand-footer img { background: #fff; border-radius: var(--r-sm); padding: 4px; mix-blend-mode: normal; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #FCA5A5; }
.footer-bottom { padding-top: var(--s-6); color: #94A3B8; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Agendar cita (wizard)
   ========================================================= */
.book { padding: var(--s-10) 0 var(--s-16); }
.book-head { margin-bottom: var(--s-8); }
.book-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--s-4); font-weight: 600; font-size: 14px; text-decoration: none; }

.stepper { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); counter-reset: st; }
.stepper li { position: relative; display: flex; align-items: center; gap: var(--s-2); padding-top: var(--s-3); border-top: 4px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-subtle); }
.stepper li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: 13px; flex: none; }
.stepper li.done { border-color: var(--primary); color: var(--text); }
.stepper li.done::before { content: '✓'; background: var(--primary); color: #fff; }
.stepper li.current { border-color: var(--primary); color: var(--primary); }
.stepper li.current::before { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .stepper li span { display: none; } }

.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; }
.book-grid > * { min-width: 0; }
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 920px) { .book-grid { grid-template-columns: minmax(0, 1fr); } .book-summary { position: static; } }
.panel { padding: var(--s-8); }
@media (max-width: 600px) { .panel { padding: var(--s-5); } }
.panel h2 { font-size: 22px; margin-bottom: var(--s-2); }
.panel > .muted { margin-bottom: var(--s-6); }
.step-panel:focus { outline: none; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.opt { position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; padding: var(--s-4); text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.opt:hover { border-color: var(--primary-100); background: var(--primary-50); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--primary); background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.opt .esp-ico { width: 40px; height: 40px; margin: 0; }
.opt strong { display: block; font-family: var(--font-head); font-size: 15px; }
.opt small { display: block; color: var(--text-muted); font-size: 13px; }
.opt .avatar { width: 44px; height: 44px; }

.sub-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; margin: var(--s-6) 0 var(--s-3); }
.day-strip { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 2px var(--s-2); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 68px; height: 80px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.day small { font-size: 12px; font-weight: 600; text-transform: capitalize; color: var(--text-muted); }
.day b { font-family: var(--font-head); font-size: 22px; line-height: 1; }
.day .cnt { font-size: 11px; color: var(--success); font-weight: 600; }
.day:hover:not([disabled]) { border-color: var(--primary-100); background: var(--primary-50); }
.day[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] .cnt { color: #E0E7FF; }
.day[disabled] { opacity: .45; cursor: not-allowed; background: var(--surface-2); }
.day[disabled] .cnt { color: var(--text-subtle); }

.slot-group + .slot-group { margin-top: var(--s-4); }
.slot-group h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: .05em; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-2); }
.slot { min-height: 44px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.slot:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot[disabled] { text-decoration: line-through; color: var(--text-subtle); background: var(--surface-2); cursor: not-allowed; }
.slot-doc { font-size: 12px; font-weight: 500; display: block; opacity: .8; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-8) var(--s-4); border: 1px dashed var(--border-strong); border-radius: var(--r-md); color: var(--text-muted); }
.empty .icon { width: 32px; height: 32px; color: var(--text-subtle); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--r-sm); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-4); border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { box-shadow: var(--ring); }

.error-summary { display: flex; gap: var(--s-3); padding: var(--s-4); margin-bottom: var(--s-5); border: 1px solid #F5C2C2; background: var(--danger-50); border-radius: var(--r-md); color: #7F1D1D; }
.error-summary:focus { outline: 3px solid var(--danger); outline-offset: 2px; }
.error-summary ul { margin: 4px 0 0; padding-left: 18px; }
.error-summary a { color: #7F1D1D; }

.wiz-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); }

.book-summary { position: sticky; top: 96px; padding: var(--s-6); }
.book-summary h2 { font-size: 17px; margin-bottom: var(--s-4); }
.sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.sum-list li { display: flex; gap: var(--s-3); }
.sum-list .icon { color: var(--primary); margin-top: 2px; }
.sum-list small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); }
.sum-list span { font-weight: 600; }
.sum-list .pending span { color: var(--text-subtle); font-weight: 400; }
.sum-note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); display: flex; gap: var(--s-2); }
.sum-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--success); }

.success { text-align: center; padding: var(--s-6) 0; }
.success-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--s-5); border-radius: 50%; background: var(--success-50); color: var(--success); animation: pop .4s var(--ease-out); }
.success-ico .icon { width: 36px; height: 36px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.folio { display: inline-block; margin: var(--s-2) 0 var(--s-6); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--primary-50); color: var(--primary); font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.receipt { text-align: left; max-width: 460px; margin: 0 auto var(--s-6); border: 1px solid var(--border); border-radius: var(--r-md); }
.receipt div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); font-size: 15px; }
.receipt div:last-child { border-bottom: 0; }
.receipt dt { color: var(--text-muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.prep { text-align: left; max-width: 460px; margin: var(--s-6) auto 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--info-50); color: #0C4A6E; font-size: 14px; }
.prep ul { margin: var(--s-2) 0 0; padding-left: 18px; }

/* ---------- Página legal ---------- */
.legal { max-width: 820px; padding: var(--s-12) var(--s-4) var(--s-16); }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 20px; margin-top: var(--s-8); }
.legal p, .legal li { color: var(--text-muted); }
.legal .note { padding: var(--s-4); border-radius: var(--r-md); background: var(--warning-50); color: #78350F; border: 1px solid #FDE68A; font-size: 14px; }
