/* =============================================================================
   Dra. Carsolio — Reumatología
   Clean, modern, trustworthy medical theme. Mobile-first.
   ========================================================================== */

/* ---- Self-hosted fonts (same-origin → fast, no FOUT swap from Google) ---- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap; src:url(../fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url(../fonts/poppins-700.woff2) format('woff2'); }

:root {
  /* Palette — unified royal blue (matches the BrightSmile design reference) */
  --c-primary:       #2563eb;
  --c-primary-dark:  #1d4ed8;
  --c-primary-soft:  #eaf1fe;
  --c-accent:        #3b82f6;
  --c-accent-dark:   #2563eb;
  --c-wa:            #25d366;
  --c-ink:           #0f1e3d;
  --c-body:          #51607a;
  --c-muted:         #8893a6;
  --c-line:          #e4eaf2;
  --c-bg:            #ffffff;
  --c-bg-soft:       #f4f8ff;
  --c-bg-alt:        #eaf1fe;
  --c-success:       #2e9e6b;
  --c-danger:        #d6453d;
  /* Hero overlay (royal blue, opaque left -> transparent right) */
  --c-hero-1:        #1d4ed8;
  --c-hero-2:        #2563eb;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 6px 24px rgba(14, 122, 138, .08);
  --shadow-lg: 0 14px 40px rgba(14, 122, 138, .14);
  --container: 1140px;

  --ff-head: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-body);
  background: #f6f9ff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* guard against any horizontal overflow (sticky-safe) */
}

/* ---------- Soft animated "flowing mist" background (medical blue) ---------- */
.site-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(160deg, #f8fbff 0%, #edf3ff 48%, #f2f7ff 100%);
}
.site-bg span {
  position: absolute; inset: -28%; display: block; will-change: transform; filter: blur(26px);
}
.site-bg span:nth-child(1) {
  background:
    radial-gradient(42% 42% at 24% 30%, rgba(37,99,235,.10), transparent 70%),
    radial-gradient(38% 38% at 80% 22%, rgba(59,130,246,.09), transparent 70%),
    radial-gradient(46% 46% at 62% 82%, rgba(37,99,235,.07), transparent 72%);
  animation: mistA 36s ease-in-out infinite alternate;
}
.site-bg span:nth-child(2) {
  background:
    radial-gradient(40% 40% at 72% 58%, rgba(13,148,136,.07), transparent 70%),
    radial-gradient(42% 42% at 18% 74%, rgba(59,130,246,.09), transparent 70%),
    radial-gradient(36% 36% at 88% 88%, rgba(37,99,235,.06), transparent 72%);
  animation: mistB 50s ease-in-out infinite alternate; animation-delay: -8s;
}
@keyframes mistA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.13); }
}
@keyframes mistB {
  0%   { transform: translate3d(0, 0, 0) scale(1.09); }
  100% { transform: translate3d(-4%, -3%, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg span { animation: none; }
}
h1, h2, h3, h4, p { overflow-wrap: break-word; }

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--c-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

section { padding: clamp(48px, 8vw, 84px) 0; }
/* translucent so the animated mist shows through, keeping a soft alternating rhythm */
.section-soft { background: rgba(224,236,255,.45); }
.section-alt  { background: rgba(206,224,255,.5); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 5vw, 48px); }
.section-head .eyebrow {
  display: inline-block; font-weight: 600; color: var(--c-primary);
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem;
}
.section-head p { color: var(--c-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-wa { background: var(--c-wa); color: #fff; }
.btn-wa:hover { background: #1ebe5d; color: #fff; }
.btn-white { background: #fff; color: var(--c-primary-dark); }
.btn-white:hover { background: #eef7f4; color: var(--c-primary-dark); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line);
}
/* Header + hero share a slightly wider container so the nav fits one line
   and the hero text sits a touch further left. */
.site-header .container, .hero .container { max-width: 1280px; }
.nav-wrap { display: flex; align-items: center; justify-content: flex-start; min-height: 68px; gap: 1.6rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--c-ink); flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.02rem; color: var(--c-ink); }
.brand-text small { color: var(--c-muted); font-size: .72rem; }

.site-nav { display: flex; align-items: center; gap: .12rem; flex: 1; justify-content: center; }
.site-nav a {
  color: var(--c-body); font-weight: 500; font-size: .86rem; white-space: nowrap;
  padding: .5rem .5rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.site-nav .nav-cta {
  background: var(--c-accent); color: #fff; font-weight: 600; padding: .55rem 1.1rem; margin-left: .4rem;
}
.site-nav .nav-cta:hover { background: var(--c-accent-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;   /* sits on the right of the header */
}
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .25s; }

@media (max-width: 1080px) {
  .nav-wrap { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: .6rem 20px 1rem;
    gap: .15rem; box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .6rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .site-nav .nav-cta { margin: .6rem 0 0; border-radius: 50px; text-align: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (v2: doctor on the right, dark text on clean light-left) ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  width: 100%;
  /* height grows with the viewport but always fits the content (never clips) */
  min-height: clamp(560px, 46vw, 860px);
  background-color: #eaf1fb; background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Soft white scrim over the left so the headline stays legible on any crop. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,250,255,.94) 0%, rgba(247,250,255,.80) 34%, rgba(247,250,255,.30) 56%, rgba(247,250,255,0) 72%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; min-width: 0; padding: clamp(22px, 3vw, 38px) 0; }
.hero-card { position: relative; width: min(60%, 640px); min-width: 0; margin-left: 0; }
@media (min-width: 1001px) { .hero-card { transform: translateY(10px); } }
/* the slight left-nudge only where the container has room to spare (no clipping) */
@media (min-width: 1400px) { .hero-card { margin-left: -26px; } }
.hero-content { max-width: 620px; min-width: 0; }
.hero-content h1 { overflow-wrap: break-word; }
.hero-photo { display: none; }   /* desktop uses the background banner; mobile/tablet use this photo */
.hero-feature, .hero-feature > div { min-width: 0; }
.hero-feature strong, .hero-feature small { overflow-wrap: break-word; }
.hero-content .badge {
  display: inline-flex; align-items: center; gap: .4rem; background: rgba(37,99,235,.10); color: #1b47b0;
  border: 1px solid rgba(37,99,235,.28); padding: .45rem .95rem; border-radius: 50px; font-weight: 600;
  font-size: .82rem; margin-bottom: 1rem;
}
.hero-kicker { font-family: var(--ff-head); font-weight: 600; font-size: clamp(1.05rem,2vw,1.3rem); color: #1b47b0; margin-bottom: .5rem; }
.hero-content h1 { color: #0F1E3D; margin-bottom: .8rem; }
.hero-content h1 .h-accent { color: #2563EB; }
.hero-content .lead { font-size: 1.1rem; color: #3a4a66; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
/* full-width feature strip across the bottom (2-line items) */
.hero-features { margin-top: 1.7rem; padding-top: 1.4rem; border-top: 1px solid rgba(15,30,61,.14); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hero-feature { display: flex; align-items: center; gap: .65rem; }
.hero-feature .hf-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(37,99,235,.12); color: #2563EB; display: grid; place-items: center; flex: none; }
.hero-feature strong { display: block; font-family: var(--ff-head); font-size: .92rem; color: #0F1E3D; line-height: 1.2; }
.hero-feature small { display: block; color: #5a6b86; font-size: .78rem; line-height: 1.25; }

@media (max-width: 1000px) {
  .hero { background-position: 82% center; min-height: clamp(500px, 64vw, 640px); }
  .hero-card { width: min(66%, 560px); }
  .hero::before { background: linear-gradient(90deg, rgba(247,250,255,.96) 0%, rgba(247,250,255,.86) 42%, rgba(247,250,255,.4) 66%, rgba(247,250,255,0) 82%); }
  .hero-features { grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
}
/* Mobile + portrait-tablet: clean stacked hero (real photo on top, text below) */
@media (max-width: 900px) {
  .hero { min-height: auto !important; background-image: none !important; background-color: transparent; }
  .hero::before { display: none; }
  .hero-inner { padding: clamp(20px, 4vw, 32px) 0; }
  .hero-card { width: auto; max-width: 720px; margin: 0 auto; transform: none; }
  .hero-content { max-width: 100%; }
  .hero-photo {
    display: block; width: 100%; height: clamp(320px, 74vw, 440px); aspect-ratio: auto;
    object-fit: cover; object-position: center 28%;
    border-radius: 16px; margin-bottom: 1.2rem; box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 620px) {
  .hero-inner { padding: clamp(20px,5vw,30px) 0; }
  .hero-card { width: auto; margin: 0; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: clamp(1.4rem, 6.6vw, 1.7rem); line-height: 1.22; overflow-wrap: break-word; hyphens: manual; }
  .hero-kicker { font-size: 1rem; }
  .hero-content .lead { font-size: 1rem; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* image placeholder */
.img-ph {
  background: repeating-linear-gradient(45deg, var(--c-bg-alt), var(--c-bg-alt) 12px, #e6eff0 12px, #e6eff0 24px);
  display: grid; place-items: center; color: var(--c-muted); font-weight: 600; text-align: center;
  border-radius: var(--radius); aspect-ratio: 4/3; padding: 1rem; font-size: .85rem;
}

/* ---------- Symptom / joint grids ---------- */
.joint-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.2rem; }
.joint-chip {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 96px;
  color: var(--c-primary-dark); font-weight: 600; font-size: .85rem;
}
.joint-chip .ic {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 1px solid var(--c-line);
  box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden;
}
.joint-chip .ic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.symptom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.symptom {
  display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.symptom .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); flex: none; }
.symptom span { font-weight: 500; color: var(--c-ink); font-size: .95rem; }
.cta-line { text-align: center; margin-top: 2rem; }
.cta-line p { font-size: 1.15rem; font-weight: 500; color: var(--c-ink); max-width: 60ch; margin: 0 auto 1.2rem; }
.cta-line .btn { gap: .5rem; }
/* Mobile: both buttons equal width, single line, with a gap between them */
@media (max-width: 640px) {
  .cta-line .btn { display: flex; width: 100%; white-space: nowrap; }
  .cta-line .btn + .btn { margin-top: .75rem; }
  .cta-line .btn-outline { font-size: .8rem; padding-left: .7rem; padding-right: .7rem; }
}

@media (max-width: 720px) { .symptom-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .symptom-grid { grid-template-columns: 1fr; } }

/* ---------- Agenda cards ---------- */
.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.consult-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.consult-card .media { aspect-ratio: 16/9; overflow: hidden; background: var(--c-bg-alt); }
.consult-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.consult-card .body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.consult-card .tag {
  align-self: flex-start; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: .3rem .8rem; border-radius: 50px; margin-bottom: .8rem;
}
.tag-presencial { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.tag-virtual { background: #dde8fe; color: var(--c-accent-dark); }
.consult-card .price { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: var(--c-ink); }
.consult-card .price small { font-size: .9rem; color: var(--c-muted); font-weight: 500; }
.consult-card .note { font-size: .9rem; color: var(--c-muted); margin: .8rem 0 1.2rem; }
.consult-card .btn { margin-top: auto; }
.experience-banner {
  text-align: center; background: var(--c-primary); color: #fff; border-radius: var(--radius);
  padding: 1.4rem; margin-bottom: 1.8rem; font-family: var(--ff-head); font-weight: 600; font-size: 1.15rem;
}
@media (max-width: 720px) { .agenda-grid { grid-template-columns: 1fr; } }

/* ---------- Enfermedades grid ---------- */
.disease-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.disease-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.disease-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.disease-card .ic {
  width: 52px; height: 52px; border-radius: 13px; background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.disease-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.disease-card p { font-size: .9rem; color: var(--c-muted); margin: 0; }
@media (max-width: 860px) { .disease-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .disease-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews / testimonials ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.review-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.review-card .stars { color: #f5b50a; margin-bottom: .6rem; letter-spacing: 2px; }
.review-card .text { font-size: .95rem; color: var(--c-body); flex: 1; }
.review-card .who { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.review-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-dark);
  display: grid; place-items: center; font-weight: 700; font-family: var(--ff-head); flex: none;
}
.review-card .who strong { font-size: .9rem; color: var(--c-ink); }
.review-card .who small { font-size: .75rem; color: var(--c-muted); }
.review-source { font-size: .72rem; color: var(--c-muted); margin-top: .8rem; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; color: var(--c-ink); margin-bottom: .35rem; font-size: .92rem; }
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 1rem; color: var(--c-ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-row { display: flex; gap: 1.5rem; }
.radio-row label { display: flex; align-items: center; gap: .4rem; font-weight: 500; cursor: pointer; }
.radio-row input { width: auto; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 500; }
.alert-success { background: #e6f6ee; color: #1d7a4f; border: 1px solid #b9e6cf; }
.alert-error   { background: #fdecea; color: #b3322b; border: 1px solid #f5c6c2; }
.alert-info    { background: var(--c-primary-soft); color: var(--c-primary-dark); border: 1px solid #c5e6ea; }
.field-error { color: var(--c-danger); font-size: .82rem; margin-top: .3rem; }

.fiscal-fields { display: none; border-top: 1px dashed var(--c-line); margin-top: 1rem; padding-top: 1.2rem; }
.fiscal-fields.show { display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list.faq-cols { max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; align-items: start; }
@media (max-width: 760px) { .faq-list.faq-cols { grid-template-columns: 1fr; } }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin-bottom: .8rem; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.3rem; font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { transition: transform .2s; flex: none; color: var(--c-primary); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a div { padding: 0 1.3rem 1.2rem; color: var(--c-body); }

/* ---------- Map / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-line); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-fallback { padding: 2rem; text-align: center; background: var(--c-bg-soft); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Video (3 shareable slots) ---------- */
.video-wrap { max-width: 880px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.video-cap { margin-top: .7rem; }
.video-cap strong { display: block; font-family: var(--ff-head); color: var(--c-ink); font-size: 1rem; }
.video-cap small { display: block; color: var(--c-body); font-size: .85rem; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--c-ink);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-ink));
}
.video-ph .play { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; margin: 0 auto .8rem; }
.video-ph .play svg { margin-left: 4px; }

/* ---------- Google reviews CTA (single review funnel) ---------- */
.google-reviews-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem;
  max-width: 820px; margin: 1.8rem auto 0; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.3rem 1.6rem; box-shadow: var(--shadow);
}
.gr-badge { display: flex; align-items: center; gap: .9rem; }
.gr-badge strong { display: block; font-family: var(--ff-head); color: var(--c-ink); }
.gr-badge small { display: block; color: var(--c-body); font-size: .86rem; }
.gr-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.gr-actions--center { justify-content: center; margin-top: 1.6rem; }
@media (max-width: 560px) { .google-reviews-cta { flex-direction: column; align-items: flex-start; } .gr-actions { width: 100%; } .gr-actions .btn { flex: 1; } }

/* ---------- Google reviews badge + score summary + widget ---------- */
.g-badge {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 500;
  background: #fff; border: 1px solid var(--c-line); border-radius: 50px;
  padding: .42rem .9rem; font-size: .9rem; color: var(--c-ink); box-shadow: var(--shadow);
  max-width: 100%;
}
.g-badge:hover { border-color: var(--c-primary); color: var(--c-ink); transform: translateY(-1px); }
.g-badge .g-ic { flex: none; }
.g-badge .g-stars { color: #fbbc05; letter-spacing: 1px; font-size: .86rem; }
.g-badge strong { font-family: var(--ff-head); }
.g-badge .g-count { color: var(--c-body); white-space: nowrap; }
.g-badge--hero { margin-top: 1.2rem; }
.agenda-reviews { text-align: center; margin: -.4rem 0 1.7rem; }
@media (max-width: 400px) { .g-badge .g-count { white-space: normal; } }

.reviews-score {
  display: flex; align-items: center; gap: 1rem; max-width: 560px; margin: 0 auto 1.8rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.05rem 1.5rem; box-shadow: var(--shadow);
}
.rs-left { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rs-num { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: var(--c-ink); line-height: 1; }
.rs-stars { color: #fbbc05; font-size: 1.2rem; letter-spacing: 2px; }
.rs-count { color: var(--c-primary); font-weight: 600; }
.rs-count:hover { text-decoration: underline; color: var(--c-primary-dark); }
.rs-g { margin-left: auto; flex: none; }
@media (max-width: 480px) { .reviews-score { flex-direction: column; text-align: center; } .rs-g { margin: 0; } }

.reviews-widget { max-width: 1040px; margin: 0 auto; }

/* Auto-scrolling reviews marquee (real Google reviews) */
.reviews-marquee {
  position: relative; overflow: hidden; margin: 0 auto 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-track {
  display: flex; align-items: stretch; gap: 1.3rem; width: max-content;
  padding: .6rem .2rem 1rem; animation: reviewsMarquee 62s linear infinite;
}
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviewsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  flex: 0 0 340px; width: 340px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.rc-head { display: flex; align-items: center; gap: .7rem; }
.rc-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
}
.rc-who strong { display: block; font-family: var(--ff-head); color: var(--c-ink); font-size: .95rem; line-height: 1.15; }
.rc-who small { color: var(--c-muted); font-size: .8rem; }
.rc-g { margin-left: auto; flex: none; }
.rc-stars { color: #fbbc05; letter-spacing: 2px; font-size: 1rem; }
.rc-text { color: var(--c-body); font-size: .92rem; line-height: 1.55; margin: 0; }
@media (max-width: 480px) { .review-card { flex-basis: 290px; width: 290px; } }
@media (prefers-reduced-motion: reduce) { .reviews-track { animation: none; overflow-x: auto; } }

/* optional-field label + credentials sub-block */
.field .opt { color: #8a97a8; font-weight: 400; font-size: .82rem; }
.credentials { margin: 1.3rem 0 1.5rem; }
.credentials .eyebrow { display: block; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #c7d3d7; padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col p { margin: 0 0 .5rem; font-size: .92rem; }
.footer-col a { color: #c7d3d7; }
.footer-col a:hover { color: #fff; }
.footer-brand { font-family: var(--ff-head); color: #fff; font-size: 1.3rem; display: block; margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #9aabb0; text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Floating action buttons (circular -> expand + icon rotation) ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: .8rem; align-items: flex-end; }
.fab {
  display: inline-flex; align-items: center; height: 58px; border-radius: 50px; color: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden; white-space: nowrap; max-width: 58px;
  transition: max-width .4s cubic-bezier(.4,0,.2,1);
  border: 0; padding: 0; font: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-align: left;
}
.fab:hover, .fab:focus-visible { color: #fff; max-width: 360px; }
.fab-ic { width: 58px; height: 58px; flex: none; display: grid; place-items: center; transition: transform .55s ease; }
.fab:hover .fab-ic, .fab:focus-visible .fab-ic { transform: rotate(360deg); }
.fab-label {
  max-width: 0; opacity: 0; overflow: hidden; font-weight: 600; font-size: .92rem; padding: 0;
  transition: max-width .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding .4s ease;
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { max-width: 280px; opacity: 1; padding-right: 1.2rem; }
.fab-wa { background: var(--c-wa); }
.fab-call { background: var(--c-primary); }

/* WhatsApp chat window (always floating, small open window to write) */
.wa-chat {
  display: none; width: 320px; max-width: calc(100vw - 32px); margin-bottom: .3rem;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.wa-chat.open { display: block; animation: waPop .18s ease-out; }
@keyframes waPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-chat-head { display: flex; align-items: center; gap: .6rem; background: #128C7E; color: #fff; padding: .7rem .8rem; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-chat-id strong { display: block; font-family: var(--ff-head); font-size: .95rem; line-height: 1.15; }
.wa-chat-id small { display: flex; align-items: center; gap: .3rem; font-size: .74rem; opacity: .92; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #7CFC9B; display: inline-block; }
.wa-chat-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .85; padding: 0 .2rem; }
.wa-chat-close:hover { opacity: 1; }
.wa-chat-body { padding: 1rem .8rem; background: #ECE5DD; min-height: 78px; }
.wa-bubble { background: #fff; border-radius: 4px 12px 12px 12px; padding: .7rem .85rem; font-size: .9rem; color: #222; box-shadow: 0 1px 1px rgba(0,0,0,.1); max-width: 92%; line-height: 1.4; }
.wa-chat-form { display: flex; gap: .5rem; padding: .6rem; background: #f4f4f4; }
.wa-chat-form input { flex: 1; border: 1px solid var(--c-line); border-radius: 50px; padding: .6rem .95rem; font-size: .92rem; font-family: var(--ff-body); outline: none; }
.wa-chat-form input:focus { border-color: var(--c-wa); box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.wa-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--c-wa); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.wa-send:hover { background: #1eb257; }
@media (max-width: 480px) { .wa-chat { width: calc(100vw - 32px); } }

/* Footer social icons */
.footer-social { display: flex; gap: .55rem; margin-top: 1.1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #dfe8ea; display: grid; place-items: center; transition: background .18s, color .18s, transform .18s; }
.footer-social a:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }

/* ---------- Brand logo ---------- */
.brand-logo { height: 46px; width: auto; max-width: none; flex: none; display: block; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }

/* ---------- ¿Necesito? two-column with photo ---------- */
.necesito-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-bottom: 1rem;
}
.necesito-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  object-fit: cover; aspect-ratio: 3/2;
}
.necesito-content .joint-row { justify-content: flex-start; margin-bottom: 1.4rem; }
.symptom-grid--compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .necesito-grid { grid-template-columns: 1fr; }
  .necesito-media { max-width: 540px; margin: 0 auto; }
  .necesito-content .joint-row { justify-content: center; }
}
@media (max-width: 520px) { .symptom-grid--compact { grid-template-columns: 1fr; } }

/* ---------- Formación académica ---------- */
.academic-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.academic-content .eyebrow {
  display: inline-block; color: var(--c-primary); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem;
}
.academic-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
.academic-media { max-width: 420px; }
@media (min-width: 821px) { .academic-media { margin-left: auto; } }
.academic-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.academic-list li { display: flex; gap: .9rem; align-items: flex-start; }
.academic-list .ac-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.academic-list strong { display: block; color: var(--c-ink); font-family: var(--ff-head); font-size: 1.02rem; }
.academic-list small { color: var(--c-muted); font-size: .86rem; }
@media (max-width: 820px) {
  .academic-grid { grid-template-columns: 1fr; }
  .academic-media { order: -1; max-width: 540px; margin: 0 auto; }
}

/* ---------- Disease cards: real image thumbnails ---------- */
.disease-card { text-align: center; }
.disease-thumb {
  width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--c-primary-soft); box-shadow: var(--shadow); background: #fff;
}
.disease-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- BrightSmile-style components (teal-green) ---------- */
/* two-tone heading accent */
.h-accent { color: var(--c-primary); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* About / Sobre la doctora */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.about-content .eyebrow { display: inline-block; color: var(--c-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem; }
.about-content h2 { margin-bottom: 1rem; }
.about-list { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.about-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--c-ink); font-weight: 500; line-height: 1.4; }
.about-list li strong { line-height: 1.35; }
.about-list .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; flex: none; margin-top: 2px; }
.about-list small { display: block; color: var(--c-muted); font-weight: 400; font-size: .85rem; }
.about-media { position: relative; max-width: 540px; margin: 0 auto; }
.about-media img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }
.about-stat {
  position: absolute; right: -10px; bottom: 28px; background: var(--c-primary); color: #fff;
  border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); text-align: center; max-width: 150px;
}
.about-stat .n { font-family: var(--ff-head); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.about-stat small { font-size: .76rem; opacity: .92; display: block; margin-top: .25rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  /* center the section CTA button under the (centered) media on mobile */
  .about-content > .btn { display: flex; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* Facilities collage (hospital environment) — 3-image reference layout */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; align-items: stretch; }
.collage .ccol { display: flex; flex-direction: column; gap: 1rem; }
.collage img { width: 100%; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.collage-3 .ccol-main { display: flex; }
.collage-3 .ccol-main img { width: 100%; height: 100%; }
.collage-3 .ccol img { aspect-ratio: 4/3; }
.collage-stat {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--c-primary); color: #fff; border-radius: 16px; padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg); text-align: center; z-index: 2;
}
.collage-stat .n { font-family: var(--ff-head); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.collage-stat small { font-size: .74rem; display: block; margin-top: .25rem; opacity: .92; }
@media (max-width: 560px) {
  .collage-3 { grid-template-columns: 1fr; }
  .collage-3 .ccol-main img { height: auto; aspect-ratio: 4/3; }
  /* keep the stat overlapping the main image (top-left) so it blends with the photo */
  .collage-stat { left: 16px; top: 16px; transform: none; padding: .85rem 1.2rem; }
  .collage-stat .n { font-size: 1.7rem; }
}

/* Services (Enfermedades) + Why panel */
.services-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.why-panel {
  background: linear-gradient(165deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff;
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
  position: sticky; top: 88px;
}
.why-panel .eyebrow { color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.why-panel h3 { color: #fff; font-size: 1.35rem; margin: .3rem 0 1.2rem; }
.why-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.why-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.95); }
.why-list .ck { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; flex: none; }
.why-panel .btn-white { width: 100%; }
@media (max-width: 880px) {
  .services-layout { grid-template-columns: 1fr; }
  .why-panel { position: static; }
}

/* Testimonial carousel */
.tcarousel { position: relative; }
.tcarousel-track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .3rem .2rem 1rem; -ms-overflow-style: none; scrollbar-width: none;
}
.tcarousel-track::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 calc((100% - 2.4rem) / 3); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tcard .quote { font-family: var(--ff-head); font-size: 2.4rem; line-height: .6; color: var(--c-primary-soft); }
.tcard .stars { color: #f5b50a; letter-spacing: 2px; margin: .3rem 0 .5rem; }
.tcard .text { color: var(--c-body); font-size: .95rem; flex: 1; }
.tcard .who { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.tcard .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-dark); display: grid; place-items: center; font-weight: 700; font-family: var(--ff-head); flex: none; }
.tcard .who strong { font-size: .92rem; color: var(--c-ink); display: block; }
.tcard .who small { font-size: .76rem; color: var(--c-muted); }
.tcar-btn {
  position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); color: var(--c-primary);
  display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background .15s, color .15s;
}
.tcar-btn:hover { background: var(--c-primary); color: #fff; }
.tcar-prev { left: -8px; } .tcar-next { right: -8px; }
.tcar-prev svg { transform: rotate(90deg); } .tcar-next svg { transform: rotate(-90deg); }
.tcar-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .5rem; }
.tcar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); border: 0; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.tcar-dot.active { background: var(--c-primary); width: 26px; border-radius: 50px; }
@media (max-width: 900px) { .tcard { flex-basis: calc((100% - 1.2rem) / 2); } .tcar-btn { display: none; } }
@media (max-width: 600px) { .tcard { flex-basis: 100%; } }

/* Full-width CTA band */
.cta-band-wrap { padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 6vw, 72px); }
.cta-band {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: #fff;
  border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-band .cta-text { display: flex; align-items: center; gap: 1.1rem; position: relative; z-index: 1; }
.cta-band .cta-ic { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 .2rem; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 640px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .cta-actions { width: 100%; }
  .cta-band .cta-actions .btn { flex: 1 1 auto; }
}

/* ---------- Booking module ---------- */
.booking-hero { background: linear-gradient(160deg, var(--c-primary-soft), #fff 70%); padding: clamp(32px,6vw,56px) 0; }
.booking-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.booking-main { display: flex; flex-direction: column; gap: 1.6rem; }
.booking-step {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.3rem, 4vw, 2rem);
}
.booking-step h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary); color: #fff;
  display: grid; place-items: center; font-size: .95rem; font-weight: 700; flex: none;
}

/* consult type toggle */
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option label {
  display: block; cursor: pointer; border: 2px solid var(--c-line); border-radius: var(--radius);
  padding: 1.2rem; transition: border .15s, background .15s; height: 100%;
}
.type-option input:checked + label { border-color: var(--c-primary); background: var(--c-primary-soft); }
.type-option .t-name { font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; color: var(--c-ink); }
.type-option .t-price { font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem; color: var(--c-primary); margin-top: .3rem; }
.type-option .t-desc { font-size: .85rem; color: var(--c-muted); margin-top: .4rem; }
@media (max-width: 480px) { .type-toggle { grid-template-columns: 1fr; } }

/* calendar / slots */
.slot-group { display: none; }
.slot-group.active { display: block; }
.slot-day { border-bottom: 1px solid var(--c-line); padding: 1rem 0; }
.slot-day:last-child { border-bottom: 0; }
.slot-day .day-label { font-weight: 600; color: var(--c-ink); margin-bottom: .6rem; text-transform: capitalize; }
.slot-times { display: flex; flex-wrap: wrap; gap: .6rem; }
.slot-btn {
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); border-radius: 50px;
  padding: .5rem 1.1rem; font-family: var(--ff-body); font-weight: 500; cursor: pointer; transition: .15s;
}
.slot-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.slot-btn.selected { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.slot-btn.taken { background: var(--c-bg-alt); color: var(--c-muted); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.slots-empty { color: var(--c-muted); padding: 1rem 0; }

/* summary panel */
.summary-panel { position: sticky; top: 88px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary-head { background: var(--c-primary); color: #fff; padding: 1.1rem 1.3rem; font-family: var(--ff-head); font-weight: 600; }
.summary-body { padding: 1.3rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--c-line); font-size: .95rem; }
.summary-row .k { color: var(--c-muted); }
.summary-row .v { font-weight: 600; color: var(--c-ink); text-align: right; }
.summary-row.total { border-bottom: 0; border-top: 2px solid var(--c-line); margin-top: .4rem; padding-top: .9rem; font-size: 1.15rem; }
.summary-row.total .v { color: var(--c-primary); font-family: var(--ff-head); }
.summary-empty { color: var(--c-muted); font-size: .9rem; }
@media (max-width: 880px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}

/* payment confirmation */
.pay-wrap { max-width: 620px; margin: 0 auto; }
.pay-card { text-align: center; }
.pay-check { width: 72px; height: 72px; border-radius: 50%; background: #e6f6ee; color: var(--c-success); display: grid; place-items: center; margin: 0 auto 1rem; }
.pay-buttons { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.4rem; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; border-radius: var(--radius); font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; }
.pay-mp { background: #009ee3; color: #fff; }
.pay-mp:hover { background: #0089c7; color: #fff; }
.pay-pp { background: #ffc439; color: #142c8e; }
.pay-pp:hover { background: #f0b72f; color: #142c8e; }
.pay-pending { background: var(--c-bg-alt); color: var(--c-muted); border: 1px dashed var(--c-line); }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.anchor-offset { scroll-margin-top: 100px; }
.muted { color: var(--c-muted); }
.pending-note { font-size: .75rem; color: var(--c-muted); font-style: italic; }
