/* ==========================================================================
   Estilo "binario": traslada a toda la web el lenguaje de la página 404
   (esquinas rectas, bloques de bits, titulares en negrita, retícula con 0/1).
   Se carga después del style.css del tema. No cambia estructura ni contenido.
   Para desactivarlo basta con quitar su <link> en head.html y el script
   binary.js en footer.html.
   ========================================================================== */

:root {
    --bz-ink: #000;
    --bz-line: #ddd;
    --bz-bits-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224'%3E%3Cpath d='M0 0V224M0 0H224' stroke='%23000' stroke-opacity='0.09' fill='none'/%3E%3Cpath d='M56 0V224M0 56H224' stroke='%23000' stroke-opacity='0.09' fill='none'/%3E%3Cpath d='M112 0V224M0 112H224' stroke='%23000' stroke-opacity='0.09' fill='none'/%3E%3Cpath d='M168 0V224M0 168H224' stroke='%23000' stroke-opacity='0.09' fill='none'/%3E%3Ctext x='22' y='33' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3Ctext x='22' y='145' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E0%3C/text%3E%3Ctext x='22' y='201' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3Ctext x='78' y='89' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3Ctext x='78' y='145' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E0%3C/text%3E%3Ctext x='78' y='201' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E0%3C/text%3E%3Ctext x='134' y='33' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E0%3C/text%3E%3Ctext x='134' y='89' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3Ctext x='134' y='201' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E0%3C/text%3E%3Ctext x='190' y='33' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3Ctext x='190' y='89' font-family='monospace' font-size='13' fill='%23000' fill-opacity='0.16'%3E1%3C/text%3E%3C/svg%3E");
    --bz-bits-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224'%3E%3Ctext x='22' y='33' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='22' y='89' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E0%3C/text%3E%3Ctext x='22' y='201' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='78' y='33' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='78' y='145' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E0%3C/text%3E%3Ctext x='78' y='201' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='134' y='33' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='134' y='89' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E0%3C/text%3E%3Ctext x='134' y='145' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E0%3C/text%3E%3Ctext x='134' y='201' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E0%3C/text%3E%3Ctext x='190' y='33' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3Ctext x='190' y='89' font-family='monospace' font-size='13' fill='%23fff' fill-opacity='0.13'%3E1%3C/text%3E%3C/svg%3E");
    --bz-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='8'%3E%3Crect x='0' width='8' height='8' fill='%23000'/%3E%3Crect x='8' width='8' height='8' fill='%23000'/%3E%3Crect x='16' width='8' height='8' fill='%23000'/%3E%3Crect x='32' width='8' height='8' fill='%23000'/%3E%3Crect x='48' width='8' height='8' fill='%23000'/%3E%3Crect x='56' width='8' height='8' fill='%23000'/%3E%3C/svg%3E");
    --bz-strip-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='8'%3E%3Crect x='0' width='8' height='8' fill='%23fff'/%3E%3Crect x='8' width='8' height='8' fill='%23fff'/%3E%3Crect x='16' width='8' height='8' fill='%23fff'/%3E%3Crect x='32' width='8' height='8' fill='%23fff'/%3E%3Crect x='48' width='8' height='8' fill='%23fff'/%3E%3Crect x='56' width='8' height='8' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---- Fondos ------------------------------------------------------------- */

.site-project-header,
.site-contact,
.site-cta,
.nf,
.author-block,
.series-hero {
    background-image: var(--bz-bits-light) !important;
    background-size: 224px 224px !important;
}

footer {
    position: relative;
    background-image: var(--bz-bits-dark);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--bz-strip-light) repeat-x;
}

/* ---- Tipografía --------------------------------------------------------- */

.section-title h2,
.service-landing-section-title,
.site-project-header h1,
.series-hero-title,
.series-index-title,
.site-contact-title,
.site-cta-title,
.partners-block h2 {
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* marcador de bits sobre cada título de sección */
.section-title h2::before,
.service-landing-section-title::before,
.series-index-title::before,
.blog-post-body h2::before {
    content: "";
    display: block;
    width: 64px;
    height: 8px;
    margin-bottom: 14px;
    background: var(--bz-strip) repeat-x;
}

.text-center .section-title h2::before,
.section-title.text-center h2::before {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Componentes: rectos, con sombra sólida al pasar el ratón ----------- */

.blog-card,
.project-card,
.hs-card,
.oss-index-card,
.updates-entry-card,
.series-index-card,
.service-landing-card,
.service-landing-case-card,
.service-landing-timeline-card,
.service-landing-faq-item,
.service-cta-box,
.partner,
.partners-block-item,
.contact-channel,
.author-block,
.oss-hero-github,
.oss-support-card,
.blog-series-promo,
.btn,
.hs-closing-btn,
.service-landing-cta-btn,
.service-cta-btn,
.service-landing-badge,
.blog-card-btn,
.project-card-btn,
.site-contact-form input,
.site-contact-form textarea,
.site-contact-form select,
.contact-submit-btn,
.updates-view-more-btn,
.heart-galicia-card,
.dropdown-menu,
.nf-path,
.site-contact-form,
.site-contact-feature-icon,
.series-hero-stat,
[class*="filter"] button,
[class*="filter"] a,
[class*="badge"],
select,
.blog-series-promo-cta,
.tag-cloud a,
.category-nav a,
[class*="tag"] a,
a[class*="tag"],
pre {
    border-radius: 0 !important;
}

.blog-card,
.project-card,
.hs-card,
.oss-index-card,
.updates-entry-card,
.series-index-card,
.service-landing-card,
.service-landing-case-card {
    transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover,
.project-card:hover,
.hs-card:hover,
.oss-index-card:hover,
.updates-entry-card:hover,
.series-index-card:hover,
.service-landing-card:hover,
.service-landing-case-card:hover {
    border-color: var(--bz-ink) !important;
    box-shadow: 8px 8px 0 var(--bz-ink) !important;
}

/* ---- Artículos ----------------------------------------------------------- */

.blog-post-body blockquote {
    border-left: 8px solid var(--bz-ink);
    border-radius: 0;
}

/* ---- Barra de progreso de lectura, solo con CSS ------------------------- */

@supports (animation-timeline: scroll()) {
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1002;
        width: 100%;
        height: 4px;
        background: var(--bz-strip) repeat-x;
        transform-origin: left;
        pointer-events: none;
        animation: bz-progress linear;
        animation-timeline: scroll(root);
    }
}

@keyframes bz-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---- Deslizamiento al hacer scroll (clase que pone binary.js) -------------- */

/* animation y la propiedad translate no pisan los transform de hover */
.bz-in {
    animation: bz-in 0.25s ease-out both;
}

@keyframes bz-in {
    from { translate: 0 16px; }
    to { translate: 0 0; }
}


/* ---- Fuentes en WOFF2 ---------------------------------------------------- */
/* Sustituyen a los TTF del tema (gana la última definición) y muestran texto
   desde el principio mientras se descargan. */
@font-face { font-family: 'Source Code Pro'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-Light.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 300; font-style: italic; font-display: swap; src: url('../fonts/SourceCodePro-LightItalic.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/SourceCodePro-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 700; font-style: italic; font-display: swap; src: url('../fonts/SourceCodePro-BoldItalic.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-Black.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/SourceCodePro-ExtraBold.woff2') format('woff2'); }
