

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: #0a2b63;
  min-height: 100%;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px; /* 👈 sube todo */
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0a1f44, #163d7a);
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 25px;
}

.header h1 {
  font-size: 40px;
  font-weight: 700;
  color: white;
}

.header p {
  font-size: 16px;
  margin-top: 6px;
  color: #cbd5e1;
}

/* LAYOUT */
.layout {
  display: flex;
  justify-content: center;
  align-items: stretch; /* 👈 clave */
  gap: 30px;
  padding: 14px;
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 👈 distribuye bien los grupos */
  height: 100%; 
  gap: 6px;/* 👈 importante */
}

.sidebar button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.sidebar button:hover {
  background: #38bdf8;
  transform: scale(1.08);
}

.sidebar .activo {
  background: white;
  color: #0a1f44;
}

/* CARD */
.card {
    width: 460px;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* CARD HEADER */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h2 {
  font-size: 26px;
  color: #0a1f44;
}

.card-header span {
  background: #e0f2fe;
  color: #0284c7;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* LISTA */
.lista {
  list-style: none;
}

.lista li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 7px;
  border-radius: 11px;
  background: #f1f5f9;
  font-size: 14px;
  cursor: grab;
  transition: 0.2s;
    transition: transform 0.15s ease, background 0.2s;
}

.lista li:hover {
  background: #dbeafe;  
}

.lista li:active {
    cursor: grabbing;
    transform: scale(1.03);
    background: #bae6fd;
}

.lista li span {
  min-width: 46px;
  background: #0ea5e9;
  color: white;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}


.btn-volver:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


/*grupo anterior */
.botones-navegacion {
  display: flex;
  gap: 10px;
}

.btn-volver {
  flex: 1;
  margin-bottom: 20px;
  padding: 10px;
  border: none;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
}

.btn-volver:hover {
  background: #bae6fd;
  transform: translateY(-2px);
}

.btn-accion {
  flex: 1;
}

/* ACCION FINAL DENTRO DE CARD */
.contenedor-accion {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.aviso {
  margin-bottom: 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.btn-accion {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  transform: scale(0.97);
}


.btn-accion:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-2px);
}

/* Animaciones */
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.usuario-box button {
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

/* Hover */
.usuario-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.45);
}

/* Click */
.usuario-box button:active {
  transform: scale(0.96);
}

/* Usuario texto */
.usuario-box span {
  color: white;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}




/* LOGIN */
#auth {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 35%),
    linear-gradient(135deg, #061a3a, #0f3b78 55%, #38bdf8);
  padding: 20px;
}

#auth .auth-card {
  width: 100%;
  max-width: 410px;
  background: white;
  border-radius: 28px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,0.32);
}

#auth .auth-card h1 {
  color: #082f60;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
}

#auth .auth-card p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 24px;
}

#auth .auth-card input {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 13px;
  border: 1px solid #9aa3ad;
  border-radius: 16px;
  font-size: 15px;
  background: #f8fafc;
  outline: none;
}

#auth .auth-card button {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

#auth .auth-mensaje {
  margin-top: 14px;
  margin-bottom: 0;
  min-height: 18px;
  color: #ef4444;
  font-size: 13px;
}


/*CERRAR SESION*/
.saludo {
  display: block;
  margin-top: 15px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}


.btn-cerrar-sesion {
  margin-top: 30px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.btn-cerrar-sesion:hover {
  background: #e0f2fe;
  color: #0284c7;
}


.lista.bloqueada {
  pointer-events: none;
  opacity: 0.75;
}

.lista.bloqueada li {
  cursor: not-allowed;
}

.mi-prode {
  margin-top: 18px;
}

.mi-prode h3 {
  color: #082f60;
  font-size: 18px;
  margin-bottom: 12px;
}

.mi-prode-grid {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.mi-prode-grupo {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.mi-prode-grupo h4 {
  color: #0284c7;
  font-size: 14px;
  margin-bottom: 8px;
}

.mi-prode-grupo ol {
  padding-left: 20px;
}

.mi-prode-grupo li {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.oculto {
  display: none !important;
}

.toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  padding: 14px 18px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.toast.ok {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.toast.error {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.toast.info {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-overlay.oculto {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  background: white;
  color: #0f172a;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: modalEntrar 0.22s ease;
}

.modal-card h2 {
  color: #082f60;
  font-size: 26px;
  margin-bottom: 10px;
}

.modal-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.45;
}

.modal-botones {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-botones button {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}

.btn-cancelar {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-confirmar {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}

@keyframes modalEntrar {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.equipo-con-bandera {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bandera-img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,0.25);
}


/* celular */
@media (max-width: 768px) {

  body {
    min-height: 100vh;
    background: linear-gradient(180deg, #0b2a5b, #163d7a);
  }

  .header {
    padding: 0px 16px 14px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header p {
    font-size: 13px;
    max-width: 310px;
    margin: 6px auto 0;
  }

  .layout {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 24px;
  }

  .sidebar {
    width: 100%;
    max-width: 335px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
  }

  .sidebar button {
    width: 44px;
    height: 44px;
    justify-self: center;
  }

  .card {
    width: 100%;
    max-width: 335px;
    border-radius: 16px;
    padding: 16px;
  }

  .card-header h2 {
    font-size: 20px;
  }

  .lista {
    display: block; /* 👈 importante */
  }

  .lista li {
    padding: 11px 12px;
    margin-bottom: 7px;
  }

  .contenedor-accion {
    margin-top: 14px;
    padding-top: 14px;
  }

  .aviso {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .btn-accion {
    padding: 13px;
    font-size: 14px;
  }

.dragging {
  opacity: 0.5;
}

.chosen {
  background: #dbeafe;
}


}


