*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --bg:#020617;
  --green:#00ff9c;
  --green-dark:#007a55;
  --cyan:#00d9ff;
  --text:#f8fafc;
  --muted:#8ea3b8;
  --danger:#ff4d5a;
  --panel:rgba(2,6,23,.92);
}

html,
body{
  width:100%;
  min-height:100%;
}

body{
  min-height:100vh;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:
    linear-gradient(rgba(0,255,156,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,156,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(0,255,156,.23), transparent 34%),
    radial-gradient(circle at 80% 85%, rgba(0,217,255,.13), transparent 36%),
    var(--bg);
  background-size:58px 58px,58px 58px,100% 100%,100% 100%,100% 100%;
}

.kiosk{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:14px;
}

.terminal-card{
  width:100%;
  max-width:min(500px,94vw);
  padding:22px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(0,255,156,.14),rgba(2,6,23,.94));
  border:1px solid rgba(0,255,156,.55);
  box-shadow:
    0 0 38px rgba(0,255,156,.22),
    inset 0 0 28px rgba(0,255,156,.07);
  text-align:center;
  position:relative;
}

.terminal-header{
  display:block;
  margin-bottom:8px;
}

.brand-area{
  display:block;
}

.brand-logo{
  width:82px;
  height:auto;
  object-fit:contain;
  border-radius:50%;
  filter:drop-shadow(0 0 16px rgba(0,255,156,.85));
  margin-bottom:8px;
}

.brand-label,
.status-pill,
.time-zone,
.terminal-footer,
.time-label,
.main-question,
.action-button small{
  display:none;
}

.brand-text h1{
  font-size:26px;
  letter-spacing:1.8px;
  font-weight:900;
  text-transform:uppercase;
  text-shadow:0 0 16px rgba(255,255,255,.32);
}

.brand-text::after{
  content:"Control horario";
  display:block;
  margin-top:4px;
  color:var(--green);
  font-size:15px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  text-shadow:0 0 14px rgba(0,255,156,.55);
}

.time-panel{
  margin:14px 0 18px;
}

.clock{
  font-size:38px;
  font-weight:900;
  letter-spacing:2px;
  text-shadow:0 0 22px rgba(255,255,255,.36);
}

.screen{
  display:none;
}

.screen.active{
  display:block;
}

.actions-grid{
  display:grid;
  gap:12px;
  margin-top:8px;
}

.action-button{
  width:100%;
  min-height:68px;
  border-radius:17px;
  border:2px solid rgba(0,255,156,.72);
  background:linear-gradient(180deg,rgba(0,255,156,.22),rgba(0,80,60,.62));
  color:white;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  box-shadow:
    0 0 16px rgba(0,255,156,.32),
    inset 0 0 18px rgba(0,255,156,.1);
  transition:.18s ease;
}

.action-button:hover{
  transform:translateY(-2px);
  box-shadow:
    0 0 28px rgba(0,255,156,.5),
    inset 0 0 22px rgba(0,255,156,.16);
}

.exit{
  border-color:rgba(0,217,255,.82);
  background:linear-gradient(180deg,rgba(0,217,255,.2),rgba(0,72,90,.62));
  box-shadow:
    0 0 16px rgba(0,217,255,.32),
    inset 0 0 18px rgba(0,217,255,.1);
}

.exit:hover{
  box-shadow:
    0 0 28px rgba(0,217,255,.5),
    inset 0 0 22px rgba(0,217,255,.16);
}

.button-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  color:var(--green);
}

.exit .button-icon{
  color:var(--cyan);
}

.action-button strong{
  display:block;
  font-size:25px;
  letter-spacing:2.8px;
  font-weight:900;
}

.pin-header{
  margin-bottom:14px;
}

.selected-type{
  font-size:24px;
  font-weight:900;
  letter-spacing:1.8px;
  color:var(--green);
  text-shadow:0 0 15px rgba(0,255,156,.5);
}

.pin-help{
  margin-top:8px;
  color:var(--muted);
  font-size:15px;
}

.pin-display{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:16px;
}

.pin-display span{
  width:48px;
  height:48px;
  border-radius:12px;
  border:2px solid rgba(0,255,156,.55);
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
  color:white;
  box-shadow:inset 0 0 16px rgba(0,255,156,.12);
}

.keypad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}

.keypad button{
  height:52px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.78);
  color:white;
  font-size:24px;
  font-weight:800;
  cursor:pointer;
  box-shadow:inset 0 0 16px rgba(0,255,156,.08);
}

.keypad button:hover{
  border-color:rgba(0,255,156,.65);
  box-shadow:0 0 15px rgba(0,255,156,.24);
}

.key-ok{
  background:linear-gradient(180deg,rgba(0,255,156,.72),rgba(0,130,80,.92)) !important;
}

.key-secondary{
  background:rgba(71,85,105,.7) !important;
}

.back-button{
  width:100%;
  margin-top:12px;
  padding:13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.78);
  color:var(--muted);
  font-size:15px;
  cursor:pointer;
}

.result-screen{
  padding-top:18px;
}

.result-icon{
  font-size:64px;
  margin-bottom:14px;
  filter:drop-shadow(0 0 18px rgba(0,255,156,.75));
}

#resultMessage{
  font-size:28px;
  font-weight:900;
  letter-spacing:1.8px;
  margin-bottom:12px;
  text-transform:uppercase;
}

.result-detail{
  font-size:18px;
  line-height:1.6;
}

.result-detail strong{
  display:block;
  font-size:28px;
  margin-top:12px;
  color:white;
}

.success-entry{
  color:var(--green);
}

.success-exit{
  color:var(--cyan);
}

.error-result{
  color:var(--danger);
}

.error-result .result-icon{
  filter:drop-shadow(0 0 18px rgba(255,77,90,.75));
}

.loading-result{
  color:#facc15;
}

@media(max-width:768px){
  .terminal-card{
    max-width:94vw;
    padding:20px;
  }

  .brand-logo{
    width:76px;
  }

  .brand-text h1{
    font-size:23px;
  }

  .clock{
    font-size:34px;
  }

  .action-button{
    min-height:64px;
  }

  .action-button strong{
    font-size:23px;
  }
}

@media(max-height:720px){
  .kiosk{
    align-items:flex-start;
    padding-top:10px;
  }

  .terminal-card{
    padding:16px 20px;
  }

  .brand-logo{
    width:66px;
    margin-bottom:5px;
  }

  .brand-text h1{
    font-size:22px;
  }

  .brand-text::after{
    font-size:13px;
  }

  .time-panel{
    margin:9px 0 12px;
  }

  .clock{
    font-size:30px;
  }

  .actions-grid{
    gap:9px;
  }

  .action-button{
    min-height:58px;
  }

  .action-button strong{
    font-size:21px;
  }

  .pin-display span{
    width:42px;
    height:42px;
  }

  .keypad button{
    height:46px;
  }

  .back-button{
    padding:10px;
  }
}