
/* KEP-SERVICES-001M-R2 */

html:has(.km-profile-scope) {
    scroll-behavior:smooth;
}

body:has(.km-profile-scope) {
    background:#f6f5f1;
}

body:has(.km-profile-scope) .hero {
    background:
        radial-gradient(
            circle at 88% 10%,
            #237267 0%,
            transparent 43%
        ),
        linear-gradient(
            125deg,
            #103b47 0%,
            #11594f 100%
        ) !important;
    padding-block:clamp(52px,8vw,96px) !important;
}

body:has(.km-profile-scope) .hero h1 {
    font-size:clamp(32px,5vw,60px) !important;
    letter-spacing:-.035em;
    line-height:1.1;
}

.km-profile-scope {
    max-width:1160px !important;
    padding-top:clamp(24px,4vw,48px) !important;
    padding-bottom:60px !important;
}

.km-profile-scope .card {
    border-radius:22px !important;
    border:1px solid #d9e9e3 !important;
    background:white !important;
    padding:clamp(20px,3vw,32px) !important;
    box-shadow:0 8px 28px #103b4710;
}

.km-profile-scope .card h2 {
    letter-spacing:-.025em;
}

.km-profile-scope a,
.km-profile-scope p {
    overflow-wrap:anywhere;
}

.km-en,.km-es {
    display:inline;
}

html[lang="es"] .km-en {
    display:none !important;
}

html:not([lang="es"]) .km-es {
    display:none !important;
}

.km-brand-media {
    position:relative;
    min-height:110px;
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(125deg,#103b47,#087f72);
    margin-bottom:18px;
}

.km-cover {
    display:block;
    width:100%;
    max-height:310px;
    min-height:165px;
    object-fit:cover;
}

.km-logo {
    display:block;
    width:78px;
    height:78px;
    object-fit:contain;
    padding:8px;
    border-radius:17px;
    background:white;
    margin:16px;
    box-shadow:0 5px 20px #103b4733;
}

.km-cover+.km-logo {
    position:absolute;
    left:15px;
    bottom:12px;
    margin:0;
}

.km-navigation {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 26px;
}

.km-navigation a {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border:1px solid #cbe4db;
    border-radius:999px;
    padding:12px 21px;
    color:#0a7165;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    transition:background .2s ease;
}

.km-navigation a:hover,
.km-navigation a:focus-visible {
    background:#e8f5f1;
}

.km-navigation a[hidden] {
    display:none !important;
}

.km-feature-grid {
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(min(100%,270px),1fr));
    gap:16px;
    margin-bottom:28px;
}

.km-feature-card,
.km-portfolio {
    border:1px solid #d9e9e3;
    background:#fff;
    border-radius:22px;
    padding:clamp(20px,3vw,30px);
    box-shadow:0 8px 28px #103b470d;
}

.km-feature-card h2,
.km-portfolio h2 {
    font-size:clamp(21px,3vw,28px);
    color:#153f44;
    margin:0 0 18px;
    letter-spacing:-.025em;
}

.km-eyebrow {
    color:#087f72;
    font-weight:800;
    letter-spacing:.15em;
    font-size:11px;
    margin:0 0 8px;
}

.km-chips {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.km-chips span {
    display:inline-block;
    padding:9px 13px;
    border:1px solid #c5e3d9;
    border-radius:999px;
    background:#e8f5f1;
    font-size:13px;
    font-weight:650;
    color:#096a60;
}

.km-portfolio {
    margin-bottom:28px;
}

.km-gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.km-gallery figure {
    min-width:0;
    margin:0;
}

.km-gallery img {
    display:block;
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:13px;
    background:#e8f5f1;
}

.km-gallery figcaption {
    margin-top:8px;
    color:#648078;
    line-height:1.5;
    font-size:13px;
    overflow-wrap:anywhere;
}

#km-about,
#km-services,
#km-contact {
    scroll-margin-top:24px;
}

@media(max-width:680px) {
    .km-profile-scope {
        padding:20px 16px 50px !important;
    }

    .km-navigation a {
        flex:1;
        padding:12px 8px;
    }

    .km-gallery {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .km-logo {
        width:65px;
        height:65px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html:has(.km-profile-scope) {
        scroll-behavior:auto;
    }
}
