:root {
    --orange: #ff6816;
    --orange-dark: #ed5700;
    --black: #151515;
    --white: #ffffff;
    --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; }

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

/* 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 */

.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/seguridad-laboral.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.service-hero__inner {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 100px), var(--container));
    min-height: 100vh;
    min-height: 100svh;

    margin: 0 auto;

    /* espacio para que el menú no tape el contenido */
    padding-top: 130px;

    display: flex;
    align-items: center;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255,104,22,.98) 0%,
            rgba(255,104,22,.88) 28%,
            rgba(255,104,22,.52) 48%,
            rgba(255,104,22,.05) 72%,
            rgba(255,104,22,0) 100%
        );
}

 

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

.service-hero h1 {
    margin: 0 0 42px;
    font-size: clamp(3rem, 5.1vw, 5.8rem);
    line-height: .98;
    letter-spacing: .025em;
    font-weight: 400;
}

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

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

/* DETALLE */

.service-detail {
    position: relative;
    padding: clamp(80px, 8vw, 125px) 0 clamp(95px, 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: repeat(2, minmax(0, 1fr));
    column-gap: clamp(55px, 7vw, 110px);
    row-gap: 42px;
}

.service-group h2 {
    margin: 0 0 15px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    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(70px, 8vw, 105px);
    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(--orange);
    transform: translateY(-2px);
}

.service-detail__cta span {
    color: var(--orange);
    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 { 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: 65% center;
    }

    .service-hero__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(255,104,22,.97) 0%,
                rgba(255,104,22,.88) 42%,
                rgba(255,104,22,.35) 72%,
                rgba(255,104,22,.05) 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);
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 520px) {
    .service-hero { min-height: 620px; }

    .service-hero__inner {
        min-height: 620px;
        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);
    }
}
