/* Páginas «legado»: instantánea limpia del contenido de WordPress (src/contenido-legado/) y
   páginas que repinta la web con datos de la app (calendario, circulares, galerías).
   Traduce lo que en WordPress daban fcj-pages.css, fcj-divi-editable-bridge.css y
   fcj-public-information.css (tema divi-hijo) sobre el marcado de Divi, ya sin él. */

body.fcj2-legado #main-content.fcj-legado {
  background: linear-gradient(180deg, #f7fafc 0, #eef3f8 100%), repeating-linear-gradient(90deg, rgba(23,54,80,.035) 0 1px, transparent 1px 88px);
  padding: 0 0 72px;
}
/* Lo que los scripts ocultan con [hidden] (pestañas, filtros) se oculta aunque la clase dé display. */
body.fcj2-legado .fcj-legado [hidden] { display: none !important; }
/* Divi quitaba el subrayado de los enlaces; el contenido de transparencia (.fct) lo repone. */
body.fcj2-legado .fcj-legado a { text-decoration: none; }
/* Títulos del bloque en directo (puente.js) en azul, como con fcj-pages.css. */
body.fcj2-legado .fcj-rw h2, body.fcj2-legado .fcj-rw h3 { color: var(--fcj-blue); }

/* Tarjeta blanca que en Divi era la columna de la fila (acordeones, tablas, código). */
body.fcj2 .fcj-legado-tarjeta {
  position: relative; z-index: 3; width: min(1080px, 92%); margin: 0 auto 26px; padding: 32px;
  border: 1px solid rgba(23,54,80,.1); border-radius: 10px; background: #fff; box-shadow: var(--fcj-shadow);
  color: #334155; font-size: 16px; line-height: 1.65;
}
body.fcj2 .fcj-legado-tarjeta:first-child { margin-top: 8px; }
body.fcj2 .fcj-legado-tarjeta h2.fcj-legado-titulo {
  margin: 0 0 18px; padding: 0 0 14px; border-bottom: 3px solid rgba(215,25,32,.16);
  color: var(--fcj-blue); font-family: "Archivo", "Inter", sans-serif; font-size: clamp(28px, 3vw, 40px); font-weight: 900; line-height: 1.1; text-align: center;
}
body.fcj2 .fcj-legado-tarjeta h3 { margin: 22px 0 12px; color: var(--fcj-blue); font-size: 22px; font-weight: 900; }
body.fcj2 .fcj-legado-tarjeta ul { margin: 0 0 12px; padding-left: 1.3em; }
body.fcj2 .fcj-legado-tarjeta li { margin: 4px 0; }
body.fcj2 .fcj-legado-tarjeta a { color: var(--fcj-red); font-weight: 800; }
body.fcj2 .fcj-legado-toggle-contenido a[href$=".pdf"], body.fcj2 .fcj-legado-toggle-contenido a[href*=".pdf?"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 6px 8px 6px 0; padding: 9px 13px;
  border-radius: 6px; background: rgba(215,25,32,.08); color: var(--fcj-red); font-size: 14px; font-weight: 900; text-decoration: none;
}
body.fcj2 .fcj-legado-toggle-contenido a[href$=".pdf"]::before, body.fcj2 .fcj-legado-toggle-contenido a[href*=".pdf?"]::before {
  content: "PDF"; display: inline-grid; place-items: center; min-width: 32px; min-height: 22px; border-radius: 4px;
  background: var(--fcj-red); color: #fff; font-size: 10px; line-height: 1;
}
/* Acordeones de Divi convertidos en <details>. */
body.fcj2 details.fcj-legado-toggle {
  overflow: hidden; margin-bottom: 14px; border: 1px solid rgba(23,54,80,.12); border-radius: 8px; background: #fff;
  box-shadow: 0 10px 24px rgba(15,34,52,.08);
}
body.fcj2 details.fcj-legado-toggle > summary {
  position: relative; padding: 18px 52px 18px 20px; color: var(--fcj-red); font-size: 17px; font-weight: 900; line-height: 1.25;
  cursor: pointer; list-style: none;
}
body.fcj2 details.fcj-legado-toggle > summary::-webkit-details-marker { display: none; }
body.fcj2 details.fcj-legado-toggle > summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--fcj-red); color: #fff; font-size: 13px; line-height: 1;
}
body.fcj2 details.fcj-legado-toggle[open] > summary::after { content: "−"; }
body.fcj2 .fcj-legado-toggle-contenido { padding: 0 20px 22px; color: #334155; font-size: 16px; line-height: 1.65; }
@media (max-width: 980px) { body.fcj2 .fcj-legado-tarjeta { padding: 24px; } }
@media (max-width: 640px) { body.fcj2 .fcj-legado-tarjeta { width: calc(100% - 28px); padding: 18px; } }

/* La tarjeta de transparencia ya trae su propia maquetación (.fct). */
body.fcj2 .fcj-legado-tarjeta .fct h3 { text-align: left; }

/* ---------- Tecnificación y galerías (antes las pintaba fcj-divi-editable-bridge.js) ---------- */
.fcj-tech-source{display: none !important;}
body.fcj-tech-refreshed .fcj-tech-shell{position: relative;
    z-index: 4;
    width: min(1180px, 92%);
    margin: -36px auto 56px;
    display: grid;
    gap: 24px;}
.fcj-tech-hero-panel,.fcj-tech-panel{overflow: hidden;
    border: 1px solid rgba(23,54,80,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 64px rgba(15,34,52,.1);}
.fcj-tech-hero-panel{position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: stretch;
    padding: clamp(28px, 4vw, 44px);
    background:
        linear-gradient(115deg, rgba(6,27,50,.97), rgba(15,58,92,.94) 48%, rgba(116,9,20,.91)),
        url("/wp-content/uploads/2018/04/kanji-judo.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;}
.fcj-tech-hero-panel::after{content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;}
.fcj-tech-copy,.fcj-tech-metrics{position: relative;
    z-index: 2;}
.fcj-tech-copy > span,.fcj-tech-head span{display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #f0c24d;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;}
.fcj-tech-copy h2{max-width: 760px;
    margin: 14px 0 0;
    padding: 0;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    font-size: clamp(38px, 5.4vw, 68px) !important;
    line-height: .98;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 4px 22px rgba(0,0,0,.42);}
.fcj-tech-copy p{max-width: 700px;
    margin: 18px 0 0;
    padding: 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.58;
    font-weight: 650;}
.fcj-tech-actions{display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;}
.fcj-tech-actions a,.fcj-tech-callout a{display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--fcj-red);
    color: #fff !important;
    font-weight: 950;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: 0 16px 34px rgba(215,25,32,.28);}
.fcj-tech-actions a:nth-child(2){border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.94);
    color: var(--fcj-blue) !important;
    box-shadow: none;}
.fcj-tech-metrics{display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: stretch;}
.fcj-tech-metrics article{min-height: 118px;
    display: grid;
    align-content: end;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);}
.fcj-tech-metrics article:last-child{grid-column: 1 / -1;}
.fcj-tech-metrics span{color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;}
.fcj-tech-metrics strong{display: block;
    margin-top: 8px;
    color: #f0c24d;
    font-size: clamp(34px, 4vw, 48px);
    line-height: .9;
    font-weight: 950;}
.fcj-tech-panel{padding: clamp(22px, 3vw, 30px);}
.fcj-tech-head{display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid rgba(215,25,32,.12);}
.fcj-tech-head span{border-color: rgba(139,12,18,.14);
    background: rgba(215,25,32,.07);
    color: var(--fcj-red);}
.fcj-tech-head h2{margin: 10px 0 0;
    padding: 0;
    color: var(--fcj-blue) !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;}
.fcj-tech-head > strong{display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff7d8;
    color: #8a6100;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;}
.fcj-tech-feature{display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 18px;
    align-items: stretch;}
.fcj-tech-callout{padding: 25px;
    border-left: 6px solid var(--fcj-red);
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff, #fff);}
.fcj-tech-callout h3{margin: 0 0 8px;
    padding: 0;
    color: var(--fcj-blue) !important;
    font-size: 26px !important;
    line-height: 1.12;
    font-weight: 950;}
.fcj-tech-callout p{margin: 0 0 17px;
    padding: 0;
    color: #435269;
    font-size: 15px;
    line-height: 1.68;
    font-weight: 650;}
.fcj-tech-steps{display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;}
.fcj-tech-steps li{display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid rgba(23,54,80,.1);
    border-radius: 10px;
    background: #fff;}
.fcj-tech-steps b{display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fcj-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 950;}
.fcj-tech-steps span{color: #44546a;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;}
.fcj-tech-note{margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px dashed #bfccd9;
    border-radius: 8px;
    background: #f9fbfe;
    color: #4c5b70;
    font-size: 14px;
    line-height: 1.58;
    font-weight: 700;}
.fcj-tech-doc-grid{display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;}
.fcj-tech-doc{display: flex;
    min-height: 94px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(23,54,80,.11);
    border-radius: 10px;
    background: #fff;
    color: var(--fcj-ink, #172335) !important;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;}
.fcj-tech-doc:hover,.fcj-tech-doc:focus-visible{transform: translateY(-2px);
    border-color: rgba(215,25,32,.36);
    box-shadow: 0 16px 32px rgba(15,34,52,.1);}
.fcj-tech-doc em{display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--fcj-red);
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 950;}
.fcj-tech-doc strong{display: block;
    overflow-wrap: anywhere;
    color: var(--fcj-blue) !important;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 950;}
.fcj-tech-doc small{display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;}
.fcj-tech-doc-highlight{border-color: rgba(215,25,32,.32);
    background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);}
@media (max-width: 980px){body.fcj-tech-refreshed .fcj-tech-shell{margin-top: -28px;}
.fcj-tech-hero-panel,.fcj-tech-feature{grid-template-columns: 1fr;}
.fcj-tech-metrics,.fcj-tech-doc-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}@media (max-width: 640px){body.fcj-tech-refreshed .fcj-tech-shell{width: calc(100% - 28px);
        margin-top: -22px;
        gap: 18px;}
.fcj-tech-hero-panel,.fcj-tech-panel{border-radius: 10px;}
.fcj-tech-hero-panel,.fcj-tech-panel{padding: 22px 18px;}
.fcj-tech-copy h2{font-size: 34px !important;}
.fcj-tech-copy p{font-size: 15px;
        line-height: 1.48;}
.fcj-tech-actions,.fcj-tech-head{display: grid;
        align-items: start;}
.fcj-tech-actions a,.fcj-tech-callout a{width: 100%;}
.fcj-tech-metrics,.fcj-tech-doc-grid{grid-template-columns: 1fr;}
.fcj-tech-metrics article{min-height: 88px;}
}.fcj-gallery-source{display: none !important;}
body.fcj-gallery-refreshed .fcj-gallery-shell{position: relative;
    z-index: 4;
    display: grid;
    width: min(1180px, calc(100% - 56px));
    gap: 24px;
    margin: -32px auto 64px;}
.fcj-gallery-spotlight,.fcj-gallery-empty{position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 12%, rgba(240,194,77,.22), transparent 30%),
        linear-gradient(120deg, rgba(7,17,29,.96), rgba(23,54,80,.94) 48%, rgba(139,12,18,.93)),
        url("../img/fcj-landing-bg.jpg") center 42% / cover no-repeat;
    color: #fff;
    box-shadow: 0 26px 70px rgba(15,34,52,.2);}
.fcj-gallery-spotlight{display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: end;
    padding: clamp(28px, 4vw, 46px);}
.fcj-gallery-spotlight::after{content: "";
    position: absolute;
    right: -116px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(240,194,77,.24);
    border-radius: 50%;}
.fcj-gallery-spotlight-copy,.fcj-gallery-stats,.fcj-gallery-empty{position: relative;
    z-index: 2;}
.fcj-gallery-spotlight-copy > span,.fcj-gallery-section-head > span,.fcj-gallery-empty > span{display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 5px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;}
.fcj-gallery-spotlight h2,.fcj-gallery-empty h2{max-width: 820px;
    margin: 14px 0 0;
    padding: 0;
    color: #fff !important;
    font-size: clamp(31px, 4.2vw, 52px) !important;
    line-height: 1.02;
    font-weight: 950 !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);}
html body #page-container .fcj-gallery-spotlight h2,html body #page-container .fcj-gallery-empty h2,body.fcj-gallery-refreshed #page-container .fcj-gallery-spotlight h2,body.fcj-gallery-refreshed #page-container .fcj-gallery-empty h2{color: #fff !important;
    opacity: 1 !important;}
.fcj-gallery-spotlight p,.fcj-gallery-empty p{max-width: 760px;
    margin: 14px 0 0;
    padding: 0;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.58;}
.fcj-gallery-actions{display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;}
.fcj-gallery-actions a{display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 6px;
    background: #fff;
    color: var(--fcj-blue) !important;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.12;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);}
.fcj-gallery-actions a:first-child{border-color: transparent;
    background: var(--fcj-red);
    color: #fff !important;}
.fcj-gallery-stats{display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;}
.fcj-gallery-stats article{min-height: 116px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);}
.fcj-gallery-stats strong{color: #f0c24d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: .88;
    font-weight: 950;}
.fcj-gallery-stats span{color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.18;
    text-transform: uppercase;}
.fcj-gallery-latest,.fcj-gallery-archive{display: grid;
    gap: 16px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(23,54,80,.1);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,248,251,.96)),
        url("../img/fcj-landing-bg.jpg") center / cover no-repeat;
    background-blend-mode: screen;
    box-shadow: 0 20px 58px rgba(15,34,52,.1);}
.fcj-gallery-section-head{display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;}
.fcj-gallery-section-head > span{border-color: rgba(139,12,18,.16);
    background: rgba(215,25,32,.08);
    color: var(--fcj-red);}
.fcj-gallery-section-head h2{margin: 0;
    padding: 0;
    color: var(--fcj-blue) !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    line-height: 1.04;
    font-weight: 950 !important;}
.fcj-gallery-latest-grid{display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;}
.fcj-gallery-card{position: relative;
    overflow: hidden;
    min-height: 178px;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(23,54,80,.12);
    border-top: 4px solid var(--fcj-red);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    color: var(--fcj-blue) !important;
    box-shadow: 0 16px 40px rgba(15,34,52,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.fcj-gallery-card::before{content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(215,25,32,.96), rgba(23,54,80,.96));
    box-shadow: 0 12px 24px rgba(15,34,52,.14);}
.fcj-gallery-card::after{content: "";
    position: absolute;
    top: 26px;
    right: 25px;
    width: 18px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.95);
    border-top-width: 5px;
    border-radius: 3px;}
.fcj-gallery-card:hover,.fcj-gallery-card:focus-visible{transform: translateY(-3px);
    border-color: rgba(215,25,32,.32);
    box-shadow: 0 24px 52px rgba(15,34,52,.15);}
.fcj-gallery-card span,.fcj-gallery-card strong,.fcj-gallery-card em{position: relative;
    z-index: 2;}
.fcj-gallery-card span{width: fit-content;
    padding: 6px 8px;
    border-radius: 5px;
    background: rgba(23,54,80,.08);
    color: var(--fcj-blue);
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;}
.fcj-gallery-card strong{display: block;
    max-width: calc(100% - 44px);
    color: var(--fcj-blue) !important;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 950;}
.fcj-gallery-card em{color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;}
.fcj-gallery-card-training{border-top-color: #f0c24d;}
.fcj-gallery-card-federation{border-top-color: var(--fcj-blue);}
.fcj-gallery-card-grades{border-top-color: #334155;}
.fcj-gallery-years{display: grid;
    gap: 12px;}
.fcj-gallery-year{border: 1px solid rgba(23,54,80,.11);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(15,34,52,.06);}
.fcj-gallery-year summary{cursor: pointer;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    color: var(--fcj-blue);
    list-style: none;}
.fcj-gallery-year summary::-webkit-details-marker{display: none;}
.fcj-gallery-year summary span{font-size: 24px;
    line-height: 1;
    font-weight: 950;}
.fcj-gallery-year summary strong{position: relative;
    padding-right: 28px;
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;}
.fcj-gallery-year summary strong::after{content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--fcj-red);
    border-bottom: 2px solid var(--fcj-red);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;}
.fcj-gallery-year[open] summary strong::after{transform: translateY(-35%) rotate(225deg);}
.fcj-gallery-year-grid{display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 18px;}
.fcj-gallery-card-compact{min-height: 132px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15,34,52,.06);}
.fcj-gallery-card-compact strong{font-size: 15px;
    line-height: 1.2;}
.fcj-gallery-empty{padding: clamp(28px, 4vw, 46px);}
@media (max-width: 980px){.fcj-gallery-spotlight,.fcj-gallery-latest-grid,.fcj-gallery-year-grid{grid-template-columns: 1fr;}
}@media (max-width: 980px){.fcj-gallery-stats{grid-template-columns: repeat(3, minmax(0, 1fr));}
}@media (max-width: 640px){body.fcj-gallery-refreshed .fcj-gallery-shell{width: calc(100% - 28px);
        margin-top: -24px;}
}@media (max-width: 640px){.fcj-gallery-spotlight,.fcj-gallery-latest,.fcj-gallery-archive,.fcj-gallery-empty{padding: 22px 18px;
        border-radius: 10px;}
}@media (max-width: 640px){.fcj-gallery-actions{display: grid;
        grid-template-columns: 1fr;}
}@media (max-width: 640px){.fcj-gallery-stats{grid-template-columns: 1fr;}
}@media (max-width: 640px){.fcj-gallery-stats article{min-height: 88px;}
}@media (max-width: 640px){.fcj-gallery-section-head{display: grid;
        justify-content: start;
        align-items: start;}
}@media (max-width: 640px){.fcj-gallery-card{min-height: 146px;}
}@media (max-width: 640px){.fcj-gallery-card strong{max-width: calc(100% - 34px);
        font-size: 16px;}
}@media (max-width: 640px){.fcj-gallery-year summary{align-items: flex-start;
        flex-direction: column;
        gap: 8px;}
}

/* ---------- Circulares y calendario (fcj-public-information.css del tema divi-hijo) ---------- */
/* Public WordPress adapter: deliberately scoped; no changes to Divi or admin UI. */
.fcj-public-info, .fcj-public-info * { box-sizing: border-box; }
.fcj-public-info .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.fcj-public-info { --fcj-ink: #173650; --fcj-accent: #c91924; width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 64px; color: #243746; }
.fcj-public-heading { max-width: 780px; margin-bottom: 28px; }
.fcj-public-eyebrow { display: block; margin-bottom: 12px; color: #a51923; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fcj-public-info .fcj-public-heading h1 { margin: 0 0 14px; padding: 0; color: var(--fcj-ink); font-size: clamp(30px, 4vw, 46px); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.fcj-public-heading p { font-size: 17px; line-height: 1.65; padding: 0; margin: 0; color: #52616d; }
.fcj-public-search { padding: 20px 24px; background: #f4f5f4; border: 1px solid #e1e5e8; border-radius: 6px; }
.fcj-public-search label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.fcj-public-search > div { display: flex; gap: 10px; }
.fcj-public-info .fcj-public-search input[type=search] { width: 100%; min-width: 0; height: 46px; padding: 10px 14px; color: #243746; background: white; border: 1px solid #a6b1b9; border-radius: 4px; font: inherit; font-size: 16px; }
.fcj-public-search button { min-height: 46px; padding: 10px 26px; border: 1px solid #a3131d; border-radius: 4px; background: var(--fcj-accent); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.fcj-public-search button:hover { background: #a5131c; }
.fcj-public-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid #dbe1e6; margin: 22px 0 8px; }
.fcj-public-tabs a { display: flex; gap: 9px; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 3px solid transparent; color: #52616d; font-size: 15px; font-weight: 650; }
.fcj-public-tabs a[aria-current] { border-color: var(--fcj-accent); color: var(--fcj-ink); }
.fcj-public-tabs a span { font-size: 12px; background: #edf0f2; border-radius: 3px; padding: 1px 7px; color: #364b5d; }
.fcj-public-document { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid #dbe1e6; color: #173650; }
.fcj-public-document:hover .fcj-public-document-body > strong { text-decoration: underline; text-underline-offset: 3px; }
.fcj-public-number { display: grid; gap: 3px; align-content: center; min-height: 70px; border-left: 3px solid #c91924; padding-left: 12px; }
.fcj-public-number small { color: #65717a; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.fcj-public-number strong { color: #173650; font-size: 29px; font-weight: 700; line-height: 1.15; }
.fcj-public-document-body { display: grid; gap: 9px; min-width: 0; }
.fcj-public-document-body > strong { color: #173650; font-size: 16px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.fcj-public-document-body > small { color: #65717a; font-size: 13px; }
.fcj-public-document-action { color: #a51923; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fcj-public-club-note { margin-top: 26px; padding: 0; color: #596773; font-size: 14px; line-height: 1.6; }
.fcj-public-info p a { color: #a51923; text-decoration: underline; text-underline-offset: 3px; }
.fcj-public-empty, .fcj-public-results { padding: 20px 0; font-size: 15px; }
.fcj-public-info :focus-visible, .fcj-calendario :focus-visible { outline: 3px solid #173650; outline-offset: 4px; }
/* Reuse the live calendar widget and its links; lighter rows and month navigation. */
body .fcj-calendario .fcjyda-calendar-widget { padding: 28px; border: 1px solid #dbe1e6; border-radius: 6px; box-shadow: none; }
body .fcj-calendario .fcjyda-calendar-widget > header { display: block; padding-bottom: 20px; margin-bottom: 0; }
body .fcj-calendario .fcjyda-calendar-widget > header > span { display: block; margin-bottom: 10px; color: #a51923; font-size: 12px; letter-spacing: .1em; }
body .fcj-calendario .fcjyda-calendar-widget h2 { color: #173650; line-height: 1.15; font-size: clamp(27px, 3vw, 38px); }
body .fcj-calendario .fcjyda-calendar-month { margin-top: 30px; scroll-margin-top: 130px; }
body .fcj-calendario .fcjyda-calendar-month h3 { color: #173650; font-size: 20px; border-bottom: 2px solid #173650; padding-bottom: 12px; }
body .fcj-calendario .fcjyda-calendar-list { gap: 0; }
body .fcj-calendario .fcjyda-calendar-card { grid-template-columns: 125px minmax(0, 1fr); gap: 20px; background: white; box-shadow: none; border: 0; border-bottom: 1px solid #e2e6e9; border-radius: 0; padding: 20px 2px; }
body .fcj-calendario .fcjyda-calendar-body strong { font-size: 16px; line-height: 1.45; color: #173650; }
body .fcj-calendario .fcjyda-calendar-body p { line-height: 1.65; }
body .fcj-calendario .fcjyda-calendar-date { color: #a51923; padding-top: 3px; }
body .fcj-calendario .fcjyda-calendar-widget footer { gap: 12px 24px; padding-top: 20px; }
.fcj-public-month-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.fcj-public-month-nav a { display: inline-block; padding: 9px 14px; min-height: 42px; background: #f4f5f4; border: 1px solid #dbe1e6; border-radius: 4px; color: #173650; font-size: 14px; line-height: 22px; text-transform: capitalize; }
.fcj-public-month-nav a:hover { background: #e8ecef; }
@media (max-width: 640px) {
  .fcj-public-info { width: calc(100% - 32px); padding: 30px 0 40px; }
  .fcj-public-heading { margin-bottom: 22px; }
  .fcj-public-heading p { font-size: 15px; }
  .fcj-public-search { padding: 16px; }
  .fcj-public-search > div { flex-wrap: wrap; }
  .fcj-public-search button { width: 100%; }
  .fcj-public-tabs { gap: 20px; }
  .fcj-public-document { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; padding: 22px 0; }
  .fcj-public-number { grid-row: span 2; padding-left: 8px; min-height: 64px; }
  .fcj-public-number strong { font-size: 25px; }
  .fcj-public-number small { font-size: 9px; }
  .fcj-public-document-body > strong { font-size: 14px; }
  .fcj-public-document-action { grid-column: 2; }
  body .fcj-calendario .fcjyda-calendar-widget { padding: 18px 14px; }
  body .fcj-calendario .fcjyda-calendar-card { grid-template-columns: 1fr; gap: 7px; }
  body .fcj-calendario .fcjyda-calendar-month { scroll-margin-top: 90px; }
}

/* Widget del calendario (lo traía el embed.js de gestion como <style>; aquí, propio). */
.fcjyda-calendar-widget{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#172432;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:18px;box-shadow:0 16px 35px rgba(16,24,40,.08)}
.fcjyda-calendar-widget header{display:flex;justify-content:space-between;gap:12px;align-items:end;border-bottom:1px solid #eef2f7;padding-bottom:12px;margin-bottom:14px}
.fcjyda-calendar-widget h2{margin:0;font-size:clamp(22px,3vw,34px);line-height:1.05}
.fcjyda-calendar-widget header span,.fcjyda-calendar-date{font-size:12px;font-weight:800;text-transform:uppercase;color:#64748b}
.fcjyda-calendar-month{display:grid;gap:10px;margin-top:16px}
.fcjyda-calendar-month h3{margin:0;color:#0f172a;text-transform:capitalize;font-size:17px}
.fcjyda-calendar-list{display:grid;gap:10px}
.fcjyda-calendar-card{display:grid;grid-template-columns:128px minmax(0,1fr);gap:14px;padding:13px;border:1px solid #e5e7eb;border-left:6px solid var(--event-color,#d00000);border-radius:8px;background:linear-gradient(135deg,#fff 0%,#f8fafc 100%)}
.fcjyda-calendar-card.is-featured{box-shadow:0 12px 28px rgba(208,0,0,.11)}
.fcjyda-calendar-body{display:grid;gap:5px;min-width:0}
.fcjyda-calendar-body strong{font-size:16px;color:#111827}
.fcjyda-calendar-body span,.fcjyda-calendar-body p{margin:0;color:#475569;font-size:13px;line-height:1.45}
.fcjyda-calendar-body a,.fcjyda-calendar-widget footer a{color:#b91c1c;font-weight:800;text-decoration:none}
.fcjyda-calendar-widget footer{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #eef2f7}
.fcjyda-calendar-empty{margin:0;color:#475569}
@media(max-width:640px){.fcjyda-calendar-widget{padding:14px}.fcjyda-calendar-widget header{display:grid;align-items:start}.fcjyda-calendar-card{grid-template-columns:1fr}}

/* Metadatos de circulares con direcciones largas: que partan en el móvil (no desbordar a 375 px). */
.fcj-public-document-body > small { overflow-wrap: anywhere; }
body.fcj2 .fcj-legado-toggle-contenido a { max-width: 100%; overflow-wrap: anywhere; }
