/* InCORP — Instituto Corazón y Pulmón · Propuesta de rediseño */

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

:root {
  --ink: #1d1629;
  --text: #463f52;
  --muted: #655d71;
  --line: #ebe4ef;
  --line-strong: #ddd3e3;
  --bg: #fff;
  --soft: #f8f4fa;
  --soft-2: #f2eaf6;
  --purple: #662f76;
  --purple-d: #4a1f58;
  --magenta: #f32789;
  --accent: #d1176f;
  --accent-d: #b3105e;
  --wa: #0f7a40;
  --wa-d: #0b6635;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 14px 36px -14px rgb(74 31 88 / .26), 0 2px 6px rgb(29 22 41 / .06);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-h: 72px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px rgb(209 23 111 / .8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--purple-d); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .38); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-d); }
  .btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
  .btn-wa:hover { background: var(--wa-d); }
  .btn-light:hover { background: var(--soft-2); }
  .btn-outline-light:hover { border-color: #fff; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgb(29 22 41 / .45); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand-name b span { color: var(--purple); }
.brand-name small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 700; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 9px 13px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .94rem; color: var(--text);
  transition: background-color 150ms ease, color 150ms ease;
}
.nav a[aria-current="page"] { color: var(--purple); background: var(--soft-2); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--soft-2); color: var(--ink); }
}
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 2px;
    background: #fff; padding: 10px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(29 22 41 / .35);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 14px 14px; font-size: 1.05rem; border-radius: 12px; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
    transition: transform 160ms var(--ease-out);
  }
  .menu-toggle:active { transform: scale(.95); }
  .menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 75% at 92% 8%, rgb(243 39 137 / .11), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(102 47 118 / .10), transparent 62%),
    var(--soft);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--magenta); border-radius: 2px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--purple), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--text); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; font-size: .92rem; color: var(--muted); font-weight: 500; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--accent); width: 1.1em; height: 1.1em; }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 6; background: #e7ecf3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 16px; padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow); font-size: .86rem; line-height: 1.3; color: var(--muted); max-width: 240px;
}
.float-card strong { display: block; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.float-a { left: -28px; bottom: 40px; }
.float-b { right: -20px; top: 32px; }
.badge-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--purple); flex: none; }
.float-a .badge-icon { background: rgb(209 23 111 / .1); color: var(--accent); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .float-a { left: 14px; bottom: 14px; }
  .float-b { right: 14px; top: 14px; }
}
@media (max-width: 560px) {
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .float-b { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
.card p { color: var(--muted); }
.card h3 { margin-bottom: 8px; }
a.card { text-decoration: none; }
a.card:active { transform: scale(.985); }
.icon-tile { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-2); color: var(--purple); margin-bottom: 20px; }
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile.is-accent { background: rgb(209 23 111 / .09); color: var(--accent); }
.icon-tile.is-wa { background: rgb(15 122 64 / .09); color: var(--wa); }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent); }
.more .icon { width: 1.05em; height: 1.05em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
  a.card:hover .more .icon { transform: translateX(3px); }
}

/* Quick actions overlap the hero edge slightly */
.quick { margin-top: -28px; position: relative; z-index: 2; }
@media (max-width: 960px) { .quick { margin-top: 0; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: var(--accent); background: rgb(209 23 111 / .08);
}
.steps h3 { margin-bottom: 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Territories ---------- */
.territory { overflow: hidden; }
.territory::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.territory .count { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--purple); background: var(--soft-2); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.territory ul { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 10px; }
.territory li { position: relative; padding-left: 18px; color: var(--text); font-size: .95rem; line-height: 1.45; }
.territory li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }

/* ---------- Chips, quote, team ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.chips.is-muted li { background: transparent; color: var(--text); font-weight: 500; }
.label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }

.quote {
  margin: 0; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
  background: radial-gradient(90% 120% at 100% 0%, rgb(243 39 137 / .32), transparent 55%), linear-gradient(140deg, var(--purple), #2b1438);
  color: #fff;
}
.quote .eyebrow { color: rgb(255 255 255 / .8); }
.quote p { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: #fff; margin: 0; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple), var(--accent)); flex: none; letter-spacing: .02em; }
.person b { display: block; color: var(--ink); line-height: 1.3; }
.person span { font-size: .9rem; color: var(--muted); }

/* ---------- Partners ---------- */
.partners-title { text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(36px, 7vw, 96px); }
.partners img { height: 46px; width: auto; filter: grayscale(1); opacity: .65; transition: filter 200ms ease, opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .partners img:hover { filter: none; opacity: 1; } }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center;
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); color: #fff;
  background: radial-gradient(80% 140% at 100% 0%, rgb(243 39 137 / .38), transparent 55%), linear-gradient(135deg, var(--purple-d), #24112f);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgb(255 255 255 / .82); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(50% 90% at 95% 0%, rgb(243 39 137 / .1), transparent 60%), var(--soft);
  padding-block: clamp(40px, 6vw, 84px) clamp(36px, 5vw, 64px);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Treatments catalog ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.toolbar-inner { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 300px; }
.search input { padding-left: 46px; border-radius: 999px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--text); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(.97); }
.tab .n { color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.tab[aria-pressed="true"] .n { color: rgb(255 255 255 / .8); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-pressed="true"]):hover { border-color: var(--purple); color: var(--purple); } }
@media (max-width: 640px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}
.result-count { font-size: .9rem; color: var(--muted); margin: 26px 0 0; }

.proc-group { margin-top: 44px; }
.proc-group[hidden] { display: none; }
.proc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.proc-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0; }
.proc-head .icon-tile { margin: 0; }
.proc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.proc-list li { position: relative; padding: 14px 16px 14px 38px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 500; line-height: 1.4; }
.proc-list li::before { content: ""; position: absolute; left: 16px; top: 1.25em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--magenta)); }
.proc-list li[hidden] { display: none; }
[data-group="neurologico"] { --dot: var(--purple); }
[data-group="periferico"] { --dot: #a0619e; }
.proc-list mark { background: rgb(243 39 137 / .16); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); margin-top: 32px; }
.empty[hidden] { display: none; }
.note { font-size: .92rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; }
.aside-card h2 { font-size: 1rem; letter-spacing: -.01em; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.aside-card li { display: flex; gap: 10px; align-items: flex-start; }
.aside-card li .icon { color: var(--accent); width: 1.1em; height: 1.1em; margin-top: .2em; }
.aside-card.is-soft { background: var(--soft); border-color: transparent; font-size: .9rem; }
.aside-card.is-soft p:last-child { margin: 0; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } }

fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 26px; margin: 0 0 18px; background: #fff; min-width: 0; }
legend { font-weight: 800; color: var(--ink); font-size: 1.05rem; padding: 0 8px; margin-left: -8px; display: flex; gap: 10px; align-items: center; }
legend .n { width: 28px; height: 28px; border-radius: 8px; background: var(--soft-2); color: var(--purple); display: inline-grid; place-items: center; font-size: .85rem; }
.fieldset-hint { margin: 2px 0 16px; font-size: .9rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--accent); }
.hint { font-size: .84rem; color: var(--muted); }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } fieldset { padding: 18px 16px 22px; } }

input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { min-height: 104px; resize: vertical; }
input[readonly] { background: var(--soft); color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgb(102 47 118 / .14); }
.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid { border-color: var(--accent); }
::placeholder { color: #9a92a5; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 12px; }
.check { position: relative; display: block; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.check span {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--text); line-height: 1.3;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.check span::before {
  content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cbbfd3; flex: none;
  background: #fff center / 13px no-repeat; transition: background-color 150ms ease, border-color 150ms ease;
}
.check span:active { transform: scale(.98); }
.check input:checked + span { border-color: var(--purple); background: var(--soft-2); color: var(--ink); }
.check input:checked + span::before {
  background-color: var(--purple); border-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .check span:hover { border-color: var(--purple); } }

.conditional { margin-top: 16px; }
.conditional[hidden] { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin: 6px 0 22px; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--purple); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 700; }
.btn[disabled] { opacity: .7; cursor: progress; }

.form-success { text-align: center; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(32px, 6vw, 56px) 24px; background: #fff; }
.form-success[hidden] { display: none; }
.form-success .icon-tile { margin: 0 auto 18px; background: rgb(15 122 64 / .1); color: var(--wa); }
.form-success-title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 750; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; margin-bottom: 10px; }
.demo-flag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--purple); background: var(--soft-2); padding: 4px 10px; border-radius: 999px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1060px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 24px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-card a { text-decoration: none; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .contact-card a:hover { color: var(--accent); } }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-facade {
  width: 100%; height: 100%; border: 0; cursor: pointer; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    linear-gradient(rgb(102 47 118 / .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(102 47 118 / .06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--soft-2);
  transition: background-color 200ms ease;
}
.map-facade .icon-tile { background: #fff; color: var(--accent); margin-bottom: 6px; box-shadow: var(--shadow); }
.map-facade strong { font-size: 1.1rem; }
.map-facade span:last-child { color: var(--muted); font-size: .92rem; }
.map-facade:active .icon-tile { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .map-facade:hover { background-color: #ece1f2; } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff4f8; border: 1px solid #f7cfe0; color: #7a1442; font-size: .94rem; margin-top: 18px; }
.alert .icon { margin-top: .15em; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1224; color: rgb(255 255 255 / .7); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a.credit { text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgb(255 255 255 / .82); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.footer-brand .brand { margin: 0 0 16px; }
.footer-brand .brand-name b { color: #fff; }
.footer-brand .brand-name b span { color: #e7a9d8; }
.footer-brand .brand-name small { color: rgb(255 255 255 / .55); }
.footer-brand .mark-tile { background: #fff; border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.footer-brand p { max-width: 30em; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .08); }
@media (hover: hover) and (pointer: fine) { .social a:hover { background: rgb(255 255 255 / .16); } }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .85rem; color: rgb(255 255 255 / .55); }

/* ---------- Digital business card ---------- */
.vcard-page {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px 16px;
  background: radial-gradient(70% 50% at 100% 0%, rgb(243 39 137 / .14), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgb(102 47 118 / .12), transparent 60%), var(--soft);
}
.vcard { width: min(100%, 420px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 22px; }
.vcard-top { padding: 26px 24px 64px; background: radial-gradient(90% 140% at 100% 0%, rgb(243 39 137 / .4), transparent 55%), linear-gradient(140deg, var(--purple), #2b1438); }
.vcard-logo { text-decoration: none; display: inline-flex; }
.vcard-logo .brand-name { align-items: center; }
.vcard-logo .brand-name b { color: #fff; }
.vcard-logo .brand-name b span { color: #f3b6dc; }
.vcard-logo .brand-name small { color: rgb(255 255 255 / .7); }
.vcard-avatar { width: 96px; height: 96px; margin: -48px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple), var(--accent)); border: 4px solid #fff; box-shadow: var(--shadow); }
.vcard h1 { font-size: 1.6rem; margin: 0 0 2px; }
.vcard-role { color: var(--muted); font-weight: 600; margin: 0 0 20px; }
.vcard-actions { display: grid; gap: 10px; padding: 0 22px 22px; }
.vcard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vcard-list { list-style: none; margin: 0; padding: 0 22px; text-align: left; border-top: 1px solid var(--line); }
.vcard-list a { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.vcard-list .icon { color: var(--purple); }
.vcard-list small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.vcard-site { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .hero-copy > *, .js .hero-media { animation: rise 700ms var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
.js .hero-copy > :nth-child(5) { animation-delay: 240ms; }
.js .hero-media { animation-delay: 120ms; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-copy > *, .js .hero-media { animation-name: fade; animation-duration: 300ms; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .btn:active, a.card:active, .tab:active, .check span:active { transform: none; }
}
