/* ============================================================
   ALLZONE LOGISTICS — Home pública
   Paleta derivada del logo real: gris azulado + teal de marca
   ============================================================ */

:root{
  --fondo: #3B434B;
  --fondo-prof: #2E353C;
  --teal: #6FA0A0;
  --teal-dim: #45686A;
  --blanco: #F4F3EF;
  --blanco-dim: rgba(244,243,239,0.72);
  --blanco-tenue: rgba(244,243,239,0.45);

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html, body{
  background: var(--fondo);
  color: var(--blanco);
  font-family: var(--body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration:none; color:inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   HALO DE FONDO
   ============================================================ */
.halo{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(111,160,160,0.22), transparent 65%),
    linear-gradient(180deg, var(--fondo) 0%, var(--fondo-prof) 100%);
  z-index: -1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 140px;
}

.heroLogo{
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 8px;
}

.eyebrow{
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-top: 4px;
  margin-bottom: 18px;
}

.heroTitulo{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.heroSub{
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--blanco-dim);
  margin-bottom: 28px;
}

.heroMail{
  font-size: 15px;
  font-weight: 500;
  color: var(--blanco-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.heroMail:hover{
  color: var(--teal);
  border-color: var(--teal);
}

.estaciones{
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blanco-tenue);
}

.estacion{ color: inherit; }

.estacionDot{ opacity: 0.6; }

/* ============================================================
   BARRA DE ACCESO INTERNO
   ============================================================ */
.accesoBarra{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(46,53,60,0.86);
  backdrop-filter: blur(10px);
  border: none;
  border-top: 1px solid rgba(111,160,160,0.28);
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.accesoBarra:hover{
  background: rgba(46,53,60,0.96);
  border-color: var(--teal);
}

.accesoTexto{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accesoLabel{
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  color: var(--blanco);
}

.accesoSub{
  font-family: var(--body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--blanco-tenue);
}

.accesoFlecha{
  font-size: 20px;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accesoBarra:hover .accesoFlecha{
  transform: translateX(4px);
}

/* ============================================================
   MODAL DE PIN (acceso interno)
   ============================================================ */
.pinModal{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pinModal[hidden]{
  display: none !important;
}

.pinOverlay{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 18, 21, 0.72);
  backdrop-filter: blur(4px);
}

.pinBox{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: var(--fondo-prof);
  border: 1px solid rgba(111,160,160,0.3);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
}

.pinCerrar{
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--blanco-tenue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.pinCerrar:hover{
  color: var(--blanco);
}

.pinEyebrow{
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.pinTitulo{
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 6px;
}

.pinSub{
  font-size: 13px;
  color: var(--blanco-dim);
  margin-bottom: 26px;
}

.pinInputs{
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pinDigito{
  width: 40px;
  height: 52px;
  text-align: center;
  font-family: var(--body);
  font-size: 22px;
  color: var(--blanco);
  background: rgba(244,243,239,0.06);
  border: 1.5px solid rgba(111,160,160,0.3);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease;
}

.pinDigito:focus{
  border-color: var(--teal);
}

.pinDigito.errorShake{
  border-color: #D9694F;
  animation: pinShake 0.4s ease;
}

@keyframes pinShake{
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.pinError{
  margin-top: 16px;
  color: #D9694F;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pinError.visible{ opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px){
  .hero{
    padding: 80px 20px 130px;
  }
  .heroLogo{
    width: 160px;
    height: 160px;
  }
  .estaciones{
    margin-top: 40px;
    flex-direction: column;
    gap: 4px;
  }
  .estacionDot{ display: none; }
  .accesoBarra{
    padding: 16px 20px;
  }
  .accesoSub{
    display: none;
  }
  .pinDigito{
    width: 36px;
    height: 48px;
    font-size: 19px;
  }
}
