/* ============================================================
   NCCC - style.css  |  Instituto de Neurociencia Cognitiva
   ============================================================ */

/* ── Variables ─────────────────────────────── */
:root {
  --navy:      #0C1B2E;
  --navy-mid:  #132236;
  --navy-lt:   #1A2F47;
  --teal:      #2A8C82;
  --teal-lt:   #3ABDB0;
  --teal-pale: #D6F0EE;
  --ice:       #EBF5F7;
  --white:     #F9FBFC;
  --g100:      #F1F4F6;
  --g300:      #B0BEC5;
  --g600:      #546E7A;
  --text:      #1C2B38;
  --r:         14px;
  --r-lg:      22px;
  --sidebar:   240px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ── Typography ─────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }

/* ── Container ──────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Tag ────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.tag::before { content: ''; width: 24px; height: 2px; background: var(--teal); display: block; }

/* ── Section titles ─────────────────────────── */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.14; color: var(--navy);
}
.section-title em  { font-style: normal; color: var(--teal-lt); }
.section-sub {
  font-size: .95rem; font-weight: 300; color: var(--g600);
  line-height: 1.75; max-width: 560px;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: .85rem;
  font-weight: 600; letter-spacing: .02em;
  cursor: pointer; border: none; transition: all .22s ease;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-lt); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42,140,130,.32); }
.btn-outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-outline-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.38); }
.btn-outline-w:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--teal-pale); transform: translateY(-2px); }

/* ── Scroll reveal ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; } .rd2 { transition-delay: .2s; } .rd3 { transition-delay: .3s; }

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 16px 0; transition: all .3s;
}
.navbar.scrolled {
  background: rgba(12,27,46,.97); backdrop-filter: blur(14px);
  padding: 11px 0; box-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: .83rem; font-weight: 500; color: rgba(255,255,255,.78);
  letter-spacing: .02em; transition: color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-lt); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-aula {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 600;
  color: var(--teal-lt); border: 1.5px solid var(--teal);
  background: rgba(42,140,130,.1); cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.nav-aula:hover { background: var(--teal); color: #fff; }
.nav-aula svg { width: 13px; height: 13px; }
.nav-cta { padding: 9px 18px; font-size: .8rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 1001; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.8px; background: #fff;
  border-radius: 2px; transition: all .28s; transform-origin: center;
}
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--navy); z-index: 1000;
  flex-direction: column; align-items: center;
  justify-content: center; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem; font-family: 'Cormorant Garamond', serif;
  font-weight: 600; color: rgba(255,255,255,.82);
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  width: 76%; text-align: center; transition: color .2s;
}
.mobile-menu a:hover { color: var(--teal-lt); }
.mm-btns { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 11px; width: 76%; }
@media (max-width: 960px) {
  .nav-links, .nav-aula, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 1100px) { .nav-links { gap: 16px; } }

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  padding: 132px 0 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ph-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(42,189,176,.1);
}
.ph-ring.a { width: 460px; height: 460px; right: -80px; top: -80px; }
.ph-ring.b { width: 280px; height: 280px; right: 50px; top: 50px; border-color: rgba(42,189,176,.06); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 600; color: #fff; line-height: 1.1; margin-bottom: 12px;
}
.page-hero h1 em { font-style: normal; color: var(--teal-lt); }
.page-hero p { font-size: .95rem; font-weight: 300; color: rgba(255,255,255,.6); line-height: 1.75; max-width: 520px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: rgba(255,255,255,.38); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.38); transition: color .2s; }
.breadcrumb a:hover { color: var(--teal-lt); }
.breadcrumb span { color: var(--teal-lt); font-weight: 500; }

/* ── Section helpers ────────────────────────── */
.section     { padding: 88px 0; }
.section-sm  { padding: 64px 0; }
.section-dark     { background: var(--navy); }
.section-ice      { background: var(--ice); }
.section-white    { background: var(--white); }
.section-teal-pale{ background: var(--teal-pale); }
.section-header   { text-align: center; margin-bottom: 48px; }
.section-header .section-sub { margin: 12px auto 0; }

/* ── Grids ──────────────────────────────────── */
.g3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.g2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.g21 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
@media (max-width: 900px)  { .g3 { grid-template-columns: repeat(2,1fr); } .g21 { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px)  { .g3, .g2 { grid-template-columns: 1fr; } }

/* ── Service card ───────────────────────────── */
.sc {
  background: #fff; border-radius: var(--r-lg); padding: 28px 22px;
  border: 1px solid rgba(0,0,0,.05); transition: transform .28s, box-shadow .28s;
}
.sc:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.sc.dk { background: var(--navy); }
.sc-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.sc-ico svg { width: 20px; height: 20px; color: var(--teal); }
.sc.dk .sc-ico { background: rgba(42,140,130,.2); }
.sc.dk .sc-ico svg { color: var(--teal-lt); }
.sc h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.22rem; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.sc.dk h3 { color: #fff; }
.sc p  { font-size: .87rem; font-weight: 300; line-height: 1.72; color: var(--g600); }
.sc.dk p { color: rgba(255,255,255,.56); }
.sc-modal-tag {
  display: inline-block; margin-top: 12px; padding: 4px 11px;
  border-radius: 50px; font-size: .7rem; font-weight: 700;
  background: var(--teal-pale); color: var(--teal); border: 1px solid rgba(42,140,130,.2);
}
.sc.dk .sc-modal-tag { background: rgba(42,189,176,.15); color: var(--teal-lt); border-color: rgba(42,189,176,.2); }

/* ── Course card ────────────────────────────── */
.cc {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--g100); transition: transform .28s, box-shadow .28s;
}
.cc:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.cc-iph {
  width: 100%; height: 170px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.cc-iph svg { width: 34px; height: 34px; color: rgba(255,255,255,.3); }
.cc-iph span { font-size: .7rem; color: rgba(255,255,255,.27); letter-spacing: .05em; }
.cc-body { padding: 18px; }
.cc-cat { font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 7px; }
.cc h3  { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 8px; }
.cc-meta { display: flex; gap: 12px; font-size: .74rem; color: var(--g300); margin-bottom: 12px; }
.cc-meta span { display: flex; align-items: center; gap: 4px; }
.cc-meta svg { width: 11px; height: 11px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--g100); }
.cc-price .orig { font-size: .72rem; color: var(--g300); text-decoration: line-through; display: block; }
.cc-price .curr { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.cc-btn { padding: 7px 14px; border-radius: 50px; background: var(--teal-pale); color: var(--teal); font-size: .73rem; font-weight: 600; border: 1px solid rgba(42,140,130,.22); transition: all .2s; text-decoration: none; }
.cc-btn:hover { background: var(--teal); color: #fff; }

/* ── Postgrado card ─────────────────────────── */
.pgc {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 26px 20px; transition: all .28s;
}
.pgc:hover { background: rgba(42,140,130,.1); border-color: rgba(42,189,176,.22); transform: translateY(-4px); }
.pgc-badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(42,140,130,.17); color: var(--teal-lt);
  font-size: .67rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 13px; border: 1px solid rgba(42,189,176,.17);
}
.pgc h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 9px; }
.pgc p  { font-size: .86rem; font-weight: 300; line-height: 1.68; color: rgba(255,255,255,.5); }
.pgc-meta { display: flex; gap: 16px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.pgc-ml { font-size: .64rem; color: rgba(255,255,255,.3); letter-spacing: .06em; text-transform: uppercase; }
.pgc-mv { font-size: .86rem; font-weight: 500; color: var(--teal-lt); margin-top: 1px; }

/* ── About helpers ──────────────────────────── */
.aib { position: relative; }
.aiph {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-lt), var(--teal));
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
}
.aiph svg  { width: 44px; height: 44px; color: rgba(255,255,255,.25); }
.aiph span { font-size: .75rem; color: rgba(255,255,255,.27); }
.abadge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--navy); border-radius: var(--r); padding: 16px 20px; color: #fff;
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
}
@media (max-width: 900px) { .abadge { right: 0; bottom: -14px; } }
.ab-num { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 600; color: var(--teal-lt); line-height: 1; }
.ab-lbl { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 3px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (max-width: 560px) { .mv-grid { grid-template-columns: 1fr; } }
.mvc { padding: 16px 18px; border-radius: var(--r); }
.mvc.dk { background: var(--navy); }
.mvc.lt { background: var(--g100); }
.mvc-lbl { font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--teal-lt); margin-bottom: 6px; }
.mvc.lt .mvc-lbl { color: var(--teal); }
.mvc p { font-size: .83rem; line-height: 1.68; }
.mvc.dk p { color: rgba(255,255,255,.62); }
.mvc.lt p { color: var(--g600); }

/* ── Team card ──────────────────────────────── */
.tc { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--g100); text-align: center; }
.tc-iph { width: 100%; height: 185px; background: linear-gradient(135deg,var(--navy-lt),var(--teal)); display: flex; align-items: center; justify-content: center; }
.tc-iph svg { width: 50px; height: 50px; color: rgba(255,255,255,.27); }
.tc-body { padding: 18px; }
.tc-body h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 600; color: var(--navy); }
.tc-role { font-size: .74rem; color: var(--teal); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.tc-body p  { font-size: .83rem; font-weight: 300; color: var(--g600); line-height: 1.62; margin-top: 9px; }

/* ── Values list ────────────────────────────── */
.vlist { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.vlist li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--g600); font-weight: 300; line-height: 1.6; }
.vlist li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-lt); margin-top: 7px; flex-shrink: 0; }

/* ── Contact ────────────────────────────────── */
.cg { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .cg { grid-template-columns: 1fr; gap: 36px; } }
.cdet { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cdico { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cdico svg { width: 17px; height: 17px; color: var(--teal); }
.cdlbl { font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g300); }
.cdval { font-size: .9rem; font-weight: 500; color: var(--navy); margin-top: 2px; line-height: 1.5; }
.fg { margin-bottom: 13px; }
.fg label { display: block; font-size: .74rem; font-weight: 600; color: var(--g600); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--g100); background: var(--g100);
  font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--text);
  outline: none; transition: border-color .2s, background .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); background: #fff; }
.fg textarea { height: 112px; resize: vertical; }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fr { grid-template-columns: 1fr; } }
.map-ph {
  width: 100%; height: 240px; border-radius: var(--r-lg);
  background: var(--g100); display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 10px; margin-top: 26px;
}
.map-ph svg { width: 34px; height: 34px; color: var(--teal); opacity: .45; }
.map-ph p { font-size: .82rem; color: var(--g300); text-align: center; line-height: 1.6; }

/* ── CTA banner ─────────────────────────────── */
.cta-banner { padding: 72px 0; background: var(--teal-pale); }
.cta-in { text-align: center; }
.cta-in .section-title { margin-bottom: 12px; }
.cta-in .section-sub { margin: 0 auto 28px; }
.cta-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────── */
footer { background: var(--navy); padding: 52px 0 0; }
.fg-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 900px) { .fg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .fg-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 42px; width: auto; margin-bottom: 12px; mix-blend-mode: screen; }
.fb-brand p { font-size: .82rem; font-weight: 300; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 200px; }
.ft { font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.32); margin-bottom: 15px; }
.fl { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fl a { font-size: .84rem; font-weight: 300; color: rgba(255,255,255,.56); transition: color .2s; }
.fl a:hover { color: var(--teal-lt); }
.fci { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.fci svg { width: 13px; height: 13px; color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.fci span { font-size: .82rem; font-weight: 300; color: rgba(255,255,255,.52); line-height: 1.55; }
.fbot { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fbot p, .fbot a { font-size: .77rem; color: rgba(255,255,255,.26); }
.fbot a:hover { color: var(--teal-lt); }

/* ── WhatsApp FAB ───────────────────────────── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 850;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 20px rgba(37,211,102,.38); transition: transform .22s, box-shadow .22s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 9px 28px rgba(37,211,102,.48); }
.wa-fab svg { width: 28px; height: 28px; color: #fff; }
.wa-tip {
  position: absolute; right: 62px; background: var(--navy); color: #fff;
  font-size: .76rem; font-weight: 500; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}
.wa-tip::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right: none; border-left-color: var(--navy);
}
.wa-fab:hover .wa-tip { opacity: 1; }

/* ─────────────────────────────────────────────
   BOOKING MODAL
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(12,27,46,.55);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 22px; width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  animation: modalIn .28s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(18px) scale(.97) } to { opacity:1; transform:translateY(0) scale(1) } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 8px; background: var(--g100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--g600); z-index: 2;
}
.modal-close:hover { background: var(--g300); color: #fff; }
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--g100);
}
.modal-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.modal-header p  { font-size: .83rem; color: var(--g300); margin-top: 3px; }
.modal-body { padding: 24px 32px 28px; }

/* Steps progress */
.modal-steps { display: flex; gap: 0; margin-bottom: 26px; }
.ms {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.ms::after {
  content: ''; position: absolute; top: 13px; left: 50%; width: 100%;
  height: 2px; background: var(--g100); z-index: 0;
}
.ms:last-child::after { display: none; }
.ms-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--g100);
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: var(--g300); z-index: 1;
  transition: all .2s;
}
.ms.active .ms-dot  { border-color: var(--teal); background: var(--teal); color: #fff; }
.ms.done  .ms-dot   { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); }
.ms::after { background: var(--g100); }
.ms.done::after { background: var(--teal); }
.ms-lbl { font-size: .68rem; font-weight: 600; color: var(--g300); white-space: nowrap; }
.ms.active .ms-lbl { color: var(--teal); }
.ms.done   .ms-lbl { color: var(--g600); }

/* Modal step panels */
.mstep { display: none; }
.mstep.active { display: block; }

/* Calendar inside modal */
.bk-cal-wrap { background: var(--g100); border-radius: 12px; padding: 14px; margin-top: 8px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-title { font-weight: 700; font-size: .9rem; color: var(--navy); }
.bk-nav-btn {
  width: 28px; height: 28px; border: 1px solid var(--g100); border-radius: 7px;
  background: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--g600);
}
.bk-day-labels { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 3px; }
.bk-day-labels span { text-align: center; font-size: .64rem; font-weight: 700; color: var(--g300); padding: 4px; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.bk-day {
  padding: 8px 2px; text-align: center; border: none; background: transparent;
  border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: .8rem;
  cursor: pointer; transition: background .1s; color: var(--text); font-weight: 400;
}
.bk-day:disabled { color: var(--g300); cursor: not-allowed; }
.bk-day.today    { background: var(--teal-pale); color: var(--teal); font-weight: 700; }
.bk-day.selected { background: var(--teal); color: #fff; font-weight: 700; }
.bk-day:not(:disabled):not(.selected):hover { background: var(--g100); }
.bk-sel-label { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--teal); text-align: center; min-height: 18px; }

/* Time slots */
.bk-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 8px; }
.bk-slot {
  padding: 9px 4px; border: 1.5px solid var(--g100); border-radius: 9px;
  background: #fff; font-family: 'DM Sans', sans-serif; font-size: .8rem;
  font-weight: 600; color: var(--g600); cursor: pointer;
  text-align: center; transition: all .15s;
}
.bk-slot:hover    { border-color: var(--teal); color: var(--teal); }
.bk-slot.selected { border-color: var(--teal); background: var(--teal); color: #fff; }

/* Modalidad pills */
.bk-modality { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.bk-mod-btn {
  padding: 12px; border: 1.5px solid var(--g100); border-radius: 10px;
  background: var(--g100); font-family: 'DM Sans', sans-serif; font-size: .85rem;
  font-weight: 600; color: var(--g600); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .18s;
}
.bk-mod-btn:hover    { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.bk-mod-btn.selected { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); }
.bk-mod-btn svg { width: 15px; height: 15px; }

/* Service buttons grid */
.bk-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bk-svc-btn {
  padding: 12px 14px; border: 1.5px solid var(--g100); border-radius: 10px;
  background: var(--g100); font-family: 'DM Sans', sans-serif; font-size: .83rem;
  font-weight: 500; color: var(--g600); cursor: pointer; text-align: left;
  transition: all .15s; line-height: 1.4;
}
.bk-svc-btn:hover    { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.bk-svc-btn.selected { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); font-weight: 700; }

/* Summary box */
.bk-summary { background: var(--g100); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.bk-summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: .86rem; }
.bk-summary-row:last-child { border-bottom: none; }
.bk-summary-row .k { color: var(--g300); font-weight: 600; }
.bk-summary-row .v { color: var(--navy); font-weight: 600; text-align: right; }

/* Modal footer nav */
.modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }
.modal-footer .btn-back { padding: 10px 20px; border-radius: 50px; background: var(--g100); color: var(--g600); border: none; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .84rem; cursor: pointer; }
.bk-msg { padding: 11px 14px; border-radius: 10px; font-size: .83rem; margin-top: 10px; display: none; }
.bk-msg.ok    { background: rgba(42,140,130,.08); border: 1px solid rgba(42,140,130,.2); color: var(--teal); }
.bk-msg.error { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.18); color: #dc2626; }