/* Clínica Bahía — institucional moderno: azul marino, coral y blanco hielo. */
:root {
  --bg: #f3f5f9; --white: #fff; --ink: #0b1e3f; --navy: #0b1e3f; --navy-2: #132c58; --muted: #5b6782; --line: rgba(11,30,63,.1);
  --accent: #ff6a4d; --sky: #dfe8fb; --ok: #16a37f;
  --sans: "Manrope", system-ui, sans-serif; --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(18px, 4vw, 56px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow.light { color: #ffb4a3; }
.h2 { font-weight: 800; font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; max-width: 17ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 52ch; margin-top: 18px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px 40px; margin-bottom: clamp(32px, 4.5vw, 60px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 14px; font-weight: 800; font-size: 15px; line-height: 1; transition: background .35s var(--ease), color .35s, transform .35s var(--ease), box-shadow .35s, border-color .35s; white-space: nowrap; }
.btn-coral { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(255,106,77,.9); }
.btn-coral:hover { background: #ff5434; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--accent); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: background .5s var(--ease), color .5s, box-shadow .5s; }
.nav.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 80px; width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mk { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); }
.logo-mk svg { width: 22px; height: 22px; fill: #fff; }
.logo-tx { display: grid; line-height: 1.1; }
.logo-tx b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.logo-tx small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.menu { display: none; gap: 26px; margin-left: auto; font-weight: 700; font-size: 15px; }
.menu a { opacity: .8; transition: opacity .3s; }
.menu a:hover { opacity: 1; }
.nav-tel { display: none; line-height: 1.15; font-weight: 800; font-size: 15px; }
.nav-tel small { display: block; font-size: 11px; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
.nav-cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .nav { background: #fff; color: var(--ink); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; inset: 80px 0 0 0; background: #fff; padding: 30px var(--gut); gap: 6px; font-size: 34px; letter-spacing: -.03em; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(1.12); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(11,30,63,.97) 0%, rgba(11,30,63,.88) 38%, rgba(11,30,63,.35) 75%, rgba(11,30,63,.2) 100%), linear-gradient(0deg, rgba(11,30,63,.9), transparent 40%); }
.hero-in { position: relative; z-index: 2; padding-top: clamp(60px, 9vw, 120px); padding-bottom: 50px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 700; backdrop-filter: blur(8px); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #35d39b; box-shadow: 0 0 0 0 rgba(53,211,155,.6); animation: live 1.8s infinite; display: inline-block; }
@keyframes live { to { box-shadow: 0 0 0 10px rgba(53,211,155,0); } }
.hero-title { font-weight: 800; font-size: clamp(48px, 7vw, 108px); line-height: .98; letter-spacing: -.045em; max-width: 13ch; margin: 24px 0 22px; }
.hero-title em { color: #ffb4a3; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.8); max-width: 50ch; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 34px; max-width: 760px; padding: 8px 8px 8px 20px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); color: var(--ink); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 12px 0; background: transparent; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }
.quick button { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font-weight: 700; color: #fff; transition: background .3s, border-color .3s; }
.quick button:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats div { padding: 26px 0; }
.hero-stats b { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.04em; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.65); }

/* Ticker */
.ticker { overflow: hidden; background: var(--accent); color: #fff; padding: 15px 0; }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: mq 45s linear infinite; font-weight: 800; font-size: 16px; white-space: nowrap; letter-spacing: -.01em; }
.marquee-track i { font-style: normal; opacity: .6; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Especialidades */
.specs { padding: clamp(80px, 10vw, 140px) 0; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list button { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 6px 14px; align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--line); text-align: left; transition: background .4s var(--ease), padding .4s var(--ease); }
.spec-list .n { font-size: 13px; font-weight: 800; color: var(--muted); }
.spec-list b { font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.spec-list .m, .spec-list .p { display: none; font-size: 14px; color: var(--muted); font-weight: 600; }
.spec-list i { font-style: normal; font-size: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: background .35s, color .35s, transform .35s var(--ease); }
.spec-list button:hover { background: #fff; padding-inline: 18px; }
.spec-list button:hover i { background: var(--accent); color: #fff; transform: rotate(-45deg); }
.specs-more { margin-top: 26px; color: var(--muted); max-width: 80ch; }

/* Médicos */
.docs { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.docs-count { font-weight: 700; color: var(--muted); }
.doc-grid { display: grid; gap: 16px; }
.doc { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px; border-radius: 22px; background: var(--bg); border: 1px solid transparent; transition: border-color .35s, transform .45s var(--ease), box-shadow .45s; }
.doc:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(11,30,63,.5); }
.doc-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; background: var(--sky); }
.doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doc-b { display: grid; align-content: start; gap: 4px; justify-items: start; }
.doc-s { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.doc h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.doc-u { font-size: 13px; color: var(--muted); }
.doc-next { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.doc-next span { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.doc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.doc-tags span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--muted); }
.doc-empty { text-align: center; padding: 40px; border-radius: 22px; background: var(--bg); display: grid; gap: 14px; justify-items: center; }
.doc-empty p { font-weight: 700; }

/* Agenda */
.agenda { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(900px 500px at 85% 20%, #1b3a73, transparent 60%), var(--navy); color: #fff; }
.agenda .lead { color: rgba(255,255,255,.72); }
.agenda .h2 em { color: #ffb4a3; }
.ag-grid { display: grid; gap: 44px; align-items: center; }
.ag-ben { display: grid; gap: 10px; margin-top: 28px; }
.ag-ben li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ag-ben li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(53,211,155,.18); color: #35d39b; font-size: 12px; flex: none; }
.ag-box { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); display: grid; gap: 10px; }
.ag-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.ag-steps span { flex: 1; padding: 9px 6px; border-radius: 10px; background: var(--bg); font-size: 12px; font-weight: 800; text-align: center; color: var(--muted); transition: all .3s; }
.ag-steps span.is-on { background: var(--navy); color: #fff; }
.ag-l { font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.ag-box select { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 15px; }
.ag-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-days button, .ag-slots button { padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; transition: all .25s; line-height: 1.2; }
.ag-days button small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.ag-days button:hover, .ag-slots button:hover:not(:disabled) { border-color: var(--navy); }
.ag-days button[aria-checked="true"], .ag-slots button[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ag-days button[aria-checked="true"] small { color: rgba(255,255,255,.7); }
.ag-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 92px; }
.ag-slots button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.ag-sum { padding: 14px 16px; border-radius: 14px; background: var(--sky); font-weight: 700; font-size: 14px; margin: 6px 0 4px; }

/* Exámenes */
.exams { padding: clamp(80px, 10vw, 140px) 0; }
.seg { display: inline-flex; padding: 5px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { padding: 11px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; transition: all .3s; }
.seg button[aria-selected="true"] { background: var(--navy); color: #fff; }
.ex { display: grid; gap: 30px; align-items: center; padding: clamp(14px, 2vw, 22px); border-radius: 32px; background: #fff; animation: exIn .6s var(--ease) both; }
@keyframes exIn { from { opacity: 0; transform: translateY(14px); } }
.ex-img { border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; }
.ex-img img { width: 100%; height: 100%; object-fit: cover; }
.ex-b { padding: 6px clamp(4px, 2vw, 24px) 10px; }
.ex-b h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.ex-b > p { color: var(--muted); margin: 12px 0 22px; font-size: 17px; }
.ex-meta { display: grid; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.ex-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg); }
.ex-meta dt { color: var(--muted); font-weight: 600; font-size: 14px; }
.ex-meta dd { margin: 0; font-weight: 800; font-size: 14px; text-align: right; }

/* Telemedicina */
.tele { padding: clamp(80px, 10vw, 140px) 0; background: var(--sky); }
.tele-grid { display: grid; gap: 44px; align-items: center; }
.tele-img { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4/3; }
.tele-img img { width: 100%; height: 100%; object-fit: cover; }
.tele-badge { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.92); font-weight: 800; font-size: 14px; }
.tele-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0; }
.tele-cards div { padding: 20px; border-radius: 18px; background: #fff; }
.tele-cards b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.tele-cards span { font-size: 14px; color: var(--muted); }

/* Urgencia */
.urg { padding: clamp(60px, 8vw, 100px) 0; background: linear-gradient(120deg, #ff6a4d, #e2452a); color: #fff; }
.urg .eyebrow.light { color: rgba(255,255,255,.8); }
.urg-grid { display: grid; gap: 30px; }
.urg-t { font-weight: 800; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; }
.urg-t em { color: #fff; }
.urg-live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.25); }
.urg-live div { padding: 20px 16px; background: rgba(120,25,10,.18); }
.urg-live small { display: block; font-size: 12px; font-weight: 700; opacity: .8; }
.urg-live b { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.urg-n { font-size: 14px; opacity: .9; }

/* Ubicación + FAQ */
.loc { padding: clamp(80px, 10vw, 140px) 0; }
.loc-grid { display: grid; gap: 44px; }
.loc-card { margin-top: 26px; padding: 24px; border-radius: 22px; background: #fff; display: grid; gap: 8px; color: var(--muted); }
.loc-card b { color: var(--ink); }
.loc-open { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--ink) !important; }
.loc-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b8bfcc; }
.loc-open.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,127,.2); }
.loc-img { margin-top: 14px; border-radius: 22px; overflow: hidden; aspect-ratio: 16/10; }
.loc-img img { width: 100%; height: 100%; object-fit: cover; }
.acc details { background: #fff; border-radius: 18px; margin-bottom: 10px; padding: 0 22px; border: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc details p { padding: 0 0 20px; color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: rgba(255,255,255,.7); padding-top: 70px; }
.foot-in { display: grid; gap: 30px; padding-bottom: 44px; }
.foot .logo { color: #fff; }
.foot-in p { margin-top: 12px; }
.foot h4 { color: #fff; font-size: 14px; font-weight: 800; }
.foot a { cursor: pointer; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Responsive */
@media (min-width: 540px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .ag-days { grid-template-columns: repeat(6, 1fr); }
  .spec-list button { grid-template-columns: 56px 1fr 120px auto; }
  .spec-list .m { display: block; }
}
@media (min-width: 720px) {
  .ex-meta { grid-template-columns: repeat(3, 1fr); }
  .ex-meta div { display: grid; gap: 4px; }
  .ex-meta dd { text-align: left; }
}
@media (min-width: 960px) {
  .menu, .nav-cta, .nav-tel { display: flex; }
  .nav-tel { display: block; }
  .burger { display: none; }
  .spec-list button { grid-template-columns: 70px 1.3fr 140px 1fr auto; }
  .spec-list .p { display: block; }
  .doc-grid { grid-template-columns: repeat(4, 1fr); }
  .doc { grid-template-columns: 1fr; }
  .ag-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .ex { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .tele-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .urg-grid { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .urg-n { grid-column: 1 / -1; }
  .loc-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 539px) {
  .search { flex-wrap: wrap; padding: 8px; }
  .search svg { display: none; }
  .search input { padding: 12px; }
  .search .btn { width: 100%; }
  .urg-live { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
  .marquee-track { animation-duration: 160s; }
}
