/* ==========================================================================
   EGAC - Diseño "Editorial claro" (opción A)
   Depende de Bootstrap 4.3.1. Todo va bajo body.hp para no afectar otras páginas.
   Tipografías: Source Serif 4 (titulares) + Montserrat (texto y etiquetas).
   ========================================================================== */

body.hp {
    --hp-ink: #1d1b1a;
    --hp-ink-deep: #141211;
    --hp-line: #dcd5cc;
    --hp-paper: #faf8f5;
    --hp-muted: #6b645d;
    --hp-accent: #980034;
    --hp-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --hp-sans: Montserrat, 'Segoe UI', system-ui, sans-serif;
    --hp-gutter: 64px;

    margin: 0;
    color: var(--hp-ink);
    font-family: var(--hp-sans);
    background-color: var(--hp-paper);
}

.hp a { text-decoration: none; }
.hp a:hover { text-decoration: none; }
.hp img { max-width: 100%; }

.hp-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--hp-gutter);
    padding-right: var(--hp-gutter);
}

.hp-label {
    margin: 0;
    font-family: var(--hp-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hp-accent);
}

/* ---- botones ---------------------------------------------------------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--hp-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 16px 28px;
    border: 1.5px solid transparent;
    transition: background-color .15s, color .15s, border-color .15s;
}
.hp-btn svg { flex: none; }
.hp-btn--accent, .hp-btn--solid { background: var(--hp-accent); color: #fff; border-color: var(--hp-accent); }
.hp-btn--accent:hover, .hp-btn--solid:hover { background: var(--hp-ink); border-color: var(--hp-ink); color: #fff; }
.hp-btn--line { background: transparent; color: var(--hp-ink); border-color: var(--hp-ink); }
.hp-btn--line:hover { background: var(--hp-ink); color: #fff; }
.hp-btn--light { background: #fff; color: var(--hp-ink); border-color: #fff; }
.hp-btn--light:hover { background: var(--hp-ink); border-color: var(--hp-ink); color: #fff; }
.hp-btn--line-light { background: transparent; color: #fff; border-color: #fff; }
.hp-btn--line-light:hover { background: #fff; color: var(--hp-ink); }

/* ---- cabecera --------------------------------------------------------- */
.hp-top { background: var(--hp-ink); }
.hp-top .hp-wrap { display: flex; justify-content: flex-end; gap: 28px; padding-top: 10px; padding-bottom: 10px; }
.hp-top a { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.78); }
.hp-top a:hover { color: #fff; }

.hp-nav { background: var(--hp-paper); border-bottom: 1px solid var(--hp-line); position: relative; z-index: 1030; }
.hp-nav .hp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.hp-brand img { display: block; height: 50px; width: auto; max-width: none; }
.hp-toggler { display: none; background: transparent; border: 1.5px solid var(--hp-ink); padding: 10px 12px; line-height: 0; cursor: pointer; }
.hp-toggler span { display: block; width: 22px; height: 2px; background: var(--hp-ink); }
.hp-toggler span + span { margin-top: 5px; }
.hp-menu { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; justify-content: space-between; }
.hp-links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.hp-links a { font-size: 13.5px; font-weight: 500; color: var(--hp-ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.hp-links a:hover, .hp-links a.is-active { color: var(--hp-accent); border-bottom-color: var(--hp-accent); }
.hp-campus { font-size: 13.5px; font-weight: 600; color: #fff; background: var(--hp-accent); padding: 14px 24px; display: block; }
.hp-campus:hover { background: var(--hp-ink); color: #fff; }

/* ---- portada (inicio) ------------------------------------------------- */
.hp-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.hp-hero-copy {
    display: flex; flex-direction: column; justify-content: center; gap: 32px;
    padding: 88px 72px 88px max(var(--hp-gutter), calc((100vw - 1312px) / 2));
}
.hp-hero h1 {
    margin: 0;
    font-family: var(--hp-serif);
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.hp-hero h1 em { font-style: italic; color: var(--hp-accent); }
.hp-hero-lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.65; color: var(--hp-muted); text-wrap: pretty; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hp-hero-photo { position: relative; min-height: 640px; background: var(--hp-ink); }
.hp-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.hp-hero-photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 120px; background: var(--hp-accent); }

/* ---- objetivo --------------------------------------------------------- */
.hp-objective .hp-wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-top: 128px; padding-bottom: 128px; text-align: center; }
.hp-objective .hp-label { color: var(--hp-muted); }
.hp-objective p.hp-statement {
    margin: 0;
    max-width: 1040px;
    font-family: var(--hp-serif);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.28;
    font-weight: 500;
    text-wrap: balance;
}
.hp-objective p.hp-statement em { font-style: italic; color: var(--hp-accent); }

/* ---- cadena de valor -------------------------------------------------- */
.hp-chain { background: var(--hp-ink); color: #fff; }
.hp-chain .hp-wrap { display: flex; flex-direction: column; gap: 64px; padding-top: 96px; padding-bottom: 104px; }
.hp-chain h2 { margin: 0; max-width: 760px; font-family: var(--hp-serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 500; color: #fff; text-wrap: balance; }
.hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hp-step { display: flex; flex-direction: column; gap: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); }
.hp-step .hp-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.hp-step h3 { margin: 0; font-family: var(--hp-serif); font-size: 34px; line-height: 1.1; font-weight: 500; color: #fff; }

/* ---- secciones con rejilla -------------------------------------------- */
.hp-section .hp-wrap { padding-top: 112px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; }
.hp-section--flush .hp-wrap { padding-top: 0; }
.hp-section h2 { margin: 0; max-width: 820px; font-family: var(--hp-serif); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; font-weight: 500; text-wrap: balance; }
.hp-section .hp-label + h2 { margin-top: -8px; }
.hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 8px; margin-top: 32px; }
.hp-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 28px 30px 0; border-top: 1px solid var(--hp-line); }
.hp-card h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
.hp-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--hp-muted); }

/* ---- cierre ----------------------------------------------------------- */
.hp-cta { background: var(--hp-accent); color: #fff; }
.hp-cta .hp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 88px; }
.hp-cta h2 { margin: 0; max-width: 700px; font-family: var(--hp-serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; font-weight: 500; text-wrap: balance; }
.hp-cta .hp-label { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.hp-cta .hp-actions { padding-top: 0; }

/* ---- pie -------------------------------------------------------------- */
.hp-footer { background: var(--hp-ink-deep); color: #fff; }
.hp-footer .hp-wrap { padding-top: 80px; padding-bottom: 40px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1.4fr 1.4fr; gap: 40px; }
.hp-footer-brand .hp-word { font-family: var(--hp-serif); font-size: 56px; line-height: 1; font-weight: 600; color: #fff; margin: 0 0 16px; }
.hp-footer-brand p { margin: 0; max-width: 240px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.65); }
.hp-footer .hp-label { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .18em; margin-bottom: 16px; }
.hp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hp-footer li, .hp-footer li a { font-size: 14px; line-height: 1.6; color: #fff; }
.hp-footer li a:hover { color: #ff8fae; }
.hp-footer .hp-sub { display: block; color: rgba(255,255,255,.6); }
.hp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hp-footer-bottom span { font-size: 12px; color: rgba(255,255,255,.45); }
.hp-social { display: flex; gap: 22px; }
.hp-social a { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.35); }
.hp-social a:hover { color: #fff; border-bottom-color: #fff; }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */

/* ---- migas y cabecera de página --------------------------------------- */
.hp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-muted); margin: 0 0 32px; }
.hp-crumbs a { color: var(--hp-muted); }
.hp-crumbs a:hover { color: var(--hp-accent); }
.hp-crumbs span[aria-current] { color: var(--hp-ink); }
.hp-crumbs i { font-style: normal; opacity: .5; }

.hp-pagehead .hp-wrap { padding-top: 48px; padding-bottom: 72px; }
.hp-pagehead-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.hp-pagehead-copy { display: flex; flex-direction: column; gap: 24px; }
.hp-pagehead h1 { margin: 0; font-family: var(--hp-serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
.hp-frame { position: relative; margin: 0; background: var(--hp-ink); }
.hp-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-frame::after { content: ""; position: absolute; left: -16px; bottom: -16px; width: 88px; height: 88px; background: var(--hp-accent); z-index: -1; }

/* ---- texto largo (contenido editable desde el administrador) ---------- */
.hp-prose { font-size: 16px; line-height: 1.75; color: var(--hp-ink); }
.hp-prose > :first-child { margin-top: 0; }
.hp-prose > :last-child { margin-bottom: 0; }
.hp-prose p { margin: 0 0 1.1em; color: var(--hp-muted); text-align: left; }
.hp-prose strong, .hp-prose b { color: var(--hp-ink); font-weight: 600; }
.hp-prose .hp-accent, .hp-prose strong.hp-accent { color: var(--hp-accent); }
.hp-prose h2, .hp-prose h3, .hp-prose h4 { font-family: var(--hp-serif); font-weight: 500; line-height: 1.2; margin: 1.6em 0 .6em; color: var(--hp-ink); }
.hp-prose ul, .hp-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; color: var(--hp-muted); }
.hp-prose li { margin-bottom: .4em; }
.hp-prose a { color: var(--hp-accent); text-decoration: underline; text-underline-offset: 3px; }
.hp-prose img { height: auto; }
.hp-prose table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 15px; }
.hp-prose td, .hp-prose th { border: 1px solid var(--hp-line); padding: 8px 10px; }

/* ---- paneles y bloques ------------------------------------------------- */
.hp-block .hp-wrap { padding-top: 0; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.hp-panel { background: #fff; border: 1px solid var(--hp-line); padding: 36px 36px 40px; }
.hp-panel--muted { background: #f3efe9; }
.hp-panel h2 { margin: 0 0 20px; font-family: var(--hp-serif); font-size: 30px; line-height: 1.12; font-weight: 500; }
.hp-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hp-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- tarjetas de curso / programa ------------------------------------- */
.hp-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hp-courses--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); transition: border-color .15s, box-shadow .15s; }
.hp-course:hover { border-color: var(--hp-ink); box-shadow: 0 12px 28px rgba(29, 27, 26, .10); }
.hp-course a { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--hp-ink); }
.hp-course img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left; background: var(--hp-paper); }
.hp-course .hp-tag { display: block; margin: 0; padding: 9px 16px; font-size: 12px; font-weight: 600; line-height: 1.4; color: #fff; background: var(--hp-accent); }
.hp-course h3 { margin: 0; padding: 18px 20px 22px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--hp-ink); }
.hp-course:hover h3 { color: var(--hp-accent); }
.hp-course--program h3 { font-family: var(--hp-serif); font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--hp-accent); }

/* ---- catálogo: lateral + resultados ------------------------------------ */
.hp-catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.hp-side { position: sticky; top: 20px; }
.hp-side .hp-label { color: var(--hp-muted); }
.hp-side ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-side button { width: 100%; text-align: left; font-family: var(--hp-sans); font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--hp-ink); background: #fff; border: 1px solid var(--hp-line); padding: 13px 16px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.hp-side button:hover { border-color: var(--hp-ink); }
.hp-side li.is-active button { background: var(--hp-ink); border-color: var(--hp-ink); color: #fff; }
.hp-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--hp-line); }
.hp-results-head h2 { margin: 0; font-family: var(--hp-serif); font-size: 34px; line-height: 1.1; font-weight: 500; }
#Content.hp-courses { min-height: 120px; }
#loader { text-align: center; font-size: 13px; color: var(--hp-muted); min-height: 24px; margin: 20px 0 4px; }
.hp-more { display: flex; justify-content: center; margin-top: 16px; }
.hp-more .hp-btn { cursor: pointer; }

/* ---- ficha del programa ------------------------------------------------ */
.hp-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--hp-line); }
.hp-spec > div { padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hp-spec > div + div { border-left: 1px solid var(--hp-line); }
.hp-spec .hp-label { color: var(--hp-muted); }
.hp-spec strong { font-family: var(--hp-serif); font-size: 28px; line-height: 1.15; font-weight: 500; }
.hp-sku { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--hp-muted); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hp-line); }

/* ---- formulario de contacto ------------------------------------------- */
.hp-form { background: var(--hp-ink); color: #fff; padding: 32px 28px 34px; position: sticky; top: 20px; }
.hp-form h2 { margin: 0 0 20px; font-family: var(--hp-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-align: left; }
.hp-form .form-control { height: auto; border: 1px solid rgba(255,255,255,.28); border-radius: 0; background: rgba(255,255,255,.06); color: #fff; font-family: var(--hp-sans); font-size: 14px; padding: 13px 14px; margin-bottom: 10px; }
.hp-form .form-control::placeholder { color: rgba(255,255,255,.55); }
.hp-form .form-control:focus { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: none; color: #fff; }
.hp-form .g-recaptcha { margin: 6px 0 10px; max-width: 100%; overflow: hidden; }
.hp-form label { display: block; font-size: 13px; color: rgba(255,255,255,.65); margin: 6px 0 16px; }
.hp-form .hp-btn { width: 100%; justify-content: center; cursor: pointer; }

/* ---- formulario claro (página de contacto) ---------------------------- */
.hp-form--light { position: static; background: #fff; color: var(--hp-ink); border: 1px solid var(--hp-line); padding: 36px 36px 40px; }
.hp-form--light h2 { font-family: var(--hp-serif); font-size: 30px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--hp-ink); margin-bottom: 24px; }
.hp-form--light .form-control { background: var(--hp-paper); border-color: var(--hp-line); color: var(--hp-ink); }
.hp-form--light .form-control::placeholder { color: var(--hp-muted); }
.hp-form--light .form-control:focus { background: #fff; border-color: var(--hp-ink); color: var(--hp-ink); }
.hp-form--light textarea.form-control { min-height: 140px; resize: vertical; }
.hp-map { border: 1px solid var(--hp-line); background: #fff; min-height: 460px; }
.hp-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---- avisos de los formularios y campo trampa ------------------------- */
.hp-alert-zone:empty { display: none; }
.hp-alert-zone { margin-bottom: 14px; }
.hp-alert { padding: 12px 16px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.hp-alert.is-wait { background: #fff3d6; color: #6b4b00; }
.hp-alert.is-ok { background: #dff1e3; color: #14532d; }
.hp-alert.is-err { background: #fbe1df; color: #8c1d18; }
.hp-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hp-form button[disabled] { opacity: .6; cursor: wait; }
.hp-facts { margin: 0; display: grid; gap: 22px; }
.hp-facts div { padding-top: 16px; border-top: 1px solid var(--hp-line); }
.hp-facts dt { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hp-muted); }
.hp-facts dd { margin: 0; font-family: var(--hp-serif); font-size: 26px; line-height: 1.2; font-weight: 500; }

/* ---- franja de contacto (páginas interiores) -------------------------- */
.hp-band { background: var(--hp-accent); color: #fff; }
.hp-band .hp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 72px; }
.hp-band p { margin: 0; max-width: 760px; font-family: var(--hp-serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 500; text-wrap: balance; }

/* ---- servicios (Asesoría) ---------------------------------------------- */
.hp-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.hp-service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); }
.hp-service .carousel { background: var(--hp-paper); }
.hp-service .carousel-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hp-service .carousel-control-prev, .hp-service .carousel-control-next { width: 44px; height: 44px; top: 50%; bottom: auto; transform: translateY(-50%); background: var(--hp-ink); opacity: 1; }
.hp-service .carousel-control-prev:hover, .hp-service .carousel-control-next:hover { background: var(--hp-accent); }
.hp-service .carousel-control-prev-icon, .hp-service .carousel-control-next-icon { width: 16px; height: 16px; }
.hp-service-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 26px 28px; }
.hp-service-body h3 { margin: 0; font-family: var(--hp-serif); font-size: 26px; line-height: 1.2; font-weight: 500; }
.hp-service-body button { font-family: var(--hp-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hp-accent); background: none; border: 0; border-bottom: 1.5px solid var(--hp-accent); padding: 0 0 3px; cursor: pointer; }
.hp-service-body button:hover { color: var(--hp-ink); border-bottom-color: var(--hp-ink); }
.hp-modal .modal-content { border-radius: 0; border: 1px solid var(--hp-line); }
.hp-modal .modal-header { border-bottom: 1px solid var(--hp-line); padding: 8px 12px; }
.hp-modal .close { font-size: 32px; }
.hp-modal .modal-body img { display: block; width: 100%; height: auto; }
.hp-modal .modal-body img + img { margin-top: 20px; }

/* ---- sistemas (Innovación) --------------------------------------------- */
.hp-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 24px; }
.hp-system { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--hp-line); padding: 32px 34px 36px; }
.hp-system:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hp-system .hp-tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--hp-accent); margin: 0; }
.hp-system h3 { margin: 0; font-family: var(--hp-serif); font-size: 28px; line-height: 1.15; font-weight: 500; }
.hp-system p, .hp-system ul { margin: 0; font-size: 15px; line-height: 1.7; color: var(--hp-muted); }
.hp-system ul { padding-left: 1.2em; }
.hp-system strong, .hp-system b { color: var(--hp-ink); font-weight: 600; }

/* ---- misión / visión y propuesta de valor (Sobre la escuela) ---------- */
.hp-icon { display: block; width: 56px; height: 56px; margin: 0 0 20px; }
.hp-panel p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--hp-muted); }
.hp-panel p strong { color: var(--hp-accent); font-weight: 600; }
.hp-quote { background: var(--hp-ink); color: #fff; }
.hp-quote .hp-wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 96px; padding-bottom: 104px; }
.hp-quote .hp-label { color: rgba(255,255,255,.6); }
.hp-quote p.hp-statement { margin: 0; max-width: 980px; font-family: var(--hp-serif); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; font-weight: 500; color: #fff; text-wrap: balance; }
.hp-quote p.hp-statement em { font-style: italic; color: #ff8fae; }

/* ---- adaptación ------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hp-catalog { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
    .hp-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-footer-brand { grid-column: 1 / -1; }
    .hp-links { gap: 18px; }
    .hp-hero-copy { padding-right: 48px; }
}
@media (max-width: 991.98px) {
    body.hp { --hp-gutter: 32px; }
    .hp-toggler { display: block; }
    .hp-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 12px; }
    .hp-menu.is-open { display: flex; }
    .hp-links { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
    .hp-links a { font-size: 15px; padding: 8px 0; }
    .hp-campus { text-align: center; }
    .hp-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hp-hero-copy { padding: 56px var(--hp-gutter) 56px; }
    .hp-hero-photo { min-height: 360px; }
    .hp-objective .hp-wrap { padding-top: 88px; padding-bottom: 88px; }
    .hp-steps, .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-section .hp-wrap { padding-top: 80px; padding-bottom: 88px; }
    .hp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-pagehead-grid, .hp-split, .hp-split--even, .hp-catalog { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .hp-side, .hp-form { position: static; }
    .hp-side ul { flex-direction: row; flex-wrap: wrap; }
    .hp-side button { width: auto; }
    .hp-services, .hp-systems { grid-template-columns: minmax(0, 1fr); }
    .hp-panel, .hp-form--light { padding: 26px 22px 30px; }
    .hp-quote .hp-wrap { padding-top: 72px; padding-bottom: 80px; }
    .hp-map, .hp-map iframe { min-height: 340px; }
    .hp-frame::after { left: -8px; bottom: -8px; width: 56px; height: 56px; }
}
@media (max-width: 575.98px) {
    body.hp { --hp-gutter: 20px; }
    .hp-brand img { height: 40px; }
    .hp-hero-lead { font-size: 16px; }
    .hp-steps, .hp-grid, .hp-courses, .hp-courses--2 { grid-template-columns: minmax(0, 1fr); }
    .hp-spec { grid-template-columns: minmax(0, 1fr); }
    .hp-spec > div + div { border-left: 0; border-top: 1px solid var(--hp-line); }
    .hp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hp-btn { width: 100%; justify-content: center; }
    .hp-objective .hp-wrap { padding-top: 64px; padding-bottom: 64px; }
    .hp-chain .hp-wrap { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
    .hp-section .hp-wrap { padding-top: 64px; padding-bottom: 64px; }
    .hp-pagehead .hp-wrap { padding-top: 32px; padding-bottom: 48px; }
    .hp-band .hp-wrap, .hp-cta .hp-wrap { padding-top: 56px; padding-bottom: 56px; }
}
