:root {
    --blue: #5068a7;
    --blue-dark: #123b55;
    --orange: #ff6816;
    --orange-dark: #ed5700;
    --paper: #f7f7f4;
    --text: #202020;
    --container: 1440px;
    --shadow: 0 18px 45px rgba(0,0,0,.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    font-family: 'Century Gothic', Helvetica, sans-serif;
    color: var(--text);
    background: var(--paper);
}

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

/* HEADER */
.header {
    position: fixed;
    z-index: 1000;
    top: 24px;
    left: 0;
    width: 100%;
    padding: 0 42px;
    transition: top .3s ease;
}

.header.scrolled { top: 10px; }

.header__inner {
    width: min(100%, 1480px);
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 16px 10px 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    background: rgba(255,255,255,.96);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header__logo {
    display: flex;
    align-items: flex-start;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.06em;
}

.header__logo span {
    margin: -5px 0 0 3px;
    color: var(--orange);
    font-size: .7rem;
}

.header__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 3.2vw, 58px);
}



.header__cta {
    min-height: 54px;
    padding: 0 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: #fff;
    background: var(--orange);
    border-radius: 15px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.header__cta:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.header__toggle { display: none; }

/* HERO FULL SCREEN */
.service-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
}

.service-hero__image {
    position: absolute;
    inset: 0;
    background-image: url("../img/cumplimiento-normativo.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(14,46,68,.98) 0%,
        rgba(18,60,88,.93) 28%,
        rgba(27,73,104,.72) 47%,
        rgba(18,53,76,.18) 70%,
        rgba(18,53,76,0) 100%
    );
}

.service-hero__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 100px), var(--container));
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding-top: 130px;
    display: flex;
    align-items: center;
}

.service-hero__content {
    max-width: 590px;
    padding: 60px 0 80px;
}

.service-hero h1 {
    margin: 0 0 38px;
    font-size: clamp(3rem, 4.8vw, 5.5rem);
    line-height: .96;
    letter-spacing: -.03em;
    font-weight: 700;
}

.service-hero__question {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    font-style: italic;
    font-weight: 700;
}

.service-hero__intro {
    margin: 0;
    max-width: 550px;
    color: rgba(255,255,255,.96);
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    line-height: 1.5;
}

/* DETALLE */
.service-detail {
    position: relative;
    padding: clamp(85px, 8vw, 125px) 0 clamp(100px, 9vw, 145px);
    background-color: #f8f8f5;
    background-image:
        linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
        url("../../images/textura.png");
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    background-size: cover, auto;
}

.service-detail__inner {
    width: min(calc(100% - 70px), 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
}

.service-group { max-width: 760px; }

.service-group h2 {
    margin: 0 0 15px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #536aaa 0%, #4d659e 70%, #465d91 100%);
    font-size: clamp(.84rem, 1vw, 1rem);
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.service-group ul {
    margin: 0;
    padding-left: 22px;
}

.service-group li {
    margin: 5px 0;
    color: #222;
    font-size: clamp(.95rem, 1vw, 1.05rem);
    line-height: 1.45;
}

/* CTA */
.service-detail__cta {
    margin-top: clamp(75px, 8vw, 110px);
    text-align: center;
}

.service-detail__cta a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #707070;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    line-height: 1;
    font-weight: 400;
    transition: color .25s ease, transform .25s ease;
}

.service-detail__cta a:hover {
    color: var(--blue);
    transform: translateY(-2px);
}

.service-detail__cta span {
    color: var(--blue);
    font-size: .85em;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .header { padding: 0 20px; }

    .header__nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: none;
        padding: 15px 24px;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .header__nav.open { display: grid; }
    .header__nav a { padding: 15px 0; }
    .header__cta { margin-left: auto; }

    .header__toggle {
        width: 48px;
        height: 48px;
        padding: 11px;
        display: block;
        border: 0;
        border-radius: 12px;
        background: #eee;
        cursor: pointer;
    }

    .header__toggle span {
        display: block;
        height: 2px;
        margin: 5px 0;
        background: #111;
    }
}

@media (max-width: 850px) {
    .header {
        top: 10px;
        padding: 0 12px;
    }

    .header__inner {
        min-height: 68px;
        padding: 8px 10px 8px 18px;
        border-radius: 18px;
    }

    .header__logo { font-size: 1.8rem; }
    .header__cta { display: none; }

    .service-hero__inner {
        width: min(calc(100% - 40px), var(--container));
        padding-top: 105px;
        align-items: flex-end;
    }

    .service-hero__image {
        background-position: 62% center;
    }

    .service-hero__overlay {
        background: linear-gradient(
            0deg,
            rgba(14,46,68,.98) 0%,
            rgba(18,60,88,.92) 42%,
            rgba(18,60,88,.48) 72%,
            rgba(18,60,88,.08) 100%
        );
    }

    .service-hero__content {
        max-width: 650px;
        padding: 70px 0 55px;
    }

    .service-hero h1 { margin-bottom: 28px; }

    .service-detail__inner {
        width: min(calc(100% - 40px), 1320px);
    }

    .service-group { max-width: none; }
}

@media (max-width: 520px) {
    .service-hero__inner {
        width: calc(100% - 30px);
    }

    .service-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .service-hero__intro { font-size: .98rem; }

    .service-detail {
        padding: 70px 0 85px;
    }

    .service-detail__inner {
        width: calc(100% - 30px);
    }

    .service-group h2 {
        border-radius: 14px;
        padding: 11px 14px;
    }

    .service-detail__cta a {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }
}


/* =========================================================
   RESPONSIVE AJUSTADO
   Patrón visual de Seguridad Laboral
========================================================= */

@media (max-width: 850px) {

    .service-hero {
        min-height: 650px;
    }

    .service-hero__inner {
        min-height: 650px;
        width: min(calc(100% - 40px), var(--container));
        padding-top: 105px;
        align-items: flex-end;
    }

    .service-hero__image {
        background-position: 62% center;
    }

    .service-hero__overlay {
        background: linear-gradient(
            0deg,
            rgba(14,46,68,.98) 0%,
            rgba(18,60,88,.92) 40%,
            rgba(18,60,88,.46) 70%,
            rgba(18,60,88,.05) 100%
        );
    }

    .service-hero__content {
        max-width: 650px;
        padding: 70px 0 55px;
    }

    .service-hero h1 {
        margin-bottom: 28px;
        font-size: clamp(2.7rem, 10vw, 4rem);
        line-height: .98;
    }

    .service-detail__inner {
        width: min(calc(100% - 40px), 1320px);
    }

    .service-group {
        max-width: none;
    }
}

@media (max-width: 520px) {

    .service-hero {
        min-height: 620px;
    }

    .service-hero__inner {
        min-height: 620px;
        width: calc(100% - 30px);
    }

    .service-hero__image {
        background-position: 61% center;
    }

    .service-hero__content {
        padding: 64px 5px 50px;
    }

    .service-hero h1 {
        margin-bottom: 26px;
        font-size: clamp(2.45rem, 10.5vw, 3.55rem);
        line-height: .98;
    }

    .service-hero__question {
        font-size: 1rem;
    }

    .service-hero__intro {
        font-size: .98rem;
        line-height: 1.5;
    }

    .service-detail {
        padding: 70px 0 85px;
    }

    .service-detail__inner {
        width: calc(100% - 30px);
    }

    .service-group h2 {
        border-radius: 14px;
        padding: 11px 14px;
    }

    .service-detail__cta a {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }
}
