
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

    :root{
      --bg:#a6f9f9;
      --accent:#1e80e9;
      --text:#4a2c2a;   
      --muted:#8b5e5e;
      --card:#fff;
      
      --globe-width: 12px;
      --globe-height: 28px;
      --globe-spacing: 40px;
      --globe-spread: 3px;
      --light-off-opacity: 0.4;

    }

    *{box-sizing:border-box;}
    body{
      margin:0;
      font-family:"Poppins",sans-serif;
      background:var(--bg);
      color:var(--text);
      scroll-behavior:smooth;
    }

    /* Pantalla de contraseña */
    #pw-overlay{
      position:fixed;
      inset:0;
      background:linear-gradient(180deg,rgba(0,0,0,0.4),rgba(0,0,0,0.45));
      display:flex;
      align-items:center;
      justify-content:center;
      z-index:9999;
    }
    .pw-card{
      width:90%;
      max-width:420px;
      background:linear-gradient(180deg,var(--card),#f5bcce);
      border-radius:14px;
      padding:1.8rem;
      box-shadow:0 12px 40px rgba(0,0,0,0.25);
      text-align:center;
      border:1px solid rgba(233,30,99,0.08);
    }
    .pw-card h2{color:var(--accent);margin-top:0;}
    .pw-card input{
      width:80%;
      padding:0.6rem 1rem;
      border-radius:10px;
      border:1px solid rgba(0,0,0,0.1);
      font-size:1rem;
    }
    .pw-card button{
      background:var(--accent);
      color:#fff;
      border:none;
      padding:0.6rem 1rem;
      border-radius:10px;
      font-weight:bold;
      cursor:pointer;
      margin-top:0.8rem;
    }
    .pw-feedback{
      color:#b54261;
      font-size:0.9rem;
      margin-top:0.5rem;
      min-height:1rem;
    }
    .shake{animation:shake 0.4s;}
    @keyframes shake{
      0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}
    }

    /* Header */
    header{
      text-align:center;
      padding:4rem 1rem;
      background:linear-gradient(180deg,#000000 0%,var(--bg) 100%);
    }
    header h1{
      font-size:2.5rem;
      color:var(--accent);
      margin-bottom:0.5rem;
    }
    header p{
      font-size:1.1rem;
      color:var(--muted);
    }

    /* Línea de tiempo */
    .timeline{
      position:relative;
      max-width:900px;
      margin:3rem auto;
      padding:2rem 0;
    }
    .timeline::after{
      content:"";
      position:absolute;
      width:4px;
      background:var(--accent);
      top:0;
      bottom:0;
      left:50%;
      transform:translateX(-50%);
      border-radius:2px;
    }
    .timeline-item{
      position:relative;
      width:50%;
      padding:2rem 2.5rem;
      box-sizing:border-box;
    }
    .timeline-item:nth-child(odd){
      left:0;
      text-align:right;
    }
    .timeline-item:nth-child(even){
      left:50%;
    }

    .timeline-content{
      background:var(--card);
      padding:1rem 1.5rem;
      border-radius:12px;
      box-shadow:0 4px 20px rgba(0,0,0,0.1);
      position:relative;
      display:flex;
      flex-direction:column;
      align-items:center;
    }

    .timeline-item::before{
      content:"";
      position:absolute;
      width:20px;
      height:20px;
      border-radius:50%;
      background:var(--accent);
      top:2rem;
      z-index:1;
      left:calc(50% - 10px);
    }

    .timeline-content img{
      width:100%;
      max-width:350px;
      border-radius:10px;
      margin-bottom:1rem;
      box-shadow:0 4px 12px rgba(0,0,0,0.15);
      transition:transform 1s ease;
    }

    .timeline-content img:hover{transform:scale(1.05);}
    .timeline-content h3{
      color:var(--accent);
      margin:0.5rem 0;
      font-size:1.5rem;
    }
    .timeline-content p{
      color:var(--text);
      font-size:1rem;
      line-height:1.6;
    }

    /* Animaciones scroll */
    .fade-in{
      opacity:0;
      transform:translateY(50px);
      transition:opacity 1.2s ease, transform 1.2s ease;
    }
    .fade-in.visible{
      opacity:1;
      transform:translateY(0);
    }

    /* Responsivo */
    @media(max-width:768px){
      .timeline::after{left:8px;}
      .timeline-item{
        width:100%;
        padding-left:2.5rem;
        padding-right:1rem;
        margin-bottom:2rem;
      }
      .timeline-item:nth-child(odd),
      .timeline-item:nth-child(even){
        left:0;
        text-align:left;
      }
      .timeline-item::before{
        left:0;
      }
      header h1{font-size:2rem;}
    }

    footer{
      text-align:center;
      padding:2rem;
      background:#ffe4ec;
      font-size:0.9rem;
      color:#7a5555;
    }

    .timeline-content .item-text-up{
        text-align: center;
        font-size: 1.4rem;
        font-weight: 900;
        color:#1659a1;
    }
    

    /*LUCES DE NAVIDAD */
  .lightrope{
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  position:absolute;
  z-index:1;
  margin:-15px 0 0 0;
  padding:0;
  pointer-events:none;
  width:100%;
}

.lightrope li{
  position:relative;
  list-style:none;
  display:inline-block;
  width:var(--globe-width);
  height:var(--globe-height);
  margin:calc(var(--globe-spacing) / 2);
  border-radius:50%;
  background:rgba(0,247,165,1);
  box-shadow:0px calc(var(--globe-height) / 6)
    calc(var(--globe-width) * 2)
    var(--globe-spread)
    rgba(0,247,165,1);
  animation:flash-1 2s infinite both;
}

/* Variaciones */
.lightrope li:nth-child(2n+1){
  background:rgba(0,255,255,1);
  box-shadow:0px calc(var(--globe-height) / 6)
    calc(var(--globe-width) * 2)
    var(--globe-spread)
    rgba(0,255,255,0.5);
  animation:flash-2 0.4s infinite both;
}

.lightrope li:nth-child(4n+2){
  background:rgba(247,0,148,1);
  box-shadow:0px calc(var(--globe-height) / 6)
    calc(var(--globe-width) * 2)
    var(--globe-spread)
    rgba(247,0,148,1);
  animation:flash-3 1.1s infinite both;
}

.lightrope li:nth-child(odd){
  animation-duration:1.8s;
}

.lightrope li:nth-child(3n+1){
  animation-duration:1.4s;
}

/* Cable y soporte */
.lightrope li::before{
  content:"";
  position:absolute;
  background:#222;
  width:calc(var(--globe-width) - 2px);
  height:calc(var(--globe-height) / 3);
  border-radius:3px;
  top:calc(0px - (var(--globe-height) / 6));
  left:1px;
}

.lightrope li::after{
  content:"";
  position:absolute;
  top:calc(0px - (var(--globe-height) / 2));
  left:calc(var(--globe-width) - 3px);
  width:calc(var(--globe-spacing) + 12px);
  height:calc((var(--globe-height) / 3) * 2);
  border-bottom:2px solid #222;
  border-radius:50%;
}

.lightrope li:last-child::after{
  content:none;
}

.lightrope li:first-child{
  margin-left:calc(0px - var(--globe-spacing));
}

@keyframes flash-1{
  0%,100%{
    background:rgba(0,247,165,1);
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(0,247,165,1);
  }
  50%{
    background:rgba(0,247,165,var(--light-off-opacity));
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(0,247,165,0.2);
  }
}

@keyframes flash-2{
  0%,100%{
    background:rgba(0,255,255,1);
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(0,255,255,1);
  }
  50%{
    background:rgba(0,255,255,var(--light-off-opacity));
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(0,255,255,0.2);
  }
}

@keyframes flash-3{
  0%,100%{
    background:rgba(247,0,148,1);
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(247,0,148,1);
  }
  50%{
    background:rgba(247,0,148,var(--light-off-opacity));
    box-shadow:0px calc(var(--globe-height) / 6)
      calc(var(--globe-width) * 2)
      var(--globe-spread)
      rgba(247,0,148,0.2);
  }
}
