﻿
  :root{
    --ink: #02111b;
    --bg: #F3F3F3;
    --hover: #CAE965;
    --ink-faint: rgba(2,17,27,0.14);
    --header-h: 48px;
  }

  *{ box-sizing: border-box; }
  html, body{ height: 100%; }

  body{
    margin:0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Newsreader', serif;
    font-size: 1.125rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  a{ color: inherit; }

  .wrap{
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* HEADER — fixed overlay; hidden/shown on scroll, never consumes slide height */
  header{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display:flex;
    align-items:stretch;
    padding-left: 40px;
    background: rgba(243,243,243,0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ink);
    z-index: 30;
    transition: transform .3s ease;
  }
  header.hide{
    transform: translateY(-100%);
  }

  /* Ghost brand — shown behind the header's own space on the Hero, only while the header is hidden */
  .ghost-brand{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display:flex;
    align-items:center;
    padding-left: 40px;
    opacity: 0;
    pointer-events: none;
    z-index: 25;
    transition: opacity .3s ease;
  }
  .ghost-brand img{
    display:block;
    height: 24px;
    width: auto;
    max-width: min(200px, 30vw);
    object-fit: contain;
    opacity: 0.33;
  }
  .ghost-brand.show{
    opacity: 1;
  }
  .brand{
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 0;
  }
  .brand img{
    display: block;
    width: auto;
    height: 24px;
    max-width: min(240px, 28vw);
    object-fit: contain;
    max-height: 100%;
  }

  /* NAV — buttons touch each other, group sits flush against the right edge */
  nav{
    margin-left: auto;
    display:flex;
    align-items:stretch;
    height: 100%;
    gap: 0;
    font-family:'Archivo', sans-serif;
    font-size: 0.92rem;
    font-weight:500;
  }
  nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    height: 100%;
    text-decoration:none;
    padding: 0 14px;
    border-radius: 0;
    border-left: 1px solid var(--ink-faint);
    color: var(--ink);
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
  }
  nav a:first-child{ border-left: none; }
  nav a.primary{
    color: var(--bg);
    background: var(--ink);
    font-weight: 600;
    flex: 0 0 auto;
  }
  nav a.primary.blink{
    animation: cta-pulse 0.7s 1;
  }
  @keyframes cta-pulse{
    0%, 7%{ background: var(--ink); color: var(--bg); }
    8%, 29%{ background: var(--hover); color: var(--ink); }
    30%, 44%{ background: var(--ink); color: var(--bg); }
    45%, 59%{ background: var(--hover); color: var(--ink); }
    60%, 100%{ background: var(--ink); color: var(--bg); }
  }
  nav a.primary:hover{
    background: var(--hover);
    color: var(--ink);
  }
  nav a:not(.primary):hover{
    background: var(--hover);
  }

  /* ponytail: temporal — deshabilita un link del nav (sin click, sin hover, texto atenuado).
     Quitar la clase (y los atributos tabindex/aria-disabled en el HTML) para reactivarlo. */
  nav a.nav-disabled{
    pointer-events: none;
    opacity: 0.35;
  }
  nav a[aria-current="page"]{
    background: var(--ink-faint);
  }

  /* SNAP CONTAINER — every slide is exactly one full screen, in every breakpoint */
  .snap-container{
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }
  .slide{
    height: 100vh;
    display:flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    border-bottom: 1px solid var(--ink);
  }
  .slide:last-child{ border-bottom: none; }

  /* HERO */
  .hero{
    position: relative;
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .headline-stage{
    position: relative;
    min-height: 220px;
  }
  .headline{
    font-family:'Archivo', sans-serif;
    font-weight:700;
    font-stretch: semi-condensed;
    font-size: 42pt;
    line-height: 1.08;
    letter-spacing: -0.02em;
    word-spacing: normal;
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .headline.is-active{
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }

  .hero-desc p{
    font-family:'Newsreader', serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 18px;
    max-width: 40ch;
  }
  .dots{
    display:flex;
    gap: 8px;
    margin-top: 28px;
  }
  .dots span{
    width: 6px; height:6px; border-radius:50%;
    background: var(--ink-faint);
    transition: background .3s ease, width .3s ease;
  }
  .dots span.is-active{
    background: var(--ink);
    width: 22px;
    border-radius: 3px;
  }

  .hero-hint{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    margin: 0 auto;
    text-align: right;
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-stretch: semi-expanded;
    font-size: 16pt;
    line-height: 1.1;
    color: var(--ink);
  }

  /* VSL */
  .vsl-label{
    font-family:'Archivo', sans-serif;
    font-weight:600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 18px;
  }
  .player{
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }
  .play-btn{
    position: relative;
    width: 78px; height: 78px;
    border-radius: 0;
    background: var(--ink);
    color: var(--bg);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform .25s ease, background .18s ease, color .18s ease;
  }
  .play-btn:hover{
    transform: scale(1.06);
    background: var(--hover);
    color: var(--ink);
  }
  .play-btn svg{ width: 26px; height:26px; margin-left:4px; }
  .player-caption{
    position:absolute;
    bottom: 20px; left: 24px;
    font-family:'Archivo', sans-serif;
    font-size: 0.8rem;
    color: var(--ink);
  }

  /* CTA */
  .cta{
    text-align:center;
  }
  .cta-btn{
    display:inline-block;
    font-family:'Archivo', sans-serif;
    font-weight:600;
    font-size: 1.05rem;
    color: var(--bg);
    background: var(--ink);
    padding: 8px 16px;
    border-radius: 0;
    text-decoration:none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .cta-btn:hover{
    background: var(--hover);
    color: var(--ink);
    transform: translateY(-2px);
  }

  /* FOOTER — also a full-screen slide */
  footer.slide{
    justify-content: flex-end;
    padding-bottom: 48px;
  }
  footer .wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap: wrap;
    gap: 24px;
  }
  .social{
    display:flex;
    gap: 14px;
    align-items:center;
  }
  .social a{
    width: 36px; height:36px;
    border-radius: 0;
    border:1px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    text-decoration:none;
    transition: background .18s ease;
  }
  .social a:hover{ background: var(--hover); }
  .social a.footer-legal{
    width: auto; height: auto;
    border: none;
    margin-left: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.8rem;
    color: var(--ink);
    opacity: 0.6;
    white-space: nowrap;
  }
  .social a.footer-legal:hover{ background: none; opacity: 1; }
  .social svg{ width:16px; height:16px; fill: var(--ink); }
  .social img{ width:16px; height:16px; object-fit: contain; }

  .contact{
    text-align:right;
    font-family:'Archivo', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    line-height:1.6;
  }
  .contact a{ text-decoration:none; }

  @media (max-width: 760px){
    :root{ --header-h: 128px; }
    .wrap{ padding: 0 22px; }
    header{
      flex-direction: column;
      justify-content: flex-end;
      align-items: stretch;
      height: auto;
      padding-left: 0;
      gap: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
    .brand{
      display: flex;
      align-items: center;
      justify-content: center;
      text-align:center;
      width:100%;
    }
    .ghost-brand{
      justify-content: center;
      padding-left: 0;
      text-align: center;
    }
    nav{
      margin-left: 0;
      width: 100%;
      flex-wrap: wrap;
    }
    nav a{
      flex: 1 1 auto;
      justify-content: center;
      padding: 14px 10px;
    }
    .hero-grid{ grid-template-columns: 1fr; gap: 14px; }
    .headline{ font-size: 26pt; }
    .headline-stage{ min-height: 150px; }
    .hero-hint{ bottom: 24px; }
    .player{
      aspect-ratio: 9/16;
      width: 100%;
    }
    footer .wrap{ flex-direction: column; align-items:flex-start; }
    .contact{ text-align:left; }
  }

  @media (max-width: 340px){
    .brand{ font-size: 0.85rem; letter-spacing: 0; }
  }

  @media (prefers-reduced-motion: reduce){
    .headline{ transition: none; }
    .cta-btn{ transition: none; }
    header{ transition: none; }
    nav a.primary.blink{ animation: none; }
    html{ scroll-behavior:auto; }
    .snap-container{ scroll-snap-type: none; }
  }

