/*
 * Portefino base styles — ported 1:1 from the reference prototype (01_Prototipo/index.html).
 *
 * Cascade model: these rules live in the `base` layer; the per-section stylesheets
 * (src/styles/sections/*.css) are unlayered and replace the prototype's inline styles.
 * Unlayered normal rules beat layered ones regardless of specificity, and layered
 * `!important` rules beat everything — exactly how inline styles vs. class rules
 * (and their `!important` overrides) behaved in the prototype.
 *
 * Fonts: the prototype's `.pf.mix` mode forces Poppins everywhere, so the legacy
 * Archivo / Geist / Instrument Serif families are resolved to Poppins here.
 */

:root {
  --ink: #0a1714;
  --green: #007458;
  --mint: #8fd3bf;
  --mint-light: #b6e4d6;
  --deep-green: #0e3b30;
  --forest: #0a3f31;
  --cream: #f2f0eb;
  --warm-1: #f4f3ef;
  --warm-2: #f7f7f5;
  --text: #4a4f4b;
  --text-muted: #6b716d;
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font-sans: var(--font-poppins), "Helvetica Neue", sans-serif;
}

@layer base {
  html {
    scroll-behavior: auto;
    /* Keep anchor targets clear of the sticky header */
    scroll-padding-top: 84px;
  }
  body {
    margin: 0;
    background: var(--cream);
  }
  * {
    box-sizing: border-box;
  }
  a {
    color: var(--ink);
  }
  a:hover {
    color: var(--green);
  }

  .pf.mix,
  .pf.mix * {
    font-family: var(--font-sans);
  }
  .pf.mix .serif,
  .pf.mix .h2,
  .pf.mix h1,
  .pf.mix h3.serif {
    font-weight: 300;
    letter-spacing: -0.035em;
  }
  .pf.mix .serif em,
  .pf.mix .h2 em,
  .pf.mix h1 em,
  .pf.mix .em {
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.035em;
  }
  .pf.mix .eyebrow {
    letter-spacing: 0.24em;
  }

  .pf {
    color: var(--ink);
    background: var(--cream);
    width: 100%;
    /* Prototype used overflow:hidden, which turns .pf into a scroll container and silently
       breaks the sticky header. `clip` keeps the same horizontal clipping and lets the
       header stick as the dev guide specifies. */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
  }
  .serif {
    font-weight: 300;
    letter-spacing: -0.025em;
  }
  .serif em,
  .em {
    font-style: normal;
    font-weight: 200;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
  }
  .h2 {
    font-weight: 300;
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0;
    text-wrap: balance;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font: 500 14px/1 var(--font-sans);
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
      background 0.3s ease,
      color 0.3s ease,
      border-color 0.3s ease,
      transform 0.3s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn-mint {
    background: var(--mint);
    color: var(--ink);
  }
  .btn-mint:hover {
    background: var(--mint-light);
    color: var(--ink);
  }
  .btn-ink {
    background: var(--ink);
    color: var(--cream);
  }
  .btn-ink:hover {
    background: var(--green);
    color: #ffffff;
  }
  .btn-line-w {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
  }
  .btn-line-w:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
  .btn-line {
    background: transparent;
    color: var(--ink);
    border-color: rgba(10, 23, 20, 0.3);
  }
  .btn-line:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .arrow {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
  }

  .nav a.lnk {
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    opacity: 0.86;
    transition: opacity 0.2s;
  }
  .nav a.lnk:hover {
    opacity: 1;
  }
  .glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .cut {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 0 calc(100% - 22%));
  }
  .cut-tr {
    clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%);
  }

  /* Scroll motion is driven by GSAP (assets/js/motion/scroll-effects.js). Until it has set the start
     states, JS-enabled visitors get reveal targets hidden (no flash); no-JS and reduced motion never do. */
  @media (prefers-reduced-motion: no-preference) {
    html.js:not(.motion-ready) :is([data-intro], [data-split], [data-reveal]) {
      visibility: hidden;
    }
  }
  /* Scrubbed headings keep their SplitText word masks: pad the masks (net-zero via negative margins)
     so ascenders/descenders and tight tracking are never clipped. */
  .split-word-mask {
    padding: 0.12em 0.06em 0.22em;
    margin: -0.12em -0.06em -0.22em;
  }
  /* Magnetic buttons: GSAP owns `transform`, so CSS must not transition it. */
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .btn[data-magnetic] {
      transition-property: background, color, border-color;
    }
  }
  .pulse {
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    0% {
      transform: scale(0.6);
      opacity: 0.9;
    }
    100% {
      transform: scale(2.6);
      opacity: 0;
    }
  }

  /* Hover zoom on the individual `scale` property: it composes with the GSAP-owned `transform`
     (scrubbed image reveal) instead of being overridden by it. */
  .card-img {
    transition: scale 1.2s var(--ease-out);
  }
  .card:hover .card-img {
    scale: 1.06;
  }
  .chip {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font: 500 13px var(--font-sans);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .tab {
    background: none;
    border: 0;
    padding: 0 0 14px;
    cursor: pointer;
    font: 400 15px var(--font-sans);
    letter-spacing: 0.02em;
    transition: color 0.25s;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #5e625d;
    font-weight: 500;
  }
  .field input,
  .field select {
    min-height: 52px;
    border: 0;
    border-bottom: 1px solid rgba(10, 23, 20, 0.25);
    background: transparent;
    padding: 0 2px;
    font: 400 16px var(--font-sans);
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
  }
  .field input:focus,
  .field select:focus {
    border-bottom-color: var(--green);
  }

  .leaf {
    position: absolute;
    inset: 0;
    background-image: var(--pf-leaf-image, none);
    background-repeat: no-repeat;
    pointer-events: none;
  }

  @media (max-width: 900px) {
    .wrap {
      padding: 0 22px;
    }
    .nav-links {
      display: none !important;
    }
  }

  /* Ubicación map */
  .geo-refs {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(1300px, 96%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 4;
  }
  .geo-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .geo-chip-on {
    background: var(--deep-green) !important;
    color: #ffffff !important;
    border-color: var(--deep-green) !important;
    box-shadow: 0 10px 24px -10px rgba(14, 59, 48, 0.55) !important;
  }
  .geo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 12.5px var(--font-sans);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(10, 23, 20, 0.07);
    padding: 7px 13px 7px 10px;
    border-radius: 99px;
    box-shadow: 0 8px 20px -8px rgba(10, 23, 20, 0.16);
    white-space: nowrap;
  }
  .geo {
    position: relative;
    height: 500px;
    margin-top: 10px;
    margin-bottom: 28px;
  }
  .geo-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 1700px;
    perspective-origin: 50% 0%;
    -webkit-mask-image:
      radial-gradient(ellipse 62% 100% at 50% 100%, #000 72%, transparent 98%),
      linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(#000 85%, transparent 100%);
    mask-image:
      radial-gradient(ellipse 62% 100% at 50% 100%, #000 72%, transparent 98%),
      linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(#000 85%, transparent 100%);
    -webkit-mask-composite: source-in, source-in;
    mask-composite: intersect;
  }
  .geo-plane {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 1500px;
    height: 1083px;
    margin-left: -750px;
    transform: rotateX(58deg);
    transform-origin: 50% 100%;
  }
  .gp {
    position: absolute;
    width: 0;
    height: 0;
    transform-origin: 0 0;
  }
  .gsh {
    position: absolute;
    width: 26px;
    height: 9px;
    margin: -4px 0 0 -13px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 70, 52, 0.35), rgba(0, 70, 52, 0));
  }
  .gup {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(-50%);
  }
  .gl {
    position: absolute;
    top: 2px;
    white-space: nowrap;
    font: 500 12px var(--font-sans);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(10, 23, 20, 0.07);
    padding: 6px 12px;
    border-radius: 99px;
    box-shadow: 0 8px 20px -6px rgba(10, 23, 20, 0.14);
  }
  .gl-r {
    left: calc(100% + 4px);
  }
  .gl-l {
    right: calc(100% + 4px);
  }
  .gcard {
    position: absolute;
    left: 0;
    top: -154px;
    transform: translate(calc(-100% - 18px), -50%);
    display: flex;
    gap: 16px;
    align-items: center;
    width: max-content;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    box-shadow:
      0 30px 60px -22px rgba(10, 23, 20, 0.3),
      0 0 0 1px rgba(10, 23, 20, 0.05);
  }

  /* Tres públicos */
  .fx-stage {
    position: relative;
    width: 1180px;
    max-width: 100%;
    height: 370px;
    margin: 0 auto;
  }
  .fx-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .fx-node {
    position: absolute;
    width: 330px;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 99px;
    background: #fff;
    box-shadow:
      0 1px 0 rgba(10, 23, 20, 0.04),
      0 18px 40px -18px rgba(10, 23, 20, 0.22);
  }
  .fx-amt {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    background: #e4f3ec;
    padding: 6px 10px;
    border-radius: 99px;
    white-space: nowrap;
  }
  .fx-center {
    position: absolute;
    left: 392px;
    top: 22px;
    width: 396px;
  }
  .mo-btn {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease;
  }
  .mo-btn:hover {
    filter: brightness(0.97);
  }

  /* Locales diagram */
  .lp-row {
    position: relative;
    height: 220px;
  }
  .lp-u {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    transition: background 0.45s ease;
  }
  .lp-alt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .lp-alt--stack {
    gap: 12px;
  }
  .lp-blocks {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 100%;
  }
  .lp-blocks--fc {
    height: 62%;
    align-items: stretch;
  }
  .lp-blocks--fc .lp-b {
    flex: 1;
  }
  .lp-b {
    position: relative;
    background: rgba(143, 211, 191, 0.09);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
  }
  .lp-b.on {
    background: rgba(143, 211, 191, 0.62);
  }
  .lp-b span {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
  }
  .lp-mesas {
    border: 1px dashed rgba(143, 211, 191, 0.45);
    padding: 12px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(182, 228, 214, 0.7);
  }
  .lp-k {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 26px 40px;
    border-radius: 18px;
    min-width: 340px;
    white-space: nowrap;
    background: rgba(10, 23, 20, 0.82);
    border: 1px solid rgba(143, 211, 191, 0.35);
  }
  .lp-kbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1.5px dashed var(--mint);
    border-radius: 8px;
    background: rgba(143, 211, 191, 0.14);
    font-size: 14px;
    color: #eafafa;
    margin-bottom: 4px;
  }

  /* Mobile menu */
  .nav-burger {
    position: relative;
    z-index: 61;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    opacity: 0.95;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }
  .mnav {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(10, 23, 20, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 110px 24px 40px;
    display: flex;
    flex-direction: column;
  }
  .mnav nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    padding: 10px 0;
  }
  .nav-burger {
    display: none;
  }
  .fx-card {
    background: #fff;
    border-radius: 20px;
    box-shadow:
      0 1px 0 rgba(10, 23, 20, 0.04),
      0 30px 60px -28px rgba(10, 23, 20, 0.28),
      0 0 0 1px rgba(10, 23, 20, 0.04);
  }

  /* Hero */
  .hx2-svg {
    display: block;
    width: 75vw;
    height: auto;
    margin: 0;
  }
  .pf-wm {
    display: inline-block;
    height: 0.66em;
    width: auto;
    vertical-align: baseline;
    margin-left: 0.06em;
  }
  .pf-dot {
    margin-left: 0.04em;
  }
  .hx2-word {
    position: absolute;
    left: 12.5vw;
    right: 12.5vw;
    top: 11.5vw;
    text-align: center;
    font-weight: 500;
    font-size: 14.2vw;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #fff;
    opacity: 0.94;
    white-space: nowrap;
    pointer-events: none;
  }
  .hx3-tag {
    position: absolute;
    left: 12.5vw;
    top: 21vw;
    margin: 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    font-weight: 300;
    font-size: clamp(20px, 1.95vw, 28px);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #0a2a22;
  }
  .hx3-tag em {
    font-style: normal;
    font-weight: 500;
    color: #ffffff;
  }
  .hx3-cta {
    position: absolute;
    left: 12.5vw;
    top: 26.6vw;
  }

  /* Proceso */
  .pw-stage {
    position: relative;
    height: 330px;
  }
  .pw-rail {
    display: none;
  }
  .pw-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .pw-node {
    position: absolute;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    box-shadow:
      0 0 0 6px rgba(143, 211, 191, 0.18),
      0 18px 34px -10px rgba(0, 116, 88, 0.35);
  }
  .pw-node svg {
    transform: rotate(-45deg);
    width: 28px;
    height: 28px;
  }
  .pw-txt {
    position: absolute;
    width: 250px;
    margin-left: -125px;
    text-align: center;
  }

  /* FAQ */
  .fq-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px 44px 30px;
    border-radius: 28px;
    background: var(--warm-2);
    box-shadow: none;
  }
  .fq-item {
    background: #fff;
    border: 1px solid rgba(10, 23, 20, 0.08);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(10, 23, 20, 0.04);
  }
  .fq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 0 24px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font: 400 16.5px var(--font-sans);
    color: var(--ink);
  }
  .fq-a {
    margin: -4px 0 0;
    padding: 0 24px 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
    font-weight: 300;
  }
  .fq-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 99px;
    border: 1px solid rgba(0, 116, 88, 0.35);
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
  }

  /* Recorrido */
  .pz {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 80px;
    align-items: stretch;
  }
  .pz-stage {
    position: relative;
    height: 490px;
  }
  .pz-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 1400px;
    perspective-origin: 50% 10%;
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
  }
  .pz-plane {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 1000px;
    height: 460px;
    margin: -230px 0 0 -500px;
    transform: rotateX(30deg) rotateZ(-4deg) scale(0.76);
    opacity: 0.6;
    filter: drop-shadow(0 0 4px rgba(143, 211, 191, 0.25));
  }
  .pm {
    position: absolute;
    width: 0;
    height: 0;
  }
  .pz-pin {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .pz-rw {
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.25s;
  }
  .pz-ring {
    position: absolute;
    left: -26px;
    top: -10px;
    width: 52px;
    height: 20px;
    border-radius: 99px;
    border: 1.5px solid var(--mint);
    animation: pulse 2.4s ease-out infinite;
    transition: opacity 0.25s;
  }
  .pz-card {
    position: relative;
    height: 490px;
    border-radius: 8px;
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .pz {
      grid-template-columns: 1fr;
    }
  }
  .pz-mk {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    transform-origin: 50% 100%;
    transition: transform 0.3s var(--ease-out);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  }
  .pz-mk svg {
    display: block;
  }
  .pz-sh {
    position: absolute;
    left: -9px;
    top: -4px;
    width: 18px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(2px);
  }
  .pz-lb {
    position: absolute;
    left: 20px;
    top: -36px;
    white-space: nowrap;
    font: 500 11px var(--font-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(10, 23, 20, 0.72);
    transition: color 0.25s;
  }
  .pz-pin:hover .pz-lb {
    color: var(--mint) !important;
  }
  .pz-nav {
    width: 44px;
    height: 44px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(10, 23, 20, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      border-color 0.2s,
      background 0.2s;
  }
  .pz-nav:hover {
    border-color: var(--mint);
    background: rgba(143, 211, 191, 0.1);
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1100px) {
    #inicio {
      aspect-ratio: auto !important;
      height: max(640px, 56.25vw);
    }
    .fx-stage {
      height: auto !important;
      width: 100% !important;
      max-width: 560px !important;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .fx-lines {
      display: none;
    }
    .fx-node {
      position: relative !important;
      left: auto !important;
      right: auto !important;
      top: auto !important;
      width: 100% !important;
    }
    .fx-center {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      width: 100% !important;
      order: -1;
      margin-bottom: 10px;
    }
    .pz {
      gap: 40px !important;
    }
  }

  @media (max-width: 1000px) {
    /* hero */
    #inicio {
      height: min(780px, 100svh);
      min-height: 620px;
    }
    #inicio > img {
      object-position: 60% 55% !important;
    }
    .hx2-word {
      left: 20px;
      right: 20px;
      top: 120px;
    }
    .hx2-svg {
      width: calc(100vw - 40px);
    }
    #inicio::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 58%;
      background: linear-gradient(180deg, rgba(10, 23, 20, 0) 0%, rgba(10, 23, 20, 0.72) 100%);
      pointer-events: none;
    }
    .hx3-tag {
      left: 20px;
      right: 20px;
      top: auto;
      bottom: 118px;
      z-index: 2;
      font-size: 27px;
      line-height: 1.18;
    }
    .hx3-cta {
      left: 20px;
      top: auto;
      bottom: 44px;
      z-index: 2;
    }
    /* proceso */
    .pw-stage {
      height: auto !important;
      display: grid;
      grid-template-columns: 64px 1fr;
      gap: 34px 22px;
      align-items: center;
      margin-top: 36px;
      padding-left: 12px;
    }
    .pw-rail {
      display: block;
      position: absolute;
      left: 44px;
      top: 32px;
      bottom: 32px;
      width: 1px;
      background: rgba(0, 116, 88, 0.3);
    }
    .pw-svg {
      display: none;
    }
    .pw-node {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      margin: 0 !important;
    }
    .pw-txt {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      bottom: auto !important;
      width: auto !important;
      margin: 0 !important;
      text-align: left;
    }
  }

  @media (max-width: 760px) {
    .wrap {
      padding: 0 20px !important;
    }
    .pf .h2 {
      width: auto !important;
      max-width: 100% !important;
      font-size: 33px !important;
      white-space: normal !important;
      line-height: 1.08;
    }
    .pf section[id]:not(#inicio) {
      padding-top: 56px !important;
      padding-bottom: 56px !important;
    }
    .pf section > .wrap.wrap-pad {
      padding-top: 56px !important;
      padding-bottom: 56px !important;
    }
    .btn {
      min-height: 48px;
      padding: 0 22px;
    }
    /* ubicacion */
    .geo {
      height: 400px;
      margin-top: 0;
    }
    .geo-plane {
      transform: rotateX(58deg) scale(0.62);
      transform-origin: 50% 100%;
    }
    .gp {
      zoom: 0.62;
    }
    .gp .gl {
      display: none;
    }
    .gcard {
      zoom: 1.3;
      top: 34px;
      left: 0;
      transform: translate(-50%, 0);
    }
    .gp > span:not(.gsh):not(.pulse) {
      display: none;
    }
    .geo {
      height: auto !important;
      padding-top: 400px;
    }
    .geo-clip {
      height: 400px;
      bottom: auto;
    }
    .geo-refs {
      position: relative;
      left: auto;
      bottom: auto;
      transform: none;
      width: 100%;
      padding: 8px 20px 0;
    }
    .geo-chip {
      font-size: 12px;
    }
    #concepto .wrap > div:first-child > div:nth-child(2) {
      display: none !important;
    }
    #concepto .cc-track {
      display: flex !important;
      gap: 14px !important;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 20px;
      -webkit-overflow-scrolling: touch;
      margin: 0 -20px;
      padding: 0 20px 14px;
      scrollbar-width: none;
    }
    #concepto .cc-track::-webkit-scrollbar {
      display: none;
    }
    #concepto .cc-track > article {
      flex: 0 0 78%;
      scroll-snap-align: start;
    }
    #concepto .cc-hint {
      display: flex !important;
    }
    footer > .wrap:nth-of-type(2) {
      padding: 56px 24px 8px !important;
    }
    footer > .wrap:nth-of-type(2) > div {
      gap: 32px !important;
      padding-bottom: 36px !important;
    }
    footer > .wrap:nth-of-type(2) svg[width] {
      max-width: 190px;
      height: auto;
    }
    footer > .wrap:nth-of-type(3) {
      padding: 20px 24px 28px !important;
      flex-direction: column;
      gap: 6px !important;
    }
    .nav-burger {
      display: flex;
    }
    header.nav .nav-cta {
      display: none !important;
    }
    .hx3-tag {
      top: 172px !important;
      bottom: auto !important;
      font-size: 17px !important;
    }
    #inicio > img {
      object-position: 60% 100% !important;
      /* Top-anchored at the 390×780 design size (108% of 780 = 842px, bottom-aligned → top −62px), so the
         roof keeps the same distance from the top-positioned headline on any phone height; shorter
         screens (100svh < 780) crop the ground at the bottom instead of pushing the roof into the text. */
      top: -62px !important;
      bottom: auto !important;
      height: 842px !important;
    }
    #concepto article > div:first-child {
      height: 230px !important;
    }
    #concepto article > div:last-child > div:empty,
    #concepto article > div:last-child > div:has(> br:only-child) {
      display: none;
    }
    #concepto article {
      gap: 16px !important;
    }
    .pz-card {
      height: 400px !important;
    }
    .pz-card > div:nth-of-type(1) {
      background: linear-gradient(
        180deg,
        rgba(10, 23, 20, 0.78) 0%,
        rgba(10, 23, 20, 0.35) 38%,
        rgba(10, 23, 20, 0) 60%
      ) !important;
    }
    .pz-pin {
      scale: 1.9;
      transform-origin: 0 0;
    }
    .pz-clip {
      -webkit-mask-image: none !important;
      mask-image: none !important;
    }
    #contacto .wrap > div > :last-child {
      padding-left: 22px !important;
      padding-right: 22px !important;
    }
    .geo-chips {
      gap: 6px;
    }
    #concepto .wrap > div:first-child {
      margin-bottom: 28px !important;
    }
    #ubicacion .eyebrow {
      text-align: center;
    }
    #ubicacion .ub-anchors {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    #ubicacion .ub-anchors > div {
      padding: 0 4px !important;
      gap: 12px !important;
    }
    #ubicacion .ub-anchors h3 {
      font-size: 14px !important;
    }
    .gcard > div:first-child {
      width: 78px !important;
      height: 78px !important;
    }
    /* recorrido */
    .pz-stage {
      width: 744px;
      max-width: none;
      transform-origin: 0 0;
    }
    .pz-lb {
      display: none;
    }
    .pz-card {
      height: 440px !important;
    }
    /* faq */
    .fq-card {
      padding: 28px 16px 22px;
      border-radius: 22px;
    }
    .fq-btn {
      padding: 0 16px;
      font-size: 15px;
      min-height: 54px;
    }
    .fq-a {
      padding: 0 16px 18px;
    }
    #faq {
      padding: 24px 0 !important;
    }
    header.nav svg[width="206"] {
      width: 150px;
      height: 35px;
    }
    header.nav a {
      white-space: nowrap;
    }
    #locales .lc-plan {
      padding: 40px 20px 44px !important;
      min-height: 0 !important;
    }
    #locales .lc-plan > div:first-child {
      flex-direction: column;
      align-items: flex-start !important;
    }
    #locales .lc-plan > div:first-child > div:last-child {
      text-align: left !important;
    }
    .lp-row {
      height: 190px;
    }
  }

  /* Reduced motion: everything static (the GSAP branches and click transitions do not run). */
  @media (prefers-reduced-motion: reduce) {
    .pulse,
    .pz-ring {
      animation: none !important;
    }
    .card-img,
    .btn {
      transition: none !important;
    }
  }
}

/* Visible keyboard focus for links and buttons (inputs keep the prototype's underline focus). */
:where(a, button):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
