/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6; margin: 0; padding: 0; 
}

header {
  background-color: #333;
  padding: 1em 0;
}
nav { background: #333; padding: 1em; }
.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu li a:hover {
  text-decoration: underline;
}

/* Secciones generales */
main {
  padding: 2em;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 2em;
}

h2 {
  margin-bottom: 1em;
  color: #222;
}

/* Preguntas frecuentes */
#faq ul {
  padding-left: 1.5em;
}

#faq li {
  margin-bottom: 0.5em;
}

/* Formulario de contacto */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
}

form input,
form textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

form button {
  background-color: #333;
  color: white;
  padding: 0.8em;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

form button:hover {
  background-color: #555;
}

/* Grid de boletos */
.boletos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 5px;
  margin-top: 2em;
  text-align: center;
}

.boletos div {
  padding: 15px 0;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.disponible {
  background-color: white;
  color: black;
}

.apartado {
  background-color: #ff4d4d;
  color: white;
  border: 2px solid #b30000;
  cursor: not-allowed;
}
.confirmado {
  background-color: #000;
  color: white;
  border: 2px solid #333;
  cursor: not-allowed;
}
/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  margin-top: 3em;
}

/* Responsive */
@media (max-width: 600px) {
  .menu {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  form {
    width: 100%;
  }

  .boletos {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
}
.pregunta {
  margin-bottom: 1.5em;
  position: relative;
      height: 100px; /* o la altura deseada */
}

.pregunta h3 {
  color: #444;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.pregunta p {
  font-size: 1em;
  line-height: 1.5;
}
.acerca {
  background-color: #fffdf0;
  border-left: 5px solid #f4c542;
  padding: 2em;
  margin-top: 2em;
  border-radius: 10px;
}

.acerca h2 {
  color: #d59e00;
  margin-bottom: 0.5em;
}

.acerca .frase {
  font-size: 1.3em;
  font-weight: bold;
  color: #222;
  margin-top: 1em;
  text-align: center;
}

.contacto {
  background-color: #f0f8ff;
  border-left: 5px solid #007acc;
  padding: 2em;
  margin-top: 2em;
  border-radius: 10px;
}

.contacto h2 {
  color: #007acc;
  margin-bottom: 0.5em;
}

.contacto a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}

.contacto a:hover {
  text-decoration: underline;
}
.sorteos-destacados {
  background-color: #f0f0fa;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2em;
}

.botones-sorteos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
}

.btn-sorteo {
  background: linear-gradient(45deg, #007acc, #00c2cb);
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sorteo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.selectable {
  cursor: pointer;
  border: 2px solid #007acc;
}
.selectable.selected {
  background-color: #00c2cb;
  color: white;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  background: white;
  padding: 2em;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
}
.modal-content h3 {
  margin-bottom: 1em;
}
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.modal-content input[type=\"text\"] {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.modal-content button {
  background: #007acc;
  color: white;
  padding: 0.7em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #005f99;
}
.btn-telegram {
  display: inline-block;
  background: #68b3d6;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-telegram:hover {
  background: #3ca1c9;
}

.faq{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.p{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* .im {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #000;
}

.im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 35%;
  display: block;
} */

.carrusel {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.carrusel-inner {
  display: flex;
  width: 100%; /* 100% * 3 imágenes */
  height: 100%;
  animation: deslizar 15s infinite;
}

.carrusel-inner img {
  width: 100%;       /* <-- cada imagen ocupará el ancho de .carrusel */
  flex: 0 0 100%;     /* <-- Esto es lo más importante para que no se encojan o estiren mal */
  height: 100%;
  object-fit: cover;
  object-position:  100% 35%;
}

/* Animación para rotar entre las 3 imágenes */
@keyframes deslizar {
  0%, 20% { transform: translateX(0%); }
  25%, 45% { transform: translateX(-100%); }
  50%, 70% { transform: translateX(-200%); }
  75%, 100% { transform: translateX(0%); }
}

/*Botones*/
#btnApartar {
  background-color: #262c2c; 
  color: white;
  padding: 0.9em 2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
#btnGenerarSuerte {
  background-color: #262c2c; 
  color: white;
  padding: 0.9em 2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/*Buscar*/
    .buscador-boletos {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .buscador-boletos input[type="number"] {
      padding: 10px;
      width: 180px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 16px;
      transition: border-color 0.3s;
    }

    .buscador-boletos input[type="number"]:focus {
      border-color: #007bff;
      outline: none;
    }

    .buscador-boletos button {
      padding: 10px 20px;
      background-color: #262c2c;
      color: white;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .buscador-boletos button:hover {
      background-color: #3a3a3a;
    }
/*boton cerrar*/
.btn-cerrar {
      position: absolute;
      top: 10px;
      right: 1px;
      background: none;
      border: none;
      font-size: 1.5rem;
      font-weight: bold;
      color: #333;
      cursor: pointer;
      transition: color 0.3s ease;
    }

  .btn-cerrar:hover {
    color: #ff0000;
  }

/*Paginacion*/
#paginacion {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 1em;
      }

      #paginacion button {
        padding: 0.5em 1em;
        background-color: #007acc;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s, transform 0.2s;
      }

      #paginacion button:hover:not(:disabled) {
        background-color: #005fa3;
        transform: scale(1.05);
      }

      #paginacion button:disabled {
        background-color: #333;
        cursor: default;
        transform: none;
      }

      .sugerido {
        background-color: #ffeb3b;
        border: 2px solid orange;
      }
            

.ventana {                   /* tu estilo solicitado */
  background-color: rgb(49, 56, 56);
  color: white;
  width: 300px;
  padding: 10px 20px;
  margin: 0 auto;            /* centrado horizontal (el contenedor .modal ya centra vertical) */
  position: relative;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* Botón básico del modal */
#btnCerrarModal {
  padding: .6em 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Hover opcional */
#btnCerrarModal:hover {
  filter: brightness(0.95);
}

.sorteo-info {
  display: flex;
  align-items: flex-start; /* alinear arriba */
  justify-content: space-between;
  gap: 20px;
}

.sorteo-texto {
  flex: 2; /* el texto ocupa más espacio */
}

.sorteo-imagen {
  flex: 1; /* la imagen ocupa menos espacio */
  text-align: right; /* alineación a la derecha */
}

.sorteo-imagen img {
  max-width: 200px; /* tamaño controlado */
  height: auto;
  border-radius: 8px; /* opcional */
}

#cantidadSuerte {
    width: 100%;               /* Ocupa todo el ancho del contenedor */
    padding: 10px 15px;        /* Espaciado interno */
    margin: 10px 0 20px 0;     /* Separación arriba y abajo */
    border-radius: 8px;        /* Bordes redondeados */
    border: 2px solid #007BFF; /* Color del borde */
    background-color: #f6f7f8; /* Fondo claro */
    color: #003366;            /* Texto azul oscuro */
    font-size: 16px;           /* Tamaño de texto */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; /* Efecto suave al pasar el mouse */
}

/* Efecto al enfocar o pasar el mouse */
#cantidadSuerte:focus {
    outline: none;
    border-color: #FFD700;     /* Dorado al enfocar */
    box-shadow: 0 0 5px #FFD700;
    background-color: #fff;
}
