:root{
  --bg:#eeeff3;
  --card-bg:rgba(60, 75, 119, 0.03);
  --text:hsl(0, 100%, 1%);
  --accent:#06b6d4;
  --square-bg:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  --square-border: rgba(255,255,255,0.06);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}

/* Logo como fondo a pantalla completa (ruta relativa desde css/ hacia assets/) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url('../assets/itarlyc.png');
  background-repeat:no-repeat;
  background-position:center center;
  background-size:contain;
  opacity:0.8;
  filter:grayscale(0.1) blur(0.6px);
}

/* Contenedor central */
.overlay{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:28px;
  text-align:center;
  backdrop-filter:blur(6px);
}

/* Texto */
.overlay > h1{
  margin:0 0 8px;
  font-size:clamp(20px,4vw,36px);
}
.overlay > p{
  margin:0 0 18px;
  color:rgb(3, 2, 2);
}

/* Reloj con cuadrados */
.clock{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
  margin-top:6px;
  margin-bottom:10px;
}

.box{
  width:120px;
  height:120px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--square-bg);
  border:1px solid var(--square-border);
  box-shadow:0 10px 30px rgba(2,6,23,0.5);
  transition:transform .18s ease, box-shadow .18s ease;
}

.box.pop{ transform: translateY(-8px) scale(1.03); box-shadow:0 18px 38px rgba(2,6,23,0.6); }

.box span{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size:48px;
  line-height:1;
  font-weight:700;
  color:var(--text);
}

.colon{
  font-weight:700;
  font-size:48px;
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  user-select:none;
  animation:blink 1s steps(1,end) infinite;
}
@keyframes blink{50%{opacity:0}}

.date-text{
  margin-top:8px;
  font-size:16px;
  color:rgba(2, 7, 15, 0.95);
  background:var(--card-bg);
  padding:12px 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  display:inline-block;
  animation:floaty 2.6s ease-in-out infinite alternate;
  transform-origin:center;
}

@keyframes floaty{
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

@media(max-width:520px){
  .box{width:88px;height:88px;border-radius:10px}
  .box span{font-size:34px}
  .date-text{font-size:14px;padding:8px 10px}
}