body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
}

.encabezado {
  background-color: #D10101;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  text-align: center;
}

.encabezado h1 {
  font-size: 22px;
  color: #000;
  margin: 0;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.btn.rojo {
  background-color: #D10101;
}

.btn.verde {
  background-color: #0eb354;
}

.contenido {
  text-align: center;
  padding: 30px 20px;
  width: 300px;
  margin: 0 auto;
}

.poster {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: -10px;
}

.botones-rifa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  background: white;
  padding-block: 20px;
}

.boton-ticket {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #d10101, #800000);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  width: 100;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boton-ticket:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.boton-ticket svg {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

.btn.naranja {
  background-color: #e67e22;
  margin: 10px;
}

.btn.gris {
  background-color: #7f8c8d;
  margin: 10px;
}

.cta {
  background-color: #8e44ad;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  color: #fff;
}

.cta .numero {
  font-size: 36px;
  font-weight: bold;
}

.cta .orden {
  font-size: 20px;
  font-weight: 600;
}

.cta .vivo {
  font-size: 16px;
  font-style: italic;
}

.navegacion-rifas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.disponibilidad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #830303; /* púrpura */
  color: white;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.fecha {
  text-align: center;
  margin-right: 20px;
  border-right: 2px solid orange;
  /*padding-right: 20px;*/
  width: 100%;
}

.fecha .dia {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.fecha .mes {
  font-size: 14px;
  letter-spacing: 1px;
}

.estado {
  text-align: center;
  /*margin-left: 20px;*/
  width: 100%;
}

.estado .porcentaje {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 5px;
}

.estado .disponible {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.modal-contenido {
  background: #202020;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.cerrar {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.formulario-cedula {
  margin-top: 1rem;
  text-align: left;
}

.formulario-cedula label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.grupo-cedula {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.grupo-cedula select {
  background-color: #202020;
    outline: none;
    font-size: 16px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #FFFFFF61;
    color: #FFFFFF61;
    width: 65px;
}

.grupo-cedula input {
  flex: 1;
  background-color: #202020;
    outline: none;
    font-size: 16px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #FFFFFF61;
    color: #FFFFFF61;
    width: 65px;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] { -moz-appearance:textfield; }

.btn-verde-verificador {
  background-color: #16db65;
  color: #000000DE;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  line-height: 20px;
  font-size: 14px;
  border: 1px solid #16db65;
  width: 100%;
}

.resultado-tickets {
  margin-top: 1rem;
  text-align: left;
  font-size: 14px;
}

.ticket-item {
  background: #5b5858;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  border-left: 4px solid #d10101;
}

.progress {
  background-color: #e9ecef;
  border-radius: 8px;
  height: 30px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  text-align: center;
  color: white;
  font-weight: bold;
  line-height: 30px;
  transition: width 0.6s ease;
}

.text-center{
  text-align: center;
}

.bloque-rifas {
  padding: 40px 20px;
  background: #f9f9f9;
}

.titulo-rifas {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.grid-rifas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.rifa-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 350px;
  margin: auto;
}

.rifa-imagen img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rifa-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.rifa-titulo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.rifa-fecha {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.rifa-botones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-verificar,
.btn-comprar {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.btn-verificar {
  background: #6c757d;
}

.btn-comprar {
  background: #28a745;
}
