/* 🔹 Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🔹 Cuerpo principal */
body {
    background-color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: "Poppins", "Courier New", monospace;
}

/* 🔹 Contenedor del loader */
#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s ease;
}

/*  Imagen principal del logo */
.logo {
    width: 320px;
    height: auto;
    animation:
        inkFill 3s ease-in-out forwards,
        heartbeat 1.5s ease-in-out infinite;
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

/* --- Efecto de llenado de tinta --- */
@keyframes inkFill {
    0% {
        mask-position: 0% 100%;
        -webkit-mask-position: 0% 100%;
    }

    100% {
        mask-position: 0% 0%;
        -webkit-mask-position: 0% 0%;
    }
}

/* --- Efecto de latido --- */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    25%,
    75% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* --- Desvanecer loader --- */
#loader.oculto {
    opacity: 0;
    pointer-events: none;
}

/* ==============================
   📱 RESPONSIVE DESIGN
   ============================== */

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .logo {
        width: 200px;
        animation:
            inkFill 2.5s ease-in-out forwards,
            heartbeat 1.5s ease-in-out infinite;
    }
}

/* Teléfonos grandes / Tablets pequeñas */
@media (min-width: 481px) and (max-width: 768px) {
    .logo {
        width: 260px;
    }
}

/* Laptops medianas */
@media (min-width: 769px) and (max-width: 1200px) {
    .logo {
        width: 300px;
    }
}

/* Monitores grandes */
@media (min-width: 1201px) {
    .logo {
        width: 360px;
    }
}



/* =========================================
   ALERTA BLOQUEANTE DE APERTURA
   ========================================= */

.opening-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.opening-overlay.show{
  display: flex;
}

.opening-overlay{
  display: none;
}
.opening-box{
  width: 100%;
  max-width: 760px;
  text-align: center;
  color: #fff;
  padding: 40px 25px;
  border: 1px solid rgba(174,134,71,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

.opening-logo{
  width: 180px;
  max-width: 55vw;
  margin: 0 auto 20px auto;
  display: block;
  filter: brightness(0) saturate(100%)
          invert(73%) sepia(30%)
          saturate(480%)
          hue-rotate(8deg)
          brightness(95%)
          contrast(92%);
}

.opening-box h2{
  margin: 0 0 14px 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 2px;
  color: #ae8647;
}

.opening-text{
  margin: 0 auto 28px auto;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.countdown{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px auto 24px auto;
  max-width: 620px;
}

.count-item{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(174,134,71,0.25);
  border-radius: 16px;
  padding: 18px 10px;
}

.count-item span{
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.count-item small{
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ae8647;
}

.opening-date{
  margin: 12px 0 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
}

body.opening-lock{
  overflow: hidden !important;
}

@media (max-width: 700px){
  .opening-box{
    padding: 32px 18px;
  }

  .countdown{
    grid-template-columns: repeat(2, 1fr);
  }

  .opening-text{
    font-size: 0.97rem;
  }
}