/* =========================================================
   HJM — Hospital Josefina Martínez
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --hjm-white: #ffffff;
    --hjm-black: #000000;

    --hjm-blue: #174d7c;
    --hjm-blue-light: #79a7cc;
    --hjm-red: #ed1c24;

    --hjm-container: 1440px;
    --hjm-gutter: 24px;

    --hjm-radius-sm: 8px;
    --hjm-radius-md: 16px;
    --hjm-radius-lg: 24px;

    --hjm-transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--hjm-white);
    color: var(--hjm-black);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   GENERAL LAYOUT
   ========================================================= */

.site {
    width: 100%;
    overflow: hidden;
}

.site-main {
    width: 100%;
}

.hjm-container {
    width: min(
        calc(100% - (var(--hjm-gutter) * 2)),
        var(--hjm-container)
    );

    margin-inline: auto;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.screen-reader-text:focus {
    width: auto;
    height: auto;

    padding: 12px 18px;
    margin: 0;

    clip: auto;
    overflow: visible;

    background: #ffffff;
    color: #000000;

    z-index: 999999;
}

/* =========================================================
   HEADER
   ÚNICA DEFINICIÓN — compatible con header.php actual
   ========================================================= */

.hjm-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 100;
}

.hjm-header-top,
.hjm-header-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
}

/* El header necesita más ancho que el contenedor general del sitio */
.hjm-header .hjm-container {
    width: calc(100% - 96px);
    max-width: 1840px;
    margin-inline: auto;
}

/* ---------- FILA 1 ---------- */

.hjm-header-top-inner {
    height: 104px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo: contenido dentro de la fila, nunca invade el separador */
.hjm-logo {
    flex: 0 0 190px;
    width: 190px;
    height: 100%;
    margin-right: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hjm-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hjm-logo img {
    display: block;
    width: 180px;
    height: 86px;
    max-width: 180px;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
}

/* Buscador */
.hjm-search {
    flex: 0 1 500px;
    min-width: 280px;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0 auto 0 0;
    background: #f7f6f4;
    border: 1px solid #dedbd6;
    border-radius: 30px;
    overflow: hidden;
}

.hjm-search-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hjm-search-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    fill: none;
    stroke: #79a7cc;
}

.hjm-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 0 22px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: normal;
}

.hjm-search input::placeholder {
    color: #79a7cc;
    opacity: 1;
}

/* Accesos rápidos */
.hjm-utilities {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 36px;
}

.hjm-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.hjm-utility-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hjm-utility-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    stroke: #79a7cc;
}

.hjm-chevron {
    color: #79a7cc;
}

.hjm-donate-button {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border-radius: 28px;
    background: #ed1c24;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(237, 28, 36, .24);
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition);
}

.hjm-donate-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(237, 28, 36, .30);
}

.hjm-heart {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    display: inline-flex;
}

.hjm-heart svg {
    display: block;
    width: 21px;
    height: 21px;
    max-width: 21px;
    max-height: 21px;
}

/* ---------- FILA 2 ---------- */

.hjm-header-nav-inner {
    height: 62px;
    display: flex;
    align-items: center;
}

.hjm-main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.hjm-main-nav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
}

.hjm-main-nav li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.hjm-main-nav li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    transition: color var(--hjm-transition);
}

.hjm-main-nav li a:hover {
    color: #68a2d0;
}

.hjm-main-nav .hjm-nav-chevron {
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    color: #79a7cc;
    font-size: 14px;
    line-height: 1;
}

.hjm-social {
    flex: 0 0 auto;
    height: 34px;
    margin-left: 30px;
    padding-left: 26px;
    display: flex;
    align-items: center;
    gap: 17px;
    border-left: 1px solid #e7e7e7;
}

.hjm-social a {
    width: 18px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #79a7cc;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

.hjm-social a:hover {
    color: #174d7c;
}

.hjm-social svg {
    display: block;
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
}

/* ---------- RESPONSIVE HEADER ---------- */

@media (max-width: 1500px) {
    .hjm-header .hjm-container {
        width: calc(100% - 48px);
    }

    .hjm-logo {
        flex-basis: 155px;
        width: 155px;
        margin-right: 28px;
    }

    .hjm-logo img {
        width: 148px;
        height: 78px;
        max-width: 148px;
        max-height: 78px;
    }

    .hjm-search {
        flex-basis: 390px;
    }

    .hjm-utilities {
        gap: 18px;
        margin-left: 24px;
    }

    .hjm-main-nav ul {
        gap: 14px;
    }

    .hjm-main-nav li a {
        font-size: 12px;
    }

    .hjm-social {
        gap: 14px;
        margin-left: 20px;
        padding-left: 18px;
    }
}

@media (max-width: 1250px) {
    .hjm-main-nav ul {
        gap: 10px;
    }

    .hjm-main-nav li a {
        font-size: 11px;
    }

    .hjm-social {
        gap: 10px;
        margin-left: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 1200px) {
    .hjm-header-nav {
        display: none;
    }

    .hjm-utility-link {
        display: none;
    }

    .hjm-header-top-inner {
        height: 92px;
    }

    .hjm-logo {
        flex-basis: 140px;
        width: 140px;
        margin-right: 24px;
    }

    .hjm-logo img {
        width: 132px;
        height: 72px;
        max-width: 132px;
        max-height: 72px;
    }

    .hjm-search {
        flex-basis: 420px;
    }

    .hjm-utilities {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .hjm-header .hjm-container {
        width: calc(100% - 32px);
    }

    .hjm-header-top-inner {
        height: 82px;
    }

    .hjm-logo {
        flex-basis: 118px;
        width: 118px;
        margin-right: 0;
    }

    .hjm-logo img {
        width: 112px;
        height: 64px;
        max-width: 112px;
        max-height: 64px;
    }

    .hjm-search {
        display: none;
    }

    .hjm-donate-button {
        height: 42px;
        padding: 0 15px;
        font-size: 13px;
    }
}

/* =========================================================
   HOME — HERO PRINCIPAL / OPCIÓN 3
   Clases correspondientes a front-page.php
   ========================================================= */

.hjm-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(105deg, #62cbea 0%, #b8eaf6 48%, #eaf7fb 76%, #ffffff 100%);
}

.hjm-hero-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), 1540px);
    max-width: 1540px;
    min-height: 550px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
    gap: 72px;
    align-items: center;
    padding-top: 46px;
    padding-bottom: 48px;
}

/* Formas de fondo */
.hjm-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hjm-hero-shape-1 {
    width: 680px;
    height: 680px;
    left: -310px;
    top: -300px;
    background: rgba(40, 153, 211, .16);
}

.hjm-hero-shape-2 {
    width: 720px;
    height: 720px;
    right: 21%;
    bottom: -560px;
    background: rgba(255, 255, 255, .24);
}

.hjm-hero-shape-3 {
    width: 540px;
    height: 540px;
    right: -260px;
    top: -220px;
    background: rgba(255, 255, 255, .54);
}

/* Columna de contenido */
.hjm-hero-content {
    position: relative;
    z-index: 4;
    max-width: 540px;
}

.hjm-hero-eyebrow {
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 50px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hjm-hero-eyebrow-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hjm-hero-eyebrow-icon svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.hjm-hero-title-wrap {
    position: relative;
}

.hjm-hero-title {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    color: #1c6b85;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(48px, 3.55vw, 62px);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 600;
}

.hjm-hero-title em {
    font-weight: 400;
    font-style: italic;
}

.hjm-hero-lead {
    max-width: 530px;
    margin: 0 0 30px;
    color: #275f74;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
}

.hjm-hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.hjm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hjm-button-primary {
    min-height: 48px;
    padding: 0 25px;
    border-radius: 50px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(28,107,133,.18);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hjm-button-primary:hover {
    background: #1c6b85;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(28,107,133,.24);
}

.hjm-button-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: #1c6b85;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.hjm-button-link span {
    font-size: 20px;
    line-height: 1;
}

/* Doodles */
.hjm-hero-doodles {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.hjm-doodle {
    position: absolute;
    display: block;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.hjm-doodle-flower-yellow {
    color: #f5c842;
    font-size: 24px;
    left: 48%;
    top: -12px;
}

.hjm-doodle-flower-blue {
    color: #ffffff;
    font-size: 18px;
    left: 57%;
    top: -2px;
}

.hjm-doodle-heart-red {
    color: #ed1c24;
    font-size: 22px;
    left: 52%;
    bottom: -1px;
    transform: rotate(-12deg);
}

.hjm-doodle-heart-blue {
    color: #3899b5;
    font-size: 16px;
    left: 62%;
    bottom: 7px;
    transform: rotate(12deg);
}

.hjm-doodle-heart-yellow {
    color: #f5c842;
    font-size: 14px;
    left: 68%;
    bottom: 23px;
    transform: rotate(-8deg);
}

.hjm-doodle-flower-small {
    color: #ffffff;
    font-size: 13px;
    left: 73%;
    bottom: 6px;
}

/* Mosaico visual */
.hjm-hero-visual {
    position: relative;
    z-index: 3;
    height: 440px;
    min-width: 0;
    display: grid;
    transform: translateY(-12px);
    grid-template-columns: 1.25fr .92fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.hjm-hero-image {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #dff3fb;
}

.hjm-hero-image-main {
    grid-row: 1 / 3;
}

.hjm-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.hjm-hero-image-main img {
    object-position: center;
}

.hjm-hero-image-doctor img {
    object-position: center 22%;
}

.hjm-hero-slider-next {
    position: absolute;
    z-index: 4;
    right: 14px;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #1c6b85;
    box-shadow: 0 5px 18px rgba(28,107,133,.18);
    cursor: pointer;
}

.hjm-hero-slider-next span {
    position: relative;
    top: -1px;
    font-size: 29px;
    line-height: 1;
}

/* Acreditación */
.hjm-accreditation-card {
    position: absolute;
    z-index: 6;
    left: -92px;
    bottom: -2px;
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 18px 13px 13px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(28,107,133,.16);
}

.hjm-accreditation-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f5c842;
    color: #8d6d0c;
}

.hjm-accreditation-icon svg {
    display: block;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
}

.hjm-accreditation-copy {
    min-width: 0;
    font-family: "Nunito", Arial, sans-serif;
}

.hjm-accreditation-copy strong {
    display: block;
    margin-bottom: 2px;
    color: #1c6b85;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.hjm-accreditation-copy span {
    display: block;
    color: #7aadbe;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

/* Control estricto de SVG del Hero */
.hjm-hero svg {
    max-width: 100%;
    max-height: 100%;
}

/* Franja inferior */
.hjm-hero-highlights {
    position: relative;
    z-index: 8;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #287fc2;
    color: #ffffff;
}

.hjm-hero-highlights-track {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 44px;
    padding: 0 44px;
}

.hjm-hero-highlight {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.hjm-highlight-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #f5c842;
}

/* =========================================================
   HERO — RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .hjm-hero-container {
        width: min(calc(100% - 48px), 1280px);
        grid-template-columns: 1fr 1fr;
        gap: 34px;
        min-height: 520px;
    }

    .hjm-hero-title {
        font-size: clamp(45px, 5vw, 58px);
    }

    .hjm-hero-visual {
        height: 420px;
    }

    .hjm-accreditation-card {
        left: -24px;
    }
}

@media (max-width: 900px) {
    .hjm-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hjm-hero-content {
        max-width: 680px;
    }

    .hjm-hero-visual {
        width: 100%;
        height: 480px;
    }

    .hjm-accreditation-card {
        left: 18px;
    }

    .hjm-hero-highlights {
        overflow-x: auto;
    }

    .hjm-hero-highlights-track {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .hjm-hero-container {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .hjm-hero-eyebrow {
        font-size: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hjm-hero-title {
        font-size: 43px;
    }

    .hjm-hero-lead {
        font-size: 15px;
    }

    .hjm-hero-actions {
        gap: 18px;
    }

    .hjm-hero-visual {
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 310px 180px;
        gap: 12px;
    }

    .hjm-hero-image-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .hjm-hero-image-doctor,
    .hjm-hero-image-medical {
        grid-row: 2;
    }

    .hjm-hero-image {
        border-radius: 20px;
    }

    .hjm-accreditation-card {
        left: 14px;
        bottom: 14px;
        min-width: 235px;
    }

    .hjm-doodle-flower-yellow {
        left: 62%;
    }

    .hjm-doodle-flower-blue {
        left: 73%;
    }

    .hjm-doodle-heart-red {
        left: 63%;
    }

    .hjm-doodle-heart-blue {
        left: 76%;
    }

    .hjm-doodle-heart-yellow {
        left: 84%;
    }

    .hjm-doodle-flower-small {
        display: none;
    }
}


/* =========================================================
   HERO — AJUSTES FINALES
   ========================================================= */

/* Dejamos solo tres elementos infantiles para evitar ruido visual */
.hjm-doodle-heart-blue,
.hjm-doodle-heart-yellow,
.hjm-doodle-flower-small {
    display: none;
}

/* Un poco más de aire en la franja inferior */
.hjm-hero-highlights-track {
    gap: 56px;
    padding-left: 54px;
    padding-right: 54px;
}

/* En tablet/móvil anulamos el desplazamiento de escritorio */
@media (max-width: 900px) {
    .hjm-hero-visual {
        transform: none;
    }

    .hjm-accreditation-card {
        left: 18px;
        bottom: 14px;
    }
}

@media (max-width: 600px) {
    .hjm-accreditation-card {
        left: 14px;
        bottom: 14px;
    }
}

/* =========================================================
   HOME — CIFRAS
   ========================================================= */

.hjm-stats {
    width: 100%;
    background: #f7f7f6;
    border-bottom: 1px solid #e8e5e1;
}

.hjm-stats-inner {
    min-height: 154px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.hjm-stat {
    position: relative;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hjm-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 1px;
    height: 88px;
    background: #ddd9d4;
}

.hjm-stat-number {
    display: block;
    margin: 0 0 9px;
    color: #2387c9;
    font-family: "Lora", Georgia, serif;
    font-size: 58px;
    line-height: .95;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-stat-label {
    display: block;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hjm-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .hjm-stat {
        min-height: 112px;
    }

    .hjm-stat:nth-child(2)::after {
        display: none;
    }

    .hjm-stat:nth-child(-n+2) {
        border-bottom: 1px solid #e4e1dd;
    }

    .hjm-stat-number {
        font-size: 52px;
    }
}

@media (max-width: 520px) {
    .hjm-stats-inner {
        grid-template-columns: 1fr;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hjm-stat {
        min-height: 102px;
        border-bottom: 1px solid #e4e1dd;
    }

    .hjm-stat:last-child {
        border-bottom: 0;
    }

    .hjm-stat::after {
        display: none !important;
    }

    .hjm-stat-number {
        font-size: 48px;
    }
}

/* =========================================================
   HOME — SOBRE NOSOTROS
   ========================================================= */

.hjm-about {
    width: 100%;
    padding: 92px 0 104px;
    background: #ffffff;
}

.hjm-about-inner {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 86px;
    align-items: start;
}

.hjm-about-content {
    padding-top: 6px;
}

.hjm-section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
}

.hjm-section-kicker-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #f9bd2f;
}

.hjm-about-title {
    margin: 0 0 22px;
    color: #103f72;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(42px, 3.2vw, 58px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-about-copy {
    max-width: 590px;
    color: #346b9c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.78;
    font-weight: 500;
}

.hjm-about-copy p {
    margin: 0 0 18px;
}

.hjm-about-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 42px;
}

.hjm-about-button {
    min-width: 214px;
    height: 56px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(40, 127, 194, .22);
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition);
}

.hjm-about-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(40, 127, 194, .28);
}

.hjm-about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 7px;
    border-bottom: 2px solid #91bde0;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
}

.hjm-about-visual {
    min-width: 0;
}

.hjm-about-image {
    position: relative;
    width: 100%;
    height: 258px;
    overflow: hidden;
    border-radius: 24px;
    background: #edf2f5;
}

.hjm-about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 38%;
}

.hjm-about-badge {
    position: absolute;
    left: 18px;
    bottom: 17px;
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    background: #ffffff;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(21, 65, 99, .10);
}

.hjm-about-badge strong {
    font-weight: 800;
}

.hjm-about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.hjm-about-card {
    min-height: 208px;
    padding: 29px 30px 26px;
    border-radius: 22px;
    color: #ffffff;
}

.hjm-about-card-blue {
    background: #12b9d8;
}

.hjm-about-card-yellow {
    background: #ffc900;
}

.hjm-about-card-red {
    width: 100%;
    background: #ed1c24;
    grid-column: 1;
}

.hjm-about-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.hjm-about-card-blue .hjm-about-card-icon {
    background: #128ee8;
}

.hjm-about-card-red .hjm-about-card-icon {
    background: rgba(255, 255, 255, .14);
}

.hjm-about-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.hjm-about-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.hjm-about-card p {
    margin: 0;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .hjm-about {
        padding: 76px 0 84px;
    }

    .hjm-about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .hjm-about-copy {
        font-size: 16px;
    }

    .hjm-about-card {
        padding: 24px;
    }
}

@media (max-width: 900px) {
    .hjm-about-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hjm-about-copy {
        max-width: 680px;
    }

    .hjm-about-image {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .hjm-about {
        padding: 58px 0 64px;
    }

    .hjm-about-title {
        font-size: 40px;
    }

    .hjm-about-copy {
        font-size: 15px;
        line-height: 1.7;
    }

    .hjm-about-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
    }

    .hjm-about-image {
        height: 230px;
        border-radius: 18px;
    }

    .hjm-about-cards {
        grid-template-columns: 1fr;
    }

    .hjm-about-card-red {
        grid-column: auto;
    }

    .hjm-about-card {
        min-height: 180px;
        border-radius: 18px;
    }
}

/* =========================================================
   HOME — ADMISIÓN
   ========================================================= */

.hjm-admission {
    width: 100%;
    padding: 92px 0 104px;
    background: #f8f8f7;
    border-top: 1px solid #ece9e4;
    border-bottom: 1px solid #ece9e4;
}

.hjm-admission-top {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: 72px;
    align-items: start;
}

.hjm-admission-content {
    padding-top: 4px;
}

.hjm-admission-title {
    margin: 0 0 22px;
    color: #103f72;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(42px, 3vw, 56px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-admission-lead {
    max-width: 620px;
    margin: 0;
    color: #346b9c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
}

.hjm-admission-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 26px;
    margin-top: 42px;
}

.hjm-admission-button {
    min-width: 190px;
    height: 54px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(40, 127, 194, .22);
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition);
}

.hjm-admission-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(40, 127, 194, .28);
}

.hjm-admission-link,
.hjm-admission-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 7px;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.hjm-admission-link {
    color: #174d7c;
    border-bottom: 2px solid #8eb9dc;
}

.hjm-admission-download {
    color: #9ab7d0;
}

.hjm-admission-image {
    width: 100%;
    height: 385px;
    overflow: hidden;
    border-radius: 22px;
    background: #e9edef;
}

.hjm-admission-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ---------- PASOS ---------- */

.hjm-admission-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 78px;
}

.hjm-admission-steps::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #65b5df;
    z-index: 0;
}

.hjm-admission-step {
    position: relative;
    z-index: 1;
    min-height: 230px;
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #dedbd4;
    border-radius: 20px;
    background: #ffffff;
}

.hjm-admission-step-number {
    width: 64px;
    height: 64px;
    margin: -2px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    outline: 3px solid #64b4df;
    border-radius: 50%;
    background: #56b4d5;
    color: #ffffff;
    font-family: "Lora", Georgia, serif;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 8px 15px rgba(39, 125, 181, .18);
}

.hjm-admission-step h3 {
    margin: 0 0 11px;
    color: #103f72;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.hjm-admission-step p {
    max-width: 260px;
    margin: 0;
    color: #527da4;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .hjm-admission {
        padding: 76px 0 84px;
    }

    .hjm-admission-top {
        gap: 48px;
    }

    .hjm-admission-lead {
        font-size: 16px;
    }

    .hjm-admission-image {
        height: 340px;
    }

    .hjm-admission-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 60px;
    }

    .hjm-admission-steps::before {
        display: none;
    }
}

@media (max-width: 800px) {
    .hjm-admission-top {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hjm-admission-image {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .hjm-admission {
        padding: 58px 0 64px;
    }

    .hjm-admission-title {
        font-size: 40px;
    }

    .hjm-admission-lead {
        font-size: 15px;
    }

    .hjm-admission-actions {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 32px;
    }

    .hjm-admission-image {
        height: 240px;
        border-radius: 18px;
    }

    .hjm-admission-steps {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .hjm-admission-step {
        min-height: 210px;
    }
}

/* =========================================================
   HOME — SERVICIOS HOSPITALARIOS
   ========================================================= */

.hjm-services {
    width: 100%;
    padding: 92px 0 106px;
    background: #ffffff;
}

.hjm-services-heading {
    max-width: 700px;
}

.hjm-services-title {
    margin: 0 0 20px;
    color: #103f72;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(42px, 3vw, 56px);
    line-height: 1.06;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-services-lead {
    max-width: 650px;
    margin: 0;
    color: #346b9c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
}

.hjm-services-grid {
    display: grid;
    grid-template-columns: 1.55fr .75fr .75fr 1fr;
    grid-template-rows: 354px 214px;
    column-gap: 18px;
    row-gap: 18px;
    margin-top: 72px;
    position: relative;
}

.hjm-service-featured {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #174d7c;
}

.hjm-service-featured img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hjm-service-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,77,124,.10) 0%, rgba(20,76,129,.56) 48%, rgba(12,60,111,.94) 100%);
}

.hjm-service-featured-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 27px;
    z-index: 2;
    color: #ffffff;
}

.hjm-service-featured-label {
    display: inline-flex;
    min-height: 25px;
    padding: 0 14px;
    align-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.20);
    color: #ffd04a;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .05em;
}

.hjm-service-featured h3 {
    max-width: 430px;
    margin: 15px 0 13px;
    color: #ffffff;
    font-family: "Lora", Georgia, serif;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 400;
}

.hjm-service-featured p {
    max-width: 430px;
    margin: 0 0 17px;
    color: rgba(255,255,255,.92);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

.hjm-service-featured a {
    color: #ffd04a;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.hjm-service-card {
    min-width: 0;
    padding: 25px 24px 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dedbd4;
    border-radius: 20px;
    background: #ffffff;
}

.hjm-service-card:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.hjm-service-card:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}

.hjm-service-card:nth-of-type(4) {
    grid-column: 4;
    grid-row: 1;
}

.hjm-service-card-small:nth-of-type(5) {
    grid-column: 1;
    grid-row: 2;
    width: 66%;
    justify-self: start;
}

.hjm-service-card-small:nth-of-type(6) {
    grid-column: 1;
    grid-row: 2;
    width: 66%;
    justify-self: end;
    transform: translateX(52%);
}

.hjm-service-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
}

.hjm-service-icon svg {
    width: 27px;
    height: 27px;
    display: block;
}

.hjm-service-icon-yellow { background: #ffd66a; }
.hjm-service-icon-cyan { background: #0ebbd9; }
.hjm-service-icon-red { background: #ff3e47; }
.hjm-service-icon-blue { background: #118ee8; }
.hjm-service-icon-darkblue { background: #216da9; }

.hjm-service-card h3 {
    margin: 0 0 11px;
    color: #103f72;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.hjm-service-card p {
    margin: 0 0 18px;
    color: #527da4;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

.hjm-service-card a {
    margin-top: auto;
    color: #83acd0;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.hjm-services-image-bottom {
    grid-column: 3 / 5;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #e8ecef;
    transform: translateX(-86px);
    width: calc(100% + 86px);
}

.hjm-services-image-bottom img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 35%;
}

@media (max-width: 1180px) {
    .hjm-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .hjm-service-featured {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 340px;
    }

    .hjm-service-card:nth-of-type(n),
    .hjm-service-card-small:nth-of-type(n) {
        width: auto;
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        transform: none;
        min-height: 230px;
    }

    .hjm-services-image-bottom {
        grid-column: 2 / 4;
        grid-row: auto;
        min-height: 230px;
        width: auto;
        transform: none;
    }
}

@media (max-width: 800px) {
    .hjm-services {
        padding: 72px 0 82px;
    }

    .hjm-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 52px;
    }

    .hjm-service-featured {
        grid-column: 1 / -1;
    }

    .hjm-services-image-bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hjm-services {
        padding: 58px 0 64px;
    }

    .hjm-services-title {
        font-size: 40px;
    }

    .hjm-services-lead {
        font-size: 15px;
    }

    .hjm-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 42px;
    }

    .hjm-service-featured,
    .hjm-service-card:nth-of-type(n),
    .hjm-service-card-small:nth-of-type(n),
    .hjm-services-image-bottom {
        grid-column: 1;
    }

    .hjm-service-featured {
        min-height: 360px;
    }

    .hjm-service-card {
        min-height: 220px;
    }

    .hjm-services-image-bottom {
        min-height: 220px;
    }
}

/* =========================================================
   HOME — ZONA DE VIDEOS
   ========================================================= */

.hjm-videos {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 88px 0 94px;
    background: #12bad8;
}

.hjm-videos-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(25, 142, 207, .18);
}

.hjm-videos-shape-top {
    width: 430px;
    height: 430px;
    top: -250px;
    right: -80px;
}

.hjm-videos-shape-bottom {
    width: 290px;
    height: 290px;
    left: 55px;
    bottom: -205px;
    background: rgba(0, 174, 205, .26);
}

.hjm-videos-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas:
        "intro featured"
        "grid grid";
    column-gap: 72px;
    row-gap: 54px;
    align-items: center;
}

.hjm-videos-intro {
    grid-area: intro;
    max-width: 610px;
    padding-left: 4px;
}

.hjm-videos-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 19px;
    color: #ffd047;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .12em;
}

.hjm-videos-kicker-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #ffd047;
}

.hjm-videos-title {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.2vw, 58px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-videos-lead {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.92);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 500;
}

.hjm-videos-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.hjm-videos-button,
.hjm-videos-youtube {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition), background var(--hjm-transition);
}

.hjm-videos-button {
    min-width: 220px;
    padding: 0 28px;
    background: #ffd047;
    color: #174d7c;
    box-shadow: 0 10px 20px rgba(23,77,124,.16);
}

.hjm-videos-youtube {
    min-width: 142px;
    padding: 0 25px;
    gap: 8px;
    border: 2px solid rgba(255,255,255,.55);
    color: #ffffff;
}

.hjm-videos-button:hover,
.hjm-videos-youtube:hover {
    transform: translateY(-1px);
}

.hjm-video-featured {
    grid-area: featured;
    position: relative;
    display: block;
    width: 100%;
    height: 365px;
    overflow: hidden;
    border-radius: 23px;
    background: #174d7c;
}

.hjm-video-featured img,
.hjm-video-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.hjm-video-featured:hover img,
.hjm-video-card:hover img {
    transform: scale(1.025);
}

.hjm-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,48,76,.04) 35%, rgba(10,52,86,.76) 100%);
}

.hjm-video-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #174d7c;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 7px 20px rgba(10,55,87,.16);
}

.hjm-video-play-large {
    width: 72px;
    height: 72px;
    font-size: 21px;
}

.hjm-video-featured-caption {
    position: absolute;
    z-index: 3;
    left: 22px;
    right: 22px;
    bottom: 20px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.hjm-videos-grid {
    grid-area: grid;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hjm-video-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 184px;
    overflow: hidden;
    border-radius: 18px;
    background: #174d7c;
}

.hjm-video-card-copy {
    position: absolute;
    z-index: 3;
    left: 17px;
    right: 17px;
    bottom: 14px;
    display: block;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
}

.hjm-video-card-copy small {
    display: block;
    margin-bottom: 5px;
    color: #ffd047;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .09em;
}

.hjm-video-card-copy strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .hjm-videos {
        padding: 76px 0 82px;
    }

    .hjm-videos-inner {
        column-gap: 44px;
        row-gap: 42px;
    }

    .hjm-video-featured {
        height: 330px;
    }

    .hjm-video-card {
        height: 170px;
    }
}

@media (max-width: 850px) {
    .hjm-videos-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "featured"
            "grid";
        gap: 38px;
    }

    .hjm-videos-intro {
        max-width: 680px;
    }

    .hjm-video-featured {
        height: 390px;
    }

    .hjm-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hjm-video-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hjm-videos {
        padding: 58px 0 64px;
    }

    .hjm-videos-title {
        font-size: 40px;
    }

    .hjm-videos-lead {
        font-size: 15px;
        line-height: 1.7;
    }

    .hjm-videos-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 30px;
    }

    .hjm-videos-button,
    .hjm-videos-youtube {
        min-width: 0;
        width: 100%;
    }

    .hjm-video-featured {
        height: 260px;
        border-radius: 18px;
    }

    .hjm-video-play-large {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .hjm-videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hjm-video-card,
    .hjm-video-card:last-child {
        grid-column: 1;
        height: 205px;
    }
}


/* =========================================================
   HOME — CONVENIOS
   ========================================================= */

.hjm-convenios {
    width: 100%;
    background: #f7f7f6;
    border-bottom: 1px solid #e8e5e1;
}

.hjm-convenios-inner {
    padding-top: 78px;
    padding-bottom: 78px;
}

.hjm-convenios-heading {
    max-width: 620px;
    margin-bottom: 64px;
}

.hjm-convenios-title {
    margin: 16px 0 20px;
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(42px, 3.2vw, 54px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hjm-convenios-lead {
    max-width: 610px;
    margin: 0;
    color: #4d7eae;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
}

.hjm-convenios-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hjm-convenio-card {
    min-width: 0;
    min-height: 180px;
    padding: 30px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #ddd9d1;
    border-radius: 20px;
}

.hjm-convenio-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dceafa;
    color: #14558d;
}

.hjm-convenio-icon svg {
    display: block;
    width: 29px !important;
    height: 29px !important;
    max-width: 29px !important;
    max-height: 29px !important;
}

.hjm-convenio-card h3 {
    margin: 0 0 8px;
    color: #123f73;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.hjm-convenio-card p {
    margin: 0;
    color: #8aadd0;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.hjm-convenios-footer {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.hjm-convenios-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 5px;
    border-bottom: 2px solid #9bbfe0;
    color: #24689e;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    transition: color .25s ease, border-color .25s ease;
}

.hjm-convenios-link:hover {
    color: #174d7c;
    border-color: #174d7c;
}

@media (max-width: 1000px) {
    .hjm-convenios-inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hjm-convenios-heading {
        margin-bottom: 46px;
    }

    .hjm-convenios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hjm-convenios-inner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .hjm-convenios-heading {
        margin-bottom: 34px;
    }

    .hjm-convenios-title {
        font-size: 40px;
    }

    .hjm-convenios-lead {
        font-size: 15px;
    }

    .hjm-convenios-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hjm-convenio-card {
        min-height: 164px;
    }

    .hjm-convenios-footer {
        margin-top: 36px;
    }
}


/* =========================================================
   HOME — DONACIONES
   ========================================================= */

.hjm-donaciones {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #10bdd0;
}

.hjm-donaciones::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 31%;
    height: 100%;
    background: #4bcbd5;
    border-bottom-left-radius: 75% 55%;
    pointer-events: none;
}

.hjm-donaciones-shape {
    position: absolute;
    pointer-events: none;
}

.hjm-donaciones-shape-top {
    top: -215px;
    right: 9%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(0, 163, 196, .30);
}

.hjm-donaciones-shape-bottom {
    left: 5%;
    bottom: -170px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(73, 205, 214, .42);
}

.hjm-donaciones-inner {
    position: relative;
    z-index: 2;
    min-height: 500px;
    padding-top: 78px;
    padding-bottom: 78px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(560px, 1.05fr);
    gap: 72px;
    align-items: center;
}

.hjm-donaciones-content {
    min-width: 0;
    max-width: 720px;
}

.hjm-section-kicker-light {
    color: #ffffff;
}

.hjm-section-kicker-light .hjm-section-kicker-dot {
    background: #ffca32;
}

.hjm-donaciones-title {
    margin: 18px 0 22px;
    color: #ffffff;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.3vw, 58px);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hjm-donaciones-lead {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 500;
}

.hjm-donaciones-actions {
    margin-top: 42px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hjm-donaciones-button {
    min-height: 58px;
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.hjm-donaciones-button:hover {
    transform: translateY(-1px);
}

.hjm-donaciones-button-primary {
    background: #f71920;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(13, 85, 112, .16);
}

.hjm-donaciones-button-secondary {
    border: 2px solid rgba(255, 255, 255, .55);
    color: #ffffff;
    background: transparent;
}

.hjm-donaciones-visual {
    position: relative;
    min-width: 0;
    padding-bottom: 48px;
}

.hjm-donaciones-image {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 28px;
    background: #d8edf2;
}

.hjm-donaciones-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hjm-donaciones-stats {
    position: absolute;
    left: -22px;
    bottom: 0;
    width: min(430px, 68%);
    padding: 26px 32px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(20, 72, 104, .08);
}

.hjm-donaciones-stat {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.hjm-donaciones-stat strong {
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: 38px;
    line-height: 1;
    font-weight: 500;
}

.hjm-donaciones-stat span {
    color: #315f91;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.hjm-donaciones-stat-separator {
    height: 1px;
    margin: 18px 0;
    background: #e5e1db;
}

@media (max-width: 1100px) {
    .hjm-donaciones-inner {
        grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
        gap: 44px;
    }

    .hjm-donaciones-image {
        height: 360px;
    }

    .hjm-donaciones-stats {
        width: min(410px, 78%);
    }
}

@media (max-width: 900px) {
    .hjm-donaciones-inner {
        min-height: 0;
        padding-top: 64px;
        padding-bottom: 64px;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hjm-donaciones-content {
        max-width: 680px;
    }

    .hjm-donaciones-visual {
        padding-bottom: 52px;
    }

    .hjm-donaciones-stats {
        left: 22px;
    }
}

@media (max-width: 600px) {
    .hjm-donaciones-inner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .hjm-donaciones-title {
        font-size: 42px;
    }

    .hjm-donaciones-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .hjm-donaciones-actions {
        margin-top: 32px;
        gap: 14px;
    }

    .hjm-donaciones-button {
        min-height: 54px;
        padding: 0 28px;
        font-size: 15px;
    }

    .hjm-donaciones-image {
        height: 300px;
        border-radius: 22px;
    }

    .hjm-donaciones-visual {
        padding-bottom: 0;
    }

    .hjm-donaciones-stats {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 28px);
        margin: -34px auto 0;
        padding: 22px 24px;
        border-radius: 20px;
    }

    .hjm-donaciones-stat {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .hjm-donaciones-stat strong {
        font-size: 32px;
    }
}


/* =========================================================
   HOME — VOLUNTARIADO
   ========================================================= */

.hjm-voluntariado {
    width: 100%;
    padding: 92px 0 104px;
    background: #ffffff;
}

.hjm-voluntariado-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 86px;
    align-items: center;
}

.hjm-voluntariado-visual {
    width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 26px;
    background: #edf3f6;
}

.hjm-voluntariado-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hjm-voluntariado-content {
    max-width: 610px;
}

.hjm-voluntariado-title {
    margin: 0 0 22px;
    color: #103f72;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.2vw, 58px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -.025em;
}

.hjm-voluntariado-lead {
    max-width: 590px;
    margin: 0;
    color: #346b9c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
}

.hjm-voluntariado-tags {
    display: grid;
    grid-template-columns: 1.15fr 1.12fr 1.18fr;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.hjm-voluntariado-tag {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    background: #e7f5fc;
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
}

.hjm-voluntariado-tag-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hjm-voluntariado-tag-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    max-width: 21px;
    max-height: 21px;
}

.hjm-voluntariado-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hjm-voluntariado-button {
    min-width: 205px;
    height: 56px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(40, 127, 194, .20);
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition);
}

.hjm-voluntariado-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(40, 127, 194, .27);
}

.hjm-voluntariado-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 2px solid #91bde0;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .hjm-voluntariado {
        padding: 76px 0 84px;
    }

    .hjm-voluntariado-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .hjm-voluntariado-visual {
        height: 420px;
    }

    .hjm-voluntariado-lead {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .hjm-voluntariado-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hjm-voluntariado-visual {
        height: 420px;
    }

    .hjm-voluntariado-content {
        max-width: 680px;
    }
}

@media (max-width: 600px) {
    .hjm-voluntariado {
        padding: 58px 0 64px;
    }

    .hjm-voluntariado-visual {
        height: 300px;
        border-radius: 20px;
    }

    .hjm-voluntariado-title {
        font-size: 42px;
    }

    .hjm-voluntariado-lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .hjm-voluntariado-tags {
        margin-top: 28px;
        gap: 10px;
    }

    .hjm-voluntariado-tag {
        width: 100%;
        min-height: 44px;
    }

    .hjm-voluntariado-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
    }
}

/* =========================================================
   HOME — NOTICIAS Y PRENSA
   ========================================================= */

.hjm-news {
    width: 100%;
    background: #f8f7f4;
    border-bottom: 1px solid #ebe7df;
}

.hjm-news-inner {
    padding-top: 92px;
    padding-bottom: 104px;
}

.hjm-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 66px;
}

.hjm-news-title {
    margin: 16px 0 0;
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.2vw, 58px);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hjm-news-all,
.hjm-news-featured-footer a,
.hjm-news-meta a {
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.hjm-news-all {
    flex: 0 0 auto;
    margin-bottom: 4px;
    padding-bottom: 5px;
    border-bottom: 2px solid #a8c8e6;
    font-size: 14px;
}

.hjm-news-layout {
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    gap: 34px;
    align-items: start;
}

.hjm-news-featured {
    overflow: hidden;
    border: 1px solid #ded8ce;
    border-radius: 22px;
    background: #ffffff;
}

.hjm-news-featured-image {
    height: 300px;
    overflow: hidden;
    background: #eef3f5;
}

.hjm-news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.hjm-news-featured-content {
    padding: 30px 30px 24px;
}

.hjm-news-category {
    width: fit-content;
    min-height: 24px;
    padding: 4px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .025em;
}

.hjm-news-category-blue {
    background: #319fba;
}

.hjm-news-category-green {
    background: #42c49b;
}

.hjm-news-category-yellow {
    background: #d9a80d;
}

.hjm-news-category-red {
    background: #ed3737;
}

.hjm-news-featured h3 {
    margin: 24px 0 14px;
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: 26px;
    line-height: 1.28;
    font-weight: 500;
}

.hjm-news-featured p {
    margin: 0 0 26px;
    color: #4778a8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.hjm-news-featured-footer {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e6e1d9;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
}

.hjm-news-featured-footer time,
.hjm-news-meta time {
    color: #86add0;
    font-weight: 700;
}

.hjm-news-featured-footer a {
    padding-bottom: 4px;
    border-bottom: 2px solid #a8c8e6;
    font-size: 12px;
}

.hjm-news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
}

.hjm-news-item {
    min-width: 0;
    min-height: 143px;
    padding: 0 0 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e6e1d9;
}

.hjm-news-item h3 {
    margin: 13px 0 15px;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
}

.hjm-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
}

.hjm-news-meta a {
    flex: 0 0 auto;
    font-size: 11px;
    color: #79a7cc;
}

@media (max-width: 1100px) {
    .hjm-news-layout {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 28px;
    }

    .hjm-news-list {
        column-gap: 24px;
    }

    .hjm-news-featured-image {
        height: 280px;
    }
}

@media (max-width: 900px) {
    .hjm-news-inner {
        padding-top: 72px;
        padding-bottom: 80px;
    }

    .hjm-news-heading {
        margin-bottom: 46px;
    }

    .hjm-news-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hjm-news-featured {
        max-width: 680px;
    }
}

@media (max-width: 650px) {
    .hjm-news-inner {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .hjm-news-heading {
        align-items: flex-start;
        margin-bottom: 36px;
    }

    .hjm-news-title {
        font-size: 42px;
    }

    .hjm-news-all {
        margin-top: 30px;
        font-size: 12px;
    }

    .hjm-news-featured-image {
        height: 230px;
    }

    .hjm-news-featured-content {
        padding: 24px 22px 20px;
    }

    .hjm-news-featured h3 {
        font-size: 23px;
    }

    .hjm-news-list {
        grid-template-columns: 1fr;
    }

    .hjm-news-item {
        min-height: 0;
    }
}

/* =========================================================
   HOME — CUIDADOS CONECTADOS
   ========================================================= */

.hjm-connected {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ebe7df;
}

.hjm-connected-inner {
    min-height: 650px;
    padding-top: 94px;
    padding-bottom: 94px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 86px;
    align-items: center;
}

.hjm-connected-content {
    min-width: 0;
}

.hjm-connected-title {
    margin: 17px 0 24px;
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.2vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hjm-connected-lead {
    margin: 0;
    color: #4778a8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 500;
}

.hjm-connected-features {
    margin-top: 30px;
    display: grid;
    gap: 14px;
}

.hjm-connected-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.hjm-connected-feature-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf6fc;
    color: #2888ca;
}

.hjm-connected-feature-icon svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.hjm-connected-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hjm-connected-button {
    min-height: 50px;
    padding: 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2b86c8;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(43, 134, 200, .24);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.hjm-connected-link {
    padding-bottom: 4px;
    border-bottom: 2px solid #a8c8e6;
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.hjm-connected-browser {
    min-width: 0;
    overflow: hidden;
    border: 2px solid #174d7c;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(23, 77, 124, .10);
}

.hjm-connected-browser-bar {
    height: 52px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: #174d7c;
}

.hjm-connected-browser-dots {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hjm-connected-browser-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.hjm-connected-browser-dot-red {
    background: #ed1c24;
}

.hjm-connected-browser-dot-yellow {
    background: #f5c842;
}

.hjm-connected-browser-dot-green {
    background: #48c5a3;
}

.hjm-connected-browser-url {
    color: #d8e8f5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.hjm-connected-browser-image {
    height: 395px;
    overflow: hidden;
}

.hjm-connected-browser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1100px) {
    .hjm-connected-inner {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        gap: 48px;
    }

    .hjm-connected-lead br {
        display: none;
    }

    .hjm-connected-browser-image {
        height: 350px;
    }
}

@media (max-width: 900px) {
    .hjm-connected-inner {
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 76px;
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hjm-connected-content {
        max-width: 680px;
    }

    .hjm-connected-browser {
        width: 100%;
    }

    .hjm-connected-browser-image {
        height: 420px;
    }
}

@media (max-width: 600px) {
    .hjm-connected-inner {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .hjm-connected-title {
        font-size: 42px;
    }

    .hjm-connected-lead {
        font-size: 16px;
        line-height: 1.7;
    }

    .hjm-connected-feature {
        align-items: flex-start;
        font-size: 13px;
    }

    .hjm-connected-feature-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .hjm-connected-actions {
        gap: 18px;
    }

    .hjm-connected-browser-bar {
        height: 46px;
        padding: 0 18px;
        gap: 16px;
    }

    .hjm-connected-browser-dots {
        gap: 8px;
    }

    .hjm-connected-browser-dot {
        width: 10px;
        height: 10px;
    }

    .hjm-connected-browser-url {
        font-size: 10px;
    }

    .hjm-connected-browser-image {
        height: 280px;
    }
}

/* =========================================================
   HOME — ÚLTIMOS ARTÍCULOS
   ========================================================= */

.hjm-articles {
    width: 100%;
    background: #f8f7f4;
    border-bottom: 1px solid #e4dfd6;
}

.hjm-articles-inner {
    padding-top: 82px;
    padding-bottom: 82px;
}

.hjm-articles-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 58px;
}

.hjm-articles-title {
    margin: 15px 0 0;
    color: #123f73;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(44px, 3.2vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hjm-articles-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hjm-articles-filter {
    min-width: 74px;
    min-height: 38px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd7ce;
    border-radius: 999px;
    background: #ffffff;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.hjm-articles-filter.is-active {
    border-color: #2b86c8;
    background: #2b86c8;
    color: #ffffff;
}

.hjm-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hjm-article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ded8ce;
    border-radius: 18px;
    background: #ffffff;
}

.hjm-article-image {
    height: 170px;
    overflow: hidden;
    background: #e9eef0;
}

.hjm-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hjm-article-content {
    padding: 22px 22px 20px;
}

.hjm-article-category {
    display: block;
    margin-bottom: 13px;
    color: #1762a0;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
}

.hjm-article-card h3 {
    min-height: 42px;
    margin: 0 0 11px;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
}

.hjm-article-card p {
    min-height: 38px;
    margin: 0 0 18px;
    color: #4778a8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 500;
}

.hjm-article-footer {
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #e5e0d8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
}

.hjm-article-footer time {
    color: #79a7cc;
    font-weight: 700;
}

.hjm-article-footer a {
    color: #79a7cc;
    font-weight: 700;
}

.hjm-articles-more {
    margin-top: 60px;
    text-align: center;
}

.hjm-articles-more a {
    padding-bottom: 5px;
    border-bottom: 2px solid #a8c8e6;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .hjm-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hjm-articles-inner {
        padding-top: 62px;
        padding-bottom: 66px;
    }

    .hjm-articles-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 38px;
    }

    .hjm-articles-title {
        font-size: 42px;
    }

    .hjm-articles-grid {
        grid-template-columns: 1fr;
    }

    .hjm-article-image {
        height: 220px;
    }

    .hjm-articles-more {
        margin-top: 42px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.hjm-footer {
    width: 100%;
    background: #eefaff;
    color: #397a9d;
    border-top: 1px solid #e5dfd4;
}

.hjm-footer-inner {
    padding-top: 86px;
    padding-bottom: 38px;
}

.hjm-footer-top {
    display: grid;
    grid-template-columns: 1.55fr .9fr .9fr .9fr;
    gap: 72px;
    align-items: start;
    padding-bottom: 66px;
}

.hjm-footer-brand {
    min-width: 0;
}

.hjm-footer-logo {
    width: 170px;
    display: inline-block;
    margin-bottom: 18px;
}

.hjm-footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.hjm-footer-description {
    margin: 0;
    color: #4d88a7;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 500;
}

.hjm-footer-contact {
    margin-top: 36px;
    display: grid;
    gap: 5px;
    color: #4d88a7;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.hjm-footer-contact strong {
    color: #174d7c;
    font-weight: 800;
}

.hjm-footer-contact span {
    font-weight: 500;
}

.hjm-footer-column {
    display: grid;
    align-content: start;
    gap: 24px;
}

.hjm-footer-column h2 {
    margin: 0 0 4px;
    color: #76b3ca;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .13em;
}

.hjm-footer-column a {
    width: fit-content;
    color: #4d88a7;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
    transition: color .2s ease;
}

.hjm-footer-column a:hover {
    color: #174d7c;
}

.hjm-footer-bottom {
    min-height: 102px;
    padding-top: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid #ddd7cd;
}

.hjm-footer-copyright {
    margin: 0;
    color: #86b9cc;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.hjm-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hjm-footer-social a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd7cd;
    border-radius: 50%;
    color: #4d88a7;
    background: transparent;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.hjm-footer-social a:hover {
    color: #174d7c;
    border-color: #a9c7d6;
    transform: translateY(-1px);
}

.hjm-footer-social svg {
    width: 19px;
    height: 19px;
}

@media (max-width: 1100px) {
    .hjm-footer-top {
        grid-template-columns: 1.35fr repeat(3, .85fr);
        gap: 42px;
    }

    .hjm-footer-description br {
        display: none;
    }
}

@media (max-width: 850px) {
    .hjm-footer-inner {
        padding-top: 66px;
    }

    .hjm-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 36px;
    }

    .hjm-footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .hjm-footer-inner {
        padding-top: 52px;
        padding-bottom: 28px;
    }

    .hjm-footer-top {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-bottom: 48px;
    }

    .hjm-footer-brand {
        grid-column: auto;
    }

    .hjm-footer-logo {
        width: 150px;
    }

    .hjm-footer-description,
    .hjm-footer-contact,
    .hjm-footer-column a {
        font-size: 15px;
    }

    .hjm-footer-bottom {
        padding-top: 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hjm-footer-social {
        gap: 12px;
        flex-wrap: wrap;
    }

    .hjm-footer-social a {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   HOME — ANIMACIONES DE ENTRADA
   ========================================================= */

html.hjm-motion-ready .hjm-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity .7s cubic-bezier(.2, .65, .3, 1),
        transform .7s cubic-bezier(.2, .65, .3, 1);
    transition-delay: var(--hjm-delay, 0ms);
    will-change: opacity, transform;
}

html.hjm-motion-ready .hjm-reveal.hjm-reveal-image {
    transform: translate3d(0, 18px, 0) scale(.985);
    transition-duration: .85s;
}

html.hjm-motion-ready .hjm-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

html.hjm-motion-ready .hjm-counting {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    html.hjm-motion-ready .hjm-reveal {
        transform: translate3d(0, 14px, 0);
        transition-duration: .55s;
    }

    html.hjm-motion-ready .hjm-reveal.hjm-reveal-image {
        transform: translate3d(0, 12px, 0) scale(.99);
        transition-duration: .65s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.hjm-motion-ready .hjm-reveal,
    html.hjm-motion-ready .hjm-reveal.hjm-reveal-image {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   MISIÓN Y VALORES — HERO INTERIOR
   Página: Quiénes somos > Misión y Valores
   ========================================================= */

.hjm-mv-page {
    width: 100%;
    background: #ffffff;
}

.hjm-mv-breadcrumbs {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e5e1;
    background: #ffffff;
    color: #8aaac0;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.hjm-mv-breadcrumbs-inner {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hjm-mv-breadcrumbs a {
    color: #9bb6c8;
}

.hjm-mv-breadcrumbs-current {
    color: #174d7c;
    font-weight: 700;
}

.hjm-mv-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(105deg, #35c1df 0%, #66d0e7 55%, #cdeefa 100%);
}

.hjm-mv-hero::before,
.hjm-mv-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hjm-mv-hero::before {
    width: 520px;
    height: 520px;
    left: -355px;
    bottom: -350px;
    background: rgba(22, 157, 211, .18);
}

.hjm-mv-hero::after {
    width: 620px;
    height: 620px;
    right: -420px;
    top: -315px;
    background: rgba(255, 255, 255, .28);
}

.hjm-mv-hero-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), 1540px);
    min-height: 590px;
    margin-inline: auto;
    padding: 66px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 84px;
    align-items: center;
}

.hjm-mv-hero-content {
    max-width: 610px;
}

.hjm-mv-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 23px;
    color: #176e91;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hjm-mv-eyebrow::before {
    content: "";
    width: 25px;
    height: 3px;
    flex: 0 0 25px;
    border-radius: 3px;
    background: #f5c842;
}

.hjm-mv-title {
    max-width: 590px;
    margin: 0 0 24px;
    color: #07517e;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(58px, 4.7vw, 82px);
    line-height: .98;
    font-weight: 600;
    letter-spacing: -.045em;
}

.hjm-mv-title em {
    font-weight: 400;
    font-style: italic;
}

.hjm-mv-lead {
    max-width: 590px;
    margin: 0;
    color: #276f92;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    font-weight: 500;
}

.hjm-mv-actions {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hjm-mv-primary {
    min-height: 50px;
    padding: 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(25, 111, 172, .20);
    transition: transform var(--hjm-transition), box-shadow var(--hjm-transition);
}

.hjm-mv-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(25, 111, 172, .27);
}

.hjm-mv-home-link {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(23, 77, 124, .45);
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.hjm-mv-visual {
    position: relative;
    min-width: 0;
}

.hjm-mv-image {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    border-radius: 24px;
    background: #d7edf4;
}

.hjm-mv-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hjm-mv-years {
    position: absolute;
    z-index: 3;
    top: 26px;
    right: 24px;
    min-height: 66px;
    padding: 10px 15px 10px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    box-shadow: 0 9px 24px rgba(21, 65, 99, .13);
}

.hjm-mv-years-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f02535;
    color: #ffffff;
}

.hjm-mv-years-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.hjm-mv-years-copy strong,
.hjm-mv-years-copy span {
    display: block;
}

.hjm-mv-years-copy strong {
    margin-bottom: 2px;
    color: #174d7c;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
}

.hjm-mv-years-copy span {
    color: #789db7;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.hjm-mv-shield {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 22px 0 0;
    background: #f5c842;
    color: #174d7c;
}

.hjm-mv-shield svg {
    width: 38px;
    height: 38px;
    display: block;
}

@media (max-width: 1100px) {
    .hjm-mv-hero-inner {
        width: min(calc(100% - 48px), 1280px);
        gap: 46px;
        min-height: 540px;
    }

    .hjm-mv-title {
        font-size: clamp(52px, 6vw, 70px);
    }

    .hjm-mv-image {
        height: 390px;
    }
}

@media (max-width: 850px) {
    .hjm-mv-hero-inner {
        grid-template-columns: 1fr;
        gap: 46px;
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .hjm-mv-hero-content {
        max-width: 680px;
    }

    .hjm-mv-image {
        height: 430px;
    }
}

@media (max-width: 600px) {
    .hjm-mv-breadcrumbs {
        min-height: 42px;
        font-size: 11px;
    }

    .hjm-mv-hero-inner {
        width: calc(100% - 32px);
        padding-top: 42px;
        padding-bottom: 46px;
    }

    .hjm-mv-eyebrow {
        font-size: 10px;
        letter-spacing: .10em;
    }

    .hjm-mv-title {
        font-size: 48px;
    }

    .hjm-mv-lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .hjm-mv-actions {
        gap: 20px;
        margin-top: 30px;
    }

    .hjm-mv-image {
        height: 315px;
        border-radius: 19px;
    }

    .hjm-mv-years {
        top: 14px;
        right: 14px;
        transform: scale(.88);
        transform-origin: top right;
    }

    .hjm-mv-shield {
        width: 66px;
        height: 66px;
        border-radius: 0 18px 0 0;
    }

    .hjm-mv-shield svg {
        width: 31px;
        height: 31px;
    }
}

/* =========================================================
   MISIÓN Y VALORES — MISIÓN Y VISIÓN
   ========================================================= */

.hjm-mv-purpose {
    width: 100%;
    background: #ffffff;
    padding: 92px 0 104px;
}

.hjm-mv-purpose-inner {
    max-width: 1440px;
}

.hjm-mv-purpose-heading {
    max-width: 900px;
    margin: 0 auto 68px;
    text-align: center;
}

.hjm-mv-purpose-kicker {
    margin: 0 0 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hjm-mv-purpose-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5c842;
}

.hjm-mv-purpose-heading h2 {
    margin: 0 0 17px;
    color: #174d7c;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(42px, 3.4vw, 58px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.035em;
}

.hjm-mv-purpose-heading > p:last-child {
    margin: 0;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}

.hjm-mv-purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.hjm-mv-purpose-card {
    overflow: hidden;
    border: 1px solid #ded9d1;
    border-radius: 20px;
    background: #ffffff;
}

.hjm-mv-purpose-photo {
    position: relative;
    height: 258px;
    overflow: hidden;
    background: #edf3f6;
}

.hjm-mv-purpose-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hjm-mv-purpose-label {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    min-height: 30px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 18px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 5px 14px rgba(20, 65, 95, .10);
}

.hjm-mv-purpose-label-blue {
    background: #287fc2;
}

.hjm-mv-purpose-label-red {
    background: #ed1c2e;
}

.hjm-mv-purpose-body {
    padding: 34px 34px 36px;
}

.hjm-mv-purpose-body h3 {
    max-width: 590px;
    margin: 0 0 17px;
    color: #174d7c;
    font-family: "Lora", Georgia, serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.025em;
}

.hjm-mv-purpose-body > p {
    margin: 0 0 20px;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.hjm-mv-purpose-list,
.hjm-mv-values-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hjm-mv-purpose-list li,
.hjm-mv-values-list li {
    position: relative;
    min-height: 20px;
    padding-left: 26px;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.hjm-mv-purpose-list li::before,
.hjm-mv-values-list li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5f4fb;
    color: #287fc2;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.hjm-mv-values-list li:first-child::before {
    content: "♥";
    background: #ffe8eb;
    color: #ed1c2e;
    font-size: 9px;
}

.hjm-mv-values-list strong {
    margin-right: 8px;
    color: #174d7c;
    font-weight: 900;
}

.hjm-mv-values-list span {
    color: #5486a5;
}

.hjm-mv-purpose-link {
    width: fit-content;
    padding-bottom: 3px;
    display: inline-block;
    border-bottom: 1px solid #a7cadc;
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.hjm-mv-purpose-link:hover {
    color: #174d7c;
    border-bottom-color: #174d7c;
}

@media (max-width: 900px) {
    .hjm-mv-purpose {
        padding: 76px 0 84px;
    }

    .hjm-mv-purpose-heading {
        margin-bottom: 52px;
    }

    .hjm-mv-purpose-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .hjm-mv-purpose {
        padding: 62px 0 68px;
    }

    .hjm-mv-purpose-heading {
        margin-bottom: 40px;
    }

    .hjm-mv-purpose-heading h2 {
        font-size: 40px;
    }

    .hjm-mv-purpose-heading > p:last-child br {
        display: none;
    }

    .hjm-mv-purpose-photo {
        height: 205px;
    }

    .hjm-mv-purpose-body {
        padding: 27px 24px 29px;
    }

    .hjm-mv-purpose-body h3 {
        font-size: 25px;
    }

    .hjm-mv-values-list li {
        display: block;
    }

    .hjm-mv-values-list strong,
    .hjm-mv-values-list span {
        display: inline;
    }
}

/* =========================================================
   MISIÓN Y VALORES — VOLUNTARIADO
   ========================================================= */

.hjm-mv-volunteer {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 104px 0 116px;
    background: #fbfaf7;
}

.hjm-mv-volunteer::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -52px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #eef9fb;
    pointer-events: none;
}

.hjm-mv-volunteer-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    gap: 76px;
    align-items: center;
}

.hjm-mv-volunteer-content {
    max-width: 620px;
}

.hjm-mv-volunteer-kicker {
    margin: 0 0 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hjm-mv-volunteer-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f5c842;
}

.hjm-mv-volunteer-content h2 {
    margin: 0 0 23px;
    color: #174d7c;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(45px, 3.35vw, 60px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.035em;
}

.hjm-mv-volunteer-lead {
    max-width: 600px;
    margin: 0;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.78;
    font-weight: 500;
}

.hjm-mv-volunteer-list {
    list-style: none;
    margin: 25px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.hjm-mv-volunteer-list li {
    position: relative;
    padding-left: 29px;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.hjm-mv-volunteer-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4f3fb;
    color: #287fc2;
    font-size: 10px;
    font-weight: 900;
}

.hjm-mv-volunteer-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hjm-mv-volunteer-button {
    min-height: 50px;
    padding: 0 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 27px;
    background: #287fc2;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(40, 127, 194, .22);
}

.hjm-mv-volunteer-button:hover {
    color: #ffffff;
}

.hjm-mv-volunteer-link {
    padding-bottom: 5px;
    border-bottom: 1px solid #9cc4d9;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.hjm-mv-volunteer-collage {
    position: relative;
    width: 100%;
    height: 515px;
}

.hjm-mv-volunteer-photo {
    position: absolute;
    overflow: hidden;
    background: #edf4f5;
    box-shadow: 0 14px 34px rgba(22, 73, 105, .12);
}

.hjm-mv-volunteer-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
}

.hjm-mv-volunteer-photo-main {
    top: 0;
    left: 0;
    width: 67%;
    height: 390px;
    border-radius: 21px;
}

.hjm-mv-volunteer-photo-main img {
    object-position: center;
}

.hjm-mv-volunteer-photo-small {
    right: 0;
    bottom: 0;
    width: 62%;
    height: 300px;
    border: 5px solid #ffffff;
    border-radius: 20px;
}

.hjm-mv-volunteer-photo-small img {
    object-position: center;
}

.hjm-mv-volunteer-heart,
.hjm-mv-volunteer-star {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 18px rgba(30, 77, 105, .13);
}

.hjm-mv-volunteer-heart {
    top: 88px;
    right: 17px;
    width: 51px;
    height: 51px;
    background: #ed1c2e;
    color: #ffffff;
    font-size: 21px;
}

.hjm-mv-volunteer-star {
    top: 205px;
    left: 58%;
    width: 61px;
    height: 61px;
    background: #f5c842;
    color: #174d7c;
    font-size: 22px;
}

@media (max-width: 1000px) {
    .hjm-mv-volunteer {
        padding: 82px 0 94px;
    }

    .hjm-mv-volunteer-inner {
        gap: 48px;
    }

    .hjm-mv-volunteer-collage {
        height: 455px;
    }

    .hjm-mv-volunteer-photo-main {
        height: 340px;
    }

    .hjm-mv-volunteer-photo-small {
        height: 260px;
    }
}

@media (max-width: 800px) {
    .hjm-mv-volunteer-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hjm-mv-volunteer-content {
        max-width: 680px;
    }

    .hjm-mv-volunteer-collage {
        max-width: 680px;
        height: 500px;
    }
}

@media (max-width: 600px) {
    .hjm-mv-volunteer {
        padding: 64px 0 76px;
    }

    .hjm-mv-volunteer-content h2 {
        font-size: 40px;
    }

    .hjm-mv-volunteer-content h2 br {
        display: none;
    }

    .hjm-mv-volunteer-lead {
        font-size: 14px;
    }

    .hjm-mv-volunteer-actions {
        margin-top: 32px;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hjm-mv-volunteer-collage {
        height: 365px;
    }

    .hjm-mv-volunteer-photo-main {
        width: 78%;
        height: 275px;
        border-radius: 17px;
    }

    .hjm-mv-volunteer-photo-small {
        width: 67%;
        height: 205px;
        border-width: 4px;
        border-radius: 16px;
    }

    .hjm-mv-volunteer-heart {
        top: 52px;
        right: 4px;
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .hjm-mv-volunteer-star {
        top: 145px;
        left: 54%;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* =========================================================
   MISIÓN Y VALORES — DONACIONES
   ========================================================= */

.hjm-mv-donations {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 104px 0 112px;
    background: #3bb8cf;
}

.hjm-mv-donations::before,
.hjm-mv-donations::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hjm-mv-donations::before {
    width: 300px;
    height: 300px;
    left: 78px;
    bottom: -165px;
    background: rgba(245, 200, 66, .16);
}

.hjm-mv-donations::after {
    width: 500px;
    height: 500px;
    right: -190px;
    top: -280px;
    background: rgba(26, 151, 190, .18);
}

.hjm-mv-donations-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    gap: 88px;
    align-items: center;
}

.hjm-mv-donations-content {
    max-width: 650px;
}

.hjm-mv-donations-kicker {
    margin: 0 0 21px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hjm-mv-donations-kicker::before {
    content: "";
    width: 27px;
    height: 2px;
    flex: 0 0 27px;
    border-radius: 2px;
    background: #f5c842;
}

.hjm-mv-donations-content h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(48px, 3.7vw, 64px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.035em;
}

.hjm-mv-donations-lead {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-family: "Nunito", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
}

.hjm-mv-donations-actions {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 19px;
    flex-wrap: wrap;
}

.hjm-mv-donations-primary,
.hjm-mv-donations-secondary {
    min-height: 52px;
    padding: 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}

.hjm-mv-donations-primary {
    gap: 10px;
    background: #ed1c2e;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(156, 26, 37, .20);
}

.hjm-mv-donations-primary:hover {
    color: #ffffff;
}

.hjm-mv-donations-primary span {
    font-size: 16px;
}

.hjm-mv-donations-secondary {
    min-width: 155px;
    background: #ffffff;
    color: #174d7c;
}

.hjm-mv-donations-visual {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 22px;
    background: #cbe7ed;
}

.hjm-mv-donations-visual > img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hjm-mv-donations-stat {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    min-width: 280px;
    min-height: 64px;
    padding: 9px 18px 8px 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 0 17px 0 0;
    background: #ffffff;
}

.hjm-mv-donations-stat strong {
    color: #ed1c2e;
    font-family: "Lora", Georgia, serif;
    font-size: 40px;
    line-height: 1;
    font-weight: 500;
}

.hjm-mv-donations-stat span {
    color: #287fc2;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .hjm-mv-donations {
        padding: 86px 0 94px;
    }

    .hjm-mv-donations-inner {
        gap: 50px;
    }

    .hjm-mv-donations-visual {
        height: 360px;
    }
}

@media (max-width: 800px) {
    .hjm-mv-donations-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hjm-mv-donations-content {
        max-width: 680px;
    }

    .hjm-mv-donations-visual {
        max-width: 720px;
        height: 400px;
    }
}

@media (max-width: 600px) {
    .hjm-mv-donations {
        padding: 66px 0 74px;
    }

    .hjm-mv-donations-content h2 {
        font-size: 42px;
    }

    .hjm-mv-donations-content h2 br {
        display: none;
    }

    .hjm-mv-donations-lead {
        font-size: 14px;
    }

    .hjm-mv-donations-actions {
        margin-top: 32px;
        align-items: flex-start;
    }

    .hjm-mv-donations-primary,
    .hjm-mv-donations-secondary {
        min-height: 49px;
        padding-inline: 24px;
    }

    .hjm-mv-donations-visual {
        height: 285px;
        border-radius: 18px;
    }

    .hjm-mv-donations-stat {
        min-width: 235px;
        min-height: 58px;
        gap: 11px;
        padding-right: 13px;
    }

    .hjm-mv-donations-stat strong {
        font-size: 34px;
    }

    .hjm-mv-donations-stat span {
        font-size: 10px;
    }
}

/* =========================================================
   MISIÓN Y VALORES — TAMBIÉN TE PUEDE INTERESAR
   ========================================================= */

.hjm-mv-related {
    width: 100%;
    padding: 94px 0 128px;
    background: #ffffff;
}

.hjm-mv-related-inner {
    max-width: 1440px;
}

.hjm-mv-related-title {
    margin: 0 0 66px;
    text-align: center;
    color: #174d7c;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(38px, 3.05vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hjm-mv-related-title strong {
    font-weight: 700;
}

.hjm-mv-related-title em {
    margin-left: 8px;
    font-weight: 400;
    font-style: italic;
}

.hjm-mv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 29px;
}

.hjm-mv-related-card {
    overflow: hidden;
    border: 1px solid #ddd7cb;
    border-radius: 20px;
    background: #ffffff;
}

.hjm-mv-related-image {
    position: relative;
    width: 100%;
    height: 202px;
    overflow: hidden;
    background: #edf2f4;
}

.hjm-mv-related-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hjm-mv-related-tag {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    min-height: 26px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hjm-mv-related-tag-blue {
    background: #287fc2;
}

.hjm-mv-related-tag-yellow {
    background: #f5c842;
    color: #174d7c;
}

.hjm-mv-related-tag-red {
    background: #ed1c2e;
}

.hjm-mv-related-body {
    min-height: 242px;
    padding: 25px 25px 20px;
    display: flex;
    flex-direction: column;
}

.hjm-mv-related-body h3 {
    margin: 0 0 13px;
    color: #174d7c;
    font-family: "Lora", Georgia, serif;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -.015em;
}

.hjm-mv-related-body > p {
    margin: 0 0 20px;
    color: #5486a5;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 500;
}

.hjm-mv-related-meta {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e7e1d8;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
}

.hjm-mv-related-meta span {
    color: #77a1ba;
    font-weight: 600;
}

.hjm-mv-related-meta a {
    padding-bottom: 3px;
    border-bottom: 1px solid #a8cada;
    color: #287fc2;
    font-weight: 900;
}

.hjm-mv-related-footer {
    margin-top: 45px;
    display: flex;
    justify-content: center;
}

.hjm-mv-related-button {
    min-height: 46px;
    padding: 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #174d7c;
    border-radius: 25px;
    background: #ffffff;
    color: #174d7c;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.hjm-mv-related-button:hover {
    background: #174d7c;
    color: #ffffff;
}

@media (max-width: 1000px) {
    .hjm-mv-related {
        padding: 82px 0 106px;
    }

    .hjm-mv-related-title {
        margin-bottom: 52px;
    }

    .hjm-mv-related-grid {
        gap: 20px;
    }

    .hjm-mv-related-image {
        height: 185px;
    }

    .hjm-mv-related-body {
        padding-inline: 21px;
    }
}

@media (max-width: 800px) {
    .hjm-mv-related-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin-inline: auto;
    }

    .hjm-mv-related-image {
        height: 280px;
    }

    .hjm-mv-related-body {
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .hjm-mv-related {
        padding: 66px 0 82px;
    }

    .hjm-mv-related-title {
        margin-bottom: 40px;
        font-size: 36px;
    }

    .hjm-mv-related-title strong,
    .hjm-mv-related-title em {
        display: block;
    }

    .hjm-mv-related-title em {
        margin: 5px 0 0;
    }

    .hjm-mv-related-image {
        height: 215px;
    }

    .hjm-mv-related-body h3 {
        font-size: 19px;
    }

    .hjm-mv-related-footer {
        margin-top: 36px;
    }
}



/* =========================================================
   HEADER — ÁREA ACADÉMICA (dos columnas, exclusivo)
   ========================================================= */
@media (min-width: 1201px) {
  .hjm-dropdown-nav .sub-menu.hjm-academic-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 0;
    width: min(790px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    padding: 30px 38px;
    align-items: start;
  }
}
.hjm-dropdown-nav .hjm-academic-menu > .hjm-academic-group {
  display: block;
  min-width: 0;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}
.hjm-dropdown-nav .hjm-academic-heading {
  display: block;
  padding: 0 0 12px;
  margin: 0 0 13px;
  border-bottom: 1px solid #e2edf2;
  color: #174d7c;
  font-family: "Nunito", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  cursor: default;
}
.hjm-dropdown-nav .hjm-academic-links {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  visibility: visible;
  opacity: 1;
  transform: none;
  box-shadow: none;
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hjm-dropdown-nav .hjm-academic-links > li {
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
}
.hjm-dropdown-nav .hjm-academic-links > li > a {
  display: block;
  white-space: normal;
  padding: 9px 0;
  color: #174d7c;
  font-family: "Nunito", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.hjm-dropdown-nav .hjm-academic-links > li > a:hover,
.hjm-dropdown-nav .hjm-academic-links > li > a:focus-visible { color: #168fae; }
@media (max-width: 1200px) {
  .hjm-dropdown-nav .sub-menu.hjm-academic-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 20px;
    gap: 22px;
  }
}

/* Encabezado persistente, incluida la fila de navegación. */
body.admin-bar .hjm-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .hjm-header { top: 46px; }
  #wpadminbar { position: fixed; }
}

/* =========================================================
   HJM — AJUSTES POR COMPONENTE SEGÚN GRÁFICAS Y GUIDELINES
   Se conservan las jerarquías propias de cada plantilla.
   ========================================================= */
:root { --hjm-cta-primary-size: 14px; --hjm-cta-secondary-size: 14px; --hjm-cta-tertiary-size: 13px; }
/* 1. Acción principal: Nunito 800, pill de 48px. */
body main :is(.hjm-button-primary,.hjm-about-button,.hjm-admission-button,.hjm-videos-button,.hjm-donaciones-button,.hjm-voluntariado-button,.hjm-connected-button,.hjm-mv-primary,.hjm-mv-volunteer-button,.hjm-mv-donations-primary,.hjm-mv-donations-secondary,.hjm-mv-related-button,.hjm-kine-btn,.hjm-odon-button,.hjm-staff-btn,.hjm-staff-outline,.hjm-hist-btn,.hjm-hist-donate,.hjm-hist-cta-outline,.hjm-sello-btn,.hjm-sello-cta-outline,.hjm-sello-cta-white,.hjm-vp-btn,.hjm-dona-btn,.hjm-egreso-btn,.hjm-mm-btn-primary,.hjm-mm-btn-outline,.hjm-np-press-primary,.hci-hero-btn,.hdd-btn,.hi-btn,.hjl-btn,.hpg-hero-button,.hra-btn,.huc-btn) {
    font-size: var(--hjm-cta-primary-size) !important;
    font-weight: 800 !important;
    line-height: 20px !important;
    min-height: 48px !important;
    height: auto !important;
    min-width: 0;
    padding: 14px 30px !important;
    white-space: normal;
    text-align: center;
}
/* 2. Exploración: texto de menor peso que la acción principal. */
body main :is(.hjm-button-link,.hjm-about-link,.hjm-admission-link,.hjm-voluntariado-link,.hjm-connected-link,.hjm-convenios-link,.hjm-news-all,.hjm-mv-home-link,.hjm-mv-volunteer-link,.hjm-kine-link,.hjm-odon-textlink,.hjm-staff-text-link,.hjm-hist-textlink,.hjm-sello-link,.hjm-vp-text-link,.hi-link,.hji-hero-link) {
    font-size: var(--hjm-cta-secondary-size) !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}
body main .hjm-admission-download { font-size: var(--hjm-cta-tertiary-size); font-weight: 600; line-height: 20px; }
body.home .hjm-about-button, body.home .hjm-admission-button { min-width: 0; }
body.home :is(.hjm-hero-actions,.hjm-about-actions,.hjm-admission-actions) { gap: 16px 20px; flex-wrap: wrap; }
/* Cuerpo del home según HOME-Opcion3; las tarjetas mantienen escala compacta. */
body.home .hjm-hero-lead { font-size: 18px; font-weight: 400; line-height: 1.75; }
body.home :is(.hjm-about-copy,.hjm-admission-lead,.hjm-services-lead,.hjm-videos-lead,.hjm-convenios-lead,.hjm-donaciones-lead,.hjm-voluntariado-lead,.hjm-connected-lead) { font-size: 16px; font-weight: 400; line-height: 1.8; }
body.home :is(.hjm-about-title,.hjm-admission-title,.hjm-services-title,.hjm-videos-title,.hjm-convenios-title,.hjm-donaciones-title,.hjm-voluntariado-title,.hjm-news-title,.hjm-connected-title) { font-size: clamp(36px,3.2vw,46px); font-weight: 600; line-height: 1.15; }
body.home .hjm-about-card { min-height: 178px; padding: 24px; }
body.home .hjm-about-card-icon { width: 42px; height: 42px; margin-bottom: 14px; }
body.home .hjm-about-card h3 { font-size: 15px; line-height: 1.35; margin-bottom: 10px; }
body.home .hjm-about-card p { font-size: 13px; line-height: 1.65; font-weight: 400; }
body.home .hjm-service-card h3 { font-size: 15px; line-height: 1.3; font-weight: 800; }
body.home .hjm-service-card p { font-size: 13px; line-height: 1.65; font-weight: 400; }
body.home .hjm-service-card a { font-size: 13px; line-height: 1.4; font-weight: 600; }
body.home .hjm-service-featured h3 { font-size: 25px; line-height: 1.25; font-weight: 600; }
body.home .hjm-service-featured p { font-size: 14px; line-height: 1.65; }
body.home .hjm-service-featured a { font-size: 13px; line-height: 1.4; font-weight: 800; }
/* Grilla de 16 columnas sin traslaciones ni tarjetas superpuestas. */
@media (min-width:1181px) {
    body.home .hjm-services-grid { grid-template-columns: repeat(16,minmax(0,1fr)); grid-template-rows: minmax(354px,auto) minmax(214px,auto); }
    body.home .hjm-service-featured { grid-column:1 / 7; grid-row:1; }
    body.home .hjm-service-card:nth-of-type(2) { grid-column:7 / 10; grid-row:1; }
    body.home .hjm-service-card:nth-of-type(3) { grid-column:10 / 13; grid-row:1; }
    body.home .hjm-service-card:nth-of-type(4) { grid-column:13 / 17; grid-row:1; }
    body.home .hjm-service-card-small:nth-of-type(5) { grid-column:1 / 5; grid-row:2; width:auto; transform:none; justify-self:stretch; }
    body.home .hjm-service-card-small:nth-of-type(6) { grid-column:5 / 9; grid-row:2; width:auto; transform:none; justify-self:stretch; }
    body.home .hjm-services-image-bottom { grid-column:9 / 17; grid-row:2; width:auto; transform:none; }
}
body.home .hjm-service-card { min-height: 0; }
body.home .hjm-service-card a { flex-shrink:0; }
@media (max-width:1180px) { body.home .hjm-service-card { min-height:230px; } }
@media (max-width:600px) {
    body.home .hjm-service-card { min-height:220px; }
    body.home .hjm-about-copy, body.home .hjm-admission-lead, body.home .hjm-services-lead { font-size:16px; }
}

/* La fotografía acompaña la altura del contenido; no fuerza la fila. */
@media (min-width:1181px) {
 body.home .hjm-services-image-bottom { position:relative; min-height:0; }
 body.home .hjm-services-image-bottom img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
}

/* Header proportions from the approved design: 72px + 48px. */
.hjm-header .hjm-header-top {height:72px;box-sizing:border-box;}
.hjm-header .hjm-header-top-inner {height:100%;}
.hjm-header .hjm-logo {flex-basis:120px;width:120px;margin-right:28px;}
.hjm-header .hjm-logo img {width:112px;height:60px;max-width:112px;max-height:60px;}
.hjm-header .hjm-search {height:40px;flex-basis:340px;}
.hjm-header .hjm-search-icon {height:38px;flex-basis:44px;width:44px;}
.hjm-header .hjm-search input {height:38px;}
.hjm-header .hjm-donate-button {height:40px;}
.hjm-header .hjm-header-nav {height:48px;box-sizing:border-box;}
.hjm-header .hjm-header-nav-inner {height:100%;min-height:0;}
@media(max-width:1100px) {
 .hjm-header .hjm-header-nav {height:auto;min-height:48px;}
 .hjm-header .hjm-header-nav-inner {height:auto;min-height:47px;}
 .hjm-header .hjm-mobile-nav-toggle {height:40px;margin:3px 0 4px;}
}
@media(max-width:767px) {
 .hjm-header .hjm-logo {flex-basis:112px;width:112px;margin-right:0;}
 .hjm-header .hjm-donate-button {height:40px;}
}


/* HJM · ancho útil y lectura en teléfonos. Escritorio conserva su composición. */
@media (max-width: 767px) {
    :root { --hjm-page-padding: 16px; --hjm-gutter: 16px; }

    /* Un solo margen exterior: evita sumar ancho reducido + padding del tema. */
    body .hjm-container {
        width: calc(100% - 32px) !important;
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }
    body .hjm-container .hjm-container {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    body :is(.hjm-kine-container, .hjm-search-container, .hji-container, .hjm-pub-container, .hi-container, .hjm-dona-wrap, .hjm-sello-wide, .rs-container, .hjm-mv-hero-inner) {
        width: calc(100% - 32px) !important;
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }
    body .hjm-sello-wide .hjm-sello-wide { width: 100% !important; }

    /* Lectura desde el mismo eje izquierdo, sin alterar los iconos y cifras. */
    body main :is(h1, h2, p),
    body :is(.hjm-contacto-hero-copy, .hjm-contacto-section-head, .hjm-contacto-card) :is(h1, h2, p),
    body :is(.hjm-kine-section-heading, .hi-section-head, .hjm-ha-closing-inner, .hjm-pub-intro, .cc-section-head) {
        text-align: left;
    }
    body :is(.hjm-kine-section-heading, .hi-section-head, .hjm-pub-intro) {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    body .hjm-ha-closing-inner::after { margin-left: 0; }
    body :is(.hjm-hero-content, .hjm-mv-hero-content, .hjm-kine-hero-copy, .hjm-ha-hero-copy) { min-width: 0; max-width: 100%; }
    body :is(.hjm-hero-actions, .hjm-mv-actions, .hjm-about-actions, .hjm-admission-actions) { justify-content: flex-start; align-items: flex-start; }

    /* Formularios y tarjetas: padding interior compacto, independiente del margen. */
    body :is(.hjm-contacto-breadcrumb, .hjm-contacto-hero, .hjm-contacto-section-head, .hjm-contacto-grid) { padding-left: 16px; padding-right: 16px; }
    body .hjm-contacto-hero-media { margin-left: 0; margin-right: 0; }
    body .hjm-contacto-card, body .rs-document .rs-form { padding-left: 16px; padding-right: 16px; }
    body .hjm-contacto-grid { gap: 20px; }
    body .hjm-pub-card { min-width: 0; }
    body .hjm-cc :is(.cc-guide-body, .cc-support-box) { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767px) {
    body.home .hjm-voluntariado-tags { display: flex; flex-wrap: wrap; gap: 8px; }
    body.home .hjm-voluntariado-tag { width: auto; max-width: 100%; flex: 0 1 auto; justify-content: flex-start; white-space: normal; padding: 10px 14px; }
}

/* Entradas sutiles en páginas interiores. */
html.hjm-motion-ready .hjm-reveal-interior {
    transform: translate3d(0, 14px, 0);
    transition-duration: .55s;
    transition-delay: 0ms;
}
html.hjm-motion-ready .hjm-reveal-interior.is-visible {
    transform: none;
    will-change: auto;
}
@media (prefers-reduced-motion: reduce), print {
    html.hjm-motion-ready .hjm-reveal-interior {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
