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

/* Estilo general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #83a4d4, #b6fbff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contador-visitas {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 15px;
	}

.header {
    background-color: #ffffffcc;
    padding: 10px; /* espacios de la cabecera */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 10px;
}

.titulo {
    font-size: 2rem;
    color: #333;
}

/* Idioma */
.selector-idioma {
    text-align: center;
    margin-top: 5px;
}

.selector-idioma a {
    display: inline-block;
    margin: 0 4px; /* espacio entre banderas */
    text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 20px;
    padding: 4px 4px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.selector-idioma .bandera {
    vertical-align: middle;
    width: 36px; /* banderas mas grandes */
    height: auto;
    margin-right: 4px;
}

/* ===== fin cabecera.php ===== */


/* ===== Estructura principal de todos los archivos ===== */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 40px 20px; */
	padding: 100px;
	}

/* ===== exclusivo index ===== */	
.venida {
    background: #fff;
    padding: 50px 60px 50px 60px;
    border-radius: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
	margin-bottom: 35px;
		
}

.venida h2 {
    margin-bottom: 30px; /* ajusta el valor a tu gusto */
}

.admin-secret {
    position: fixed;
    top: 50%;
    right: 5px;
    width: 30px;
    height: 30px;
    opacity: 0;
    cursor: pointer;
    z-index: 9999;
	transform: translateY(-50%);
}
	
.admin-secret:hover {
    cursor: pointer;
}
/* ===== Fin exclusivo index ===== */

.bienvenida {
    background: #fff;
    padding: 30px 30px;
    border-radius: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
	
}

.bienvenida h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #555;
}

/* ===== exclusivo registro_tickets ===== */

.ticket-block {
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 12px;
	margin-top: 12px;
	background: #fff;
}
.ticket-header {
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:8px;
	font-weight:bold;
}

/* separa campos dentro de cada ticket */
.ticket-block input,
.ticket-block label,
.ticket-block .lista-empresas,
.ticket-block .foto-bloque {
	margin-top: 10px;
}

/* pero el primer elemento del ticket no necesita margen */
.ticket-block .ticket-header + input {
	margin-top: 0;
}

/* Espacio entre precio y bloque de fecha */
.ticket-block .precio-ticket {
	margin-bottom: 12px;
}

/* Espacio del label de fecha respecto a lo de arriba */
.ticket-block label {
	margin-top: 8px;
	display: block;
}

.lista-empresas {
	border: 1px solid #ccc;
	max-height: 180px;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	margin-top: 6px;
}

.lista-resultados {
    border: 1px solid #ccc;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
}

.item-empresa {
	padding: 8px;
	cursor: pointer;
}

.item-empresa:hover {
	background: #f0f0f0;
}

.procesando {
    display: none;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.foto-bloque {
    margin-bottom:20px;
}

.fila-fecha {
    display: flex;
    gap: 8px;
    align-items: center;
}

.label-centrado {
    font-size: 0.9rem;
    text-align: center;
}

.refs-list {
	list-style: none;        /* quita los puntos */
	padding: 0;              /* quita sangría izquierda */
	margin: 12px 0 0 0;
	text-align: center;      /* centra el contenido */
}

.refs-list li{
	margin: 6px 0;
	font-weight: bold;
	letter-spacing: 1px;     /* opcional: mejora legibilidad */
}

.fecha-label strong {
  display:block;
  margin-bottom: 8px; /* separa label del campo */
}

.fecha-row{
  display:flex;
  gap:8px;
  align-items:center;   /* clave */
}

.fecha-ticket{
  flex: 1;
  height: 44px;  /* iguala altura con botón */
  box-sizing: border-box;
  line-height: normal;  /* no uses 44px aquí */
}

/* Botón Hoy */
.boton-reg{
  background-color: #4a90e2;
  color: white;
  margin-top: 0 !important;
  padding: 0 24px;          /* importante: padding vertical fuera */
  height: 44px;             /* igual altura que el input */
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.3s;
  display:inline-flex;       /* para centrar contenido */
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  cursor: pointer;
}

/* cambia el color cuando pasas el mouse por encima del boton */
.boton-reg:hover {
	background-color: #357ABD;
}

.fecha-row .btn-hoy{
  transform: translateY(5px); /* prueba 1px, si quieres más: 2px */
}

/* lopd */
.enlace-lopd {
color: #007BFF;
font-weight: bold;
text-decoration: underline;
cursor: pointer;
}

.enlace-lopd:hover {
color: #0056b3;
}

.file-custom{
	display:block;
	margin-top:10px;
	margin-bottom:6px;
	position:relative;
}

/* El “input visual” */
.file-btn{
	display:block;
	width:100%;
	background:#fff;
	border:1px solid #ccc;   
	border-radius: 8px;
	padding:10px 12px;
	font-size:0.95rem;
	color:#000;
	cursor:pointer;
	box-sizing:border-box;
}

/* Texto “ningún archivo” */
.file-name{
	margin-top:6px;
	font-size:0.85rem;
	color:#555;
}

/* Ocultar input real SIN romper móviles */
.file-input{
	position:absolute;
	left:-9999px;
	width:1px;
	height:1px;
	opacity:0;
}

.ticket-max-label1{
  display:flex;
  align-items:center;
  gap:6px;
  position:relative;
  text-align:center;
}
 
.ticket-max-label{
  position: relative;
  display: inline-block;
  justify-content: flex-start;
}
	
	
/* ===== fin exclusivo registro_tickets ===== */


/* ===== Mensajes ===== */

.mensaje-resultado {
    background: #e0ffe0;
	background-color: #e6ffe6;
	margin-top: 20px;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
	border: 1px solid #28a745;
    margin-bottom: 30px;
    font-weight: bold;
	font-size: 1rem;
	text-align: center;
	margin-top: 15px;
}

.mensaje-resultado-verde {
    background: #e0ffe0;
	background-color: #e6ffe6;
	margin-top: 20px;
    color: green;
    padding: 15px;
    border-radius: 8px;
	border: 1px solid #28a745;
    margin-bottom: 30px;
    font-weight: bold;
	font-size: 1rem;
	text-align: center;
	margin-top: 15px;
}

.mensaje-resultado-rojo {
    background: #e0ffe0;
	background-color: #e6ffe6;
	margin-top: 20px;
    color: red;
    padding: 15px;
    border-radius: 8px;
	border: 1px solid #28a745;
    margin-bottom: 30px;
    font-weight: bold;
	font-size: 1rem;
	text-align: center;
	margin-top: 15px;
}
.mensaje-resultado-otro {
    background:#ffe0e0;
	background-color: #e6ffe6;
	margin-top: 20px;
    color:#b30000;
    padding: 15px;
    border-radius: 8px;
	border: 1px solid #28a745;
    margin-bottom: 30px;
    font-weight: bold;
	font-size: 1rem;
	text-align: center;
	margin-top: 15px;
}

.mensaje-resultado.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje-resultado.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-resultado.pendiente {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.mensaje-resultado.ganador {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.mensaje-resultado.perdedor,
.mensaje-resultado.mal {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.mensaje-resultado.nocelebrado {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #fd7e14;
}

.mensaje-resultado.fraude {
    background-color: #e2e3e5;
    color: #383d41;
    border: 2px solid #6c757d;
}

.mensaje-resultado.ok {
	background:#e0ffe0; 
	color:#2e7d32; 
	border:1px solid #28a745; 
}


/* ===== Botones ===== */

.boton {
    background-color: #4a90e2;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s;
	margin-top: 20px;
	display: inline-block;
}


/* cambia el color cuando pasas el mouse por encima del boton */
.boton:hover {
    background-color: #357ABD;
}


/* ===== formularios ===== */

.formulario {
    width: 100%;
    max-width: 400px; /* Limita el ancho máximo */
    margin: 0 auto; /* Centra el formulario */
    display: flex;
    flex-direction: column;
    gap: 15px;
	text-align: center;
	margin-top:10px;
}

.formulario input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.formulario input:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Botón del formulario */
.formulario .boton {
    background-color: #4a90e2;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.formulario .boton-submit {
    display: block;
    width: 100%;
    margin-bottom: 10px;
	margin-top:5px;
}

.formulario .boton:hover {
    background-color: #357ABD;
}

/* h-captcha */
.h-captcha {
	padding:20px;
}

/* comprobar ganadores referencia */
.lista-ganadores {
	margin-top:30px;
	text-align:center;
}

.resultado {
	background: #f4f6f8;
	padding: 15px;
	margin-bottom: 15px;
	border-radius: 8px;
	border-left: 5px solid #28a745;
}
		
.resultado strong {
	font-size: 1.1em;
}

.resultado-sorteo {
	margin-top: 20px;
	padding: 15px;
	border-radius: 8px;
	font-weight: bold;
	background-color: #fff3cd;
	background: #f1f1f1;
	color: #856404;
	border: 2px solid #fd7e14;
	text-align: center;
}

.contenedor-resultado-sorteo {
	margin-bottom:20px;
	font-size:22px;
	color:#555;
}
.contenedor-resultado-sorteo img {
	position: relative;
	top: 2px;
	height: 30px;
}	

/* Visitas_totales */

.estadisticas {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.estadistica-bloque {
	background: #ffffff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.estadistica-bloque h3 {
	margin-bottom: 15px;
	text-align: center;
	font-size: 18px;
	color: #333;
}

.total-visitas {
	text-align: center;
	font-size: 36px;
	font-weight: bold;
	color: #007bff;
}

/* TABLAS */
.estadistica-bloque table {
	width: 100%;
	border-collapse: collapse;
}

.estadistica-bloque th,
.estadistica-bloque td {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
}

.estadistica-bloque th {
	background: #f5f5f5;
	font-weight: bold;
}

/* GRÁFICAS */
.estadistica-bloque canvas {
	width: 100% !important;
	height: auto !important;
}


/* Tickets totales */

.tickets {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.tickets-bloque {
	background: #ffffff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tickets-bloque h3 {
	text-align: center;
	margin-bottom: 15px;
	font-size: 18px;
	color: #333;
}

/* TABLAS */
.tickets-bloque table {
	width: 100%;
	border-collapse: collapse;
}

.tickets-bloque th,
.tickets-bloque td {
	padding: 10px;
	text-align: center;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
}

.tickets-bloque th {
	background: #f5f5f5;
	font-weight: bold;
}

.total-tickets {
	text-align: center;
	font-size: 36px;
	font-weight: bold;
	color: #007bff;
}

/* Sorteo */ 

.sorteo {
    max-width: 600px;
    margin: 0 auto;
}

.sorteo form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-miniatura {
    max-width: 300px;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: zoom-in;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.ticket-miniatura:hover {
    transform: scale(1.03);
}

/* MODAL */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-imagen img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.ticket-imagen {
    width: 300px;          /* tamaño fijo */
    height: 160px;         /* proporción horizontal */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    margin: 10px auto;
}

.ticket-imagen img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;   /* 👈 muestra la imagen ENTERA */
}

/* Ranquin tickets */

.ranking-container {
	max-width: 900px;
	margin: 0 auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #f9f9f9;
}

th, td {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	text-align: center;
}

th {
	background: #ececec;
}

.posicion {
	font-weight: bold;
}

/* Patrocinadores */

.flyers_sorteo {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Listado y filtro tickets */ 

.listado-tickets {
	/*max-width: 1000px;*/
	/* margin: 0 auto; */
	margin-bottom:10px;
	font-size:16px;
	color:#555;"
}

.listado-tickets form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.ticket-listado {
	margin-top: 20px;
	padding: 15px;
	background: #f1f1f1;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ticket-listado table {
	width: 100%;
	border-collapse: collapse;
}

.ticket-listado th, .ticket-listado td {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	text-align: center;
}

.ticket-listado th {
	background: #f5f5f5;
}

.modal-imagen-list {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal-imagen-list img {
	max-width: 80%;
	max-height: 80%;
}

.modal-imagen-list span {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 30px;
	color: white;
	cursor: pointer;
}

.ticket-imagen-list {
	width: 50px;
	height: 50px;
	object-fit: cover;
	cursor: pointer;
}

.ticket-imagen-list:hover {
	opacity: 0.8;
}

/* Eliminar Tickets */ 

.eliminar {
    max-width: 600px;
    margin: 0 auto;
}

.eliminar form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resultado-eliminar {
    margin-top: 20px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

/* Bases legales */

.bases-legales {
	max-width: 900px;
	margin: 0 auto;
	background: #ffffff;
	padding: 25px;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	font-size: 15px;
	line-height: 1.6;
}

.bases-legales h1 {
	text-align: center;
	margin-bottom: 25px;
	font-size: 26px;
}

.bases-legales h2 {
	margin-top: 30px;
	font-size: 18px;
	color: #333;
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
}

.bases-legales p,
.bases-legales ul {
	margin-top: 10px;
}

.bases-legales ul {
	padding-left: 20px;
}

.bases-legales li {
	margin-bottom: 6px;
}

.foto-opciones {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.foto-opciones .boton-reg {
    flex: 1;
    text-align: center;
}    
            
      








/* Hasta aqui es correcto */










/* Botones */
.botones {
    /*display: flex;*/
	display: grid;
	gap: 20px;
    justify-content: center;
	grid-template-columns: repeat(5, 1fr); /* 5 botones por fila */
	
	/* display: grid;
    grid-template-columns: 1fr; /* móvil: 1 columna
    gap: 10px;
	*/
}



.boton-indice {
    background-color: #4a90e2;
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s;
}



/* Ajustes para el icono del ojo de contraseña */
.boton-icono {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.boton-icono img {
    width: 20px;
    height: 20px;
}


/* ===== formularios ===== */


.formulario textarea {
	display: inline-block;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}



.formulario select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Cambia de color el borde al ponerte en la casilla */


/* Ajuste general de los campos */
.formulario .campo input,
.formulario .campo select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
	margin-top: 10px;
}



/* Mostrar contraseña */
.formulario .campo-password {
    position: relative;
	margin-bottom: 20px;
    width: 100%;
}

.formulario .campo-password input {
    width: 100%;
    padding-right: 40px; /* espacio para el icono */
	padding-left: 10px; /* Agregar espacio izquierdo si se necesita */
    box-sizing: border-box; /* Aseguramos que padding no afecta el ancho total */
}

.campo {
    margin-bottom: 20px;
}

.campo input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.campo label {
    font-size: 16px;
    color: #333;
}

/* Información de contraseña segura */ 
.info-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 50%;
	background-color: #007bff;
	color: white;
	font-weight: bold;
	cursor: pointer;
	margin-left: 6px;
	font-size: 14px;
}

.tooltip-box {
	position: absolute;
	top: 100%;
	left: 0;
	width: 320px;
	background-color: #f1f1f1;
	color: #333;
	padding: 12px;
	border: 1px solid #007bff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 100;
	display: none;
}

.tooltip-box p {
	margin: 0 0 10px;
	font-size: 14px;
}

.tooltip-box .close-btn {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 14px;
	color: #888;
	cursor: pointer;
}

.password-label-container {
	position: relative;
	display: inline-block;
	justify-content: flex-start;
	margin-bottom: 20px;
}

/* ===== Mensajes ===== */
.mensaje-exitoso {
    text-align: center;
    padding: 50px 20px;
}

.mensaje-exitoso h2 {
    color: #28a745; /* Verde para éxito */
    font-size: 30px;
    margin-bottom: 20px;
}

.mensaje-exitoso p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}





/* Contador de visitas */
.contador-visitas {
	font-size: 12px;
	color: #777;
	text-align: center;
	margin-top: 15px;
}


/* Agrupar campos horizontalmente en pantallas grandes */
.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
	margin-top: 5px;
}

.miembros-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

/

.miembro-linea {
    display: flex;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    justify-content: space-between;
}

.cabecera-miembros {
    background: #ddd;
    font-weight: bold;
}

/* Columnas */
.col-dni { width: 10%; min-width: 50px; }
.col-nombre { width: 25%; min-width: 140px; }
.col-telefono { width: 13%; min-width: 80px; }
.col-correo { width: 25%; min-width: 120px; }
.col-fecha { width: 12%; min-width: 80px; }



.registro-info {
display: inline-block;
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 50%;
background-color: #007bff;
color: white;
font-weight: bold;
cursor: pointer;
margin-left: 6px;
font-size: 14px;
}

/* ===== banner patrocinadores ===== */
.banner-patrocinador {
    width: 100%;
    max-width: 400px;
    margin: 15px auto 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.banner-patrocinador img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Contenedor general */
.banners-patrocinadores {
    display: grid;
    /* grid-template-columns: repeat(5, 1fr); */
    gap: 10px;
    max-width: 640px;
    margin: 10px auto;
    padding: 10px 0;
}

/* Cada banner */
.banner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.banner-item:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Imagen */
.banner-item img {
    width: 100%;
    /*  */height: 50px;
	height: auto;
    object-fit: contain;
}

/* para los flyers */
.selector_flyer {
	text-align: center;
    margin-top: 5px;
}

.selector-flyer a {
    display: inline-block;
	text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 20px;
    padding: 4px 4px;
    border-radius: 6px;
    border: 1px solid transparent;
	vertical-align: middle;
    width: 16px; /* banderas mas grandes */
    height: auto;
    margin-right: 4px;
}

/* ===== fin banner patrocinadores ===== */

@media (max-width: 768px) {
	
	.logo {
        width: 350px;  /* Tamaño del logo en Tablets */
        height: auto;
    }
	
	.bienvenida {
        padding: 30px 20px;
    }

    .botones {
		display: flex;
        flex-direction: column;
		
    }
	
    .campo-password {
        display: flex;
        align-items: center; /* Alineamos verticalmente */
    }

    .campo-password input {
       width: 100%; /* El input sigue usando todo el ancho disponible */
       padding-right: 40px; /* espacio para el icono */
    }

    .boton-icono {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        margin-top: 0; /* Quitar margen */
    }
	
	/* banner patrocinadores */
	.banners-patrocinadores {
        grid-template-columns: repeat(2, 1fr);
    }
	
	/* Visitas Totales */
	.estadistica-bloque {
			padding: 15px;
	}

	.estadistica-bloque h3 {
		font-size: 16px;
	}

	.total-visitas {
		font-size: 28px;
	}

	.estadistica-bloque th,
	.estadistica-bloque td {
		font-size: 13px;
		padding: 8px;
	}
	
	.tickets-bloque {
		padding: 15px;
	}
	
	.total-tickets {
		font-size: 28px;
	}
	
	.tickets-bloque th,
	.tickets-bloque td {
		font-size: 13px;
		padding: 8px;
	}
	
	/* Sorteo */
	
	.ticket-imagen {
        width: 300px;
        height: 200px;
    }
	
	/* Ranquin */
	
	table {
		font-size: 10px;
		white-space: nowrap;
	}

	th, td {
		padding: 5px;
	}
	
	/* patrocinadores */ 
	
	.flyers_sorteo {
        max-width: 700px;
    }
	
	/* lIstar tickets */
	
	.ticket-listado table {
		font-size: 6px; /* Reduce aún más el tamaño de la tabla */
		overflow-x: auto;
		white-space: nowrap;
	}

	.ticket-listado th, .ticket-listado td {
		padding: 2px; /* Menor padding */
	}
	
	.ticket-imagen-list {
		width: 20px; /* Aumenta el tamaño de la imagen */
		height: 20px;
	}
	
	/* Bases legales */
	.bases-legales {
		padding: 18px;
		font-size: 14px;
	}

	.bases-legales h1 {
		font-size: 22px;
	}

	.bases-legales h2 {
		font-size: 16px;
	}
	
	.foto-opciones {
        flex-direction: row;
    }
	
}

@media (max-width: 480px) {
    .logo {
        width: 260px; /* Aumentamos el tamaño del logo en móviles */
		height: auto;
    }

    .titulo {
        font-size: 1.5rem;
    }

	.main {
        padding: 40px 15px;
    }
	
	/* ===== exclusivo index ===== */	
	
	.venida {
        padding: 30px 20px;
    }

    .venida h2 {
        font-size: 20px;
		margin-bottom: 20px;
    }

    .venida a.boton-indice {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
        padding: 14px 80px;
        font-size: 16px;
    }
	
	/* ===== fin exclusivo index ===== */	
	
	.bienvenida {
        padding: 30px 15px;
	}
	
	.bienvenida h2 {
        font-size: 1.5rem;
	}
	
	.boton {
		padding: 12px 40px;
	}


	.tox.tox-tinymce,
	.formulario textarea {
	max-width: 85vw;
	}
	
	/* banner patrocinadores */
	.banners-patrocinadores {
        /* grid-template-columns: 1fr; */
		/*grid-template-columns: repeat(2, 1fr);*/
		grid-template-columns: 1fr;
    }

    .banner-item img {
        /*width: 150px;
        height: 45px;*/
		width: 300px;
		height: auto;
    }
	
	/* Listado tickets */
	
	.ticket-listado table {
		font-size: 6px; /* Reduce aún más el tamaño de la tabla */
	}

	.ticket-listado th, .ticket-listado td {
		padding: 2px; /* Menor padding */
	}
	
	.ticket-imagen-list {
		width: 20px; /* Aumenta el tamaño de la imagen */
		height: 20px;
	}
	
	/* Listado d etickets */
	.listado-tickets {
	/*max-width: 1000px;*/
	/* margin: 0 auto; */
		font-size:8px;
	}
	
}
