/*
 * Zona «pie», variante «columnas-plegable» (Oscuro, en columnas, plegable en el móvil).
 * Como «columnas», y en el móvil cada grupo de enlaces se pliega bajo su título (zona.js), con objetivos de 44 px.
 *
 * Solo pinta con las variables del tema (--t-*): por eso encaja en cualquier tema. Se
 * carga si el tema la elige en su manifest.json o el panel la pide (Apariencia →
 * Diseño por zonas). Ver gw2_tema_zona() en gw2/gw2_core.php.
 */
.z-pie-columnas-plegable footer { background: var(--t-pie-fondo); color: var(--t-pie-tinta); }
.z-pie-columnas-plegable footer .pie-marca { display: none; }

.z-pie-columnas-plegable footer .pie, .z-pie-columnas-plegable footer .pie3 { background: transparent; }
.z-pie-columnas-plegable footer .pie3 .ajuste { max-width: var(--t-ancho); margin: 0 auto; }
.z-pie-columnas-plegable footer .pie3 .information { display: grid !important; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 48px; align-items: start; width: auto; }
.z-pie-columnas-plegable footer .pie { margin-top: 0; }
.z-pie-columnas-plegable footer .pie .pie3 { padding: 0; }
.z-pie-columnas-plegable footer .pie .pie3 .information { text-align: left !important; align-items: stretch !important; flex-direction: row; }
.z-pie-columnas-plegable footer .pie .pie3 .information .contentpie3 { width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; text-align: left !important; align-items: flex-start !important; }
.z-pie-columnas-plegable footer .pie .pie3 .information .contentpie3 * { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
.z-pie-columnas-plegable footer .contentpie3 label { border: 0 !important; padding: 0 !important; display: block; margin: 0 0 14px; font: 600 11px/1.3 var(--font-main); letter-spacing: .16em; text-transform: uppercase; opacity: .62; color: inherit; }
.z-pie-columnas-plegable footer .contentpie3 h2 { margin: 0 0 8px; font: 500 22px/1.2 var(--font-titulos); color: inherit; }
.z-pie-columnas-plegable footer .contentpie3 p { margin: 0 0 2px; font-size: 14px; line-height: 1.6; opacity: .85; color: inherit; }
.z-pie-columnas-plegable footer .contentpie3 a { display: block; width: fit-content; padding: 4px 0; font-size: 14px; text-decoration: none; color: inherit; opacity: .85; }
.z-pie-columnas-plegable footer .contentpie3 a:hover { opacity: 1; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.z-pie-columnas-plegable footer .logo_3 img, .z-pie-columnas-plegable footer #logopie { max-height: 56px; width: auto; max-width: 220px; }
.z-pie-columnas-plegable footer .pie-cierre { border-top: 1px solid var(--t-pie-linea); }
.z-pie-columnas-plegable footer .pie-cierre .ajuste { max-width: var(--t-ancho); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--t-gutter); font-size: 13px; }
.z-pie-columnas-plegable footer .pie-cierre .pie-copy { opacity: .62; }
@media (max-width: 900px) {
    .z-pie-columnas-plegable footer .pie3 .information { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 48px 0 36px; }
    .z-pie-columnas-plegable footer .contentpie3.logo_3 { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .z-pie-columnas-plegable footer .pie3 .information { grid-template-columns: 1fr; }
}

/* Al pasar el ratón, el enlace del pie no se desplaza ni crece (mod/pie/pie.css le pone translateX y padding-left): EST01,
   Diamatex 19-11-2026. */
.z-pie-columnas-plegable footer .pie .pie3 .information .contentpie3 a:hover { transform: none; padding-left: 0; }

/* Con cinco bloques (el logotipo, el contacto y tres grupos), cinco columnas: con cuatro, el último caía solo a otra fila. */
@media (min-width: 901px) {
    .z-pie-columnas-plegable footer .pie3 .information:has(> .contentpie3:nth-child(5)):not(:has(> .contentpie3:nth-child(6))) { grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
}

/* Plegable en el móvil (29-11-2026; contrato de diseño OBL17 y ACC01). zona.js pone, en cada grupo de enlaces, un botón
   con su título y mete los enlaces en .pie-grupo-cuerpo. En el ordenador el botón no se ve y sigue el título de siempre;
   en el móvil, el título es el botón y los enlaces se ven al abrirlo. Los datos de contacto no se pliegan. */
.z-pie-columnas-plegable footer .pie-grupo-boton { display: none; }
/* Los enlaces del grupo, uno debajo de otro como cuando eran hijos directos del bloque (el bloque es una columna flexible):
   dentro de su envoltorio se juntaban en la misma línea. */
.z-pie-columnas-plegable footer .pie-grupo-cuerpo { display: flex; flex-direction: column; align-items: flex-start; }
/* Con el margen del tema, como la línea de abajo: el logotipo empezaba a 20 px y el © a 40. */
.z-pie-columnas-plegable footer .pie3 .ajuste { padding: 0 var(--t-gutter); box-sizing: border-box; }
@media (max-width: 768px) {
    /* A todo el ancho, con el margen del tema: el pie de siempre centraba la rejilla y la dejaba a 87 px del borde. */
    .z-pie-columnas-plegable footer .pie3 .ajuste { display: block; padding: 0 var(--t-gutter); }
    .z-pie-columnas-plegable footer .pie3 .information { grid-template-columns: 1fr; gap: 0; padding: 32px 0 16px; width: 100%; }
    .z-pie-columnas-plegable footer .contentpie3.logo_3 { margin-bottom: 20px !important; }
    .z-pie-columnas-plegable footer .contentpie3:not(.pie-grupo) { margin-bottom: 20px !important; }
    .z-pie-columnas-plegable footer .contentpie3.pie-grupo { border-top: 1px solid var(--t-pie-linea); }
    .z-pie-columnas-plegable footer .contentpie3.pie-grupo:last-child { border-bottom: 1px solid var(--t-pie-linea); }
    .z-pie-columnas-plegable footer .contentpie3.pie-grupo > label { display: none; }
    .z-pie-columnas-plegable footer .pie-grupo-boton { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: 600 12px/1.3 var(--font-main); letter-spacing: .14em; text-transform: uppercase; text-align: left; }
    .z-pie-columnas-plegable footer .pie-grupo-boton::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; opacity: .7; }
    .z-pie-columnas-plegable footer .pie-grupo-boton[aria-expanded="true"]::after { transform: rotate(-135deg); }
    .z-pie-columnas-plegable footer .pie-grupo-boton:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
    .z-pie-columnas-plegable footer .pie-grupo-boton[aria-expanded="false"] + .pie-grupo-cuerpo { display: none; }
    .z-pie-columnas-plegable footer .pie-grupo-cuerpo { padding: 0 0 12px; }
    .z-pie-columnas-plegable footer .contentpie3 a { display: flex; align-items: center; min-height: 44px; padding: 0; }
    .z-pie-columnas-plegable footer .pie-redes a.pie-red { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; justify-content: center; }
    .z-pie-columnas-plegable footer .pie-cierre .ajuste { flex-direction: column; text-align: center; }
    .z-pie-columnas-plegable footer .pie-cierre a { display: inline-block; padding: 12px 0; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .z-pie-columnas-plegable footer .pie-grupo-boton::after { transition: none; }
}
