/* ======== ESTILOS GENERALES ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f7f9fc;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ====== HEADER ====== */
header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #F7567C, #e0315a, #e7718d);
  height: 70px;
  padding: 0 33px 0 33px;
  position: fixed;     /* ✅ Fija el header */
  top: 0;              /* ✅ Lo coloca en la parte superior */
  left: 0;             /* ✅ Lo alinea al borde izquierdo */
  width: 100%;         /* ✅ Ocupa todo el ancho de la pantalla */
  z-index: 1000;       /* ✅ Se mantiene encima de otros elementos */
}

.contenedor-enlaces{
  height: 100%;
  width: 100%;
  padding: 0 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.div-enlaces{
  gap: 40px;
  display: flex;
  
}
.contenedor-buscador-tickets{
  width: 100%;
  height: 100%;
  padding: 0 0 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;

}
.div-buscador-tickets{
  display: flex;
}
.div-icon-tickets{
  display: flex;
  justify-content: center;
  align-items: center;
}
.div-input-tickets{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contenedor-buscador-tickets .div-buscador-tickets .div-input-tickets input{
  width: 100%;
  padding: 5px 30px 5px 30px;
  background-color: transparent;
  border-radius: 50px;
  border: 1px solid snow;
  box-sizing: border-box;
  height: 45px;
  color: #ffffff;
  font-size: 20px;
}
.contenedor-buscador-tickets .div-buscador-tickets .div-input-tickets input::placeholder{
  color: #ffffff;
  font-size: 17px;
}
.div-input-tickets .icon{
  position: absolute;
  left: 5px;
}
.div-input-tickets button{
  position: absolute;
  right: 10px;
  background-color: #000000;
  color: #e3e3e6;
  border: none;
  border-radius: 3px;
  height: 28px;
}
/* Inicialmente ocultamos el contenedor de resultados */
.resultado-tickets {
  display: none;  /* Ocultamos por defecto */
  position: absolute;
  top: 100%; /* Esto lo posiciona justo debajo del campo de entrada */
  left: 0;  /* Alineamos a la izquierda */
  width: 100%;  /* Que ocupe todo el ancho del contenedor */
  padding: 10px;
  background-color: #000000e0;  /* Fondo blanco para los resultados */
  border: 1px solid #ccc;  /* Un borde gris claro */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* Sombra suave */
  z-index: 1000;  /* Aseguramos que esté por encima de otros elementos */
  color: #e5ebf0;
}

/* Clase para mostrar el contenedor de resultados cuando se obtiene la respuesta */
.resultado-tickets.show {
  display: block;  /* Muestra el contenedor */
}

/* ====== CONTENEDOR DE CADA ÍCONO ====== */
.icon-container {
  position: relative;
  width: 40px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ====== ÍCONO SVG ====== */
.icon {
  width: 30px;
  height: 30px;
  fill: white;
  stroke: rgb(0, 0, 0); /* Color del borde */
  stroke-width: 1px; /* Grosor del borde */
  transition: 0.3s;
}

/* ====== TEXTO DEBAJO DEL ÍCONO ====== */
.icon-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: #fff;
  opacity: 0.85;
  pointer-events: none;
}

.informe{
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: #000000;
  height: 40px;
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  font-size: 25px;
  font-weight: bold;

}

/* Main Content */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 0 0 0;
  overflow-y: auto;
  width: 100%;
  background-color: #FFFAE3; /* Color de fondo para el footer */
}

/* Contenedor para búsqueda de participantes */
#contenedor-ganador-participantes {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

#contenedor-ganador-participantes h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
}

#contenedor-ganador-participantes input {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000000;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

#contenedor-ganador-participantes button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;

}



#filtros-participantes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Input de título */
.input-titulo-div {
    width: 90%;
    text-align: center;
}

.input-titulo {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #0dc4ca;
    font-size: 25px;
    text-align: center;
    outline: none;
    font-weight: bold;
}

/* Contenedor padre de todos los participantes */
.participante-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 90%;
    background: #f4f6f8;
    padding: 15px;
    border-radius: 12px;
    border: 2px dashed #0dc4ca;
    min-height: 180px;
}

/* Cada participante individual */
.div-participante {
    background: white;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    width: 250px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.div-participante:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Texto */
.pi-titulo {
    width: 100%;
    text-align: center;
    color: #007bff;
    margin: 0;
}
.pi-titulo h3{
    margin: 0;
}

.pi-campo {
    font-size: 14px;
    margin: 3px 0;
}

/* Botón eliminar */
.div-eliminar {
    margin-top: 7px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-eliminar {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #e74c3c;
    border: none;
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-eliminar:hover {
    background-color: #c0392b;
}

.icono-basura {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Botón global */
.boton-global-div {
    margin-top: 10px;
    text-align: center;
}


.titulo{
    width: 100%;
    text-align: center;
}
.div-ganadores-recuperados{
    padding: 7px;
    width: 100%;
    display: flex;
    gap: 10px;
}

/* Estilo adicional para cuando el contenedor se ve en pantallas pequeñas */
@media (max-width: 600px) {
    .logo-tnd {
        width: 60px; /* Reduce el tamaño del logo en pantallas pequeñas */
        height: 60px;
    }

    .nbre-tnd {
        font-size: 18px; /* Reduce el tamaño del texto en pantallas pequeñas */
    }
}
@media (max-width: 430px) {
  header {
  display: grid;
  grid-template-columns: 1fr 3fr;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #F7567C, #e0315a, #e7718d);
  height: 70px;
  padding: 0 5px 0 5px;
  position: fixed;     /* ✅ Fija el header */
  top: 0;              /* ✅ Lo coloca en la parte superior */
  left: 0;             /* ✅ Lo alinea al borde izquierdo */
  width: 100%;         /* ✅ Ocupa todo el ancho de la pantalla */
  z-index: 1000;       /* ✅ Se mantiene encima de otros elementos */
  gap: 3px;
}

.nbre-tnd {
    padding: 0 0 0 0;
    font-size: 20px; /* Tamaño del texto */
    font-weight: 600; /* Peso del texto */
    color: #eeeeee; /* Color del texto */
    font-family: 'Arial', sans-serif; /* Fuente de texto */
    margin: 0; /* Elimina el margen por defecto */
}
.contenedor-buscador-tickets .div-buscador-tickets .div-input-tickets input::placeholder{
  color: #ffffff;
  font-size: 13px;
}
main{
  padding: 70px 0 0 0;
}
#contenedor-premios {
  position: fixed; /* Para que cubra toda la pantalla */
  top: 70px;
  bottom: 40px;
  right: 0;
  left: 0;

}


  /* Estilo para el footer cuando está fijo en la parte inferior */
  #section-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFAE3; /* Color de fondo para el footer */
    height: 40px; /* Alto del footer */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Color del texto */
    font-size: 14px;
    border-top: 1px solid #a0a1a1;
    box-sizing: border-box;
  }
  .icon {
  width: 25px;
  height: 25px;
  fill: rgb(0, 0, 0);
  stroke: rgb(0, 0, 0); /* Color del borde */
  stroke-width: 1px; /* Grosor del borde */
  transition: 0.3s;
  box-sizing: border-box;
}
    .icon-container.active .icon {
      fill: #753c6c /* Amarillo */
    }
.icon-label {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #000000;
  opacity: 0.85;
  pointer-events: none;
}
.icon-container.desactivado .icon {
  fill: rgb(0, 0, 0); 
}
.informe{
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: #000000;
  font-size: 14px;
  height: 20px;
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  font-weight: bold;

}
footer{
    padding: 0 0 40px 0;
}
}
