/*
 * Pie común (partials/footer), 09-11-2026. Antes estos estilos estaban en home-hero.css y solo los cargaba la
 * portada: el resto de la web veía el pie antiguo. Ahora los carga el propio pie en todas las páginas.
 * Selectores 'html body footer …' para ganar al <style> inline del pie y a styles.css.
 */
@keyframes pfPulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, .05); } }
html body footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 72px 0 32px !important;
    background:
        radial-gradient(800px 320px at 50% 0%, rgba(59, 130, 246, .22), transparent 70%),
        radial-gradient(520px 320px at 100% 100%, rgba(16, 185, 129, .1), transparent 70%),
        linear-gradient(180deg, #102a6b 0%, #0b1f56 100%) !important;
    border-top: 0 !important;
}
html body footer::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(147, 197, 253, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 15%, transparent 75%);
}
html body footer::after {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, #93c5fd, #6ee7b7, transparent);
}
html body footer > .container { display: flex; flex-direction: column; }

/* Marca arriba, como una franja de presentación */
html body footer .pf-brandbar {
    order: -1;
    margin: 0 0 44px; padding: 0 0 32px;
    border-top: 0; border-bottom: 1px solid rgba(147, 197, 253, .14);
}
html body footer .pf-brandbar .brand-name { font-size: 1.15rem; }
html body footer .pf-brandbar .brand-tag { color: #93a6cc; }
html body footer .pf-brandbar .foot-desc { color: #a3b3d1; font-size: .88rem; border-left-color: rgba(147, 197, 253, .18); }
html body footer .pf-status {
    gap: 9px; padding: 8px 14px; border-radius: 999px;
    color: #e6edfa; font-size: .85rem; font-weight: 600;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(147, 197, 253, .25);
    transition: background .15s, border-color .15s;
}
html body footer .pf-status:hover { background: rgba(255, 255, 255, .1); border-color: rgba(147, 197, 253, .45); color: #fff; }
html body footer .pf-dot { animation: pfPulse 2.4s ease-in-out infinite; }

/* Columnas principales */
html body footer .pf-main { margin-bottom: 36px; row-gap: 32px; }
html body footer .pf-main .foot-title,
html body footer .pf-seo-grid h5 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 14px;
    font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11.5px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: #6ee7b7; opacity: 1;
}
html body footer .pf-main .foot-links a {
    position: relative; font-size: .9rem; padding: 6px 0; color: #c7d4ee;
    transition: color .15s;
}
html body footer .pf-main .foot-links a:hover { color: #fff; transform: none; }
html body footer .pf-main .foot-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
    background: linear-gradient(90deg, #93c5fd, #6ee7b7); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
html body footer .pf-main .foot-links a:hover::after { transform: scaleX(1); }

/* Informes por zona y sector: franja secundaria en un panel de cristal */
html body footer .pf-seo {
    padding: 26px 28px 18px; border-top: 0;
    border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(147, 197, 253, .12);
}
html body footer .pf-seo-grid h5 { color: #93a6cc; }
html body footer .pf-seo .foot-links a { font-size: .84rem; color: #a3b3d1; padding: 4px 0; }
html body footer .pf-seo .foot-links a:hover { color: #fff; transform: none; }

/* Línea final */
html body footer .pf-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(147, 197, 253, .12); }
html body footer .pf-legal { color: #8798ba; }
html body footer .pf-legal a { color: #b4c2dd; }
html body footer .pf-legal a:hover { color: #fff; }
html body footer .pf-badge { color: #d6e2fa; background: rgba(16, 185, 129, .08); border-color: rgba(110, 231, 183, .25); }
html body footer .pf-badge svg { color: #6ee7b7; }
html body footer .pf-trust img { opacity: .75; filter: grayscale(1) brightness(1.6); }

@media (max-width: 640px) {
    html body footer { padding: 52px 0 28px !important; }
    html body footer .pf-brandbar { margin-bottom: 32px; padding-bottom: 24px; }
    html body footer .pf-seo { padding: 20px 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { html body footer .pf-dot { animation: none; } }

/* ---- Pie: productos destacados con icono cuadrado (08-11-2026) ---- */
html body footer .pf-prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 34px; }
html body footer .pf-prod-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 16px; text-decoration: none; color: #e2e8f0; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.1); transition: translate .2s, border-color .2s, background .2s, box-shadow .2s; }
html body footer .pf-prod-card::after { display: none !important; }
html body footer .pf-prod-card:hover { translate: 0 -3px; border-color: rgba(125,211,252,.4); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); box-shadow: 0 16px 34px -20px rgba(0,0,0,.7); }
html body footer .pf-prod-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -10px rgba(0,0,0,.6); }
html body footer .pf-prod--riesgo .pf-prod-ic { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
html body footer .pf-prod--gemelos .pf-prod-ic { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
html body footer .pf-prod--vertice .pf-prod-ic { background: linear-gradient(135deg, #fb923c, #ea580c); }
html body footer .pf-prod--vendor .pf-prod-ic { background: linear-gradient(135deg, #34d399, #047857); }
html body footer .pf-prod-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body footer .pf-prod-txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .97rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
html body footer .pf-prod-txt b i { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(110,231,183,.16); color: #6ee7b7; border: 1px solid rgba(110,231,183,.3); }
html body footer .pf-prod-txt b em { font-style: normal; color: #93c5fd; font-weight: 700; }
html body footer .pf-prod-txt small { font-size: .82rem; line-height: 1.45; color: #a9b8d6; }
@media (max-width: 1100px) { html body footer .pf-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html body footer .pf-prod { grid-template-columns: 1fr; gap: 10px; } html body footer .pf-prod-card { padding: 14px; } }

/* 1) Pie en desplegables en móvil (el script del pie mete un botón dentro de cada título) */
footer .pf-acc { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
footer .pf-acc svg { flex-shrink: 0; transition: transform .2s; opacity: .8; }
footer .pf-acc:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  html body footer .pf-main, html body footer .pf-seo-grid { row-gap: 0 !important; }
  html body footer .pf-col { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  html body footer .pf-col > .foot-title, html body footer .pf-col > h5 { margin: 0 !important; }
  html body footer .pf-col .pf-acc { padding: 16px 2px; }
  html body footer .pf-col.is-closed > ul { display: none !important; }
  html body footer .pf-col:not(.is-closed) > ul { padding-bottom: 14px; }
  html body footer .pf-col:not(.is-closed) .pf-acc svg { transform: rotate(180deg); }
  html body footer .pf-seo { padding-top: 8px !important; }
}

/* Foco visible y titulares sin palabras sueltas */
footer :is(a, button, summary):focus-visible { outline: 2px solid #6ee7b7 !important; outline-offset: 3px; border-radius: 8px; }
footer :is(h4, h5) { text-wrap: balance; }
