/* 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: yellow;
  color: black;
}

.confirmado {
  background-color: black;
  color: white;
}
/* 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 {
  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;
}

.btn-whatapp {
  display: inline-block;
  background: #5ed762;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-whatapp:hover {
  background: #3cc96d;
}
.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%); }
}

