/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #1a1a1a;
}

/* Contenedor principal */
.contenedor {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px 40px;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

/* Título */
.titulo-rifa {
  text-align: center;
  font-size: 28px;
  margin: 30px 0 20px;
  color: #2c3e50;
}

/* Bloques superiores */
.bloques-superiores {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.bloque-detalle,
.bloque-verificar {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  min-width: 280px;
}

.bloque-detalle img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Botones selección rápida */
.botones-tickets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.botones-tickets button {
  background-color: #f3f4f6;
  color: #1a1a1a;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.botones-tickets button:hover {
  background-color: #d1d5db;
}

/* Carrito */
.carrito-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.carrito-box button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carrito-box button:hover {
  background-color: #1d4ed8;
}

.carrito-box input {
  width: 80px; /* Reducido el ancho para que no sea exagerado */
  max-width: 100%;
  text-align: center;
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #1a1a1a;
}

/* Textos y párrafos */
p {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}

/* Formulario */
form {
  background: #fff;
  max-width: 600px;
  margin: 30px auto 50px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  color: #1a1a1a;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 14px;
  margin: 10px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  color: #1a1a1a;
}

input::placeholder {
  color: #666;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}

button[type="submit"] {
  background-color: #2563eb;
  color: white;
  padding: 12px 20px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #1d4ed8;
}

hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.detalles-pago {
  margin-top: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 15px 20px;
  border-radius: 8px;
  color: #1a1a1a;
}

.detalles-pago h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2563eb;
}

.detalles-pago p {
  margin: 4px 0;
  font-size: 15px;
}

/* Responsive - móvil */
@media screen and (max-width: 700px) {
  .bloques-superiores {
    flex-direction: column;
    gap: 20px;
  }

  .bloque-detalle,
  .bloque-verificar {
    min-width: 100%;
  }

  .botones-tickets {
    justify-content: space-around;
  }

  .carrito-box {
    gap: 10px;
  }

  .carrito-box input {
    width: 60px;
  }

  form {
    max-width: 100%;
    padding: 20px 15px;
  }
}

nav + .contenedor button[type="button"] {
  background-color: #2563eb;
  color: white;
  padding: 12px 20px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
  margin-top: 10px;
}

nav + .contenedor button[type="button"]:hover {
  background-color: #1d4ed8;
}
