/* ============================================================
   Reciclo Theme — educa.css
   Educa+, el blog educativo. Sólo se carga en /educa/, sus temas y
   sus artículos (reciclo_educa_styles), así el resto del sitio no paga
   estos bytes. Colores y tipografía: los mismos de main.css.
   ============================================================ */

.educa-main {
    background: #f5fae9;
    color: #084734;
    font-family: 'Raleway', sans-serif;
}
/* !important: main.css fija .site-main { padding-bottom: 60px !important } en
   móvil y dejaba una franja clara entre la banda del programa y el footer. */
.educa-main.site-main { padding-bottom: 0 !important; }

/* El anillo menta global (main.css) apenas se ve sobre estos fondos claros. */
.educa-main :focus-visible { outline-color: #052f23; }
.educa-hero :focus-visible { outline-color: #3de9b5; }

.educa-wrap {
    width: 100%;
    max-width: 1172px;
    margin: 0 auto;
    padding: 0 24px;
}

.educa-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Píldoras, enlaces y botones ─────────────────────────────── */

.educa-pill {
    display: inline-block;
    width: fit-content;
    background: #cef17b;
    color: #052f23;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 40px;
    padding: 7px 16px;
}
.educa-pill--light    { background: #ebf9ca; color: #0b7553; }
.educa-pill--dark     { background: #052f23; color: #cef17b; }
.educa-pill--material { background: var(--educa-color); color: var(--educa-ink); }

.educa-link {
    color: #084734;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #9fd63f;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    white-space: nowrap;
}
.educa-link:hover { color: #0b7553; }

.educa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, background-color .2s ease;
}
.educa-btn:hover { transform: scale(1.03); }
.educa-btn--dark  { background: #052f23; color: #fff; }
.educa-btn--dark:hover { background: #084734; }
.educa-btn--ghost { border: 2px solid #084734; color: #084734; background: transparent; }
.educa-btn--ghost:hover { background: rgba(8, 71, 52, .08); }

/* ── Hero del índice ─────────────────────────────────────────── */

.educa-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(206, 241, 123, .10) 0, transparent 38%),
        radial-gradient(circle at 88% 92%, rgba(61, 233, 181, .10) 0, transparent 42%),
        #052f23;
    color: #fff;
    padding: 200px 0 88px;
    border-radius: 0 0 75px 75px;
}
.educa-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}
.educa-hero__text { display: flex; flex-direction: column; gap: 18px; }
.educa-hero__title {
    font-size: clamp(72px, 10vw, 136px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.03em;
    color: #cef17b;
}
.educa-hero__title span { color: #3de9b5; }
.educa-hero__claim {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: #fff;
}
.educa-hero__lead {
    font-size: 17px;
    line-height: 1.7;
    color: #c9eedf;
    max-width: 520px;
}
.educa-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 200px 40px 40px 40px;
}

.educa-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.educa-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(206, 241, 123, .55);
    border-radius: 40px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.educa-chip:hover { background: #cef17b; color: #052f23; }
.educa-chip--accent { background: #cef17b; color: #052f23; border-color: #cef17b; }
.educa-chip--accent:hover { background: #fff; border-color: #fff; }

/* ── Secciones y grillas ─────────────────────────────────────── */

.educa-section { padding: 72px 0; }
.educa-section--materiales { background: #ebf9ca; }

.educa-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 32px;
}
.educa-section__title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: #052f23;
}
.educa-section__desc {
    margin-top: 10px;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.6;
    color: #0b7553;
}

.educa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.educa-mgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* ── Tarjeta de artículo ─────────────────────────────────────── */

.educa-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0f1c0;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.educa-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(5, 47, 35, .12); }
.educa-card:focus-within { outline: 3px solid #052f23; outline-offset: 2px; }
.educa-card:focus-within a:focus-visible { outline: none; }

.educa-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #073b2b;
    overflow: hidden;
}
.educa-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.educa-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
}
.educa-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0b7553;
}
.educa-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #052f23;
}
.educa-card__title a { color: inherit; text-decoration: none; }
.educa-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.educa-card__excerpt { font-size: 14px; line-height: 1.6; color: #33604f; }
.educa-card__meta { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: #5b7d6f; }

/* Bloque de color de las guías de material (estilo de las láminas). */
.educa-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 22px 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .16) 22%, transparent 22.5%),
        radial-gradient(circle at 0 100%, rgba(0, 0, 0, .10) 0, rgba(0, 0, 0, .10) 30%, transparent 30.5%),
        var(--educa-color);
    color: var(--educa-ink);
}
.educa-tile__name {
    font-size: 26px;
    overflow-wrap: anywhere;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.educa-tile__sub { font-size: 14px; font-weight: 700; opacity: .9; }
.educa-tile .educa-icon { position: absolute; right: 20px; bottom: 18px; opacity: .85; }

/* ── Grilla compacta de materiales (índice) ──────────────────── */

.educa-mtile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 168px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .16) 28%, transparent 28.5%),
        var(--educa-color);
    color: var(--educa-ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.educa-mtile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(5, 47, 35, .18); }
.educa-mtile:focus-within { outline: 3px solid #052f23; outline-offset: 3px; }
.educa-mtile:focus-within a:focus-visible { outline: none; }
.educa-mtile .educa-icon { margin-bottom: auto; opacity: .9; }
.educa-mtile__name {
    margin-top: 18px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}
.educa-mtile__name a { color: inherit; text-decoration: none; }
.educa-mtile__name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.educa-mtile__sub { font-size: 13px; font-weight: 700; opacity: .9; }
.educa-mtile__cta { margin-top: 10px; font-size: 13px; font-weight: 700; }

/* ── Banda del programa para colegios ────────────────────────── */

.educa-programa {
    background: #cef17b;
    padding: 80px 0;
}
.educa-programa__inner {
    max-width: 1172px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 56px;
    align-items: center;
}
.educa-programa__text { display: flex; flex-direction: column; gap: 18px; }
.educa-programa__title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    color: #052f23;
}
.educa-programa__lead { font-size: 17px; line-height: 1.65; color: #084734; max-width: 620px; }
.educa-programa__pilares { list-style: none; display: grid; gap: 10px; }
.educa-programa__pilares li {
    position: relative;
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.55;
    color: #084734;
}
.educa-programa__pilares li::before {
    content: '';
    position: absolute;
    left: 0; top: 1px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #052f23 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cef17b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.educa-programa__pilares strong { color: #052f23; }
.educa-programa__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.educa-programa__media { position: relative; }
.educa-programa__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 40px 40px 160px 40px;
}
.educa-programa__badge {
    position: absolute;
    left: -16px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #052f23;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 40px;
    padding: 10px 20px 10px 12px;
    box-shadow: 0 10px 24px rgba(5, 47, 35, .25);
}
.educa-programa__badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #cef17b;
    color: #052f23;
    font-size: 18px;
    font-weight: 800;
}

.educa-programa--compact { padding: 56px 0; }
.educa-programa--compact .educa-programa__inner { display: block; }
.educa-programa--compact .educa-programa__text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "pill    ."
        "title   actions"
        "lead    actions";
    align-items: center;
    gap: 12px 40px;
}
.educa-programa--compact .educa-pill { grid-area: pill; }
.educa-programa--compact .educa-programa__title { grid-area: title; font-size: clamp(24px, 2.6vw, 34px); }
.educa-programa--compact .educa-programa__lead { grid-area: lead; }
.educa-programa--compact .educa-programa__actions { grid-area: actions; margin-top: 0; }

/* ── Encabezados de tema y paginación ────────────────────────── */

.educa-page-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.educa-hub .educa-page-header { padding-top: 180px; }
.educa-page-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    color: #052f23;
}
.educa-page-title__paged { font-weight: 600; color: #0b7553; font-size: .55em; }
.educa-page-lead { max-width: 680px; font-size: 17px; line-height: 1.65; color: #0b7553; }
.educa-tax .educa-grid { margin-bottom: 72px; }
.educa-empty { font-size: 16px; color: #0b7553; padding-bottom: 48px; }
.educa-empty a { color: #084734; font-weight: 700; }

.educa-pagination { padding: 0 24px 72px; }
.educa-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.educa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #d8f495;
    color: #084734;
    font-weight: 700;
    text-decoration: none;
}
.educa-pagination .page-numbers.current { background: #052f23; border-color: #052f23; color: #cef17b; }

/* ── Artículo ────────────────────────────────────────────────── */

.educa-breadcrumb { margin-bottom: 28px; font-size: 13px; }
.educa-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.educa-breadcrumb li { color: #052f23; font-weight: 600; }
.educa-breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #7fae9a; font-weight: 400; }
.educa-breadcrumb a { color: #0b7553; font-weight: 500; text-decoration: none; }
.educa-breadcrumb a:hover { text-decoration: underline; }

.educa-article__layout { display: block; }
.educa-article__layout:not(.has-guia) .educa-article__main { max-width: 760px; margin: 0 auto; }
.educa-article__layout.has-guia {
    display: grid;
    grid-template-columns: minmax(0, 740px) 320px;
    justify-content: space-between;
    gap: 64px;
    align-items: start;
}

.educa-article__header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.educa-article__title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: #052f23;
}
.educa-article__lead { font-size: 19px; line-height: 1.6; color: #0b7553; }
.educa-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4f7a68;
}
.educa-article__thumb { margin-bottom: 36px; border-radius: 20px; overflow: hidden; }
.educa-article__thumb img { display: block; width: 100%; height: auto; }

.educa-article__aside { position: sticky; top: 160px; }
.educa-guia img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(5, 47, 35, .18);
}
.educa-guia figcaption { margin-top: 14px; font-size: 13px; line-height: 1.6; color: #4f7a68; }
.educa-guia figcaption a { display: inline-block; margin-top: 4px; color: #084734; font-weight: 700; }

/* Contenido: completa los estilos de .entry-content de main.css. */
.educa-content { font-size: 17px; }
.educa-content a { color: #0b7553; }
.educa-content > h2:first-child { margin-top: 0; }
.educa-content strong { color: #052f23; }

.educa-content .educa-callout {
    background: #f0fadb;
    border: 1px solid #d8f495;
    border-left: 6px solid #9fd63f;
    border-radius: 14px;
    padding: 16px 20px;
}
.educa-content .educa-callout > * + * { margin-top: 10px; }

.educa-content .educa-sino {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.educa-content .educa-si,
.educa-content .educa-no {
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid;
}
.educa-content .educa-si { background: #effae6; border-color: #bfe6a3; }
.educa-content .educa-no { background: #fdf0ef; border-color: #f2c9c5; }
.educa-content .educa-si h3,
.educa-content .educa-no h3 { margin: 0 0 12px; font-size: 18px; }
.educa-content .educa-si h3 { color: #1e6b2c; }
.educa-content .educa-no h3 { color: #a3262b; }
.educa-content .educa-si ul,
.educa-content .educa-no ul { list-style: none; padding-left: 0; }
.educa-content .educa-si li,
.educa-content .educa-no li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; }
.educa-content .educa-si li::before,
.educa-content .educa-no li::before {
    position: absolute;
    left: 0; top: 0;
    font-weight: 800;
}
.educa-content .educa-si li::before { content: '✓'; color: #2c8a3d; }
.educa-content .educa-no li::before { content: '✕'; color: #c0392b; }

.educa-content ol.educa-pasos { list-style: none; padding-left: 0; counter-reset: educa-paso; }
.educa-content ol.educa-pasos > li {
    position: relative;
    counter-increment: educa-paso;
    padding-left: 52px;
    min-height: 36px;
}
.educa-content ol.educa-pasos > li + li { margin-top: 16px; }
.educa-content ol.educa-pasos > li::before {
    content: counter(educa-paso);
    position: absolute;
    left: 0; top: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #cef17b;
    color: #052f23;
    font-weight: 800;
    font-size: 16px;
}

.educa-related { background: #fff; margin-top: 72px; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1180px) {
    .educa-article__layout.has-guia { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
    .educa-hero__inner, .educa-programa__inner { gap: 40px; }
}

@media (max-width: 960px) {
    .educa-hero { padding: 170px 0 64px; border-radius: 0 0 48px 48px; }
    .educa-hero__inner { grid-template-columns: 1fr; }
    .educa-hero__media { max-width: 560px; }
    .educa-programa__inner { grid-template-columns: 1fr; }
    .educa-programa__media { max-width: 560px; }
    .educa-programa--compact .educa-programa__text {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "pill" "title" "lead" "actions";
    }
    .educa-programa--compact .educa-programa__actions { margin-top: 6px; }
    .educa-article__layout.has-guia { display: block; }
    .educa-article__aside { position: static; max-width: 380px; margin: 48px auto 0; }
}

@media (max-width: 809px) {
    .educa-wrap, .educa-programa__inner { padding: 0 16px; }
    .educa-hero { padding: 140px 0 56px; }
    .educa-hero__title { font-size: 76px; }
    .educa-hero__lead { font-size: 16px; }
    .educa-hero__media img { border-radius: 120px 28px 28px 28px; }
    .educa-section { padding: 52px 0; }
    .educa-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .educa-mtile { min-height: 150px; padding: 16px 14px 14px; }
    .educa-mtile__name { font-size: 18px; }
    .educa-programa { padding: 56px 0; }
    .educa-programa__badge { left: 12px; }
    .educa-programa__actions .educa-btn { flex: 1 1 100%; }
    .educa-hub .educa-page-header { padding-top: 130px; }
    .educa-article__lead { font-size: 17px; }
    .educa-content { font-size: 16px; }
    .educa-content .educa-sino { grid-template-columns: 1fr; }
    .educa-related { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .educa-card, .educa-mtile, .educa-btn { transition: none; }
    .educa-card:hover, .educa-mtile:hover, .educa-btn:hover { transform: none; }
}
