
/* =========================================================
   ACTIVE HOLISTIC - NUESTRA METODOLOGÍA
   ========================================================= */

.ahm-section,
.ahm-section * {
    box-sizing: border-box;
}

.ahm-section {
    width: 100%;
    padding: 10px 0 34px;
    background: transparent;
    color: #102f43;
}

.ahm-container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 18px;
}

.ahm-heading {
    margin-bottom: 26px;
}

.ahm-eyebrow {
    margin: 0 0 4px;
    color: #2f7b9c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.ahm-heading h2 {
    margin: 0;
    color: #112f42;
    font-family: inherit;
    font-size: clamp(27px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.4px;
}

.ahm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 28px;
    align-items: stretch;
}

.ahm-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 10px 34px rgba(18, 49, 66, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ahm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18, 49, 66, 0.12);
}

.ahm-card-image {
    display: block;
    width: calc(100% - 16px);
    height: 0;
    padding-bottom: 72%;
    margin: 8px 8px 0;
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: #edf3f6;
}

.ahm-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.ahm-card:hover .ahm-card-image img {
    transform: scale(1.025);
}

.ahm-card-image--empty {
    min-height: 230px;
    padding-bottom: 0;
}

.ahm-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 17px 18px;
}

.ahm-unit {
    margin: 0 0 9px;
    color: #111111;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ahm-card h3 {
    margin: 0 0 11px;
    color: #102f43;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .05px;
}

.ahm-description {
    color: #4b5962;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.6;
    text-align: justify;
}

.ahm-description p {
    margin: 0 0 10px;
}

.ahm-description p:last-child {
    margin-bottom: 0;
}

.ahm-card-spacer {
    flex: 1 1 auto;
    min-height: 18px;
}

.ahm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 4px;
    border: 2px solid #16394d;
    border-radius: 50%;
    color: #16394d;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ahm-arrow:hover,
.ahm-arrow:focus {
    background: #16394d;
    color: #ffffff;
    transform: translateX(2px);
}

.ahm-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tablet */
@media (max-width: 1024px) {
    .ahm-container {
        padding: 0 22px;
    }

    .ahm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 22px;
    }

    .ahm-card h3 {
        font-size: 17px;
    }

    .ahm-description {
        font-size: 13px;
    }
}

/* Móvil */
@media (max-width: 650px) {
    .ahm-section {
        padding: 6px 0 24px;
    }

    .ahm-container {
        padding: 0 15px;
    }

    .ahm-heading {
        margin-bottom: 20px;
    }

    .ahm-eyebrow {
        font-size: 11px;
    }

    .ahm-heading h2 {
        font-size: 27px;
    }

    .ahm-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ahm-card {
        border-radius: 10px;
    }

    .ahm-card-image {
        width: calc(100% - 14px);
        margin: 7px 7px 0;
        padding-bottom: 67%;
    }

    .ahm-card-content {
        padding: 13px 15px 17px;
    }

    .ahm-card h3 {
        font-size: 17px;
        line-height: 1.22;
    }

    .ahm-description {
        font-size: 13px;
        line-height: 1.55;
    }

    .ahm-arrow {
        width: 37px;
        height: 37px;
    }
}
