/* Portada de Laboratorios · colores de la marca (verde cabecera, coral del botón). Todas las clases empiezan por .oelh */
.oelh {
  --oelh-brand: #005b57; --oelh-brand-d: #00403d; --oelh-accent: #f4775c; --oelh-ink: #14343a; --oelh-muted: #46636a; --oelh-line: #d6e6e3; --oelh-soft: #eef7f5;
  box-sizing: border-box; width: min(90vw, 1400px); max-width: none; margin: 0 0 0 calc(50% - min(45vw, 700px)); padding: 8px 0 28px; color: var(--oelh-ink); line-height: 1.55; font-family: inherit;
}
.oelh *, .oelh *::before, .oelh *::after { box-sizing: border-box; }
.oelh [hidden] { display: none !important; }

.oelh-hero { padding: 6px 0 18px; }
.oelh-kicker { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: var(--oelh-soft); color: var(--oelh-brand); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.oelh-title { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: var(--oelh-ink); }
.oelh-lead { margin: 0; max-width: 760px; font-size: 18px; color: var(--oelh-muted); }

/* filtros */
.oelh-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin: 6px 0 26px; padding: 10px 0; border-top: 1px solid var(--oelh-line); border-bottom: 1px solid var(--oelh-line); }
.oelh-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }   /* sin barra de desplazamiento propia: las etiquetas pasan a otra línea */
.oelh-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--oelh-line); background: #fff; color: var(--oelh-ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.oelh-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--oelh-soft); color: var(--oelh-brand); font-size: 12px; }
.oelh-chip:hover { border-color: var(--oelh-brand); }
.oelh-chip.is-on { background: var(--oelh-brand); border-color: var(--oelh-brand); color: #fff; } .oelh-chip.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }
.oelh-search { flex: 1 1 220px; max-width: 340px; padding: 10px 16px; border: 2px solid var(--oelh-line); border-radius: 999px; font: inherit; font-size: 15px; color: var(--oelh-ink); background: #fff; }
.oelh-search:focus { outline: none; border-color: var(--oelh-brand); box-shadow: 0 0 0 3px rgba(0, 91, 87, .15); }

/* secciones por asignatura */
.oelh-area { margin: 0 0 34px; }
.oelh-areahead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.oelh-areaico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--oelh-c, var(--oelh-brand)); font-size: 26px; flex: 0 0 auto; }
.oelh-areahead h2 { margin: 0; font-size: 26px; line-height: 1.15; color: var(--oelh-ink); }
.oelh-areahead p { margin: 2px 0 0; color: var(--oelh-muted); font-size: 15px; }

.oelh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.oelh-card { position: relative; display: flex; flex-direction: column; padding: 20px 20px 18px; border: 2px solid var(--oelh-line); border-top: 6px solid var(--oelh-c, var(--oelh-brand)); border-radius: 18px; background: #fff; box-shadow: 0 6px 22px rgba(0, 60, 57, .06); transition: transform .15s, box-shadow .15s; }
.oelh-card.is-on:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 60, 57, .12); }
.oelh-card.is-soon { border-style: dashed; border-top-style: solid; background: #fafcfb; box-shadow: none; }
.oelh-cardtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.oelh-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--oelh-soft); font-size: 24px; }
.oelh-tag { padding: 3px 11px; border-radius: 99px; background: #fff1ec; color: #b8452a; font-size: 12px; font-weight: 800; }
.oelh-card h3 { margin: 4px 0 6px; font-size: 22px; line-height: 1.2; color: var(--oelh-ink); }
.oelh-text { margin: 0 0 12px; color: var(--oelh-muted); font-size: 15.5px; }
.oelh-card.is-soon .oelh-text, .oelh-card.is-soon h3 { opacity: .75; }
.oelh-meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.oelh-meta li { padding: 3px 11px; border-radius: 99px; background: var(--oelh-soft); color: var(--oelh-brand); font-size: 12.5px; font-weight: 700; }
.oelh-admin { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff8e1; color: #7a5a00; font-size: 13px; }
.oelh-cta { margin-top: auto; }
.oelh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; background: var(--oelh-accent); color: #fff !important; font-weight: 800; font-size: 15.5px; text-decoration: none !important; box-shadow: 0 3px 0 var(--oelh-accent-d, #dc5f44); transition: filter .15s, transform .15s; }
a.oelh-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.oelh-btn.is-off { background: #e8eeec; color: #6b8087 !important; box-shadow: none; cursor: default; }
.oelh-empty { padding: 26px; text-align: center; color: var(--oelh-muted); border: 2px dashed var(--oelh-line); border-radius: 16px; }

.oelh-points { list-style: none; margin: 10px 0 0; padding: 22px 0 0; border-top: 1px solid var(--oelh-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.oelh-points li { display: grid; gap: 3px; } .oelh-points b { font-size: 16px; } .oelh-points span { color: var(--oelh-muted); font-size: 14.5px; }
.oelh-ask { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 26px; padding: 20px 24px; border-radius: 18px; background: var(--oelh-brand); color: #fff; }
.oelh-ask div { display: grid; gap: 2px; } .oelh-ask b { font-size: 19px; } .oelh-ask span { opacity: .9; }

@media (max-width: 640px) {
  .oelh-lead { font-size: 16.5px; } .oelh-areahead h2 { font-size: 22px; } .oelh-grid { grid-template-columns: 1fr; }
  .oelh-search { max-width: none; flex-basis: 100%; }
}

/* botones de arriba y bloque «por qué» */
.oelh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.oelh-btn--ghost { background: #fff !important; color: var(--oelh-brand) !important; border: 2px solid var(--oelh-brand); box-shadow: none !important; }
a.oelh-btn--ghost:hover, button.oelh-btn--ghost:hover { background: var(--oelh-soft) !important; filter: none; }
button.oelh-btn { border: 0; font-family: inherit; cursor: pointer; } button.oelh-btn--ghost { border: 2px solid var(--oelh-brand); }
.oelh-why { margin: 18px 0 8px; padding: 26px 26px 22px; border-radius: 22px; background: var(--oelh-soft); border: 1px solid var(--oelh-line); scroll-margin-top: 90px; }
.oelh-why h2 { margin: 0 0 8px; font-size: 26px; color: var(--oelh-ink); }
.oelh-whylead { margin: 0 0 18px; max-width: 820px; color: var(--oelh-muted); font-size: 16.5px; }
.oelh-whygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.oelh-whycard { padding: 16px 16px 14px; background: #fff; border: 1px solid var(--oelh-line); border-radius: 16px; }
.oelh-whyico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--oelh-soft); font-size: 21px; }
.oelh-whycard h3 { margin: 8px 0 4px; font-size: 17px; color: var(--oelh-ink); } .oelh-whycard p { margin: 0; font-size: 14.5px; color: var(--oelh-muted); line-height: 1.5; }
.oelh-whynote { margin: 16px 0 0; font-size: 14.5px; color: var(--oelh-muted); } .oelh-whynote a { color: var(--oelh-brand); font-weight: 800; }
.oelf-cta { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #d6e6e3; }

/* ventana de opinión */
html.oelh-lock { overflow: hidden; }
.oelh-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(10, 36, 40, .55); }
.oelh-dialog { box-sizing: border-box; width: min(560px, 100%); max-height: 94vh; overflow: auto; padding: 24px 24px 20px; border-radius: 20px; background: #fff; color: #14343a; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); font-family: inherit; line-height: 1.5; }
.oelh-dialog *, .oelh-dialog *::before { box-sizing: border-box; }
.oelh-dialog h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; } .oelh-fbsub { margin: 0 0 14px; color: #46636a; font-size: 15.5px; }
.oelh-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.oelh-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 2px solid #d6e6e3; border-radius: 16px; background: #fff; font: inherit; font-weight: 800; font-size: 15px; color: #14343a; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.oelh-thumb span { font-size: 36px; line-height: 1; } .oelh-thumb:hover { border-color: #005b57; } .oelh-thumb:active { transform: scale(.98); }
.oelh-thumb[data-v="1"].is-on { background: #e3f4e8; border-color: #1f8a4c; color: #1f6b3a; } .oelh-thumb[data-v="-1"].is-on { background: #ffe6df; border-color: #d9482b; color: #a3341a; }
.oelh-fbrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .oelh-dialog label { display: grid; gap: 4px; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.oelh-dialog select, .oelh-dialog textarea, .oelh-dialog input { width: 100%; padding: 10px 12px; border: 2px solid #d6e6e3; border-radius: 12px; font: inherit; font-weight: 400; font-size: 15px; color: #14343a; background: #fff; }
.oelh-dialog textarea { resize: vertical; min-height: 90px; } .oelh-dialog select:focus, .oelh-dialog textarea:focus, .oelh-dialog input:focus, .oelh-thumb:focus-visible { outline: none; border-color: #005b57; box-shadow: 0 0 0 3px rgba(0, 91, 87, .18); }
.oelh-fbnote { margin: 0 0 6px; color: #6b8087; font-size: 13px; } .oelh-fbout { min-height: 22px; margin: 0 0 8px; font-weight: 700; font-size: 14.5px; } .oelh-fbout.is-err { color: #b42318; } .oelh-fbout.is-ok { color: #1f6b3a; }
.oelh-fbbtns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .oelh-fbrow { grid-template-columns: 1fr; } .oelh-dialog { padding: 18px 16px 16px; } }

/* los colores de la marca también donde no está el contenedor .oelh (ventana de opinión, página de fundamentos) */
.oelf, .oelh-modal { --oelh-brand: #005b57; --oelh-brand-d: #00403d; --oelh-accent: #f4775c; --oelh-ink: #14343a; --oelh-muted: #46636a; --oelh-line: #d6e6e3; --oelh-soft: #eef7f5; }
.oelf-cta .oelh-btn, .oelh-modal .oelh-btn { font-family: inherit; }

/* subtítulos por bloque de la ley dentro de cada asignatura */
.oelh-block { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--oelh-brand); }
.oelh-block::after { content: ''; flex: 1; height: 1px; background: var(--oelh-line); }
.oelh-area .oelh-areahead + .oelh-block { margin-top: 4px; }

/* grupos por bloque del currículo dentro de una asignatura */
.oelh-group { margin: 0 0 22px; }
.oelh-bloque { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--oelh-line); font-size: 18px; line-height: 1.2; color: var(--oelh-ink); }
.oelh-bloque span { font-size: 13px; font-weight: 600; color: var(--oelh-muted); }

/* los bloques del currículo van en columnas y reparten todo el ancho (4 bloques → 4 columnas); si hay menos, cada uno se ensancha */
.oelh-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; align-items: start; }
.oelh-groups > .oelh-group { min-width: 0; margin: 0 0 22px; }
.oelh-groups .oelh-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.oelh-groups .oelh-bloque { margin-top: 6px; }
/* el tema (Divi) pinta viñetas en las listas: aquí no */
.oelh ul, .oelh ol, .oelh li { list-style: none !important; }
.oelh ul, .oelh ol { padding-left: 0 !important; margin-left: 0 !important; }
.oelh li::before, .oelh li::after, .oelh li::marker { content: none !important; display: none !important; }
.oelh-meta { padding: 0 !important; } .oelh-meta li { margin: 0 !important; padding: 3px 11px !important; }
.oelh-points li { margin: 0 !important; padding: 0 !important; }
.oelf li::before, .oelf li::after { content: none !important; }
.oelf-legend ul, .oelf-index { list-style: none !important; padding-left: 0 !important; }
.oelf-list, .oelf-refs, .oelf-table ul { list-style: disc !important; padding-left: 22px !important; } .oelf-list li, .oelf-refs li, .oelf-table li { list-style: disc !important; }
