:root{
  --bg-image: url("assets/profile.jpeg");

  --pill: 999px;

  /* Dark fixed */
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --glass: rgba(18,18,20,0.68);
  --glass-strong: rgba(18,18,20,0.82);

  --btn-bg: rgba(255,255,255,0.14);
  --btn-border: rgba(255,255,255,0.18);
  --btn-text: rgba(255,255,255,0.92);

  --shadow2: 0 10px 25px rgba(0,0,0,0.35);
  --focus: rgba(255,255,255,0.70);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x:hidden;
  background: #000;
}
body.is-locked{ overflow:hidden; }

/* Fondo */
.bg{
  position: fixed;
  inset:0;
  z-index:-1;
  background-image: var(--bg-image);
  background-size: cover;

  /* ELIGE 1 (deja solo una activa) */
  background-position: center 30%;
  /* background-position: center center; */
  /* background-position: center 10%; */

  background-repeat: no-repeat;
}

@media (min-width: 900px){
  /* En PC suele necesitar subir un poco el enfoque */
  background-position: center 18%;
}

.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 600px at 50% 10%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.55));
}

/* Controles */
.top-controls{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 80; /* encima del menú */
  display:flex;
  gap:10px;
  align-items:center;
}

/* Hamburger */
.hamburger{
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: var(--shadow2);
  cursor:pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hamburger:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.hamburger__lines{
  display:block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  position: relative;
}
.hamburger__lines::before,
.hamburger__lines::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  border-radius:999px;
  background: inherit;
}
.hamburger__lines::before{ top:-7px; }
.hamburger__lines::after{ top:7px; }

/* HOME */
.home{
  min-height: 100vh;
  display:grid;
  place-items:center;
  padding: 86px 16px 24px;
  position: relative;
  z-index: 1;
  text-align:center;
}

.home__name{
  margin: 0 0 14px;
  font-size: 2.2rem;
  font-weight: 950;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.btns{
  width: min(360px, 92vw);
  display:grid;
  gap: 12px;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  border-radius: var(--pill);
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .2px;
}
.btn:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.btn:active{ transform: translateY(1px) scale(0.99); }

.btn--clear{
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home__hint{
  margin: 14px 0 0;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 10px 25px rgba(0,0,0,0.35);
  max-width: 360px;
}

/* MENU fullscreen */
.menu{
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px;
}

.menu__shell{
  max-width: 720px;
  margin: 0 auto;
  height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.menu__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.menu__title{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
  color: var(--text);
}

/* Segmented */
.segmented{
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.segmented__btn{
  border: 0;
  border-radius: 14px;
  padding: 10px 10px;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.segmented__btn.is-active{
  background: rgba(255,255,255,0.16);
  box-shadow: var(--shadow2);
}

.menu__content{
  overflow:auto;
  padding-right: 2px;
}

.panel__title{
  margin: 6px 0 10px;
  font-size: 1.6rem;
  font-weight: 950;
  color: var(--text);
}

.cardQ{
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow2);
}
.cardQ h4{ margin: 0 0 8px; font-size: 1.1rem; font-weight: 950; color: var(--text); }
.cardQ p{ margin: 0; color: var(--muted); line-height: 1.45; }
.tips{ margin-top: 10px; color: rgba(255,255,255,0.78); }

.inline-link{
  color: var(--text);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.muted{ color: var(--muted); }

.linklike{
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.item{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin: 12px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow2);
}
.item__name{ font-weight: 950; color: var(--text); }
.item__desc{ color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.item__buy{
  align-self: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 900;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  white-space: nowrap;
}

.form{ display:grid; gap: 10px; }
.field label{ font-weight: 900; display:block; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 12px;
  font: inherit;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.btn--submit{ width: 100%; }

.form__status{
  margin: 0;
  min-height: 1.1em;
  color: var(--muted);
  font-weight: 900;
}
