:root {
  --bg: #0f172a;
  --card: #111827;
  --accent: #22c55e;
  --accent-soft: #16a34a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: var(--text);
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2933;
}

header h1 {
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ===== MAIN ===== */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* ===== GRID PRODUCTOS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: linear-gradient(160deg, #020617, var(--card));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 0 1px #1f2933, 0 20px 40px rgba(0,0,0,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card > .select-product {
  position: absolute !important;
  top: 12px;
  right: 12px;
  margin: 0;
  transform: scale(1.3);
  z-index: 10;
  pointer-events: auto;
}

.select-product {
  position: absolute;
  top: 12px;
  right: 12px;
  transform: scale(1.3);
  z-index: 5;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 25px 50px rgba(0,0,0,.6);
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  color: var(--accent);
  font-size: .75rem;
  margin-bottom: .8rem;
}

.info {
  font-size: .9rem;
  color: var(--muted);
}

.stock {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== BOTONES ===== */
button {
  padding: .6rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
}

button:hover {
  transform: scale(1.03);
}

.add {
  background: var(--accent);
  color: #022c22;
}

.remove {
  background: rgba(239,68,68,.15);
  color: var(--danger);
}

/* ===== INPUTS ===== */
input:not([type="checkbox"]),
select {
  width: 100%;
  padding: .6rem;
  border-radius: 10px;
  border: 1px solid #1f2933;
  background: #020617;
  color: var(--text);
  margin-bottom: .6rem;
}

input:not([type="checkbox"]):focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ===== MODAL ===== */
#modalNew {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.8);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.modal-box {
  background: #020617;
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 0 1px #1f2933;
  position: relative;
}

/* ===== STEPS ===== */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step h3 {
  color: var(--accent);
}

/* ===== TALLAS ===== */
.talla-tipo {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.talla-tipo label {
  border: 1px solid #1f2933;
  padding: .6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.tallas-box {
  margin-top: 1rem;
  border: 1px dashed #1f2933;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.tallas-box label {
  display: inline-block;
  margin: .4rem .6rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: .75rem;
  color: var(--muted);
}



/* ===== rest-add ===== */

.controls {
  bottom: 1rem;
  width: calc(100%);
  display: flex;
  justify-content: space-between;
  
}

.btn-rest {
  background: rgba(223, 43, 43, 0.47);
  color: var(--card);
}

.btn-add {
  
  background: var(--accent);
  color: #022c22;

}


/* ============================= */
/* ===== RESPONSIVE MOBILE ===== */
/* ============================= */

@media (max-width: 768px) {

  /* ===== HEADER ===== */
  header {
    flex-direction: column;
    gap: .6rem;
    text-align: center;
  }

  header h1 {
    font-size: 1rem;
  }

  /* ===== MAIN ===== */
  main {
    padding: 1rem;
  }

  /* ===== GRID ===== */
 .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }

  /* ===== CARD ===== */
   .card {
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .card.active {
    transform: scale(1.15);
    z-index: 25;
    box-shadow: 0 0 0 1px var(--accent-soft),
                0 30px 60px rgba(0,0,0,.75);
  }

  /* ===== STOCK MÁS GRANDE ===== */
  .stock {
    font-size: 2.2rem; /* antes estaba muy pequeño */
    font-weight: 800;
    margin: .4rem 0;
  }

  /* Checkbox más cómodo */
  .select-product {
    transform: scale(1.5);
  }

  /* ===== BOTONES ===== */
  button {
    padding: .4rem .6rem;
    font-size: .8rem;
    border-radius: 8px;
  }

  /* ===== INPUTS ===== */
  input:not([type="checkbox"]),
  select {
    padding: .8rem;
    font-size: .95rem;
  }

  /* ===== CONTROLES ===== */
  .controls {
    flex-direction: row;
    gap: .4rem;
  }

  .btn-add,
  .btn-rest {
    width: auto;          /* evita que se estiren */
    min-width: 42px;
  }

  /* ===== MODAL ===== */
  .modal-box {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
  }

  /* ===== TALLAS ===== */
  .talla-tipo {
    flex-direction: column;
    gap: .6rem;
  }

  .tallas-box label {
    display: block;
    margin: .4rem auto;
  }

  /* ===== FOOTER ===== */
  footer {
    font-size: .7rem;
  }
}

/* ===== EXTRA: móviles muy pequeños ===== */
@media (max-width: 400px) {

  .card {
    padding: 1rem;
  }

  .stock {
    font-size: 1.2rem;
  }

  header h1 {
    font-size: .95rem;
  }
}

/* =====================================================
   STEPS – DISEÑO PRO
===================================================== */

.steps-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2933;
  color: var(--muted);
  font-size: .8rem;
  transition: all .25s ease;
}

.step-indicator span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #020617;
  border: 1px solid #1f2933;
  font-weight: 700;
}

/* ACTIVO */
.step-indicator.active {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: rgba(34,197,94,.1);
}

.step-indicator.active span {
  background: var(--accent);
  color: #022c22;
  border-color: var(--accent);
}

/* COMPLETADO */
.step-indicator.done {
  opacity: .6;
  color: var(--accent);
}

/* CONTENEDOR STEP */
.step {
  background: #020617;
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 0 0 1px #1f2933;
}

/* BOTONES DE STEPS */
.step-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.step-actions button {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: 12px;
  background: rgba(34,197,94,.15);
  color: var(--accent);
  font-weight: 600;
}

.step-actions button:hover {
  background: var(--accent);
  color: #022c22;
}

/* MOBILE */
@media (max-width: 768px) {
  .step {
    padding: 1.2rem;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-indicator {
    font-size: .7rem;
    padding: .35rem .7rem;
  }
}








