:root{
    --bg: #071A28;
    --bg-2: #0C2637;
    --brand: #009EE2;
    --brand-dim: rgba(0,158,226,0.35);
    --ink: #F2F6F8;
    --muted: #7C93A3;
  }

  *{ box-sizing: border-box; }

  html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow: hidden;
  }

  body{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Textura de fondo: paneles de depósito muy sutiles */
  .backdrop{
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 30%, var(--bg-2) 0%, var(--bg) 70%);
    z-index: 0;
  }

  .backdrop svg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
  }

  /* Marcas de esquina, como el sello de un pallet */
  .corner{
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid var(--brand);
    opacity: 0;
    animation: cornerIn 0.6s ease-out forwards;
  }
  .corner.tl{ top: 28px; left: 28px; border-right: none; border-bottom: none; animation-delay: 0.1s; }
  .corner.tr{ top: 28px; right: 28px; border-left: none; border-bottom: none; animation-delay: 0.22s; }
  .corner.bl{ bottom: 28px; left: 28px; border-right: none; border-top: none; animation-delay: 0.34s; }
  .corner.br{ bottom: 28px; right: 28px; border-left: none; border-top: none; animation-delay: 0.46s; }

  @keyframes cornerIn{
    from{ opacity: 0; transform: scale(0.6); }
    to{ opacity: 0.9; transform: scale(1); }
  }

  .ref{
    position: absolute;
    top: 32px;
    left: 74px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.7s forwards;
  }
  .ref-year{
    position: absolute;
    bottom: 32px;
    right: 74px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.7s forwards;
  }

  @keyframes fadeIn{
    to{ opacity: 0.7; }
  }

  main{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    max-width: 640px;
  }

  .logo-wrap{
    opacity: 0;
    transform: scale(0.88);
    animation: logoIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    filter: drop-shadow(0 0 46px var(--brand-dim));
    margin-bottom: 8px;
  }

  .logo-wrap img{
    width: min(46vw, 240px);
    height: auto;
    display: block;
  }

  @keyframes logoIn{
    to{ opacity: 1; transform: scale(1); }
  }

  h1{
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4.6vw, 42px);
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 22px 0 10px;
    color: var(--ink);
    opacity: 0;
    transform: translateY(10px);
    animation: riseIn 0.7s ease-out 0.62s forwards;
  }

  p.sub{
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    max-width: 400px;
    opacity: 0;
    transform: translateY(10px);
    animation: riseIn 0.7s ease-out 0.78s forwards;
  }

  @keyframes riseIn{
    to{ opacity: 1; transform: translateY(0); }
  }

  /* Cinta de carga: única animación en loop, referencia al movimiento de un depósito */
  .track{
    margin-top: 40px;
    width: 220px;
    height: 3px;
    background: rgba(124,147,163,0.18);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1s forwards;
  }

  .track-fill{
    height: 100%;
    width: 40%;
    background: var(--brand);
    border-radius: 2px;
    animation: loading 1.8s ease-in-out infinite;
  }

  @keyframes loading{
    0%{ transform: translateX(-100%); }
    100%{ transform: translateX(350%); }
  }

  @media (prefers-reduced-motion: reduce){
    .corner, .ref, .ref-year, .logo-wrap, h1, p.sub, .track{
      animation: none;
      opacity: 1;
      transform: none;
    }
    .track-fill{
      animation: none;
      width: 40%;
    }
  }

  @media (max-width: 480px){
    .corner{ width: 22px; height: 22px; }
    .corner.tl, .corner.tr{ top: 18px; }
    .corner.bl, .corner.br{ bottom: 18px; }
    .corner.tl, .corner.bl{ left: 18px; }
    .corner.tr, .corner.br{ right: 18px; }
    .ref{ top: 22px; left: 52px; }
    .ref-year{ bottom: 22px; right: 52px; }
  }

  /* Botón de WhatsApp */
  .whatsapp-btn{
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    z-index: 2;
    opacity: 0;
    transform: scale(0.7);
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
    transition: transform 0.2s ease-out;
  }

  .whatsapp-btn:hover{
    transform: scale(1.08);
  }

  .whatsapp-btn:focus-visible{
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }

  .whatsapp-btn svg{
    width: 28px;
    height: 28px;
  }

  @keyframes fadeInScale{
    to{ opacity: 1; transform: scale(1); }
  }

  @media (prefers-reduced-motion: reduce){
    .whatsapp-btn{ animation: none; opacity: 1; transform: scale(1); }
  }

  @media (max-width: 480px){
    .whatsapp-btn{ bottom: 16px; left: 16px; width: 50px; height: 50px; }
    .whatsapp-btn svg{ width: 25px; height: 25px; }
  }
