/* mejoras.css — se carga DESPUÉS de estilos.css y no lo reemplaza.
   Cambie --acento por el color de su marca. */
/*:root { --acento: #0a5fb4; --borde: #d9d9d9; --fondo-alt: #f5f7fa; } */

/* Ayuda a que el ancho incluya padding y borde igual en todos los navegadores */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Accesibilidad: foco visible con teclado (Chrome, Firefox, Safari) */
a:focus, input:focus, label:focus { outline: 2px solid var(--acento); outline-offset: 2px; }
a:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }
a:focus-visible, input:focus-visible, label:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* Texto solo para lectores de pantalla */
.solo-lectores {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Enlace "Saltar al contenido" */
.saltar {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	background: #fff; color: #000; padding: 8px 14px; border: 2px solid var(--acento);
}
.saltar:focus { top: 8px; }

/* Buscador de resultados */
.buscador { max-width: 520px; margin: 0 auto 20px; padding: 0 10px; }
.buscador label { display: block; margin-bottom: 6px; font-weight: 600; }
.buscador input[type="search"] {
	width: 100%; padding: 10px 12px; font-size: 1rem;
	border: 1px solid var(--borde); border-radius: 6px;
	-webkit-appearance: none; appearance: none;
}
#conteo { margin: 6px 0 0; font-size: .9rem; color: #555; }
#sin-resultados { text-align: center; padding: 20px 10px; }
[hidden] { display: none !important; }

/* Tabla de resultados */
.tabla-envoltorio { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-resultados { width: 100%; border-collapse: collapse; text-align: left; }
.tabla-resultados th,
.tabla-resultados td { padding: 10px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla-resultados thead th { border-bottom: 2px solid var(--acento); }
.tabla-resultados tbody tr:nth-child(even) { background: var(--fondo-alt); }
.tabla-resultados tbody tr:hover { background: #eaf1fa; }
.tabla-resultados td:first-child { white-space: nowrap; }
.tabla-resultados .col-detalle { text-align: left; width: 24%; }
.tabla-resultados td a { text-decoration: underline; }

@media (max-width: 600px) {
	.tabla-resultados th, .tabla-resultados td { padding: 8px 6px; font-size: .95rem; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Formulario de contacto ---- */
/* Campo trampa para bots: fuera de pantalla (no uses display:none, algunos bots lo detectan) */
.trampa { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.errores {
	max-width: 700px; margin: 0 auto 20px; padding: 12px 16px;
	border: 1px solid #c0392b; border-left-width: 5px; background: #fdecea; color: #7b1f16;
}
.errores ul { margin: 0; padding-left: 20px; }

/* ---- Últimos eventos (index.html) ---- */
#ultimos-eventos { padding: 30px 10px; border: medium 1px #000000;}
#ultimos-eventos h3 { text-align: center; margin: 0 0 18px; }
.lista-eventos { list-style: none; margin: 0 auto; padding: 0; max-width: 800px; }
.lista-eventos li {
	display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline;
	-webkit-flex-wrap: wrap; flex-wrap: wrap;
	gap: 6px 16px; padding: 14px 4px; border-bottom: 1px solid var(--borde);
}
.lista-eventos li:first-child { border-top: 2px solid var(--acento); }
.lista-eventos time { min-width: 6.5em; font-weight: 600; white-space: nowrap; }
.lista-eventos .evento-nombre { -webkit-flex: 1 1 260px; flex: 1 1 260px; }
.lista-eventos a { text-decoration: underline; white-space: nowrap; }
.ver-todos { text-align: center; margin: 18px 0 0; }
.ver-todos a { text-decoration: underline; font-weight: 600; }
