/* =========================================================
   Dr. Juan Balestrelli — Landing page
   Mobile first (design 390px) · desktop from 900px (design 1440px)
   ========================================================= */

:root {
  --ink: #030b0f;
  --text: #19303b;
  --muted: #5c6e74;
  --accent: #1f4e63;
  --accent-2: #3f7a92;
  --icon-light: #9cc1d0;
  --bg: #f2f7fa;
  --line: #d6dfe3;
  --white: #fff;
  --dark-grad: linear-gradient(162deg, #0d2a32 0%, #08181e 42%, #030b0f 100%);

  --gutter: clamp(28px, 5.56vw, 80px);
  --sec-pad: clamp(96px, 11.7vw, 168px);

  --h2: clamp(32px, calc(23.1px + 2.286vw), 56px);
  --lead: clamp(18px, calc(16.5px + 0.381vw), 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-desktop { display: block !important; }
  .only-mobile { display: none !important; }
}

/* ---------- shared bits ---------- */
.rule { display: block; width: 48px; height: 2px; background: var(--accent-2); }
.rule--light { background: rgba(255, 255, 255, .55); }

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
}

.h2 { font-size: var(--h2); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.h2 strong { font-weight: 600; }

.lead { font-size: var(--lead); font-weight: 300; line-height: 1.58; color: var(--muted); }
.lead p + p { margin-top: .6em; }

.sec-head { display: grid; gap: 28px; }
.sec-head__title .rule { margin-bottom: 24px; }

.dark { background: var(--dark-grad); color: var(--white); }
.dark .lead { color: rgba(255, 255, 255, .62); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 400; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn b { font-weight: 600; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(3, 11, 15, .45); }
.btn--dark:hover { background: #0d2129; }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, .ba__handle:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}
.btn--block { width: 100%; justify-content: space-between; }

@media (max-width: 899px) {
  .btn { width: 100%; padding: 0 24px; }
  .btn > span { overflow: hidden; text-overflow: ellipsis; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; background: #fbfcfd; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 252, 253, .72) 0%, rgba(246, 249, 251, .78) 60%, rgba(236, 242, 245, .9) 100%),
    url("assets/img/hero-bg.webp") 50% 0 / cover no-repeat;
  opacity: .9;
}
.hero__rings { display: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; padding: 40px 0 40px; }
.hero__logo { align-self: center; width: 148px; }
.hero__media {
  position: relative; height: 238px; margin: 8px calc(-1 * var(--gutter)) 0;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.hero__doctor { position: absolute; top: 0; left: 50%; width: 440px; max-width: none; transform: translateX(-50%); }
.hero__badge { display: none; }
.hero__content { margin-top: 16px; }
.hero__title {
  margin-top: 26px;
  font-size: clamp(38px, calc(25.4px + 3.24vw), 72px); font-weight: 300;
  line-height: 1.12; letter-spacing: 0; color: var(--ink);
}
.hero__title strong { font-weight: 600; }
.hero__text {
  margin-top: 22px; max-width: 520px;
  font-size: clamp(18px, calc(16.5px + .381vw), 22px); font-weight: 300; line-height: 1.6; color: var(--muted);
}
.hero__content .btn { margin-top: 34px; }

@media (min-width: 900px) {
  .hero {
    --u: min(1px, calc(100vw / 1440));
    min-height: calc(1000 * var(--u));
  }
  .hero__rings { display: block; position: absolute; inset: 0; pointer-events: none; }
  .hero__rings span {
    position: absolute; border-radius: 50%; border: 1px solid rgba(31, 78, 99, .14);
  }
  .hero__rings span:nth-child(1) { width: calc(560 * var(--u)); height: calc(560 * var(--u)); left: calc(50% + 330 * var(--u)); top: calc(-150 * var(--u)); }
  .hero__rings span:nth-child(2) { width: calc(620 * var(--u)); height: calc(620 * var(--u)); left: calc(50% + 310 * var(--u)); top: calc(-210 * var(--u)); border-color: rgba(31, 78, 99, .09); }
  .hero__rings span:nth-child(3) { width: calc(220 * var(--u)); height: calc(220 * var(--u)); left: calc(50% - 220 * var(--u)); top: calc(-60 * var(--u)); border-color: rgba(31, 78, 99, .07); }

  .hero__inner { display: block; padding: calc(68 * var(--u)) 0 calc(80 * var(--u)); min-height: inherit; }
  .hero__logo { display: block; width: 192px; margin-left: 4px; }
  .hero__media { position: static; height: auto; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .hero__doctor {
    left: calc(50% - 196 * var(--u)); top: calc(147 * var(--u));
    width: calc(1085 * var(--u)); transform: none;
  }
  .hero__badge {
    position: absolute; left: calc(50% - 60 * var(--u)); top: calc(854 * var(--u));
    display: flex; align-items: center; gap: 14px;
    width: 328px; padding: 16px 22px 16px 18px;
    background: var(--white); border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(3, 11, 15, .28);
    font-size: 13px; line-height: 1.4; color: var(--ink);
  }
  .hero__badge-icon {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%; background: #eef4f7; color: var(--accent);
  }
  .hero__badge-icon .ico { width: 22px; height: 22px; stroke-width: 1.8; }
  .hero__content { position: relative; margin-top: calc(88 * var(--u)); max-width: calc(600 * var(--u) + 40px); }
  .hero__content .eyebrow { font-size: 13px; }
  .hero__title { margin-top: calc(36 * var(--u)); max-width: 8.4em; }
  .hero__text { margin-top: calc(40 * var(--u)); max-width: min(520px, calc(50vw - 60 * var(--u) - var(--gutter) - 24px)); }
  .hero__content .btn { margin-top: calc(48 * var(--u)); }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 72px 0 64px; }
.stats__item {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 20px;
  padding: 26px 0;
}
.stats__item + .stats__item { border-top: 1px solid rgba(156, 193, 208, .22); }
.stats__item:first-child { padding-top: 0; }
.stats__item:last-child { padding-bottom: 0; }
.stats__num { font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.stats__ico { width: 34px; height: 34px; color: var(--icon-light); stroke-width: 1.6; justify-self: start; }
.stats__text { font-size: 15px; line-height: 1.5; }

@media (min-width: 900px) {
  .stats { padding: 88px 0 80px; }
  .stats__list { display: grid; grid-template-columns: .86fr 1fr 1fr 1fr; }
  .stats__item {
    display: grid; grid-template-columns: 1fr; grid-template-rows: 100px auto; row-gap: 22px;
    align-items: start; padding: 0 24px 0 44px;
  }
  .stats__item:first-child { padding-left: 0; }
  .stats__item + .stats__item { border-top: 0; border-left: 1px solid rgba(156, 193, 208, .28); }
  .stats__num { font-size: 92px; line-height: 76px; margin-top: 4px; }
  .stats__ico { width: 40px; height: 40px; margin-top: 25px; }
  .stats__text { font-size: 17px; line-height: 24px; max-width: 220px; }
}

/* =========================================================
   PROCEDIMIENTOS
   ========================================================= */
.procs { position: relative; padding: 80px 0 72px; overflow: hidden; }
.procs__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(242, 247, 250, .55), rgba(242, 247, 250, .35) 50%, rgba(242, 247, 250, .7)),
    url("assets/img/procedures-bg.webp") 60% 0 / cover no-repeat;
}
.procs .container { position: relative; }
.procs .sec-head { margin-bottom: 48px; }
.procs .lead { color: var(--text); }
@media (max-width: 899px) { .procs .h2 { color: var(--text); } .procs .h2 strong { font-weight: 400; } }

.proc { display: grid; gap: 36px; margin-bottom: 56px; --ar: 334 / 400; }
.proc:nth-of-type(2) { --ar: 334 / 324; }
.proc:nth-of-type(4) { --ar: 334 / 174; }
.proc:nth-of-type(5) { --ar: 334 / 365; }
.proc__media {
  display: block; overflow: hidden; border-radius: 24px; aspect-ratio: var(--ar);
  background: #dfe6ea;
  box-shadow: 0 30px 60px -40px rgba(3, 11, 15, .35);
}
.proc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proc__media:hover img { transform: scale(1.02); }
.proc__media--pair { display: flex; gap: 4px; background: rgba(255, 255, 255, .85); }
.proc__media--pair img { width: calc(50% - 2px); }
.proc__body .rule { margin-bottom: 14px; }
.proc__title { font-size: clamp(36px, calc(31.5px + 1.143vw), 48px); font-weight: 300; line-height: 1.45; }
.proc__text { margin-top: 18px; font-size: clamp(15px, calc(14.3px + .19vw), 17px); line-height: 1.58; color: var(--text); }
.proc__body .btn { margin-top: 22px; }
.proc__body .btn b { font-weight: 600; }

.help {
  display: grid; gap: 32px; margin-top: 8px; padding: 28px 28px 32px;
  border-radius: 24px; background: var(--accent); color: var(--white);
}
.help__body { min-width: 0; }
.help__img { width: 100%; aspect-ratio: 278 / 330; object-fit: cover; object-position: 50% 30%; border-radius: 20px; }
.help__title { font-size: clamp(26px, calc(22.3px + .95vw), 36px); font-weight: 500; line-height: 1.22; }
.help__text { margin-top: 24px; font-size: clamp(16px, calc(15.3px + .19vw), 18px); font-weight: 300; line-height: 1.62; color: rgba(255, 255, 255, .85); }
.help .btn { margin-top: 28px; }
@media (max-width: 899px) { .help .btn { padding: 0 16px; font-size: 13px; gap: 4px; } }

@media (min-width: 900px) {
  .procs { padding: var(--sec-pad) 0; }
  .procs .sec-head { grid-template-columns: 1fr minmax(0, 464px); column-gap: 72px; align-items: end; margin-bottom: 84px; }
  .proc {
    grid-template-columns: 56fr 38fr; column-gap: 6%; align-items: center;
    margin-bottom: 72px; --ar: 4 / 3;
  }
  .proc:nth-of-type(2), .proc:nth-of-type(5) { --ar: 4 / 3; }
  .proc:nth-of-type(4) { --ar: 672 / 350; }
  .proc--rev { grid-template-columns: 38fr 56fr; }
  .proc--rev .proc__media { order: 2; }
  .proc__body .rule { margin-bottom: 26px; }
  .proc__title { line-height: 1.45; }
  .proc__text { margin-top: 20px; line-height: 27px; }
  .proc__body .btn { margin-top: 24px; }

  .help {
    grid-template-columns: 320px 1fr; column-gap: 64px; align-items: center;
    margin-top: 80px; padding: 56px;
  }
  .help__img { aspect-ratio: 320 / 440; }
  .help__body { max-width: 640px; }
  .help .btn { margin-top: 36px; }
}

/* =========================================================
   RESULTADOS
   ========================================================= */
.results { padding: 96px 0 96px; overflow: hidden; }
.results .sec-head { margin-bottom: 40px; }

.tabs {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid #2f6a80; background: transparent; color: var(--white);
  font-size: 14px; transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: #5f9ab1; }
.tab.is-active { background: var(--white); border-color: var(--white); color: var(--ink); }
@media (max-width: 899px) {
  .tab { order: var(--m); }
  .tab[data-m="1"] { --m: 1; } .tab[data-m="2"] { --m: 2; } .tab[data-m="3"] { --m: 3; }
  .tab[data-m="4"] { --m: 4; } .tab[data-m="5"] { --m: 5; }
}

.panel { margin-top: 40px; }
.panel[hidden] { display: none; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 77vw); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; }
.case figcaption { margin-top: 18px; }
.case figcaption strong { display: block; font-size: 16px; font-weight: 400; }
.case figcaption span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .62); }

.dots { display: flex; gap: 8px; margin-top: 28px; min-height: 6px; }
.dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(156, 193, 208, .45); transition: width .25s ease, background-color .25s;
}
.dots button.is-active { width: 24px; background: var(--white); }

/* before / after */
.ba {
  --pos: 50%;
  position: relative; display: flex; aspect-ratio: 1; overflow: hidden;
  border-radius: 16px; background: #1b2a30; user-select: none; -webkit-user-select: none;
}
.ba__side { position: relative; height: 100%; overflow: hidden; }
.ba__side:first-child { width: var(--pos); flex: none; }
.ba__side:last-child { flex: 1; border-left: 2px solid var(--white); }
.ba__side img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2;
  display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: 0; border-radius: 50%; background: var(--white); color: var(--ink); cursor: ew-resize;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); touch-action: none;
}
@media (max-width: 899px) { .ba__handle { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
.ba__handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.results > .container > .btn { margin-top: 40px; }

@media (min-width: 900px) {
  .results { padding: var(--sec-pad) 0; }
  .results .sec-head { grid-template-columns: 1fr minmax(0, 464px); column-gap: 72px; align-items: end; margin-bottom: 86px; }
  .results .sec-head .h2 { max-width: 640px; }
  .tabs { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .tab { height: 45px; }
  .panel { margin-top: 81px; }
  .track { grid-auto-columns: calc((100% - 32px) / 2); gap: 32px; margin: 0; padding: 0; scroll-padding-inline: 0; }
  .case figcaption { margin-top: 20px; }
  .dots { margin-top: 32px; }
  .results > .container > .btn { margin-top: 48px; }
}

/* =========================================================
   SOBRE EL DR.
   ========================================================= */
.about { position: relative; background: #e9eded; overflow: hidden; }
.about__img { display: block; }
.about__img img {
  width: 100%; aspect-ratio: 947 / 1100; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.about__inner { position: relative; margin-top: -26px; padding-bottom: 64px; }
.about .eyebrow { margin-top: 26px; }
.about__title { margin-top: 22px; font-size: clamp(32px, calc(26.4px + 1.43vw), 48px); font-weight: 300; line-height: 1.12; color: #0a1921; letter-spacing: -.01em; }
.about__title strong { font-weight: 600; }
.about__quote {
  margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--accent-2);
  font-size: clamp(17px, calc(16.3px + .19vw), 19px); line-height: 1.58; color: #2a3c44;
}
.about .btn { margin-top: 36px; }

@media (min-width: 900px) {
  .about { min-height: 59.72vw; display: flex; align-items: center; background: #e7ebec; }
  .about__img { position: absolute; inset: 0; overflow: hidden; }
  .about__img img {
    position: absolute; left: -.56vw; top: -3.33vw; width: 116.67vw; max-width: none; height: auto;
    aspect-ratio: auto; -webkit-mask-image: none; mask-image: none;
  }
  .about__inner { margin-top: 0; padding: 96px 0; }
  .about::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(233, 237, 237, .78) 0%, rgba(233, 237, 237, .55) 34%, rgba(233, 237, 237, 0) 52%); opacity: 0; }
  .about__inner { z-index: 2; }
  .about__content { max-width: 480px; }
  .about .eyebrow { margin-top: 28px; font-size: 12px; }
  .about__title { margin-top: 30px; line-height: 57px; }
  .about__quote { margin-top: 36px; padding-left: 24px; line-height: 30px; max-width: 420px; }
  .about .btn { margin-top: 48px; }
}

/* =========================================================
   TRAYECTORIA
   ========================================================= */
.career { padding: 88px 0 80px; background: var(--bg); }
.career__grid { display: grid; }
.career__label {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.career__label span { width: 32px; height: 1px; background: var(--accent); }
.career__title { margin-top: 26px; font-size: clamp(20px, calc(18.5px + .38vw), 24px); font-weight: 500; line-height: 1.3; color: var(--accent); }
.career__text { margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--line); font-size: clamp(16px, calc(15.3px + .19vw), 18px); font-weight: 300; line-height: 1.62; color: var(--muted); }
.career__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 16px; margin-top: 30px; }
.career__nums dt { font-size: 40px; font-weight: 300; line-height: 1; color: var(--accent); }
.career__nums dd { margin-top: 10px; padding-right: 18px; font-size: 12px; line-height: 1.42; color: var(--muted); }
.career__more {
  display: inline-block; margin-top: 34px; padding-bottom: 5px; border-bottom: 1.5px solid var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.career__more:hover { color: var(--accent-2); border-color: var(--accent-2); }

.career__detail { margin-top: 64px; }
.kicker { font-size: 10px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); scroll-margin-top: 24px; }

.timeline { position: relative; margin-top: 26px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 6px; width: 1px; background: #c7d4da; }
.timeline li { position: relative; }
.timeline li + li { margin-top: 44px; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 3px; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: var(--bg);
}
.timeline__year { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--accent); line-height: 1.4; }
.timeline h4 { margin-top: 6px; font-size: clamp(20px, calc(18.5px + .38vw), 24px); font-weight: 600; line-height: 1.25; color: #0a1921; }
.timeline p { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 1.64; color: var(--muted); }

.career__detail > .kicker:nth-of-type(2) { margin-top: 64px; }
.intl { margin-top: 14px; border-top: 1px solid var(--line); }
.intl li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.intl li span:first-child { font-size: 14px; line-height: 1.45; color: var(--ink); }
.intl li span:last-child { font-size: 13px; font-weight: 300; color: var(--muted); }

.box { margin-top: 56px; padding: 30px 24px; border: 1px solid var(--line); background: var(--white); }
.box--flat { margin-top: 24px; background: transparent; }
.box__label { font-size: 10px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); }
.box ul { margin-top: 22px; display: grid; gap: 18px; }
.box li { padding-left: 16px; border-left: 1px solid #a9b9bf; font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--muted); }

.career__cta { margin-top: 40px; }

@media (min-width: 900px) {
  .career { padding: 128px 0 128px; }
  .career__grid { grid-template-columns: 1fr 1fr; column-gap: 80px; align-items: start; }
  .career__intro { grid-column: 1; grid-row: 1; }
  .career__label { font-size: 12px; }
  .career__title { margin-top: 24px; }
  .career__text { margin-top: 30px; padding: 0 90px 32px 0; line-height: 30px; }
  .career__nums { margin-top: 36px; gap: 40px 0; }
  .career__nums dd { font-size: 13px; padding-right: 24px; }
  .career__more { font-size: 12px; margin-top: 30px; }
  .career__detail { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
  .kicker { font-size: 11px; }
  .timeline { margin-top: 26px; }
  .timeline li + li { margin-top: 46px; }
  .timeline p { line-height: 23px; }
  .career__detail > .kicker:nth-of-type(2) { margin-top: 80px; }
  .intl li { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; min-height: 58px; padding: 12px 0; }
  .intl li span:first-child { font-size: 15px; }
  .intl li span:last-child { text-align: right; flex: none; }
  .box { margin-top: 72px; padding: 36px 36px 36px; }
  .box--flat { margin-top: 24px; background: var(--bg); }
  .box__label { font-size: 11px; }
  .box li { font-size: 15px; line-height: 25px; }
  .career__cta { grid-column: 1; grid-row: 3; margin-top: 56px; justify-self: start; align-self: start; }
}

/* =========================================================
   CÓMO FUNCIONA
   ========================================================= */
.steps { padding: 96px 0 72px; }
.steps .sec-head { margin-bottom: 44px; }
.steps__list { position: relative; display: grid; gap: 36px; }
.step { position: relative; display: grid; grid-template-columns: 42px 1fr; column-gap: 22px; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: -30px; width: 1px; background: rgba(156, 193, 208, .35);
}
.step__num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 16px;
}
.step__title { font-size: 22px; font-weight: 400; line-height: 1.32; }
.step p { margin-top: 14px; font-size: 15px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .68); }
.step p + p { margin-top: 20px; }
.steps .btn { margin-top: 48px; }

@media (min-width: 900px) {
  .steps { padding: var(--sec-pad) 0 calc(var(--sec-pad) - 2px); }
  .steps .sec-head { grid-template-columns: 1fr minmax(0, 464px); column-gap: 72px; align-items: end; margin-bottom: 80px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .step {
    display: block; min-height: 510px; padding: 40px 37px;
    border-radius: 16px; background: var(--white); color: var(--ink); border: 1px solid #e3e9ec;
  }
  .step:not(:last-child)::before { display: none; }
  .step__num { width: 56px; height: 56px; font-size: 20px; }
  .step__title { margin-top: 46px; font-size: 26px; line-height: 33px; max-width: 290px; }
  .step p { margin-top: 24px; font-size: 16px; line-height: 26px; color: var(--muted); }
  .step p + p { margin-top: 26px; }
  .steps .btn { margin-top: 80px; }
}

/* =========================================================
   LUGARES
   ========================================================= */
.places { position: relative; padding: 96px 0 96px; background: #fff; overflow: hidden; }
.places__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, .5) 60%, var(--bg) 100%),
    url("assets/img/locations-bg.webp") 50% 62% / cover no-repeat;
  opacity: .85;
}
.places .container { position: relative; }
.places .sec-head { margin-bottom: 44px; }
.places__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place {
  display: flex; flex-direction: column; padding: 20px 20px 22px;
  border-radius: 16px; background: var(--white); border: 1px solid #e3e9ec;
  box-shadow: 0 20px 40px -32px rgba(3, 11, 15, .3);
}
.place__ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #eef4f7; color: var(--accent); margin-bottom: 18px;
}
.place__ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.place strong { font-size: 20px; font-weight: 400; line-height: 1.2; }
.place > span:last-child { margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.place--online { background: var(--accent); border-color: var(--accent); color: var(--white); }
.place--online .place__ico { background: rgba(255, 255, 255, .14); color: var(--white); }
.place--online > span:last-child { color: rgba(255, 255, 255, .85); }
.places .btn { margin-top: 44px; }

@media (min-width: 900px) {
  .places { padding: calc(var(--sec-pad) + 4px) 0 var(--sec-pad); }
  .places .sec-head { grid-template-columns: 1fr minmax(0, 464px); column-gap: 72px; align-items: end; margin-bottom: 84px; }
  .places__list { grid-template-columns: repeat(4, 1fr); gap: 25px; }
  .place { min-height: 170px; padding: 24px 24px 22px; }
  .place__ico { margin-bottom: 26px; }
  .place strong { font-size: 26px; }
  .place > span:last-child { margin-top: 4px; font-size: 14px; }
  .places .btn { margin-top: 80px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 96px 0 88px; background: var(--bg); }
.faq__inner { display: flex; flex-direction: column; align-items: center; }
.faq__title { margin-top: 24px; text-align: center; }
.faq__list { width: 100%; max-width: 880px; margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 1.45; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; transition: background-color .25s; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px;
  background: var(--ink); border-radius: 2px; transition: transform .25s, background-color .25s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { background: var(--ink); }
.faq details[open] .faq__icon::before, .faq details[open] .faq__icon::after { background: var(--white); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 26px 0; margin-top: -6px; font-size: 15px; line-height: 1.55; color: var(--muted); }

@media (min-width: 900px) {
  .faq { padding: var(--sec-pad) 0; }
  .faq__title { margin-top: 24px; }
  .faq__list { margin-top: 80px; }
  .faq summary { padding: 24px 0; font-size: 20px; line-height: 36px; }
  .faq details p { padding: 0 0 26px; margin-top: -10px; font-size: 16px; line-height: 25px; }
}

/* =========================================================
   CIERRE + FOOTER
   ========================================================= */
.final { position: relative; overflow: hidden; padding-top: 76px; }
.final > .final__bg { position: absolute; inset: 0; z-index: 0; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: .2; filter: grayscale(1); mix-blend-mode: luminosity; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 26, 32, .55) 0%, rgba(4, 13, 17, .35) 50%, rgba(3, 11, 15, .75) 100%);
}
.final > :not(.final__bg) { position: relative; z-index: 2; }
.final__mono { width: 46px; }
.final__title {
  margin-top: 36px; font-size: clamp(36px, calc(25.6px + 2.667vw), 64px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em;
}
.final__title strong { font-weight: 600; }
.final__text { margin-top: 32px; font-size: clamp(17px, calc(16.1px + .286vw), 20px); font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.final .btn { margin-top: 36px; }

.footer { margin-top: 52px; padding: 56px 0 44px; border-top: 1px solid rgba(156, 193, 208, .28); }
.footer__row { display: grid; gap: 28px; }
.footer__logo { width: 150px; }
.footer__info p { font-size: 14px; line-height: 1.95; color: rgba(255, 255, 255, .7); }
.footer__info .footer__name { color: var(--white); }
.footer__ig { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--white); justify-self: start; }
.footer__ig .ico { width: 17px; height: 17px; transition: transform .2s; }
.footer__ig:hover .ico { transform: translateX(3px); }
.footer__legal { margin-top: 36px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
.footer__copy { margin-top: 30px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .62); }

@media (min-width: 900px) {
  .final { padding-top: calc(var(--sec-pad) + 4px); }
  .final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .final__mono { width: 62px; }
  .final__title { margin-top: 40px; max-width: 980px; line-height: 70px; }
  .final__text { margin-top: 48px; max-width: 770px; line-height: 32px; }
  .final .btn { margin-top: 50px; }
  .footer { margin-top: 120px; padding: 56px 0 50px; }
  .footer__row { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
  .footer__logo { width: 152px; }
  .footer__info { justify-self: start; margin-left: calc(-1 * 3%); }
  .footer__info p { line-height: 27px; }
  .footer__ig { justify-self: end; }
  .footer__legal { margin-top: 40px; }
  .footer__copy { margin-top: 38px; }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .about::before { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   TABLET (600–899px)
   ========================================================= */
@media (min-width: 600px) and (max-width: 899px) {
  .proc, .proc:nth-of-type(2), .proc:nth-of-type(5) { --ar: 4 / 3; }
  .proc:nth-of-type(4) { --ar: 672 / 350; }
  .help { grid-template-columns: 38% 1fr; column-gap: 32px; align-items: center; padding: 32px; }
  .help__img { aspect-ratio: 320 / 440; }
  .help .btn { width: auto; }
  .about__img img { aspect-ratio: 2000 / 1124; }
  .stats__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .stats__item:nth-child(2) { border-top: 0; padding-top: 0; }
  .stats__item:nth-child(3) { padding-bottom: 0; }
  .places__list { grid-template-columns: repeat(4, 1fr); }
  .btn { width: auto; }
  .proc__body .btn--block { width: 100%; }
}
