/* ASECEM: retoques propios sobre la plantilla (02/12/2026). Se carga despues de css/style.css.
   Sobre todo el movil: aprovechar el ancho (margen lateral de 12-16 px, sin cajas con mucho relleno). */

/* Titulo de las fichas (noticia, evento, oferta, asociado): puede ser largo, no en mayusculas */
.page-title h1.titulo-ficha { font-size: 2.2rem; line-height: 1.2; text-transform: none; color: #fff; }

/* Los mapas y videos nunca mas anchos que su caja */
iframe { max-width: 100%; }
img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  .container, .container-fluid { padding-left: 14px; padding-right: 14px; }
  .row { margin-left: -8px; margin-right: -8px; }
  .row > [class*="col"] { padding-left: 8px; padding-right: 8px; }
  /* Cajas blancas del area privada y formularios: tenian 40-50 px de relleno por cada lado */
  [style*="padding:50px"], [style*="padding: 50px"], [style*="padding:40px"], [style*="padding: 40px"] { padding: 14px !important; }
  [style*="border-radius: 20px"] { border-radius: 12px !important; }
  .section { padding: 50px 0; }
  .page-title { padding: 70px 0; }
  .page-title .block h1, .page-title h1.text-lg { font-size: 2rem; }
  .page-title h1.titulo-ficha { font-size: 1.5rem; }
  .text-lg { font-size: 2.2rem; }
  h2, .h2 { font-size: 1.6rem; }
  .btn { white-space: normal; }
  .form-control { font-size: 16px; }
  /* Tablas que no caben: se desplazan dentro de su caja, no la pagina */
  table { display: block; max-width: 100%; overflow-x: auto; }
  .header-top .header-top-info a { margin-left: 8px; }
  /* Imagenes con un ancho fijo escrito en la pagina (350 px): nunca mas que la pantalla */
  section .img-fluid[style*="max-width"] { max-width: 100% !important; }
  /* Direcciones web largas dentro de los textos: se parten en vez de salirse */
  section p a, section li a, section td a, .single-blog-item a, .lead a { overflow-wrap: anywhere; word-break: break-word; }
}

/* Recuadro "sin foto" (03/12/2026): lo pinta SinFoto() de includes/web.asp en toda la web */
.sin-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(135deg, #ffffff 0%, #f5f8f9 55%, #fbe3ee 100%); border: 1px solid #ececec; box-shadow: inset 0 -4px 0 #dd146a; }
.sin-foto img { width: 58%; max-width: 260px; height: auto; opacity: .9; }
.sin-foto span { font: 600 12px/1 "Poppins", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #dd146a; }
.sin-foto.pequena { aspect-ratio: 5 / 4; gap: 8px; }
.sin-foto.pequena span { font-size: 10px; }
a:hover .sin-foto { box-shadow: inset 0 -6px 0 #dd146a; }
/* Resumen corto en las tarjetas: como mucho 4 lineas */
.resumen { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Ultimos eventos del inicio (03/12/2026): todas las imagenes del mismo tamano (los carteles se ven
   enteros, sin recortar) y el titulo mas contenido, como mucho 3 lineas */
.latest-blog.bg-6 .card > a { display: block; }
.latest-blog.bg-6 .card > a img.img-fluid { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.latest-blog.bg-6 .card .sin-foto { aspect-ratio: 4 / 5; }
.latest-blog.bg-6 .card h3 { font-size: 1.35rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Boton de acceso de la cabecera (03/12/2026) */
.acceso { display: flex; align-items: center; justify-content: center; gap: 8px; }
.acceso-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: 999px; background: linear-gradient(135deg, #e8287a 0%, #dd146a 45%, #b30d55 100%); color: #fff !important; font: 600 13px/1 "Poppins", sans-serif; letter-spacing: .03em; box-shadow: 0 6px 16px rgba(221, 20, 106, .28); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; white-space: nowrap; }
.acceso-btn .ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.acceso-btn:hover, .acceso-btn:focus { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(221, 20, 106, .38); filter: brightness(1.05); text-decoration: none; }
.acceso-btn:focus-visible, .acceso-salir:focus-visible { outline: 3px solid rgba(221, 20, 106, .35); outline-offset: 2px; }
.acceso-salir { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e3e6ea; color: #6b7280 !important; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: color .15s, border-color .15s, background .15s; }
.acceso-salir:hover { color: #dd146a !important; border-color: #dd146a; background: #fff5f9; text-decoration: none; }
@media (max-width: 991px) { .acceso { padding-bottom: 8px; } }
