* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--blanco);
    overflow-x: hidden;
}

/* ================= HERO ================= */
.service-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: var(--service-hero-bg);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-hero__waves {
    position: absolute;
    top: -20%;
    left: -5%;
    height: 140%;
    width: 60%;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
    filter: var(--service-hero-waves-filter, none);
    opacity: 0;
    transform: scale(0.6);
    transform-origin: center center;
    animation: serviceHeroZoomIn 2.4s ease-out forwards;
}

.service-hero__image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 55%;
    object-fit: cover;
    object-position: left center;
    z-index: 1;
    opacity: 0;
    transform: translateX(180px);
    animation: serviceHeroImageIn 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s forwards;
}

.service-hero__content {
    position: relative;
    z-index: 2;
    padding-left: 22%;
    padding-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: scale(0.84);
    transform-origin: left center;
    animation: serviceHeroZoomIn 1.4s ease-out 0.25s forwards;
}

.service-hero__logo {
    width: 220px;
    margin-bottom: 5px;
}

.service-hero__titles {
    display: flex;
    flex-direction: column;
    color: var(--blanco);
    gap: 10px;
}

.service-hero__eyebrow {
    font-family: var(--font-identa-gray);
    color: var(--service-title-light, var(--blanco));
    font-size: 2rem;
    line-height: 1;
}

.service-hero__title {
    font-family: var(--font-identa-semiblack);
    font-size: 3.5rem;
    line-height: 1;
}

.service-hero__ornament {
    width: 60px;
    filter: var(--service-onda-filter);
}

@keyframes serviceHeroImageIn {
    from {
        opacity: 0;
        transform: translateX(180px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes serviceHeroZoomIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= PERFIL ================= */
.service-profile {
    background-image: var(--service-profile-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--blanco);
    padding: 150px 20px 450px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-profile__name {
    font-family: var(--font-identa-black);
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.service-profile__role {
    font-family: var(--font-identa-gray);
    color: var(--azul-oscuro);
    font-size: 1.1rem;
}

/* ================= DETALLE ================= */
.service-detail {
    position: relative;
    background-color: var(--service-cards-bg);
    padding: 220px 5% 120px;
    z-index: 2;
}

.service-detail__arrow {
    position: absolute;
    z-index: 0;
    width: 45vw;
    max-width: 600px;
    opacity: 0;
    filter: var(--service-arrow-filter, none);
}

.service-detail__arrow--left {
    left: -250px;
    bottom: 5%;
}

.service-detail__arrow--left.is-visible {
    animation: fadeSlideRight 4.5s ease-out forwards;
}

.service-detail__arrow--right {
    right: -250px;
    top: 5%;
}

.service-detail__arrow--right.is-visible {
    animation: fadeSlideLeft 4.5s ease-out forwards;
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        left: -150px;
    }

    to {
        opacity: 0.8;
        left: 0;
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        right: -150px;
    }

    to {
        opacity: 0.8;
        right: 0;
    }
}

.service-detail__summary {
    position: absolute;
    top: var(--service-overlap-top, -120px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 20;
}

.service-detail__avatar {
    position: relative;
    width: var(--service-avatar-size, 130px);
    height: var(--service-avatar-size, 130px);
    margin: 0 auto -65px;
    z-index: 21;
    border-radius: 50%;
    overflow: hidden;
}

.service-detail__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail__info {
    text-align: justify;
    background-color: var(--blanco);
    padding: 100px 60px 70px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    max-width: var(--service-info-max-width, 840px);
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.service-detail__info p {
    font-family: var(--font-identa-gray);
    color: var(--gris-texto);
    font-size: 16px;
    line-height: 1.8;
}

.service-detail__ribbon {
    position: absolute;
    top: 0;
    left: 435px;
    width: 75px;
    z-index: 5;
    opacity: 0;
}

.service-detail__ribbon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--service-ribbon-color);
    -webkit-mask: url('../../assets/png/servicios/Banderilla.png') center / contain no-repeat;
    mask: url('../../assets/png/servicios/Banderilla.png') center / contain no-repeat;
}

.service-detail__ribbon.is-visible {
    animation: dropDown 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.service-detail__ribbon-img {
    width: 100%;
    display: block;
    opacity: 0;
}

.service-detail__ribbon-icon {
    position: absolute;
    top: var(--service-ribbon-icon-top, 15px);
    left: 50%;
    transform: translateX(-50%);
    width: var(--service-ribbon-icon-width, 40px);
}

@keyframes dropDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================= GRID ================= */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.service-grid__row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.service-grid__column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.service-grid__item--full {
    width: 100%;
}

.service-grid__item--tall {
    height: 100%;
}

.service-note {
    padding: 10px 20px;
    background-color: transparent;
}

.service-note__text {
    font-family: var(--font-identa-semiblack);
    font-size: 14px;
    color: var(--service-small-text-color);
}

/* ================= CARD ================= */
.service-offer {
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.service-offer__text {
    color: var(--service-card-text);
    line-height: 1.5;
    transition: color 0.3s ease;
    text-align: center;
}

.service-offer__text-strong {
    font-family: var(--font-alt-semibolditalic);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    font-style: italic;
}

.service-offer__text-regular {
    font-family: var(--font-identa-gray);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    font-style: normal;
}

.service-offer--light {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.service-offer--light:hover {
    background-color: var(--service-card-hover-bg);
    background-image: var(--service-card-hover-bg-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: none;
}

.service-offer--light:hover .service-offer__text-strong,
.service-offer--light:hover .service-offer__text-regular,
.service-offer--light:hover .service-offer__list {
    color: var(--service-card-hover-text);
}

.u-text-left {
    text-align: left;
}

.u-text-center {
    text-align: center;
}

#footer-container {
    background-color: var(--service-footer-bg);
}

@media (max-width: 1200px) {
    .service-hero {
        height: 390px;
    }

    .service-hero__waves,
    .service-hero__image,
    .service-hero__content {
        animation: none;
        transform: none;
        opacity: 1;
    }

    .service-hero__waves {
        opacity: 0.3;
    }

    .service-hero__content {
        padding-left: 12%;
        padding-top: 92px;
        max-width: 48%;
        gap: 16px;
    }

    .service-hero__logo {
        width: 180px;
    }

    .service-hero__eyebrow {
        font-size: 1.75rem;
    }

    .service-hero__title {
        font-size: 3rem;
    }

    .service-hero__image {
        width: 60%;
    }

    .service-profile {
        padding-top: 92px;
        padding-bottom: 110px;
    }

    .service-detail {
        padding: 70px 4% 100px;
    }

    .service-detail__arrow,
    .service-detail__ribbon {
        display: none;
    }

    .service-detail__summary {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 900px;
        margin: -155px auto 54px;
    }

    .service-detail__avatar {
        width: 118px;
        height: 118px;
        margin: 0 auto -58px;
    }

    .service-detail__info {
        max-width: min(88vw, 840px);
        padding: 88px 54px 54px;
    }

    .service-detail__ribbon {
        left: 24%;
    }
}

@media (max-width: 900px) {
    .service-grid__row {
        flex-direction: column;
    }

    .service-detail__ribbon {
        left: 20px;
        top: -70px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 380px;
    }

    .service-hero__waves {
        left: -28%;
        width: 95%;
        height: 125%;
        opacity: 0.45;
    }

    .service-hero__content {
        padding-left: 5%;
        padding-top: 96px;
        gap: 14px;
    }

    .service-hero__logo {
        width: 170px;
    }

    .service-hero__eyebrow {
        font-size: 1.45rem;
    }

    .service-hero__title {
        font-size: 2.35rem;
    }

    .service-hero__ornament {
        width: 48px;
    }

    .service-profile {
        padding: 92px 16px 315px;
    }

    .service-profile__name {
        font-size: 1.65rem;
    }

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

    .service-detail {
        padding: 170px 18px 82px;
    }

    .service-detail__info {
        max-width: 94%;
        padding: 80px 30px 40px;
        border-radius: 16px;
    }

    .service-hero__image {
        width: 100%;
        opacity: 0.5;
    }

    .service-detail__arrow {
        width: 85vw;
        opacity: 0.32;
    }
}

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

    .service-hero__content {
        max-width: 86%;
        padding-top: 72px;
    }

    .service-hero__logo {
        width: 140px;
    }

    .service-hero__title {
        font-size: 1.9rem;
    }

    .service-hero__eyebrow {
        font-size: 1.2rem;
    }

    .service-profile {
        padding-top: 70px;
        padding-bottom: 270px;
    }

    .service-detail {
        padding: 142px 14px 68px;
    }

    .service-detail__avatar {
        width: 96px;
        height: 96px;
        margin-bottom: -48px;
    }

    .service-detail__info {
        padding: 66px 22px 34px;
        text-align: center;
    }

    .service-detail__info p {
        font-size: 14px;
        line-height: 1.65;
    }

    .service-detail__ribbon {
        width: 62px;
    }

    .service-grid,
    .service-grid__row,
    .service-grid__column {
        gap: 14px;
    }

    .service-offer--light {
        min-height: auto !important;
        padding: 20px 16px;
    }

    .service-offer__text-strong {
        font-size: 15px;
    }

    .service-offer__text-regular,
    .service-offer__list {
        font-size: 13px;
    }

    .service-note__text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .service-hero__waves,
    .service-detail__arrow,
    .service-detail__ribbon {
        display: none;
    }

    .service-hero__image,
    .service-hero__content {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .service-hero__content {
        max-width: calc(100% - 40px);
    }

    .service-hero__title {
        font-size: clamp(2rem, 9vw, 2.6rem);
        line-height: 1.05;
    }

    .service-hero__image {
        object-position: center;
        opacity: 0.34;
    }

    .service-offer--light:hover {
        transform: none;
    }

    .service-profile {
        padding-top: 82px;
        padding-bottom: 205px;
    }

    .service-detail {
        padding-top: 34px;
    }

    .service-detail__summary {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: -150px auto 40px;
        width: 100%;
    }

    .service-detail__info {
        padding: 82px 28px 42px;
        max-width: 94%;
    }

    .service-grid {
        margin-top: 0;
    }
}

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

    .service-hero__content {
        max-width: calc(100% - 28px);
    }

    .service-hero__logo {
        width: 128px;
    }

    .service-hero__ornament {
        width: 42px;
    }

    .service-detail__ribbon {
        display: none;
    }

    .service-profile {
        padding-top: 62px;
        padding-bottom: 170px;
    }

    .service-detail__summary {
        margin-top: -128px;
    }

    .service-detail__info {
        padding: 66px 24px 34px;
    }
}
