/* ======== ESTILOS GENERALES ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #FFFAE3;
  color: #333;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
}

/* ====== 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 40px 5px 40px;
  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: 50px;
  height: 28px;
  min-width: 50px;
}
/* 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 */
  height: 500px;
  padding: 28px 10px 75px 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: 20000 !important;  /* Aseguramos que esté por encima de otros elementos */
  color: #e5ebf0;
  overflow: auto;
}
.resultado-tickets .participante{
  border: 1px solid #FFFAE3;
  border-radius: 5px;
  margin-top: 5px;
  padding: 10px;
}

/* 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: 27px;
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  font-size: 25px;
  font-weight: bold;
  z-index: 1000;

}
/* ======== MAIN ======== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 250px;
  overflow:visible;
  width: 100%;
  background-color: #FFFAE3;
}

.form-data {
  position: relative;
  background: #FCFCFC;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(6, 143, 255, 0.1);
  width: 100%;
  max-width: 750px;
}
.div_tipoSorteo{
  width: 100%;
  display: flex;
  justify-content: center;
}
.tipo_sorteo{
  border-radius: 15px;
  width: auto;
  height: 55px;
  background-color: #000;
  color: #ffffff;
  padding: 10px;
}
.contenedorSorteo_estelar{
  color: #ffffff;
  border-radius: 15px;
  padding: 10px;
  background-color: #aa5d04;
  border: 1px solid #e09915;
}
.contenedorSorteo_superChihuan{
  color: #ffffff;
  border-radius: 15px;
  padding: 10px;
  background-color: #850b60;
  border: 1px solid #921a88;
}
.diessoles{
  font-weight: bold;
  color: #cace00;
  font-size: 25px;
}
.dossoles{
  font-weight: bold;
  color: #cace00;
  font-size: 25px;
}
.form-slogan {
  text-align: center;
  color:  #000000;
  margin-bottom: 5px;
  margin-top: 5px;
}
.tipo-sorteo-text, .valor-sorteo-text {
  display: block;  /* Hace que cada p ocupe toda la línea */
  text-align: center;
}

.tipo-sorteo-text span, .valor-sorteo-text span {
  font-weight: bold;  /* Puedes añadir estilos al texto si lo deseas */
}
.valor-sorteo-text span{
  font-size: 25px;
  color: #cace00;
}


/* ======== BOTONES DE ELECCIÓN ======== */
.small-parent {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.btn-choice-active,
.btn-choice-inactive {
  flex: 1;
  padding: 0.6rem;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-choice-active {
  background-color: #000000d0;
  color: white;
}

.btn-choice-inactive {
  background-color: #e0e0e0;
  color: #333;
  margin-left: 0.5rem;
}

.btn-choice-inactive:hover {
  background-color: #d3d3d3;
}

/* ======== INPUTS ======== */
.inputs-form,
.selector-deparment {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border 0.2s ease;
  color: #000000;
  font-size: 20px;
}
input::placeholder{
  font-size: 14px;          /* Tamaño igual que el placeholder */
  font-family: "Poppins", sans-serif; /* Igual que los inputs */
  color: rgb(123, 124, 124);  /* Color del placeholder */
}


.inputs-form:focus,
.selector-deparment:focus {
  border-color:  #000000;
  outline: none;
}

.letras-input {
  font-weight: bold;
  margin-bottom: 0.3rem;
  
}
.selector-cantidad-tickets {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
}

.selector-cantidad-tickets:focus {
  border-color: #f7567c;
  box-shadow: 0 0 6px #f7567c55;
}

.contenedorFile label{
  font-weight: bold;
  margin-bottom: 0.3rem;
  
}

/* Imagen - zona para seleccionar archivo */
.DivInputfile {
  padding: 0.7rem;
  border: 2px solid #c40c96;
  width: 100%;
  height: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
  position: relative;
  color: rgb(0, 0, 0);
  display: flex;            /* ✅ Activa el modelo flexbox */
  align-items: center;      /* ✅ Centra verticalmente */
  justify-content: start;  /* ✅ Centra horizontalmente */
}
.selector-deparment,
.DivInputfile {
  font-size: 14px;          /* Tamaño igual que el placeholder */
  font-family: "Poppins", sans-serif; /* Igual que los inputs */
  color: rgb(123, 124, 124);  /* Color del placeholder */
}



.DivInputfile:hover {
  background-color: #690c69;
  color: white;
}

.DivInputfile input[type="file"] {
  display: none;
}

/* Estilos generales para el contenedor de imágenes */
#image-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Contenedor que envuelve la imagen y el botón eliminar */
.contenedorfilePreview {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border-radius: 5px;
}
.divFilePreview{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
/* Estilo para la imagen, que debe ser pequeña */
.divFilePreview img.filePreview {
    max-width: 35%; /* Limita el ancho de la imagen */
    object-fit: cover; /* Asegura que la imagen se recorte proporcionalmente */
    margin: 0 auto; /* Centra la imagen */
}
.divNombreArchivoImgPreview {
  width: 100%;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
.nombreArchivoImgPreview{
  color: white;
  margin: 0;
  font-size: 13px;

}
.divBotonEliminarPreview{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3px;

}
.botonEliminarPreview {
    background-color: #f44336; /* Color rojo para el botón eliminar */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: block; /* Hace que el botón se muestre como un bloque */
    transition: background-color 0.3s ease;
    height: 100%;
    width: 50%;
}

/* Efecto hover para el botón eliminar */
.botonEliminarPreview:hover {
    background-color: #d32f2f;
}

/* Estilo para los contenedores de las imágenes cuando están vacíos */
#image-preview-container .contenedorfilePreview.empty {
    opacity: 0.5; /* Para indicar que no hay imágenes */
}




/* ======== CHECKBOX ======== */
.age-container {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.text-age {
  margin-left: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.circle {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 2px solid #004aad;
  border-radius: 50%;
  vertical-align: middle;
}

/* ======== BOTÓN PRINCIPAL ======== */
.btn-subir-comprobante {
  background-color:  #F7567C;
  color: white;
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-subir-comprobante:hover {
  background-color:  #af2d4b;
}

/* ======== ADVERTENCIA ======== */
.advertencia {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* Fondo que ocupa toda la pantalla */
.msj-validacion {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro con opacidad */
  display: none;  /* Inicialmente oculto */
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  z-index: 9999;    /* Asegura que esté por encima de otros elementos */
  text-align: center;
  font-size: 16px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Estilo del mensaje (div dentro del div msj-validacion) */
.div-msj {
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;  /* Tamaño máximo para el mensaje */
  width: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);  /* Sombra suave */
  margin: 0 auto;  /* Centra el div en la pantalla */
}
.div-msj  p {
  font-size: 30px;
}
/* Estilos del botón */
.msj-validacion button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

/* Hover effect para el botón */
.msj-validacion button:hover {
  background-color: #a04545;
}
.contenedor-cod{
  margin-top: 10px;
  background-color: #FFFAE3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contenedor-cod .item-datos{
  width: 100%;
  max-width: 750px;
}
.contenedor-cod .item-datos .ruc{
  display: flex;
  justify-content: center;
  background-color: #701694;
  color: #ffffff;
  border: none;
  font-size: 40px;
}
.contenedor-cod .item-datos .yape{
  display: flex;
  justify-content: center;
  background-color: #701694;
  color: #ffffff;
  border: none;
  font-size: 40px;
}
.contenedor-cod .item-datos .costo{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  align-items: center;
  background-color: #701694;
  color: #ffffff;
  border: none;
  gap: 20px;
  padding: 20px 15px 0 15px;
}

.contenedor-cod .item-datos .costo .paso1{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1px solid #FFFAE3 !important;
  border-radius: 15px !important;
  height: 100% !important;
  font-size: 25px;
}
.contenedor-cod .item-datos .costo .paso2{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1px solid #FFFAE3 !important;
  border-radius: 15px !important;
  height: 100% !important;
  font-size: 25px;
}
.contenedor-cod .item-datos .costo .paso3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1px solid #FFFAE3 !important;
  border-radius: 15px !important;
  height: 100% !important;
  font-size: 25px;
}

.contenedor-cod .item-datos .qr-yape img{
  width: 100%;
  height: 100%;
}
  svg {
    width: 100px;
    height: 100px;
  }

  /* Cuerpo del celular */
  .contenedor-cod .item-datos path:nth-of-type(1) {
    fill: #4f9e97; /* Color verde marino similar a Aquaman */
    stroke: #000; /* Bordes negros */
    stroke-width: 2;
  }

  /* Pantalla */
  rect {
    fill: #ffffff; /* Pantalla en blanco */
    stroke: #000; /* Borde negro para la pantalla */
    stroke-width: 2;
  }

  /* Línea superior (altavoz) */
  path:nth-of-type(2) {
    fill: none;
    stroke: #000;
    stroke-width: 2;
  }

  /* Botón de inicio */
  circle {
    fill: #f0a500; /* Color dorado similar a Aquaman */
    stroke: #000; /* Borde negro */
    stroke-width: 2;
  }

.logo {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}
  .logo img {
  animation: subir-bajar 2s ease-in-out infinite;
  width: 120px;
  height: 120px;
}
@keyframes subir-bajar {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ======== FOOTER ======== */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #000000f6;
  margin-top: auto;
  padding: 10px 30px 10px 33px;
}
.redesSociales{
  color: #ffffff;
}
/* Links del icono */
.social-link {
  display: inline-flex;
  width: 32px;   /* tamaño del icono */
  height: 32px;
  align-items: center;
  justify-content: center;
}

/* Icono blanco */
.social-icon {
  width: 100%;
  height: 100%;
  fill: white;   /* ← Esto hace que el icono sea blanco */
  transition: transform 0.2s ease;
}

/* Efecto al pasar el mouse (opcional) */
.social-link:hover .social-icon {
  transform: scale(1.12);
}
.terminos {
  display: flex;
  justify-content: flex-end;
  color: white;
  text-decoration: none; /* opcional para quitar el subrayado */
}

.terminos:hover {
  text-decoration: underline; /* opcional */
}
@media (max-width: 430px) {
  footer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  background: #000000f6;
  margin-top: auto;
  padding: 5px 10px 33px 5px !important;
}
.redesSociales{
  color: #ffffff;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.div-terminos{
  display: flex;
  justify-content: center;
}
main{
  margin-top: 150px;
}
  /* Aquí dentro escribes tus estilos para celular */
  
}

/* Media queries para pantallas pequeñas (≤ 430px) */
/* Fondo del modal */
.modal-sorteo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.726); /* fondo oscuro */
    display: none; /* oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Contenido del modal */
.modal-contenido {
    background: #fff;
    width: 90%;
    max-width: 350px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    animation: aparecer 0.3s ease;
}

/* Título */
.modal-contenido h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

/* Contenedor de opciones */
.opciones-sorteo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cada opción */
.opcion {
    padding: 12px;
    border-radius: 10px;
    background: #000000; /* tu color rosado fuerte */
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

/* Efecto cuando pasa el mouse */
.opcion:hover {
    transform: scale(1.03);
    background: #ff88a2;
}

/* Animación */
@keyframes aparecer {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#loader-envio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-box {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
}

