  /* ============================================================
     MEDELION HOME — page layout (tokens only, no new colors)
     ============================================================ */
  html { scroll-behavior: smooth; }
  body { background: var(--cream-100); color: var(--fg1); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
  section { scroll-margin-top: 96px; }
  .eyebrow {
    font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px;
  }

  /* heading reset so DS type drives sizing */
  h1, h2, h3, p { margin: 0; }

  /* ---- skip link ---- */
  .skip { position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--navy-600); color: var(--white-pure); padding: 10px 18px;
    border-radius: var(--radius-pill); font-family: var(--font-ui); font-size: 14px; }
  .skip:focus { left: 16px; }

  /* =================== NAV =================== */
  .site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 40px; transition: padding .25s ease, background-color .25s ease,
      box-shadow .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
  }
  .site-nav.scrolled {
    padding: 12px 40px; background: var(--navy-900);
    border-bottom: 1px solid rgba(199,208,227,.12);
    box-shadow: var(--shadow-md);
  }
  .nav-logo { height: 30px; width: auto; transition: height .25s ease; }
  .site-nav.scrolled .nav-logo { height: 26px; }
  .nav-menu { display: flex; align-items: center; gap: 34px; }
  .nav-menu .nav-cta-btn { display: none; } /* in-menu CTA is mobile-only; desktop uses .nav-cta-wrap */
  .nav-link {
    font-family: var(--font-ui); font-size: 15px; font-weight: 500;
    color: var(--cream-200); text-decoration: none; padding: 6px 2px;
    border-bottom: 2px solid transparent; transition: border-color .14s ease, color .14s ease;
  }
  .nav-link:hover { border-bottom-color: var(--blue-accent); }
  .nav-link:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 4px; border-radius: 3px; }
  .nav-cta-wrap { display: flex; align-items: center; gap: 18px; }
  .btn { min-height: 44px; }
  .nav-toggle { display: none; }

  /* ---- Language switcher ---- */
  .lang-switch { position: relative; }
  .lang-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px;
    background: transparent; border: 1px solid rgba(199,208,227,.28); border-radius: var(--radius-pill);
    color: var(--cream-200); font-family: var(--font-ui); font-size: 14px; font-weight: 500; cursor: pointer;
    transition: border-color .14s ease, background-color .14s ease; }
  .lang-btn:hover { border-color: rgba(199,208,227,.55); background: rgba(251,245,233,.08); }
  .lang-btn:focus-visible { outline: none; border-color: var(--blue-accent); }
  .lang-btn .globe { width: 18px; height: 18px; flex: none; }
  .lang-btn .chev { width: 13px; height: 13px; flex: none; transition: transform .18s ease; }
  .lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
  .lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; margin: 0; padding: 6px;
    list-style: none; background: var(--navy-900); border: 1px solid rgba(199,208,227,.16);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 120; display: none; }
  .lang-switch.open .lang-menu { display: block; }
  .lang-menu li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; min-height: 44px; border-radius: var(--radius-sm); cursor: pointer;
    font-family: var(--font-ui); font-size: 14px; color: var(--text-on-navy-soft); }
  .lang-menu li:hover { background: rgba(255,255,255,.06); color: var(--cream-100); }
  .lang-menu li[aria-selected="true"] { color: var(--cream-100); }
  .lang-menu li .tick { width: 16px; height: 16px; color: var(--blue-accent); opacity: 0; flex: none; }
  .lang-menu li[aria-selected="true"] .tick { opacity: 1; }

  /* =================== HERO =================== */
  .hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    background-color: var(--navy-900);
    background-image: url('img/hero.png');
    background-size: cover; background-position: 33% center; background-repeat: no-repeat;
    overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg,
      #00318B 0%, rgba(0,49,139,.94) 32%, rgba(0,49,139,.58) 56%, rgba(0,49,139,.12) 82%);
  }
  .hero .wrap { position: relative; z-index: 2; max-width: none; margin: 0; padding: 120px 48px 72px 120px; }
  .hero-inner { max-width: 560px; }
  .hero .eyebrow { color: var(--text-on-navy-soft); }
  .hero h1 {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
    line-height: 1.06; color: var(--cream-100);
    font-size: clamp(38px, 5.4vw, 62px);
  }
  .hero h1 .accent { color: var(--cream-200); position: relative; }
  .hero-sub {
    font-family: var(--font-ui); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
    color: var(--text-on-navy-soft); margin: 26px 0 0; max-width: 560px;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
  .hero-scroll {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-on-navy-mute); font-family: var(--font-ui); font-size: 11px;
    letter-spacing: .14em; text-transform: uppercase;
  }
  .hero-scroll svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

  /* entrance animation */
  .reveal { opacity: 0; transform: translateY(22px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .d1 { transition-delay: .08s; } .d2 { transition-delay: .18s; }
  .d3 { transition-delay: .28s; } .d4 { transition-delay: .38s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .aud-body > * { opacity: 1 !important; transform: none !important; }
    .founder > * { opacity: 1 !important; transform: none !important; }
    .hero-scroll svg { animation: none; }
    .iso-float { animation: none; }
    html { scroll-behavior: auto; }
  }

  /* =================== MILESTONES =================== */
  .milestones { background: var(--cream-100); padding: 130px 0 90px; position: relative; }
  .milestones .wrap { position: relative; }
  .ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ms-item { text-align: center; position: relative; }
  .ms-item + .ms-item { border-left: none; }
  .ms-item + .ms-item::before {
    content: ""; position: absolute; left: -20px; top: 14%; height: 72%;
    border-left: 2px dotted #EFD2A1; transform: scaleY(0); transform-origin: center;
    transition: transform .9s cubic-bezier(.4,0,.2,1) .25s;
  }
  .ms-grid.ms-in .ms-item + .ms-item::before { transform: scaleY(1); }
  .ms-num {
    font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--navy-600);
    font-size: 64px; line-height: .96; overflow-wrap: break-word;
    display: inline-flex; align-items: baseline; justify-content: center; gap: .14em;
  }
  .ms-prefix { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
  .ms-grid.ms-in .ms-prefix { opacity: 1; transform: none; }
  .ms-count { font-variant-numeric: tabular-nums; }
  .ms-suffix { font-size: .48em; letter-spacing: 0; color: var(--navy-550);
    opacity: 0; transform: translateX(-8px); transition: opacity .6s ease .55s, transform .6s cubic-bezier(.2,.7,.3,1) .55s; }
  .ms-grid.ms-in .ms-suffix { opacity: 1; transform: none; }
  .ms-label { font-family: var(--font-ui); font-size: 16px; line-height: 1.5; color: var(--fg2);
    margin: 14px auto 0; max-width: 280px; }

  /* Floating Medelion sello badge — transparent PNG straddling hero/milestones */
  .iso-float { position: absolute; top: -242px; right: 0; z-index: 5; box-sizing: border-box;
    width: 224px; height: 224px;
    filter: drop-shadow(0 10px 26px rgba(7,20,35,.28));
    animation: isoFloat 6s ease-in-out infinite; will-change: transform; }
  .iso-float .iso-img { width: 100%; height: 100%; object-fit: contain; display: block; }
  @keyframes isoFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
  }

  /* =================== VALOR =================== */
  .valor { background: var(--white); padding: 96px 0 104px; }
  .valor .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .section-head { max-width: 640px; margin-bottom: 56px; }
  .section-head .eyebrow { color: var(--navy-600); }
  .section-head h2 {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
    color: var(--navy-900); font-size: clamp(30px, 3.8vw, 42px);
  }
  .section-head p { font-family: var(--font-ui); font-size: 18px; line-height: 1.6; color: var(--fg2); margin-top: 18px; }
  .valor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .valor-card {
    background: #F0F4FD; border: 1px solid rgba(18,50,118,.10); border-radius: var(--radius-card);
    padding: 30px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .valor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(18,50,118,.22); }
  .valor-ic {
    width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    background: var(--navy-600); color: var(--cream-100); margin-bottom: 22px;
  }
  .valor-ic svg { width: 26px; height: 26px; }
  .valor-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy-900); letter-spacing: -.01em; }
  .valor-card p { font-family: var(--font-ui); font-size: 16px; line-height: 1.6; color: var(--fg2); margin-top: 12px; }

  /* =================== AUDIENCIAS (empresas / inversores) =================== */
  .audiencias { background: var(--navy-900); padding: 96px 0 104px; }
  .aud-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .aud-card {
    background: var(--navy-800); border: none;
    border-radius: 28px; overflow: hidden; display: flex; flex-direction: row; align-items: center;
    padding: 30px; gap: 24px;
    transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
  }
  .audiencias .aud-card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(0,0,0,.34); }
  .aud-card.reverse { flex-direction: row-reverse; background: var(--navy-700); }
  .aud-media { flex: 0 0 50%; overflow: hidden; border-radius: 18px; }
  .aud-media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
  .aud-body { padding: 24px 36px; display: flex; flex-direction: column; flex: 1; justify-content: center; }
  /* inner text rises on load */
  .aud-body > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
  .aud-card.in .aud-body > * { opacity: 1; transform: none; }
  .aud-card.in .aud-body > *:nth-child(2) { transition-delay: .12s; }
  .aud-card.in .aud-body > *:nth-child(3) { transition-delay: .24s; }
  .aud-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.18; color: var(--cream-100); letter-spacing: -.01em; }
  .aud-body h3 em { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; color: #EBD9B9; }
  .aud-body p { font-family: var(--font-ui); font-size: 17px; line-height: 1.6; color: var(--text-on-navy-soft); margin: 18px 0 28px; }
  .aud-body .btn { align-self: flex-start; }

  /* =================== FUNDADORES =================== */
  .founders { background: var(--white); padding: 96px 0 104px; }
  .founders .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .founders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .founder { text-align: center; background: #FAF3E5; border-radius: var(--radius-card);
    padding: 32px; box-shadow: var(--shadow-sm);
    transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease; }
  .founder:hover { transform: translateY(-10px); box-shadow: 0 28px 54px rgba(7,20,35,.15); }
  /* inner cascade on reveal */
  .founder > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
  .founder.in > * { opacity: 1; transform: none; }
  .founder.in > *:nth-child(1) { transition-delay: .05s; }
  .founder.in > *:nth-child(2) { transition-delay: .13s; }
  .founder.in > *:nth-child(3) { transition-delay: .21s; }
  .founder.in > *:nth-child(4) { transition-delay: .29s; }
  .founder.in > *:nth-child(5) { transition-delay: .37s; }
  .founder-photo { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin: 0 auto 22px;
    background: var(--beige-300); box-shadow: var(--shadow-sm); position: relative;
    transition: opacity .55s ease, transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease; }
  .founder-photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: inset 0 0 0 0 rgba(18,50,118,0); transition: box-shadow .5s ease; pointer-events: none; }
  .founder:hover .founder-photo { transform: scale(1.05); box-shadow: 0 16px 34px rgba(18,50,118,.24); }
  .founder:hover .founder-photo::after { box-shadow: inset 0 0 0 3px rgba(18,50,118,.55); }
  .founder-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
  .founder:hover .founder-photo img { transform: scale(1.08); }
  .founder h3 { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; font-size: 24px; color: #153B8B; }
  .founder-role { font-family: var(--font-ui); font-size: 14pt; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--navy-600); margin: 6px 0 14px; }
  .founder p { font-family: var(--font-ui); font-size: 16px; line-height: 1.6; color: var(--fg2); }
  .founder-li {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; min-height: 44px; margin-top: 18px; padding: 0 6px;
    color: var(--navy-600); text-decoration: none; border-radius: var(--radius-sm);
    font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  }
  .founder-li svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
  .founder-li:hover svg { transform: translateY(-2px) scale(1.12); }
  .founder-li:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
  .founder-li:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; }

  /* =================== LINKEDIN CTA =================== */
  .li-cta { background: var(--navy-600); padding: 76px 0; position: relative; overflow: hidden; }
  .li-cta .sello { position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
    width: 320px; opacity: .12; pointer-events: none; }
  .li-cta .wrap { position: relative; z-index: 2; display: flex; align-items: center;
    justify-content: space-between; gap: 40px; flex-wrap: wrap; }
  .li-text { max-width: 620px; }
  .li-text h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px);
    color: var(--cream-100); letter-spacing: -.01em; line-height: 1.12; }
  .li-text p { font-family: var(--font-ui); font-size: 18px; line-height: 1.6; color: var(--text-on-navy-soft); margin-top: 14px; }

  /* =================== CONTACTO =================== */
  .contacto { background: var(--navy-900); padding: 96px 0 104px; }
  .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
  .contacto-aside .eyebrow { color: var(--text-on-navy-soft); }
  .contacto-aside h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.8vw, 42px);
    color: var(--cream-100); letter-spacing: -.02em; line-height: 1.1; }
  .contacto-aside p { font-family: var(--font-ui); font-size: 18px; line-height: 1.6; color: var(--text-on-navy-soft); margin: 18px 0 28px; }
  .contacto-img { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-lg); }
  .contacto-img img { width: 100%; height: 100%; object-fit: cover; }
  .contact-form { display: flex; flex-direction: column; gap: 22px; }
  .contact-form textarea.field-input { min-height: 130px; resize: vertical; line-height: 1.5; }
  .form-success {
    display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md);
    background: rgba(30,144,255,.10); border: 1px solid var(--blue-accent); color: var(--cream-100);
    font-family: var(--font-ui); font-size: 15px;
  }
  .form-success.show { display: flex; }
  .form-success svg { width: 22px; height: 22px; color: var(--blue-accent); flex: none; }

  /* =================== FOOTER =================== */
  .site-footer { background: var(--navy-900); border-top: 1px solid rgba(199,208,227,.10); padding: 56px 0 40px; }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .footer-logo { height: 32px; width: auto; }
  .footer-tag { font-family: var(--font-ui); font-size: 15px; line-height: 1.6; color: var(--text-on-navy-soft);
    margin-top: 16px; max-width: 320px; }
  .footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
  .footer-col h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-on-navy-mute); margin: 0 0 16px; }
  .footer-col a { display: block; font-family: var(--font-ui); font-size: 15px; color: var(--text-on-navy-soft);
    text-decoration: none; padding: 7px 0; min-height: 24px; }
  .footer-col a:hover { color: var(--cream-100); }
  .footer-col a:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; border-radius: 3px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(199,208,227,.10);
    font-family: var(--font-ui); font-size: 13px; color: var(--text-on-navy-mute); }
  .footer-bottom .legal-links { display: flex; gap: 24px; }
  .footer-bottom a { color: var(--text-on-navy-mute); text-decoration: none; }
  .footer-bottom a:hover { color: var(--text-on-navy-soft); }

  /* =================== RESPONSIVE =================== */
  @media (max-width: 960px) {
    .valor-grid, .contacto-grid { grid-template-columns: 1fr; }
    .aud-card, .aud-card.reverse { flex-direction: column; padding: 18px; }
    .aud-media { flex: none; width: 100%; }
    .aud-media img { min-height: 0; aspect-ratio: 16 / 11; }
    .aud-body { padding: 18px 14px 8px; }
    .contacto-grid { gap: 40px; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .contacto-aside { order: 1; }
    .contacto-img { order: 0; }
    .founders-grid { grid-template-columns: 1fr; max-width: 460px; }
    .ms-grid { grid-template-columns: 1fr; gap: 32px; }
    .ms-item + .ms-item { border-left: none; border-top: 2px dotted #EFD2A1; padding-top: 32px; }
    .ms-item + .ms-item::before { display: none; }
    .iso-float { width: 150px; height: 150px; top: -160px; right: 8px; }
  }
  @media (max-width: 760px) {
    .wrap { padding: 0 22px; }
    .site-nav, .site-nav.scrolled { padding: 14px 22px; }
    .nav-menu {
      position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: flex-start;
      gap: 4px; background: var(--navy-900); padding: 84px 28px 28px;
      transform: translateY(-100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu .nav-link { font-size: 19px; padding: 12px 0; width: 100%; }
    .nav-cta-wrap { gap: 10px; }
    .nav-cta-wrap .nav-cta-btn { display: none; }
    .nav-menu .nav-cta-btn { display: inline-flex; margin-top: 16px; }
    .nav-toggle {
      display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
      background: transparent; border: none; color: var(--cream-100); z-index: 110;
    }
    .nav-toggle svg { width: 26px; height: 26px; }
    .hero { align-items: flex-start; min-height: auto; flex-direction: column; }
    .hero .wrap { padding: 104px 22px 0 22px; width: 100%; }
    .hero-inner { max-width: 100%; }
    .hero h1 .accent { font-size: clamp(30px, 8.4vw, 44px) !important; line-height: 1.12; display: inline; }
    .hero h1 .accent span { font-size: inherit !important; }
    .hero-sub { font-size: 16px; margin-top: 20px; }
    .hero-actions { margin-top: 28px; gap: 12px; }
    .li-cta .wrap { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 760px) {
    /* scroll cue sits in normal flow below the buttons — no overlap, fully tappable */
    .hero-scroll {
      position: static; transform: none; left: auto; bottom: auto;
      flex-direction: row; gap: 8px; margin: 32px 22px 52px; padding: 10px 4px;
      min-height: 44px; align-items: center; align-self: flex-start;
    }
    .hero-scroll svg { width: 16px; height: 16px; }
  @media (max-width: 400px) {
    .wrap { padding: 0 18px; }
    .valor-card, .aud-body { padding: 26px; }
    .lang-btn .lang-label { display: none; }
    .lang-btn { padding: 8px 10px; }
    .hero h1 .accent { font-size: clamp(27px, 8.8vw, 36px) !important; }
  }
