/*
 * TallerMap · fondo de portada 9:16
 * Imagen elegida por el propietario el 08/10/2026.
 * Solo se carga en index.html. No modifica páginas de talleres ni municipios.
 */
body.tm-fondo-azul {
  background-color: #061321;
  color: #ecf4ff;
}

/* Capa permanente: el contenido se desplaza delante, sin usar background-attachment
   fixed (menos fiable en navegadores móviles). */
body.tm-fondo-azul::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #061321;
  background-image:
    linear-gradient(180deg, rgba(2, 9, 22, .26) 0%, rgba(2, 9, 22, .10) 46%, rgba(2, 9, 22, .36) 100%),
    url("/images/fondos/movil/fondo-02-pista-azul.webp");
  background-size: cover;
  background-position: center 53%;
  background-repeat: no-repeat;
}
body.tm-fondo-azul > main {
  position: relative;
  z-index: 1;
  background: transparent;
}
body.tm-fondo-azul > header.cabecera {
  /* Mantener el encabezado sticky y el menú móvil plenamente funcional. */
  background: rgba(255, 255, 255, .94);
}
body.tm-fondo-azul > footer.pie {
  position: relative;
  z-index: 1;
  background: rgba(4, 13, 27, .88);
}

/* Destapar la fotografía en todas las secciones de la portada. */
body.tm-fondo-azul .hero,
body.tm-fondo-azul .seccion,
body.tm-fondo-azul .seccion-gris {
  background: transparent;
}
body.tm-fondo-azul .hero::before {
  display: none;
}

/* Tipografía clara sobre el azul oscuro, pero sin alterar la semántica. */
body.tm-fondo-azul .hero h1,
body.tm-fondo-azul .titulo-seccion h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(1, 9, 24, .54);
}
body.tm-fondo-azul .hero h1 span {
  color: #78ccff;
}
body.tm-fondo-azul .hero-descripcion,
body.tm-fondo-azul .titulo-seccion p {
  color: #edf5ff;
  text-shadow: 0 1px 8px rgba(1, 8, 20, .5);
}
body.tm-fondo-azul .titulo-seccion > span {
  color: #ffc47c !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
body.tm-fondo-azul .hero .etiqueta {
  color: #d7efff;
  background: rgba(5, 27, 54, .72);
  border-color: rgba(155, 213, 250, .5);
}
body.tm-fondo-azul .busquedas-populares strong {
  color: #fff;
}
body.tm-fondo-azul .busquedas-populares a {
  color: #b6e6ff;
  border-bottom-color: rgba(182, 230, 255, .65);
}
body.tm-fondo-azul .busquedas-populares a:hover {
  color: #fff;
}

/* Mantener tarjetas, campos y enlaces sobre superficies fáciles de leer.
   Las transparencias dejan ver discretamente la imagen. */
body.tm-fondo-azul .buscador,
body.tm-fondo-azul .servicio-card,
body.tm-fondo-azul .selector-provincia {
  background: rgba(255, 255, 255, .94);
  color: #162033;
  border-color: rgba(219, 233, 247, .92);
  box-shadow: 0 12px 35px rgba(0, 8, 24, .23);
}
/* Ficha del buscador: una transparencia suave para mostrar el fondo 9:16. */
body.tm-fondo-azul .buscador {
  background: rgba(255, 255, 255, .84);
}

body.tm-fondo-azul .servicio-card:hover,
body.tm-fondo-azul .selector-provincia:hover {
  background: rgba(255, 255, 255, .98);
}

/* En pantallas muy anchas se encuadra el centro luminoso sin deformar el 9:16. */
@media (min-width: 1000px) {
  body.tm-fondo-azul::before {
    background-position: center 49%;
  }
}
@media (max-width: 750px) {
  body.tm-fondo-azul::before {
    background-position: center 53%;
  }
}

/* Cabecera compacta del directorio unificado en móvil. */
@media(max-width:1050px){
body.tm-fondo-azul:has(#form-buscar)>header.cabecera{position:relative!important;top:auto!important}
body.tm-fondo-azul:has(#form-buscar) .cabecera-contenido{padding-top:10px;padding-bottom:10px;gap:10px!important}
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu{width:100%;gap:8px 16px!important}
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu a{padding:8px 0!important;font-size:14px!important}
}

/* Opciones del menú del directorio en una columna en móvil. */
@media(max-width:750px){
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu{flex-direction:column!important;align-items:stretch!important;gap:0!important}
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu a{display:block!important;width:100%;padding:10px 12px!important;border-bottom:1px solid #dfe6ef}
}

/* Desplegable móvil compacto alineado con el botón del menú. */
@media(max-width:1050px){
body.tm-fondo-azul .cabecera .menu-movil-panel{
left:auto!important;right:12px!important;width:min(280px,calc(100vw - 24px))!important;
box-sizing:border-box!important;padding:10px 12px 14px!important;border:1px solid #dfe6ef!important;
border-radius:12px!important;max-height:calc(100dvh - 84px);overflow-y:auto;
}
body.tm-fondo-azul .cabecera .menu-movil-panel a{padding:11px 12px!important;font-size:15px!important}
}

/* El directorio usa un menú plegable, no una lista permanente. */
@media(max-width:1050px){
body.tm-fondo-azul:has(#form-buscar)>header.cabecera{position:relative!important}
body.tm-fondo-azul:has(#form-buscar) .cabecera-contenido{position:relative;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;min-height:64px}
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu{display:none!important}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-control{display:block!important;position:absolute;width:1px;height:1px;opacity:0}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-label{display:flex!important;align-items:center;justify-content:center;margin-left:auto;width:44px;height:44px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;color:#071a33;cursor:pointer}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-label .solo-lectores{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-icono::before{content:"☰";font-size:26px}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-control:checked+.menu-movil-label .menu-movil-icono::before{content:"×";font-size:32px}
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu-movil-panel{display:none!important;position:absolute!important;top:100%!important;z-index:1000;background:#fff;color:#071a33;box-shadow:0 12px 28px #071a3333}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-control:checked~.menu-movil-panel{display:flex!important;flex-direction:column;gap:2px}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-panel a{color:#071a33;text-decoration:none}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-panel .menu-movil-registro{background:#1457d9;color:#fff;border-radius:8px;text-align:center}
}
@media(min-width:1051px){
body.tm-fondo-azul:has(#form-buscar) .cabecera .menu{display:flex!important;flex-direction:row!important;align-items:center;width:auto}
body.tm-fondo-azul:has(#form-buscar) .menu-movil-label,body.tm-fondo-azul:has(#form-buscar) .menu-movil-panel,body.tm-fondo-azul:has(#form-buscar) .menu-movil-control{display:none!important}
}

/* Navegación de escritorio visible y legible sobre cabecera blanca. */
@media(min-width:1051px){
body.tm-fondo-azul .cabecera .menu{display:flex!important;visibility:visible!important;opacity:1!important;flex-direction:row!important;align-items:center;gap:18px!important}
body.tm-fondo-azul .cabecera .menu a{display:block!important;color:#071a33!important;opacity:1!important;visibility:visible!important;text-shadow:none!important;white-space:nowrap}
body.tm-fondo-azul .cabecera .menu a:hover{color:#1457d9!important}
body.tm-fondo-azul .cabecera .cabecera-contenido{display:flex;align-items:center;justify-content:space-between}
}
