﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #1a1b2e, #0c0d14);
  color: #f1f1f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

/* TÍTULO RESPONSIVE REAL */
.title {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  margin-bottom: clamp(24px, 6vw, 48px);
}

/* GRID */
.menu-grid {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: clamp(16px, 4vw, 24px);
}

.menu-card {
  min-height: 160px;
  background: rgba(255,255,255,.05);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform .25s;
  text-align: center;
}

.menu-card:hover {
  transform: translateY(-6px);
}

.menu-card h2 {
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 800;
}

.menu-card p {
  font-size: .9rem;
  color: #cfcfe8;
}

/* SECRETO */
.menu-card.secret.locked::after {
  content: "🔒";
  font-size: clamp(2.8rem, 10vw, 3.4rem);
}

.menu-card.secret.unlocked::after {
  content: "";
}

.open-lock {
  font-size: clamp(2.8rem, 10vw, 3.4rem);
  margin-bottom: 12px;
}

/* MODAL */
.code-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,18,.75);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.code-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.code-modal {
  background: rgba(30,30,50,.7);
  padding: clamp(24px, 5vw, 36px);
  border-radius: 26px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.code-lock {
  font-size: clamp(2.2rem, 8vw, 3rem);
  margin-bottom: 10px;
}

.code-text {
  font-size: .75rem;
  letter-spacing: .25em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.code-inputs input {
  width: clamp(44px, 14vw, 52px);
  height: clamp(50px, 16vw, 58px);
  border-radius: 16px;
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
}

.code-btn {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg,#6a6aff,#8f8fff);
  color: #fff;
  margin-bottom: 10px;
}

.code-cancel {
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #cfcfe8;
}

.code-error {
  margin-top: 12px;
  font-size: .75rem;
  color: #ff6a6a;
  opacity: 0;
}

.code-error.show {
  opacity: 1;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.code-modal.shake {
  animation: shake .4s;
}

/* MOBILE */
@media (max-width:768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}
