* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #102a56;
  min-height: 100vh;
  padding-bottom: 90px;
}

.topbar {
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0b2f63;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.topbar h1 {
  font-size: 24px;
  color: #0b2f63;
}

.topbar p {
  font-size: 13px;
  color: #667085;
  margin-top: 2px;
}

main {
  max-width: 950px;
  margin: 0 auto;
  padding: 24px 16px;
}

.resultado {
  background: white;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(16, 42, 86, 0.09);
}

.tipo-sorteo {
  font-size: 20px;
  font-weight: bold;
}

.fecha {
  color: #7b8493;
  margin-top: 8px;
  font-size: 14px;
}

.ganador-texto {
  margin-top: 25px;
  font-size: 18px;
  font-weight: bold;
}

.numero-ganador {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: 8px;
  margin: 8px 0 22px;
  color: #0b2f63;
}

#btnHistorial {
  border: 2px solid #2563eb;
  background: white;
  color: #2563eb;
  padding: 12px 24px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#btnHistorial:hover {
  background: #eef4ff;
}

.patrocinio {
  margin-top: 18px;
  background: linear-gradient(135deg, #0b2f63, #174f96);
  color: white;
  padding: 24px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(16, 42, 86, 0.16);
}

.patrocinio h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.patrocinio p {
  line-height: 1.8;
}

.accesos {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tarjeta {
  background: white;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(16, 42, 86, 0.08);
}

.tarjeta h3 {
  font-size: 18px;
  margin-top: 12px;
}

.tarjeta p {
  font-size: 14px;
  color: #697386;
  margin-top: 8px;
  line-height: 1.5;
}

.menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08);
}

.menu button {
  border: none;
  background: transparent;
  color: #0b2f63;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.menu span {
  font-size: 11px;
  font-weight: bold;
}

@media (max-width: 700px) {
  .accesos {
    grid-template-columns: 1fr;
  }

  .numero-ganador {
    font-size: 58px;
  }

  .topbar h1 {
    font-size: 21px;
  }
}
/* ==========================
   PERFIL 123 LA BOLITA
========================== */

.perfil-contenedor {
  max-width: 900px;
  margin: 0 auto;
}

.perfil-cabecera {
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  border-radius: 22px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(16, 42, 86, 0.08);
}

.avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #0b2f63;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
}

.perfil-cabecera h2 {
  font-size: 25px;
}

.nickname-ok {
  color: #17854a;
  font-size: 13px;
  margin-top: 4px;
  font-weight: bold;
}

.perfil-correo {
  color: #777;
  font-size: 13px;
  margin-top: 5px;
}

.perfil-seccion {
  background: white;
  border-radius: 22px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(16, 42, 86, 0.08);
}

.perfil-seccion.destacada {
  border: 2px solid #e9eef6;
}

.titulo-seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.titulo-seccion h2 {
  font-size: 20px;
}

.titulo-seccion p {
  font-size: 13px;
  color: #687385;
  margin-top: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  font-weight: bold;
  margin-bottom: 7px;
  font-size: 14px;
}

.campo input,
.campo select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccd5e0;
  font-size: 15px;
  background: white;
}

.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: #2563eb;
}

.campo small {
  margin-top: 5px;
  color: #708090;
}

.boton-primario {
  border: none;
  background: #0b2f63;
  color: white;
  border-radius: 22px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: bold;
}

.boton-primario:hover {
  background: #164b8a;
}

.form-fecha {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}

.oculto {
  display: none;
}

.subtitulo {
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: 15px;
}

.avisos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avisos label {
  background: white;
  border: 1px solid #d5dce5;
  padding: 9px 13px;
  border-radius: 20px;
  cursor: pointer;
}

.opcion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 15px;
  background: white;
  border-radius: 12px;
}

.opcion-toggle p {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.opcion-toggle input {
  width: 20px;
  height: 20px;
}

.boton-guardar {
  width: 100%;
  border: none;
  padding: 14px;
  margin-top: 20px;
  border-radius: 12px;
  background: #17854a;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.boton-guardar:hover {
  background: #126b3c;
}

.estado-vacio {
  text-align: center;
  padding: 30px 10px;
  color: #687385;
}

.icono-grande {
  font-size: 42px;
  margin-bottom: 10px;
}

.estado-vacio h3 {
  color: #263f65;
  margin-bottom: 6px;
}

.perfil-opcion {
  display: flex;
  align-items: center;
  padding: 16px 5px;
  border-bottom: 1px solid #eef1f5;
  cursor: pointer;
}

.perfil-opcion:last-child {
  border-bottom: none;
}

.opcion-icono {
  font-size: 25px;
  width: 45px;
}

.opcion-texto {
  flex: 1;
}

.opcion-texto h3 {
  font-size: 16px;
}

.opcion-texto p {
  font-size: 12px;
  color: #738094;
  margin-top: 4px;
}

.flecha {
  font-size: 30px;
  color: #9aa6b6;
}

.fecha-guardada {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #e1e6ed;
  border-radius: 15px;
}

.fecha-icono {
  font-size: 30px;
}

.fecha-info {
  flex: 1;
}

.fecha-info p {
  color: #606d7e;
  margin-top: 3px;
}

.fecha-info span {
  font-size: 12px;
  color: #17854a;
}

.fecha-guardada button {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: white;
  border-radius: 15px;
  padding: 7px 12px;
  cursor: pointer;
}

.perfil-guardar {
  max-width: 300px;
  margin: 20px auto 35px;
  display: block;
}

.logo .n1 {
  color: #1667a5;
}

.logo .n2 {
  color: #d6a323;
}

.logo .n3 {
  color: #238049;
}

.menu .activo {
  color: #2563eb;
}

@media (max-width: 700px) {

  .form-grid {
    grid-template-columns: 1fr;
  }

  .titulo-seccion {
    align-items: flex-start;
    flex-direction: column;
  }

  .perfil-cabecera {
    align-items: flex-start;
  }

}
/* ==========================
   MIS NÚMEROS
========================== */

.mis-numeros-bloque {
  background: white;
  border-radius: 22px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(16, 42, 86, 0.08);
}

.numero-guardado {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e1e6ed;
  border-radius: 16px;
  margin-top: 12px;
}

.bola-numero {
  min-width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0b2f63;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: bold;
}

.numero-info {
  flex: 1;
}

.numero-info h3 {
  margin-bottom: 5px;
}

.numero-info p {
  color: #697386;
  font-size: 13px;
  margin-top: 4px;
}

.numero-info span {
  color: #17854a;
  font-size: 13px;
}

.acciones-fecha {
  display: flex;
  gap: 6px;
}

.acciones-fecha button {
  border: 1px solid #2563eb;
  background: white;
  color: #2563eb;
  border-radius: 18px;
  padding: 7px 12px;
  cursor: pointer;
}

@media (max-width: 700px) {

  .numero-guardado {
    align-items: flex-start;
  }

  .acciones-fecha {
    flex-direction: column;
  }

}
/* ==========================
   MIS NÚMEROS COMPACTOS
========================== */

.rejilla-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.bola-numero-compacta {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: #0b2f63;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 12px rgba(11, 47, 99, 0.18);
  transition: transform 0.15s ease;
}

.bola-numero-compacta:hover {
  transform: translateY(-3px);
}

.numero-principal {
  font-size: 25px;
  font-weight: bold;
}

.indicadores-numero {
  font-size: 11px;
  margin-top: 3px;
}

.detalle-numero {
  margin-top: 22px;
  background: #f7f9fc;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  padding: 20px;
}

.detalle-numero-cabecera {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bola-numero-grande {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #0b2f63;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: bold;
}

.detalle-numero-cabecera p {
  color: #697386;
  margin-top: 4px;
  font-size: 13px;
}

.detalle-numero-datos {
  margin-top: 15px;
  line-height: 1.8;
  color: #394b63;
}

.detalle-numero-acciones {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detalle-numero-acciones button {
  border: 1px solid #2563eb;
  background: white;
  color: #2563eb;
  border-radius: 18px;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 700px) {

  .rejilla-numeros {
    gap: 10px;
  }

  .bola-numero-compacta {
    width: 66px;
    height: 66px;
  }

  .numero-principal {
    font-size: 22px;
  }
}
/* ==========================
   ALERTAS
========================== */

.alerta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 5px;
  border-bottom: 1px solid #edf1f5;
}

.alerta-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.alerta-item p {
  font-size: 13px;
  color: #6e7a8c;
  line-height: 1.5;
}

.alerta-item input {
  width: 21px;
  height: 21px;
}

.alerta-separador {
  height: 1px;
  background: #e5eaf0;
  margin: 22px 0;
}

.canales-alerta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.canales-alerta label {
  background: #f7f9fc;
  border: 1px solid #dce3eb;
  border-radius: 20px;
  padding: 10px 16px;
  cursor: pointer;
}

.alerta-comercial {
  background: #fafbfc;
  border-radius: 14px;
  padding: 16px;
  border-bottom: none;
}

@media (max-width: 700px) {

  .alerta-item {
    align-items: flex-start;
  }

  .canales-alerta {
    flex-direction: column;
  }

}
/* ==========================
   ACORDEONES DEL PERFIL
========================== */

.titulo-acordeon {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.titulo-acordeon > div {
  flex: 1;
}

.titulo-acordeon h2 {
  margin: 0;
  font-size: 22px;
  color: #0b2f63;
}

.titulo-acordeon p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6e7a8c;
}

.titulo-acordeon > span {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: bold;
  color: #0b2f63;
  margin-left: auto;
}

.contenido-acordeon {
  width: 100%;
  margin-top: 20px;
}

.oculto {
  display: none;
}


/* ==========================
   MIS ESTADÍSTICAS
========================== */

.resumen-estadisticas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat-card {
  background: #f7f9fc;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-numero {
  font-size: 30px;
  font-weight: bold;
  color: #0b2f63;
}

.stat-texto {
  font-size: 13px;
  font-weight: bold;
  margin-top: 5px;
}

.stat-card small {
  color: #8a96a8;
  margin-top: 6px;
}

.estadisticas-separador {
  height: 1px;
  background: #e5eaf0;
  margin: 24px 0;
}

.texto-ayuda-stat {
  color: #6e7a8c;
  font-size: 13px;
  margin-bottom: 15px;
}

.detalle-estadistico {
  margin-top: 20px;
  padding: 20px;
  background: #f7f9fc;
  border-radius: 16px;
  border: 1px solid #dfe5ed;
}

.detalle-stat-cabecera {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-pendientes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-pendientes div {
  background: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e7ebf0;
}

.stat-pendientes strong {
  font-size: 13px;
}

.stat-pendientes span {
  margin-top: 6px;
  color: #7b8798;
  font-size: 12px;
}

.nota-estadistica {
  margin-top: 18px;
  font-size: 12px;
  color: #697386;
  line-height: 1.5;
}

.mensaje-sin-numeros {
  color: #6e7a8c;
  font-size: 13px;
  padding: 10px 0;
}

@media (max-width: 700px) {

  .titulo-acordeon {
    align-items: flex-start;
  }

  .titulo-acordeon h2 {
    font-size: 19px;
  }

  .resumen-estadisticas {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-pendientes {
    grid-template-columns: 1fr;
  }

}