/* ---------------------------------------------------------------
     PABLO GARCÍA HEALTH & PERFORMANCE — landing v2
     Identidad: navy #0A192E · cian #00B4D8 · menta #60FCDA
     Tipografía: Playfair Display (display) + Inter (texto/utilidad)
     Tema único (navy) por decisión de marca.
     --------------------------------------------------------------- */

  :root {
    --navy-950: #050F1C;
    --navy-900: #0A192E;
    --navy-800: #0E2137;
    --cyan:     #00B4D8;
    --mint:     #60FCDA;
    --ink:      #E4EEF6;
    --muted:    #9EB5C9;
    --line:     rgba(96, 252, 218, 0.16);
    --line-soft:rgba(140, 166, 190, 0.18);

    --f-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
    --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --maxw: 1120px;
    --pad: clamp(20px, 5vw, 56px);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--navy-900);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection { background: var(--mint); color: var(--navy-950); }
  a { color: inherit; }
  img { max-width: 100%; display: block; }

  :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

  .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

  .eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--mint); margin: 0;
  }
  .eyebrow--muted { color: var(--muted); }

  h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
  .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 54ch; }
  p { margin: 0; }

  /* ---------- barra superior ---------- */

  header.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(10, 25, 46, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
  }

  .top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }

  .brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brandmark img { width: 38px; height: 38px; flex: none; }
  .brandmark__text { display: flex; flex-direction: column; line-height: 1.15; }
  .brandmark__name { font-family: var(--f-display); font-size: 17px; letter-spacing: 0.01em; }
  .brandmark__sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

  nav.links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
  nav.links a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
  nav.links a:hover { color: var(--ink); }

  .lang { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
  .lang button {
    appearance: none; background: transparent; border: 0; color: var(--muted);
    font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
    padding: 6px 11px; cursor: pointer; transition: background .2s ease, color .2s ease;
  }
  .lang button[aria-pressed="true"] { background: var(--mint); color: var(--navy-950); }

  @media (max-width: 860px) { nav.links { display: none; } }

  /* ---------- hero ---------- */

  .hero { position: relative; padding-block: clamp(44px, 7vw, 84px) clamp(32px, 5vw, 56px); overflow: hidden; }

  .hero__glow {
    position: absolute; inset: -30% -10% auto auto;
    width: min(720px, 90vw); height: min(720px, 90vw);
    background: radial-gradient(circle at 60% 40%, rgba(0, 180, 216, 0.18), rgba(0, 180, 216, 0) 62%);
    pointer-events: none;
  }

  .hero__grid {
    position: relative; display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 64px); align-items: center;
  }
  @media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

  .hero h1 {
    font-family: var(--f-display);
    font-size: clamp(42px, 7.4vw, 84px);
    line-height: 0.98; letter-spacing: -0.015em; margin-block: 16px 0;
  }
  .hero h1 .amp { font-style: italic; color: var(--mint); }
  .hero h1 .second {
    display: block; font-size: 0.32em; letter-spacing: 0.055em; white-space: nowrap;
    text-transform: uppercase; font-family: var(--f-body); font-weight: 500;
    color: var(--cyan); margin-top: 16px;
  }
  .hero .lead { margin-top: 24px; }

  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

  .btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
    border-radius: 2px; border: 1px solid transparent;
    transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  }
  .btn--solid { background: var(--mint); color: var(--navy-950); }
  .btn--solid:hover { transform: translateY(-2px); background: #7dffe1; }
  .btn--ghost { border-color: var(--line); color: var(--ink); }
  .btn--ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

  .portrait { position: relative; }
  .portrait img {
    width: 100%; border-radius: 2px;
    height: clamp(340px, 42vw, 500px);
    object-fit: cover; object-position: 50% 18%;
    border: 1px solid var(--line-soft);
    filter: saturate(0.92) contrast(1.03);
  }
  .portrait::after {
    content: ""; position: absolute; inset: auto -10px -10px auto;
    width: 96px; height: 96px;
    border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
    pointer-events: none;
  }

  .facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(18px, 3vw, 34px);
    margin-top: clamp(34px, 5vw, 54px);
    padding-top: 26px; border-top: 1px solid var(--line-soft);
  }
  .fact__k { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
  .fact__v { font-family: var(--f-display); font-size: 19.5px; line-height: 1.4; margin-top: 6px; }

  .wave { display: block; width: 100%; height: 30px; margin-top: clamp(30px, 5vw, 52px); }

  /* ---------- secciones ---------- */

  section { padding-block: clamp(52px, 7.5vw, 92px); }

  .sec-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
  .sec-head h2 {
    font-family: var(--f-display); font-size: clamp(28px, 4.4vw, 42px);
    line-height: 1.12; letter-spacing: -0.01em;
  }

  .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 52px); }
  .field__media { margin-bottom: 20px; }
  .field__media img {
    width: 100%; height: 210px; object-fit: cover; border-radius: 2px;
    border: 1px solid var(--line-soft);
  }
  .field__media--adep img { object-position: 50% 24%; }
  .logo-tile {
    width: 46px; height: 46px; flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .logo-tile img { width: 100%; height: 100%; object-fit: contain; }
  .field__title { font-family: var(--f-display); font-size: 26px; margin-bottom: 12px; }
  .field p { color: var(--muted); }
  .field__rule { height: 2px; width: 46px; background: var(--mint); margin-bottom: 20px; }
  .field:nth-child(2) .field__rule { background: var(--cyan); }

  /* servicios */
  .svc {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
    gap: clamp(12px, 3vw, 40px); align-items: baseline;
    padding-block: 24px; border-top: 1px solid var(--line-soft);
  }
  .svc:last-of-type { border-bottom: 1px solid var(--line-soft); }
  .svc__name { font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.25; }
  .svc__desc { color: var(--muted); font-size: 17px; }
  .svc__partner { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
  .svc__partner .logo-tile { width: 74px; height: 26px; }
  .svc__partner .logo-tile img { object-position: left center; }
  .svc__partner span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .svc__tag {
    justify-self: end; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--cyan); white-space: nowrap; border: 1px solid var(--line);
    border-radius: 999px; padding: 5px 12px;
  }
  @media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 10px; } .svc__tag { justify-self: start; } }

  /* método */
  .method { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 40px); }
  .step__n {
    font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--mint);
    display: block; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  .step h3 { font-family: var(--f-display); font-size: 23px; margin-bottom: 8px; }
  .step p { color: var(--muted); font-size: 16.5px; }

  /* trayectoria */
  .band { background: var(--navy-950); }

  .track__row {
    display: grid; grid-template-columns: 182px 46px minmax(0, 1fr);
    gap: clamp(14px, 2.6vw, 32px); padding-block: 20px;
    border-top: 1px solid var(--line-soft); align-items: center;
  }
  .track__row:last-child { border-bottom: 1px solid var(--line-soft); }
  .track__when { font-size: 14.5px; letter-spacing: 0.06em; color: var(--cyan); font-variant-numeric: tabular-nums; }
  .track__what { font-size: 18px; }
  .track__where { color: var(--muted); font-size: 16px; }
  @media (max-width: 680px) {
    .track__row { grid-template-columns: 46px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
    .track__when { grid-column: 1 / -1; }
  }

  .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 34px; }
  .gallery figure { margin: 0; }
  .gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line-soft); }
  .gallery figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

  .creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
  .cred { font-size: 14px; letter-spacing: 0.04em; border: 1px solid var(--line-soft); border-radius: 2px; padding: 7px 14px; }

  .research {
    margin-top: 40px; padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--line); border-left: 3px solid var(--mint);
    background: rgba(0, 180, 216, 0.05); max-width: 68ch;
  }
  .research p { color: var(--muted); font-size: 16.5px; margin-top: 10px; }

  /* personal */
  .personal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
  @media (max-width: 860px) { .personal { grid-template-columns: 1fr; } }
  .personal img {
    width: 100%; border-radius: 2px; border: 1px solid var(--line-soft);
    height: clamp(300px, 36vw, 440px);
    object-fit: cover; object-position: 50% 68%;
  }
  .personal__quote { font-family: var(--f-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
  .personal p { color: var(--muted); margin-top: 18px; }

  /* contacto */
  .contact-top { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
  .contact-top img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

  .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
  .ch {
    display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
    border: 1px solid var(--line-soft); border-radius: 2px; text-decoration: none;
    transition: border-color .2s ease, transform .18s ease, background .2s ease;
  }
  .ch:hover { border-color: var(--mint); transform: translateY(-2px); background: rgba(96, 252, 218, 0.04); }
  .ch__k { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
  .ch__v { font-size: 17px; word-break: break-word; }
  .ch--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .ch--wide .ch__v { font-family: var(--f-display); font-size: 20.5px; }
  .ch--form { border-color: var(--mint); background: rgba(96, 252, 218, 0.06); }
  .ch--form .ch__v { color: var(--mint); }
  .ch--todo { border-style: dashed; cursor: default; }
  .ch--todo:hover { transform: none; }
  .ch--todo .ch__v { font-style: italic; }

  /* legal */
  #legal { padding-block: clamp(40px, 5vw, 64px); }
  .legal-doc { border: 1px solid var(--line-soft); border-radius: 2px; margin-top: 14px; }
  .legal-doc + .legal-doc { margin-top: 10px; }
  .legal-doc > summary {
    cursor: pointer; padding: 16px 20px; font-size: 16.5px; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .legal-doc > summary::-webkit-details-marker { display: none; }
  .legal-doc > summary::after { content: "+"; color: var(--mint); font-size: 18px; line-height: 1; }
  .legal-doc[open] > summary::after { content: "–"; }
  .legal-doc__body { padding: 0 20px 22px; font-size: 15.5px; color: var(--muted); max-width: 78ch; }
  .legal-doc__body h4 {
    color: var(--ink); font-family: var(--f-body); font-weight: 600; font-size: 13px;
    letter-spacing: 0.12em; text-transform: uppercase; margin: 22px 0 8px;
  }
  .legal-doc__body p { margin-bottom: 10px; }
  .legal-doc__body ul { margin: 0 0 10px; padding-left: 18px; }
  .legal-doc__body a { color: var(--cyan); }
  .legal-pending {
    color: var(--mint); border-bottom: 1px dashed var(--mint); font-style: italic;
  }

  /* ---------- efectos de scroll ---------- */

  .progress {
    position: fixed; top: 0; left: 0; z-index: 40;
    height: 2px; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--mint));
    pointer-events: none;
  }

  header.top { transition: background .3s ease, box-shadow .3s ease; }
  header.top.is-scrolled {
    background: rgba(5, 15, 28, 0.93);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  }

  /* El contenido es visible por defecto; la animación solo existe si hay JS
     y el visitante no ha pedido reducir el movimiento. */
  .js-anim .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .65s cubic-bezier(.22,.61,.36,1),
                transform .65s cubic-bezier(.22,.61,.36,1);
  }
  .js-anim .reveal.is-in { opacity: 1; transform: none; }

  /* Ajuste de "reducir movimiento" del sistema: se quita el DESPLAZAMIENTO,
     que es lo que causa molestias vestibulares, pero se conservan el fundido
     y los cambios de color. La página no se queda muerta. */
  @media (prefers-reduced-motion: reduce) {
    .js-anim .reveal { transform: none; transition: opacity .45s ease; }
    .js-anim .reveal.is-in { transform: none; }
    .btn:hover, .ch:hover { transform: none; }
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }

  /* pie */
  footer { border-top: 1px solid var(--line-soft); padding-block: 32px 44px; font-size: 14.5px; color: var(--muted); }
  .foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
  .foot__links a { color: var(--muted); text-decoration: none; }
  .foot__links a:hover { color: var(--mint); }
  .foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
  .quote { font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--ink); }
