/* ============================================================
   mamografiaprovidencia.cl — Design System
   Paleta: rosa Senocare #c4557a | dark #1c1c2e | warm-bg #f7f3ef
   Tipografía: system-ui stack (0 deps, máximo performance)
   ============================================================ */

:root {
  --rose:        #c4557a;
  --rose-dark:   #a83d65;
  --rose-light:  #fce8ef;
  --rose-pale:   #fdf5f8;
  --dark:        #1c1c2e;
  --mid:         #4a4a6a;
  --soft:        #8888aa;
  --bg:          #f7f3ef;
  --white:       #ffffff;
  --border:      #e8e0d8;
  --success:     #2d7a5f;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(28,28,46,.08);
  --shadow-md:   0 8px 32px rgba(28,28,46,.14);
  --shadow-lg:   0 20px 60px rgba(28,28,46,.18);
  --font:        "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:   ui-monospace, monospace;
  --transition:  .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }

/* ---- Utility ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-rose { color: var(--rose); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--mid);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--rose); }
.nav-cta {
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: var(--rose); color: var(--white) !important;
  font-size: 14px; font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--rose-dark); color: var(--white); }
.nav-wa {
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid #25d366; color: #25d366 !important;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.nav-wa:hover { background: #25d366; color: var(--white) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  background:
    linear-gradient(to right, rgba(28,28,46,.82) 0%, rgba(28,28,46,.55) 55%, rgba(28,28,46,.20) 100%),
    url('https://www.senocare.cl/wp-content/uploads/2020/08/img-mamogr-1280x853.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 100px 0 60px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(196,85,122,.3); border: 1px solid rgba(196,85,122,.5);
  border-radius: 100px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #f7c5d5; margin-bottom: 20px;
}
.hero-badge::before { content: "●"; font-size: 8px; color: var(--rose); }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.hero h1 span { color: #f9adc9; }
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 500px; margin-bottom: 28px; line-height: 1.7;
}
.hero-benefits { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.hero-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .95rem; color: rgba(255,255,255,.9);
}
.hero-benefits li::before {
  content: "✓";
  background: var(--rose); color: var(--white);
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
}
.trust-item { font-size: .82rem; color: rgba(255,255,255,.7); }
.trust-item strong { color: var(--white); display: block; font-size: 1.1rem; line-height: 1.2; }

/* ============================================================
   SCHEDULER CARD (3-step form)
   ============================================================ */
.scheduler-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.scheduler-header {
  background: var(--rose); color: var(--white);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 10px;
}
.scheduler-header svg { flex-shrink: 0; }
.scheduler-header-text { }
.scheduler-header-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.scheduler-header-sub { font-size: 12px; opacity: .85; }
.scheduler-body { padding: 24px; }

/* Progress */
.sched-progress {
  display: flex; align-items: flex-start; margin-bottom: 24px; gap: 0;
}
.sched-step {
  display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0;
}
.sched-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: #eee; color: #999;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all var(--transition);
  position: relative; z-index: 1;
}
.sched-step-label {
  font-size: 10px; color: #bbb; margin-top: 5px;
  text-align: center; line-height: 1.2;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.sched-step--active .sched-step-num { background: var(--rose); color: var(--white); }
.sched-step--active .sched-step-label { color: var(--rose); }
.sched-step--done .sched-step-num { background: var(--success); color: var(--white); }
.sched-step--done .sched-step-label { color: var(--success); }
.sched-divider {
  flex: 1; height: 2px; background: #eee; margin-top: 15px; position: relative; z-index: 0;
  transition: background var(--transition);
}
.sched-divider--done { background: var(--success); }

/* Panels */
.sched-panel { display: block; }
.sched-panel--hidden { display: none; }
.sched-panel-title {
  font-size: 14px; font-weight: 700; color: var(--dark);
  margin-bottom: 14px;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.chip {
  background: #f5f5f7; border: 1.5px solid transparent; border-radius: 100px;
  padding: 7px 14px; font-size: 12.5px; color: var(--mid);
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font); font-weight: 500; line-height: 1.2;
}
.chip:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-pale); }
.chip--selected { background: var(--rose-light); border-color: var(--rose); color: var(--rose); font-weight: 700; }
.chip-group { margin-bottom: 14px; }
.chip-group-label {
  font-size: 11px; font-weight: 700; color: var(--soft);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 7px; display: block;
}

/* Fields */
.sched-field { margin-bottom: 10px; }
.sched-field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px; color: var(--dark);
  transition: border-color var(--transition); font-family: var(--font);
  background: var(--white);
}
.sched-field input:focus { outline: none; border-color: var(--rose); }
.sched-field input::placeholder { color: #bbb; }

/* Nav buttons */
.sched-nav { display: flex; gap: 8px; margin-top: 18px; }
.btn-next, .btn-submit {
  flex: 1; background: var(--rose); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 13px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background var(--transition); font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-next:hover, .btn-submit:hover { background: var(--rose-dark); }
.btn-back {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
  font-size: 13px; color: var(--soft); cursor: pointer; font-family: var(--font);
  transition: all var(--transition);
}
.btn-back:hover { border-color: var(--mid); color: var(--dark); }
.btn-submit--loading { opacity: .7; pointer-events: none; }

/* Errors & legal */
.sched-error { font-size: 12px; color: #e53e3e; margin-top: 6px; display: none; }
.sched-legal {
  font-size: 11px; color: var(--soft); text-align: center;
  margin-top: 10px; line-height: 1.5;
}
.sched-legal a { color: var(--rose); }

/* ============================================================
   PRICES SECTION
   ============================================================ */
.prices-section {
  background: var(--bg); padding: 72px 0;
}
.section-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--rose);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--dark); margin-bottom: 12px;
  letter-spacing: -.02em; line-height: 1.2;
}
.section-desc {
  font-size: 1rem; color: var(--mid); max-width: 560px; line-height: 1.7;
  margin-bottom: 40px;
}
.prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 680px;
}
.price-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.price-card-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 6px;
}
.price-card-value {
  font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1;
  margin-bottom: 4px;
}
.price-card-value .skeleton {
  display: inline-block; width: 120px; height: 32px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.price-card--fonasa .price-card-value { color: var(--rose); }
.price-card-note { font-size: 12px; color: var(--soft); }
.price-card--regular .price-card-value { text-decoration: line-through; color: var(--soft); font-size: 1.5rem; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.prices-cta {
  margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rose); color: var(--white);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--rose-dark); color: var(--white); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid #25d366; color: #1a9e52;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
}
.btn-wa:hover { background: #25d366; color: var(--white); }

/* ============================================================
   ABOUT EXAM SECTION
   ============================================================ */
.about-section { padding: 72px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-image img { width: 100%; height: 380px; object-fit: cover; }
.about-content { }
.about-content .section-desc { margin-bottom: 24px; }
.about-facts { display: flex; flex-direction: column; gap: 16px; }
.about-fact {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--bg); border-radius: var(--radius-md);
  border-left: 3px solid var(--rose);
}
.about-fact-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.about-fact-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.about-fact-text span { font-size: 13px; color: var(--mid); }

/* ============================================================
   PREPARATION SECTION
   ============================================================ */
.prep-section { background: var(--bg); padding: 72px 0; }
.prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.prep-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--border);
}
.prep-card-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rose-light); color: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; margin-bottom: 14px;
}
.prep-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.prep-card p { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 72px 0; }
.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; padding: 18px 20px;
  text-align: left; font-family: var(--font); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--dark);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--rose-pale); }
.faq-q[aria-expanded="true"] { background: var(--rose-pale); color: var(--rose); }
.faq-q svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: var(--mid); line-height: 1.7;
}
.faq-a.open { max-height: 300px; padding: 4px 20px 18px; }

/* ============================================================
   LOCATION SECTION
   ============================================================ */
.location-section { background: var(--dark); color: var(--white); padding: 72px 0; }
.location-section .section-eyebrow { color: #f9adc9; }
.location-section .section-title { color: var(--white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 36px; }
.location-details { display: flex; flex-direction: column; gap: 20px; }
.location-item { display: flex; gap: 14px; align-items: flex-start; }
.location-item-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(196,85,122,.2); border: 1px solid rgba(196,85,122,.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.location-item-text strong { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.location-item-text span { font-size: 15px; color: var(--white); line-height: 1.5; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.location-map iframe { width: 100%; height: 320px; border: none; display: block; }
.location-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.3); color: var(--white);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f0f1a; color: rgba(255,255,255,.5);
  padding: 32px 0; font-size: 13px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .6; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .scheduler-card { order: -1; }
  .hero { padding: 90px 0 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-image img { height: 260px; }
  .location-grid { grid-template-columns: 1fr; }
  .prices-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .prep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-trust { gap: 12px; }
  .prices-grid { grid-template-columns: 1fr; }
  .site-nav .nav-link { display: none; }
  .scheduler-body { padding: 18px; }
}

/* ============================================================
   Scheduler v2 — step progress (5 steps), slots, summary
   ============================================================ */

/* 5-step progress — tighter labels */
.sched-step-label { font-size: 0.62rem; }

/* Two-column input row */
.sched-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .sched-fields-row { grid-template-columns: 1fr; }
}

/* Slot states */
.sched-loading {
  color: var(--muted, #888);
  font-size: 0.88rem;
  padding: 8px 0;
}
.sched-no-slots {
  color: var(--muted, #888);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 8px 0;
}
.sched-inline-error {
  color: #c0392b;
  font-size: 0.85rem;
  padding: 8px 0;
}

/* Summary table */
.sched-summary {
  background: #f9f5f7;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 6px 0 12px;
}
.sched-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 0.88rem;
}
.sched-summary-row:last-child { border-bottom: none; }
.sched-summary-label { color: var(--muted, #888); white-space: nowrap; }
.sched-summary-val   { font-weight: 600; text-align: right; }
.sched-summary-note  {
  font-size: 0.8rem;
  color: var(--muted, #888);
  margin: 0 0 10px;
  line-height: 1.4;
}
