/* Clínica Arce · proyecto conceptual de NORTH Studio Latam
   Sereno y luminoso: blanco verdoso, verde salvia, formas redondeadas y sombras muy difusas.
   Una sola familia: Plus Jakarta Sans. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f5f7f5;
  --bg-2: #eaefec;
  --card: #ffffff;
  --ink: #142420;
  --ink-2: #44534f;
  --muted: #62716d;
  --sage: #2e6a5a;
  --sage-2: #3b8170;
  --mint: #dcebe4;
  --mint-2: #c6ded3;
  --sand: #f1ece4;

  --r: 28px;
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(96px, 12vw, 168px);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(20, 36, 32, .04), 0 18px 50px -24px rgba(20, 36, 32, .18);
}

*, *::before, *::after { box-sizing: border-box; }
/* Lo que lleva el atributo hidden no se muestra ni recibe clics (los menús lo usan al cerrarse) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--mint-2); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 12px; }

.h2 { margin: 0; font-size: clamp(2.125rem, 1.2rem + 3vw, 4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.head .h2 { max-width: 16ch; }
.head p { margin: 0; max-width: 44ch; color: var(--ink-2); font-size: 1.125rem; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--spring), background-color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn--sage { background: var(--sage); color: #fff; box-shadow: 0 10px 24px -12px rgba(46, 106, 90, .7); }
.btn--sage:hover { background: var(--sage-2); }
.btn--soft { background: var(--mint); color: var(--sage); }
.btn--soft:hover { background: var(--mint-2); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ── Barra ── */
.bar { position: fixed; top: 12px; left: 0; right: 0; z-index: 20; padding: 0 12px; transition: transform .6s var(--spring); }
.bar.is-hidden { transform: translateY(-130%); }
.bar__in {
  display: flex; align-items: center; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 8px 8px 8px 20px;
  border-radius: 999px; background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(20, 36, 32, .05), 0 12px 30px -18px rgba(20, 36, 32, .25);
}
.bar__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.bar__logo { width: 26px; height: 26px; border-radius: 9px; background: var(--sage); position: relative; flex: none; }
.bar__logo::after { content: ""; position: absolute; inset: 7px 6px 8px; border-radius: 6px 6px 3px 3px; background: #fff; }
.bar__nav { display: flex; gap: 4px; margin-left: auto; }
.bar__nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink-2); transition: background-color .3s, color .3s; }
.bar__nav a:hover, .bar__nav a[aria-current] { background: var(--mint); color: var(--sage); }
.bar__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mint); cursor: pointer; position: relative; }
.bar__burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--sage); transition: transform .5s var(--spring), opacity .3s; }
.bar__burger span:nth-child(1) { top: 16px; }
.bar__burger span:nth-child(2) { top: 21px; }
.bar__burger span:nth-child(3) { top: 26px; }
.bar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.panel { position: fixed; inset: 0; z-index: 15; padding: 104px 20px 24px; background: rgba(245, 247, 245, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; transition: opacity .45s var(--out); }
.panel.is-open { opacity: 1; }
.panel nav { display: grid; gap: 8px; }
.panel a { padding: 18px 22px; border-radius: 22px; background: var(--card); font-size: 1.375rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transform: translateY(20px) scale(.98); opacity: 0; transition: transform .6s var(--spring), opacity .6s var(--out); }
.panel.is-open a { transform: none; opacity: 1; }
.panel.is-open a:nth-child(2) { transition-delay: .05s; }
.panel.is-open a:nth-child(3) { transition-delay: .1s; }
.panel.is-open a:nth-child(4) { transition-delay: .15s; }
.panel__cta { background: var(--sage) !important; color: #fff; }

/* ── Portada ── */
.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1360px; margin: 0 auto; padding: clamp(120px, 16vh, 160px) var(--pad) 0; min-height: 100svh; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: .875rem; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34a37a; box-shadow: 0 0 0 0 rgba(52, 163, 122, .5); animation: pulse 2.2s ease-out infinite; }
.pulse.is-off { background: #c9a35b; animation: none; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(52, 163, 122, 0); } }
.hero__title { margin: 0; font-size: clamp(2.75rem, 1.2rem + 3.9vw, 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: .98; text-wrap: balance; }
.hero__title .w { display: inline-block; }
.hero__lead { margin: 24px 0 32px; max-width: 44ch; color: var(--ink-2); font-size: 1.1875rem; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin: 40px 0 0; padding: 0; color: var(--ink-2); font-size: .9375rem; }
.hero__trust b { display: block; color: var(--ink); font-size: 1.375rem; letter-spacing: -0.02em; }
.hero__media { position: relative; }
.frame { border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; padding: 16px 20px; border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.float-card--a { left: -28px; bottom: 56px; }
.float-card--b { right: -20px; top: 48px; }
.float-card__k { margin: 0; color: var(--muted); font-size: .8125rem; }
.float-card__v { margin: 2px 0 0; font-weight: 700; letter-spacing: -0.01em; }

/* ── Simulador ── */
.sim, .tech, .team, .book { max-width: 1360px; margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.sim__card { padding: 8px; border-radius: 36px; background: var(--card); box-shadow: var(--shadow); }
.sim__tabs { display: flex; gap: 6px; padding: 6px; border-radius: 30px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.sim__tabs button { flex: 1 0 auto; padding: 14px 18px; border: 0; border-radius: 24px; cursor: pointer; background: transparent; font-weight: 600; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; transition: background-color .4s var(--spring), color .3s, box-shadow .4s; }
.sim__tabs button:hover { color: var(--ink); }
.sim__tabs button[aria-selected="true"] { background: var(--card); color: var(--sage); box-shadow: 0 4px 14px -6px rgba(20, 36, 32, .25); }
.sim__body { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 4vw, 56px); }
.sim__body > * { animation: rise .6s var(--out) both; }
.sim__body > *:nth-child(2) { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.sim__name { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.sim__desc { margin: 14px 0 26px; color: var(--ink-2); }
.sim__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim__stats div { padding: 16px; border-radius: 20px; background: var(--bg); }
.sim__stats dt { color: var(--muted); font-size: .8125rem; }
.sim__stats dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim__price { margin-top: 18px; padding: 22px; border-radius: 22px; background: var(--mint); }
.sim__price p { margin: 0; color: var(--sage); font-size: .875rem; font-weight: 600; }
.sim__price strong { display: block; margin: 4px 0; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sim__price small { color: var(--ink-2); font-size: .875rem; }
.plan-label { margin: 0 0 14px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.timeline .when { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.timeline .bar-step { position: relative; padding: 14px 16px; border-radius: 16px; background: var(--bg); overflow: hidden; }
.timeline .bar-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); background: var(--mint); border-radius: 16px; transform-origin: left; animation: grow 1s var(--out) both; animation-delay: var(--d, 0s); }
.timeline .bar-step span { position: relative; font-weight: 500; font-size: .9375rem; }
@keyframes grow { from { transform: scaleX(0); } }
.sim__note { margin: 16px 0 0; color: var(--muted); font-size: .875rem; }

/* ── Primera visita ── */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1360px; margin: 0 auto; padding: var(--sec) var(--pad) 0; }
.visit__img { margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.visit__img img { width: 100%; height: 114%; margin-top: -7%; object-fit: cover; }
.visit__steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; }
.visit__steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); transition: transform .5s var(--spring); }
.visit__steps li:hover { transform: translateX(4px); }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--sage); font-weight: 700; font-size: 1.25rem; }
.visit__steps h3 { margin: 4px 0 4px; font-size: 1.125rem; letter-spacing: -0.01em; }
.visit__steps p { margin: 0; color: var(--ink-2); }
.visit__price { margin: 24px 0 0; color: var(--ink-2); }
.visit__price b { color: var(--ink); }

/* ── Tecnología ── */
.tech__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.tile { position: relative; padding: 28px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; }
.tile h3 { margin: 0 0 6px; font-size: 1.125rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.tile__n { margin: 0 0 auto !important; font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem) !important; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.tile--sage { background: var(--sage); color: #fff; }
.tile--sage p, .tile--sage .tile__n { color: #fff !important; }
.tile--sage p:last-child { color: rgba(255, 255, 255, .8) !important; }
.tile--img { grid-row: 1 / 3; padding: 0; min-height: 520px; }
.tile--img img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.tile__cap { position: relative; margin: 16px; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .92); }
.tech__grid .tile:nth-child(4) { grid-column: 2 / 4; }

/* ── Equipo ── */
.team__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); transition: transform .5s var(--spring); }
.member:hover { transform: translateY(-3px); }
.member__ini { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--sand); font-weight: 700; color: var(--sage); }
.member p { margin: 0; line-height: 1.35; }
.member small { color: var(--muted); font-size: .875rem; }

/* ── Turnos ── */
.book { padding-bottom: var(--sec); }
.book__card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 4vw, 56px); border-radius: 36px; background: var(--card); box-shadow: var(--shadow); }
.book__side p { margin: 16px 0 0; color: var(--ink-2); max-width: 38ch; }
.book__sum { margin-top: 32px; padding: 20px; border-radius: 22px; background: var(--mint); color: var(--sage); font-weight: 600; line-height: 1.5; }
.book__sum small { display: block; color: var(--ink-2); font-weight: 500; }
.book__form { display: grid; gap: 22px; }
.group { margin: 0; padding: 0; border: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .9375rem; }
.group legend span { color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--bg); font-weight: 500; font-size: .9375rem; transition: background-color .3s, color .3s, transform .4s var(--spring); }
.chip:hover { background: var(--bg-2); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--sage); color: #fff; }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 0; border-radius: 20px; cursor: pointer; background: var(--bg); transition: background-color .3s, color .3s, transform .4s var(--spring); }
.day small { color: var(--muted); font-size: .75rem; text-transform: capitalize; }
.day b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.day:active { transform: scale(.95); }
.day[aria-pressed="true"] { background: var(--sage); color: #fff; }
.day[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 2px; padding: 12px 18px 10px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s, background-color .3s; }
.field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--sage); }
.field span { color: var(--muted); font-size: .8125rem; }
.field input { border: 0; background: transparent; outline: none; height: 28px; padding: 0; font-size: 1.0625rem; }
.field.is-invalid { box-shadow: inset 0 0 0 1.5px #c0392b; }
.book__done { margin: 0; padding: 14px 18px; border-radius: 18px; background: var(--mint); color: var(--sage); font-weight: 600; }

/* ── Pie ── */
.foot { margin: 0 12px 12px; padding: clamp(48px, 6vw, 80px) var(--pad) 24px; border-radius: 36px; background: var(--ink); color: #eaf1ee; }
.foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; max-width: 1280px; margin: 0 auto; }
.foot__brand { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.foot__brand .bar__logo { background: var(--sage-2); }
.foot h4 { margin: 0 0 8px; color: #9fbcb1; font-size: .8125rem; font-weight: 600; }
.foot__in p { margin: 0; color: rgba(234, 241, 238, .82); }
.foot__legal { max-width: 1280px; margin: 48px auto 0; color: rgba(234, 241, 238, .55); font-size: .8125rem; }

.concept { position: fixed; left: 16px; bottom: 16px; z-index: 12; padding: 9px 15px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; text-decoration: none; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--out), transform .5s var(--out); }
.concept span { color: rgba(255, 255, 255, .6); font-weight: 400; }
.concept.is-on { opacity: 1; transform: none; pointer-events: auto; }

.js .reveal { opacity: 0; transform: translateY(36px) scale(.985); }

@media (max-width: 959px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__burger { display: block; }
  .hero, .visit, .book__card, .sim__body { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 104px; }
  .float-card--a { left: 12px; bottom: 12px; }
  .float-card--b { right: 12px; top: 12px; }
  .tech__grid { grid-template-columns: 1fr 1fr; }
  .tile--img { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .tech__grid .tile:nth-child(4) { grid-column: 1 / -1; }
  .team__list { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .sim__stats { grid-template-columns: 1fr 1fr; }
  .sim__stats div:last-child { grid-column: 1 / -1; }
  .tech__grid, .team__list, .row { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .timeline li { grid-template-columns: 72px 1fr; }
  .concept span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
