/* ELDA - Inicio (diseño "Opción B: institucional editorial")
   Todas las reglas cuelgan de .hb para no afectar a las demás páginas del sitio. */

.hb {
  --ink: #0f2a29;
  --teal: #268480;
  --teal-d: #1d6764;
  --paper: #f4f1ea;
  --line: #e6e9e5;
  --line-2: #c9cdc4;
  --text: #26302f;
  --muted: #4d5755;
  --muted-2: #5b6664;
  --lime: #a9d06a;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb h1, .hb h2, .hb h3, .hb p, .hb ul { margin: 0; padding: 0; }
.hb ul { list-style: none; }
.hb img { max-width: 100%; display: block; }
.hb a { color: var(--teal-d); text-decoration: none; }
.hb a:hover { color: var(--ink); }
.hb a:focus-visible, .hb button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.hb-wrap { max-width: 1440px; margin: 0 auto; padding-left: 80px; padding-right: 80px; }

/* ---------- Barra superior ---------- */
.hb-util { background: var(--ink); font-size: 12.5px; font-weight: 500; letter-spacing: .03em; }
.hb-util-in { height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.hb .hb-util a { color: #b9d0cd; }
.hb .hb-util a:hover, .hb .hb-util a.is-first { color: #fff; }
.hb .hb-util a.is-first { font-weight: 600; }

/* ---------- Cabecera ---------- */
.hb-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hb-header-in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hb-logo img { height: 44px; width: auto; }
.hb-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hb .hb-nav a { color: var(--text); }
.hb .hb-nav a:hover { color: var(--teal); }
.hb .hb-nav a.is-active { color: var(--teal); font-weight: 600; }
.hb-nav-util { display: none; }
.hb-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hb-hero { position: relative; background: var(--ink); overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hb-hero-img {
  position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
.hb-hero-in { position: relative; width: 100%; }
.hb-hero-copy { max-width: 560px; display: flex; flex-direction: column; gap: 30px; padding: 72px 0; }
.hb-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
.hb-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; flex-shrink: 0; }
.hb-hero .hb-eyebrow { color: var(--lime); }
.hb-hero h1 { font-family: var(--serif); font-size: 64px; line-height: 1.05; font-weight: 500; color: #fff; letter-spacing: -.02em; text-wrap: balance; }
.hb-hero p { font-size: 18px; line-height: 1.6; color: #c6d6d3; max-width: 470px; }
.hb-actions { display: flex; align-items: center; gap: 28px; padding-top: 6px; }
.hb .hb-btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 30px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.hb .hb-btn-white { background: #fff; color: var(--ink); }
.hb .hb-btn-white:hover { background: #e8f0ee; color: var(--ink); }
.hb .hb-link-light { color: #fff; font-size: 15px; font-weight: 600; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.5); white-space: nowrap; }
.hb .hb-link-light:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Encabezados de sección ---------- */
.hb-section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.hb h2.hb-title { font-family: var(--serif); font-size: 46px; line-height: 1.1; font-weight: 500; color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }

/* ---------- Franja de aliados ---------- */
.hb-strip { border-bottom: 1px solid var(--line); background: #fff; }
.hb-strip-in { display: flex; align-items: flex-start; gap: 56px; padding-top: 48px; padding-bottom: 48px; }
.hb-strip-label { width: 190px; flex-shrink: 0; padding-top: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted-2); white-space: nowrap; }
.hb-strip-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.hb-ally { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hb-ally-logo { height: 64px; display: flex; align-items: center; }
.hb-ally-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.hb-ally-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.hb-ally-rubro { font-size: 13px; line-height: 1.4; color: var(--muted-2); margin-top: 3px; }
.hb-ally-rubro p { margin: 0; }

/* ---------- Áreas de formación ---------- */
.hb-areas { background: var(--paper); padding: 120px 0; }
.hb-areas-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.hb-areas-head { grid-column: span 5; }
.hb-areas-list { grid-column: 7 / span 6; border-top: 1px solid var(--line-2); }
.hb .hb-area { display: flex; align-items: center; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.hb .hb-area:hover { color: var(--teal); }
.hb-area-n { width: 28px; font-size: 14px; font-weight: 600; color: #7d867f; }
.hb-area-name { flex-grow: 1; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.hb-area svg { flex-shrink: 0; }
.hb-area-icon { color: var(--teal); }

/* ---------- Docentes ---------- */
.hb-docentes { background: #fff; padding: 120px 0; }
.hb-block { display: flex; flex-direction: column; gap: 64px; }
.hb-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hb-doc { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hb-doc-photo { width: 100%; height: 340px; object-fit: cover; object-position: center top; background: var(--paper); }
.hb-doc-body { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--teal); padding-top: 16px; }
.hb-doc h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; font-weight: 500; color: var(--ink); letter-spacing: -.01em; min-height: 60px; }
.hb-doc-cargo { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.hb-doc-more { margin-top: 6px; }
.hb-doc-more summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--teal-d); }
.hb-doc-more summary::-webkit-details-marker { display: none; }
.hb-doc-more summary::after { content: " +"; }
.hb-doc-more[open] summary::after { content: " 2"; }
.hb-doc-desc { font-size: 14px; line-height: 1.55; color: var(--muted-2); margin-top: 10px; }
.hb-doc-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* ---------- Testimonios ---------- */
.hb-testi { background: var(--paper); padding: 120px 0; }
.hb-grid-t { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hb-tcard { display: flex; flex-direction: column; gap: 16px; background: #fff; padding: 30px 28px 26px; min-width: 0; }
.hb-tcard-top { display: flex; flex-direction: column; gap: 16px; }
.hb-tcard-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--paper); flex-shrink: 0; }
.hb-tcard h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; min-height: 53px; }
.hb-tcard h3 a { color: var(--ink); }
.hb-tcard h3 a:hover { color: var(--teal); }
.hb-tcard-cargo { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.hb-tcard-logo { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; height: 56px; display: flex; align-items: center; }
.hb-tcard-logo img { max-width: 170px; max-height: 44px; }

/* ---------- Beneficios ---------- */
.hb-ben { background: #fff; padding: 120px 0; }
.hb-grid-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; }
.hb-ben-item { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--teal); padding-top: 20px; min-width: 0; }
.hb-ben-item > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hb-ben-n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #7d867f; }
.hb-ben-item h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; font-weight: 500; color: var(--ink); letter-spacing: -.01em; min-height: 60px; }
.hb-ben-item p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Cierre ---------- */
.hb-cta { background: var(--teal-d); }
.hb-cta-in { padding-top: 104px; padding-bottom: 104px; display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.hb-cta h2 { font-family: var(--serif); font-size: 52px; line-height: 1.1; font-weight: 500; color: #fff; letter-spacing: -.02em; max-width: 820px; text-wrap: balance; }
.hb .hb-cta .hb-btn { height: 56px; padding: 0 34px; flex-shrink: 0; }

/* ---------- Pie ---------- */
.hb-footer { background: #fff; }
.hb-footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr; gap: 64px; padding-top: 80px; padding-bottom: 64px; }
.hb-footer-brand { display: flex; flex-direction: column; gap: 18px; }
.hb-footer-brand img { height: 42px; width: auto; align-self: flex-start; }
.hb-footer-brand p { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 280px; }
.hb-footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; color: var(--muted); }
.hb-footer-h { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--ink); padding-bottom: 4px; }
.hb .hb-footer-col a { color: #4d5755; }
.hb .hb-footer-col a:hover { color: var(--teal); }
.hb-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 10px; font-weight: 600; }
.hb-footer-bottom { border-top: 1px solid var(--line); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: #6b7573; }

/* ================= Tablet ================= */
@media (max-width: 1279px) {
  .hb-util { display: none; }
  .hb-burger { display: inline-flex; }
  .hb-header-in { height: 72px; }
  .hb-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; white-space: normal;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15,42,41,.08);
    padding: 8px 40px 20px;
  }
  .hb-nav.is-open { display: flex; }
  .hb .hb-nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; }
  .hb-nav-util { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .hb .hb-nav-util a { font-size: 14.5px; color: var(--muted-2); }
}

@media (max-width: 991px) {
  .hb-wrap { padding-left: 40px; padding-right: 40px; }
  .hb-hero { display: block; min-height: 0; }
  .hb-hero-img {
    position: static; width: 100%; height: 320px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hb-hero-copy { padding: 8px 0 56px; gap: 24px; }
  .hb-hero h1 { font-size: 48px; }
  .hb-strip-in { flex-direction: column; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
  .hb-strip-label { width: auto; padding-top: 0; }
  .hb-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; width: 100%; }
  .hb-areas, .hb-docentes, .hb-testi, .hb-ben { padding: 88px 0; }
  .hb-areas-grid { display: flex; flex-direction: column; gap: 40px; }
  .hb h2.hb-title { font-size: 38px; }
  .hb-grid-4, .hb-grid-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-grid-b { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .hb-block { gap: 48px; }
  .hb-cta-in { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
  .hb-cta h2 { font-size: 40px; }
  .hb-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hb-footer-brand { grid-column: 1 / -1; }
}

/* ================= Móvil ================= */
@media (max-width: 575px) {
  .hb-wrap { padding-left: 20px; padding-right: 20px; }
  .hb-header-in { height: 68px; }
  .hb-logo img { height: 34px; }
  .hb-nav { padding: 8px 20px 20px; }
  .hb-hero-img { height: 250px; }
  .hb-hero-copy { gap: 22px; padding: 8px 0 44px; }
  .hb-eyebrow { font-size: 11px; letter-spacing: .14em; gap: 12px; }
  .hb-eyebrow::before { width: 28px; }
  .hb-hero h1 { font-size: 40px; line-height: 1.06; }
  .hb-hero p { font-size: 16px; }
  .hb-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hb .hb-actions .hb-btn { height: 54px; }
  .hb .hb-link-light { align-self: center; }
  .hb-areas, .hb-docentes, .hb-testi, .hb-ben { padding: 72px 0; }
  .hb h2.hb-title { font-size: 34px; }
  .hb-block { gap: 36px; }
  .hb-areas-grid { gap: 36px; }
  .hb .hb-area { gap: 16px; padding: 0; min-height: 72px; }
  .hb-area-n { width: 28px; font-size: 13px; }
  .hb-area-name { font-size: 25px; }
  .hb-area-icon { display: none; }
  .hb-grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .hb-doc { flex-direction: row; align-items: flex-start; gap: 18px; border-top: 2px solid var(--teal); padding-top: 18px; }
  .hb-doc-photo { width: 92px; height: 116px; flex-shrink: 0; }
  .hb-doc-body { border-top: 0; padding-top: 0; min-width: 0; gap: 6px; }
  .hb-doc h3 { font-size: 22px; min-height: 0; }
  .hb-doc-cargo, .hb-doc-desc { font-size: 14px; line-height: 1.5; }
  .hb-grid-t { grid-template-columns: 1fr; gap: 12px; }
  .hb-tcard { padding: 22px 20px 20px; }
  .hb-tcard-top { flex-direction: row; align-items: center; gap: 16px; }
  .hb-tcard-photo { width: 68px; height: 68px; }
  .hb-tcard h3 { font-size: 20px; min-height: 0; }
  .hb-tcard-cargo { font-size: 14px; margin-top: 4px; }
  .hb-tcard-logo { height: 48px; padding-top: 14px; }
  .hb-tcard-logo img { max-width: 150px; max-height: 38px; }
  .hb-grid-b { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line-2); }
  .hb-ben-item { flex-direction: row; align-items: flex-start; gap: 16px; border-top: 1px solid var(--line-2); padding: 20px 0; }
  .hb-ben-n { width: 28px; flex-shrink: 0; padding-top: 5px; }
  .hb-ben-item h3 { font-size: 22px; min-height: 0; }
  .hb-ben-item > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .hb-cta-in { padding-top: 64px; padding-bottom: 64px; gap: 32px; align-items: stretch; }
  .hb-cta h2 { font-size: 34px; }
  .hb .hb-cta .hb-btn { width: 100%; height: 54px; }
  .hb-footer-top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
  .hb-footer-brand img { height: 38px; }
  .hb .hb-footer-col a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .hb-social { gap: 0 24px; padding-top: 0; }
  .hb-footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 0 24px; }
}


/* =====================================================================
   Páginas interiores: cabecera de página, Nosotros, Cursos
   ===================================================================== */

/* ---------- Cabecera de página ---------- */
.hb-pagehead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 72px; }
.hb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 40px; font-size: 13.5px; color: var(--muted-2); }
.hb .hb-crumbs a { color: var(--muted-2); }
.hb .hb-crumbs a:hover { color: var(--teal); }
.hb-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.hb-crumbs .sep { opacity: .5; }
.hb h1.hb-h1 { font-family: var(--serif); font-size: 64px; line-height: 1.05; font-weight: 500; color: var(--ink); letter-spacing: -.02em; text-wrap: balance; }
.hb-pagehead-in { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Nosotros ---------- */
.hb-about { background: #fff; padding: 120px 0; }
.hb-about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hb-about-text { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; }
.hb-about-text p { font-size: 19px; line-height: 1.65; color: var(--muted); }
.hb-about-img { grid-column: 7 / span 6; }
.hb-about-img img { width: 100%; height: auto; }

.hb-mv { background: var(--paper); padding: 120px 0; }
.hb-mv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hb-mv-item { display: flex; flex-direction: column; gap: 24px; padding: 0 64px; }
.hb-mv-item:first-child { padding-left: 0; border-right: 1px solid var(--line-2); }
.hb-mv-item:last-child { padding-right: 0; }
.hb-mv-item svg { color: var(--teal); }
.hb h2.hb-mv-title { font-family: var(--serif); font-size: 44px; line-height: 1.1; font-weight: 500; color: var(--ink); letter-spacing: -.015em; }
.hb-mv-item p { font-size: 18px; line-height: 1.7; color: var(--muted); }

.hb-value { background: var(--ink); padding: 120px 0; }
.hb-value .hb-eyebrow { color: var(--lime); margin-bottom: 36px; }
.hb-value p { font-family: var(--serif); font-size: 38px; line-height: 1.3; font-weight: 400; color: #dbe7e5; max-width: 1040px; letter-spacing: -.01em; text-wrap: pretty; }
.hb-value strong { color: var(--lime); font-weight: 500; }

/* ---------- Cursos ---------- */
.hb-filters-bar { background: #fff; border-bottom: 1px solid var(--line); }
.hb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 28px; padding-bottom: 28px; }
.hb-filters-label { margin-right: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }
.hb-chip { appearance: none; -webkit-appearance: none; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-family: var(--sans); font-size: 14.5px; font-weight: 600; padding: 0 20px; height: 44px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hb-chip:hover { border-color: var(--teal); color: var(--teal); }
.hb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.hb-cursos-sec { background: #fff; padding: 72px 0 96px; }
.hb-cursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.hb-curso { min-width: 0; }
.hb .hb-curso-link { display: flex; flex-direction: column; gap: 20px; color: var(--ink); }
.hb-curso-img { display: block; aspect-ratio: 1200 / 864; background: var(--paper); overflow: hidden; }
.hb-curso-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hb .hb-curso-link:hover .hb-curso-img img { transform: scale(1.03); }
.hb-curso-body { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--teal); padding-top: 16px; }
.hb-curso-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
.hb-curso-meta span:last-child { color: var(--muted-2); letter-spacing: .01em; text-transform: none; font-size: 13.5px; font-weight: 500; text-align: right; }
.hb-curso-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.hb-curso-more { font-size: 14.5px; font-weight: 600; color: var(--teal-d); margin-top: 4px; }
.hb .hb-curso-link:hover .hb-curso-title { color: var(--teal-d); }

.hb-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 72px; }
.hb .hb-btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer; font-family: var(--sans); }
.hb .hb-btn-outline:hover { background: var(--ink); color: #fff; }
.hb-btn[disabled] { opacity: .5; cursor: progress; }
.hb-status { font-size: 14.5px; font-weight: 600; color: var(--muted-2); min-height: 1.5em; }
.hb-empty { font-size: 16px; color: var(--muted-2); padding: 24px 0; }
.hb-ads { padding: 0; }

@media (max-width: 991px) {
  .hb-pagehead { padding: 40px 0 56px; }
  .hb-crumbs { margin-bottom: 28px; }
  .hb h1.hb-h1 { font-size: 48px; }
  .hb-about, .hb-mv, .hb-value { padding: 88px 0; }
  .hb-about-grid { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .hb-mv-grid { grid-template-columns: 1fr; gap: 56px; }
  .hb-mv-item, .hb-mv-item:first-child, .hb-mv-item:last-child { padding: 0; border-right: 0; }
  .hb-value p { font-size: 30px; }
  .hb-cursos-sec { padding: 56px 0 80px; }
  .hb-cursos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
}

@media (max-width: 575px) {
  .hb-pagehead { padding: 28px 0 44px; }
  .hb-crumbs { margin-bottom: 24px; }
  .hb h1.hb-h1 { font-size: 40px; line-height: 1.06; }
  .hb-about, .hb-mv, .hb-value { padding: 64px 0; }
  .hb-about-text { gap: 20px; }
  .hb-about-text p, .hb-mv-item p { font-size: 17px; }
  .hb h2.hb-mv-title { font-size: 34px; }
  .hb-mv-grid { gap: 48px; }
  .hb-value p { font-size: 25px; }
  .hb-filters { gap: 8px; padding-top: 20px; padding-bottom: 20px; }
  .hb-filters-label { width: 100%; margin: 0 0 4px; }
  .hb-chip { height: 44px; padding: 0 16px; }
  .hb-cursos-sec { padding: 40px 0 64px; }
  .hb-cursos { grid-template-columns: 1fr; gap: 44px; }
  .hb-curso-title { font-size: 22px; }
  .hb-more { margin-top: 56px; }
  .hb .hb-more .hb-btn { width: 100%; }
}

.hb [hidden] { display: none !important; }


/* =====================================================================
   Detalle de curso, responsabilidad social, contenido del administrador
   ===================================================================== */

/* ---------- Texto enriquecido (HTML del administrador, ya limpiado) ---------- */
.hb-prose { font-size: 17px; line-height: 1.7; color: var(--muted); min-width: 0; }
.hb .hb-prose > * + * { margin-top: 1.1em; }
.hb-prose p { margin: 0; }
.hb-prose strong, .hb-prose b { color: var(--ink); font-weight: 600; }
.hb-prose h1, .hb-prose h2, .hb-prose h3, .hb-prose h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; }
.hb .hb-prose h1, .hb .hb-prose h2, .hb .hb-prose h3, .hb .hb-prose h4 { margin-top: 1.6em; }
.hb-prose h2 { font-size: 32px; } .hb-prose h3 { font-size: 26px; } .hb-prose h4 { font-size: 22px; }
.hb-prose ul, .hb-prose ol { padding-left: 1.3em; }
.hb-prose ul { list-style: disc; }
.hb-prose li { padding-left: .2em; }
.hb .hb-prose li + li { margin-top: .4em; }
.hb-prose li::marker { color: var(--teal); }
.hb .hb-prose ol ul, .hb .hb-prose ul ul, .hb .hb-prose ol ol, .hb .hb-prose ul ol { margin-top: .5em; }
.hb .hb-prose a { color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; }
.hb .hb-prose a:hover { color: var(--ink); }
.hb-prose img { max-width: 100%; height: auto; }
.hb-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hb-prose table { width: 100%; border-collapse: collapse; }
.hb-prose td, .hb-prose th { padding: 22px 16px 22px 0; border-top: 1px solid var(--line-2); vertical-align: top; text-align: left; }
.hb-prose tr:last-child td, .hb-prose tr:last-child th { border-bottom: 1px solid var(--line-2); }
.hb-prose td img { width: 48px; height: 48px; object-fit: contain; }
.hb-prose td:first-child:has(img) { width: 72px; }
.hb .hb-prose td p + ul { margin-top: .6em; }
.hb-prose-lead { font-size: 19px; line-height: 1.65; }
.hb .hb-prose-lead > * + * { margin-top: 1.2em; }

/* ---------- Detalle de curso ---------- */
.hb-pagehead-lead { max-width: 820px; }
.hb-det { background: #fff; padding: 72px 0 120px; }
.hb-det-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.hb-det-main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.hb-det-img { width: 100%; aspect-ratio: 1200 / 864; object-fit: cover; background: var(--paper); }
.hb-det-block { display: flex; flex-direction: column; gap: 28px; }
.hb h2.hb-h2s { font-family: var(--serif); font-size: 36px; line-height: 1.15; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.hb-sku { font-size: 13px; color: var(--muted-2); letter-spacing: .04em; }
.hb-det-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hb-facts { margin: 0; border-top: 2px solid var(--teal); }
.hb-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hb-fact dt { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.hb-fact dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-align: right; }
.hb .hb-btn-solid { background: var(--teal); color: #fff; border: 0; cursor: pointer; font-family: var(--sans); }
.hb .hb-btn-solid:hover { background: var(--teal-d); color: #fff; }
.hb .hb-btn-block { width: 100%; }

.hb-form-card { background: var(--paper); padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.hb-form-head h2 { font-family: var(--serif); font-size: 32px; line-height: 1.1; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.hb-form-head p { margin-top: 6px; font-size: 15px; color: var(--muted-2); }
.hb-form-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.hb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hb-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hb-field input { width: 100%; height: 48px; padding: 0 14px; font: 400 15.5px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 0; }
.hb-field input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.hb-field input:user-invalid { border-color: #b3261e; }
.hb-form-note { margin: 16px 0; font-size: 13px; color: var(--muted-2); }
.hb-form-card .g-recaptcha { margin-top: 4px; max-width: 100%; overflow: hidden; }
.hb-form-card .hb-btn { width: 100%; }
.hb-alert-zone:empty { display: none; }
.hb-alert { padding: 12px 16px; font-size: 14.5px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.hb-alert.is-wait { background: #fff3d6; color: #6b4b00; }
.hb-alert.is-ok { background: #dff1e3; color: #14532d; }
.hb-alert.is-err { background: #fbe1df; color: #8c1d18; }

.hb-relacionados { background: var(--paper); padding: 120px 0; }

/* ---------- Responsabilidad social ---------- */
.hb-rrss-intro { background: #fff; padding: 96px 0; }
.hb-rrss-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hb-rrss-text { grid-column: span 6; }
.hb-rrss-img { grid-column: 8 / span 5; }
.hb-rrss-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hb-ambitos { background: var(--paper); padding: 110px 0; }
.hb-ambitos-in { max-width: 920px; }
.hb-programas { background: #fff; padding: 120px 0; }
.hb-grid-prog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.hb-prog-img { aspect-ratio: 16 / 10 !important; }
.hb-prog-desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); font-weight: 400; }

@media (max-width: 1199px) {
  .hb-det-grid { gap: 48px; }
}
@media (max-width: 991px) {
  .hb-det { padding: 48px 0 88px; }
  .hb-det-grid { grid-template-columns: 1fr; gap: 56px; }
  .hb-det-side { position: static; }
  .hb-relacionados, .hb-programas { padding: 88px 0; }
  .hb-rrss-intro { padding: 72px 0; }
  .hb-ambitos { padding: 80px 0; }
  .hb-rrss-grid { display: flex; flex-direction: column; gap: 40px; }
  .hb-rrss-img { order: -1; }
  .hb h2.hb-h2s { font-size: 32px; }
}
@media (max-width: 575px) {
  .hb-det { padding: 32px 0 72px; }
  .hb-det-main { gap: 44px; }
  .hb-prose { font-size: 16.5px; }
  .hb-prose-lead { font-size: 17px; }
  .hb h2.hb-h2s { font-size: 28px; }
  .hb-form-card { padding: 28px 20px 24px; }
  .hb-form-row { grid-template-columns: 1fr; }
  .hb-relacionados, .hb-programas { padding: 64px 0; }
  .hb-rrss-intro { padding: 56px 0; }
  .hb-ambitos { padding: 64px 0; }
  .hb-grid-prog { grid-template-columns: 1fr; gap: 44px; }
  .hb-prose td, .hb-prose th { padding: 18px 12px 18px 0; }
}

.hb-cta-sm h2 { font-size: 40px; max-width: 900px; }
@media (max-width: 991px) { .hb-cta-sm h2 { font-size: 32px; } }


/* =====================================================================
   Asesoría, innovación, contacto, eventos
   ===================================================================== */

.hb-pagehead-sub { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; }

/* ---------- Servicios (asesoría) ---------- */
.hb-servicios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.hb-serv { min-width: 0; }
.hb-serv-btn { appearance: none; -webkit-appearance: none; display: flex; flex-direction: column; gap: 20px; width: 100%; padding: 0; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.hb-serv-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.hb-serv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hb-serv-btn:hover .hb-serv-img img { transform: scale(1.03); }
.hb-serv-body { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--teal); padding-top: 16px; }
.hb-serv-n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #7d867f; }
.hb-serv-title { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.hb-serv-btn:hover .hb-serv-title { color: var(--teal-d); }

.hb-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: #fff; color: var(--text); font-family: var(--sans); box-shadow: 0 30px 80px rgba(15,42,41,.35); }
.hb-dialog::backdrop { background: rgba(15,42,41,.72); }
.hb-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 20px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.hb-dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.hb-dialog-close { appearance: none; flex-shrink: 0; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.hb-dialog-close:hover { color: var(--teal); }
.hb-dialog-body { display: flex; flex-direction: column; gap: 20px; padding: 24px 32px 32px; }
.hb-dialog-body img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

/* ---------- Sistemas (innovación) ---------- */
.hb-figura { margin: 0; background: #fff; border: 1px solid var(--line); padding: 24px; }
.hb-figura img { width: 100%; height: auto; }
.hb-sistemas { border-top: 1px solid var(--line-2); }
.hb-sis { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 8fr); gap: 24px 32px; padding: 40px 0; border-bottom: 1px solid var(--line-2); }
.hb-sis-n { font-size: 14px; font-weight: 600; color: #7d867f; padding-top: 10px; }
.hb h3.hb-sis-t { font-family: var(--serif); font-size: 34px; line-height: 1.15; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Contacto ---------- */
.hb-contacto { background: #fff; padding: 88px 0 104px; }
.hb-contacto-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.hb-contacto-info { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hb-contacto-info .hb-fact dd a { color: var(--ink); }
.hb-contacto-info .hb-fact dd a:hover { color: var(--teal); }
.hb-map { position: relative; aspect-ratio: 4 / 3; background: var(--paper); }
.hb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hb-field textarea { width: 100%; padding: 12px 14px; font: 400 15.5px/1.5 var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 0; resize: vertical; min-height: 140px; }
.hb-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.hb-field textarea:user-invalid { border-color: #b3261e; }

/* ---------- Eventos ---------- */
.hb-curso-img.is-evento { aspect-ratio: 4 / 3; }
.hb-curso-img.is-evento img { object-position: top; }
.hb-eventos-sec { padding-top: 96px; background: var(--paper); }

@media (max-width: 991px) {
  .hb-pagehead-sub { font-size: 18px; }
  .hb-servicios { grid-template-columns: 1fr; gap: 48px; }
  .hb-sis { grid-template-columns: 40px minmax(0, 1fr); gap: 16px 20px; padding: 32px 0; }
  .hb-sis .hb-prose { grid-column: 2; }
  .hb h3.hb-sis-t { font-size: 28px; }
  .hb-contacto { padding: 56px 0 88px; }
  .hb-contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .hb-eventos-sec { padding-top: 72px; }
}
@media (max-width: 575px) {
  .hb-pagehead-sub { font-size: 17px; }
  .hb-serv-title { font-size: 24px; }
  .hb-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; }
  .hb-dialog-head { padding: 12px 8px 12px 20px; }
  .hb-dialog-head h2 { font-size: 21px; }
  .hb-dialog-body { padding: 16px 16px 24px; }
  .hb-figura { padding: 12px; }
  .hb-sis { grid-template-columns: 1fr; padding: 28px 0; }
  .hb-sis .hb-prose { grid-column: auto; }
  .hb-sis-n { padding-top: 0; }
  .hb-contacto { padding: 40px 0 72px; }
  .hb-eventos-sec { padding-top: 56px; }
}

.hb .hb-prose > :first-child { margin-top: 0; }

.hb-det-img.is-evento { aspect-ratio: auto; height: auto; object-fit: contain; }
.hb-det-rrss { padding-top: 0; }

/* Campo trampa anti-robots: fuera de pantalla, no visible ni enfocable */
.hb .hb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
