/* ==========================================================
   style.css — estilos globales (header, botones, tarjetas, recursos, modales)
   Variables de color en :root. Estilos del home/productos: css/home.css
   ========================================================== */

:root {
  --bg: #0b1020;
  --card: #141b34;
  --tx: #e8ecf8;
  --mut: #9aa6c8;
  --a: #7c5cff;
  --b: #22d3ee;
  --g: linear-gradient(90deg,#ff7a59,#c77dff,#22d3ee);
}

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

body {
  font-family: Outfit,system-ui,sans-serif;
  background: radial-gradient(1100px 600px at 75% -10%,#2a1f6b66,transparent),var(--bg);
  color: var(--tx);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: #0b1020cc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff14;
}

.left,nav,.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
}

.gh {
  transition: color .3s;
  cursor: pointer;
}

.gh:hover {
  background: var(--g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad {
  background: var(--g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ic {
  background: #ffffff14;
  border: 0;
  color: var(--tx);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.ic:hover {
  background: #ffffff2a;
}

select,input {
  background: #ffffff14;
  color: var(--tx);
  border: 1px solid #ffffff26;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}

option {
  color: #000;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--a);
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: background .3s,transform .2s;
}

.btn:hover {
  background: var(--b);
  color: #06121f;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #ffffff40;
  color: var(--tx);
}

.btn.ghost:hover {
  background: #ffffff1f;
  color: var(--tx);
}

.init {
  background: #ff7a59;
  color: #fff;
}

.init:hover {
  background: #22d3ee;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 32px 24px;
}

.hero {
  text-align: center;
  padding: 90px 0 50px;
}

.hero h1,main>h1 {
  font-size: clamp(2.2rem,6vw,4.2rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  color: var(--mut);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--card);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  padding: 26px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card p,.mut {
  color: var(--mut);
}

footer {
  text-align: center;
  padding: 22px;
  border-top: 1px solid #ffffff14;
}

.heart {
  background: none;
  border: 0;
  color: var(--tx);
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}

.heart i {
  color: #ff4d6d;
  font-style: normal;
  display: inline-block;
  animation: beat 1.4s infinite;
}

@keyframes beat {
  50% {
    transform: scale(1.25);
  }
}

.float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  background: var(--card);
  border: 1px solid #ffffff2a;
  border-radius: 16px;
  padding: 20px;
  z-index: 40;
  box-shadow: 0 10px 40px #0008;
  display: none;
}

.float.open {
  display: block;
}

.float p {
  margin: 6px 0 14px;
  line-height: 1.5;
}

.x {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: 0;
  color: var(--mut);
  font-size: 1.1rem;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.tab,.side {
  background: #ffffff0d;
  border: 0;
  color: var(--tx);
  padding: 10px 20px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.tab.on,.side.on {
  background: var(--a);
}

.pane,.sub {
  display: none;
}

.pane.on,.sub.on {
  display: block;
}

.tm.on {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub.on {
  width: 100%;
  text-align: center;
}

.big {
  font-size: clamp(3rem,12vw,8rem);
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
}

.row {
  justify-content: center;
}

.in {
  background: none;
  border: 0;
  text-align: center;
  width: auto;
}

.mus {
  font-size: 7rem;
  text-align: center;
}

#ambient {
  text-align: center;
}

.pm {
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #ffffff40;
  color: var(--tx);
  font: inherit;
  cursor: pointer;
  background: linear-gradient(90deg,#ff6347 var(--p,0%),#ffffff0d var(--p,0%));
}

#rounds {
  margin: 20px auto;
  max-width: 640px;
  display: grid;
  gap: 8px;
}

.round {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 10px;
}

.round input {
  flex: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: #000a;
  display: none;
  place-items: center;
  z-index: 50;
}

.modal.open {
  display: grid;
}

.box {
  position: relative;
  background: var(--card);
  padding: 28px;
  border-radius: 18px;
  width: min(92vw,460px);
  display: grid;
  gap: 16px;
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  gap: 10px;
}

.grid button {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ffffff26;
  background: #ffffff0d;
  color: var(--tx);
  font: inherit;
  cursor: pointer;
}

.grid button.on {
  background: var(--a);
}

label {
  display: grid;
  gap: 6px;
  color: var(--mut);
}

label.up {
  text-align: center;
  color: var(--tx);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 999px;
  z-index: 99;
}

@media(max-width:720px) {
  .tm.on {
    grid-template-columns: 1fr;
  }
  aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  header {
    padding: 8px 12px;
  }
  nav {
    gap: 8px;
    font-size: .9rem;
  }
}
