/* ==========================================================
   PÁGINA PRINCIPAL
   Prefijo exclusivo tas-home-
========================================================== */

.tas-home-hero {
    position: relative;
    display: flex;
    min-height: min(920px, 100vh);
    align-items: flex-end;
    padding: clamp(9rem, 15vw, 13rem) 0 clamp(5rem, 8vw, 8rem);
    overflow: hidden;
    background: var(--tas-black);
    color: var(--tas-white);
}

.tas-home-hero-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.tas-home-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.tas-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.015);
}

.tas-home-hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(circle at 76% 20%, rgba(177, 21, 27, .18), transparent 32%),
        linear-gradient(90deg, rgba(8, 8, 8, .88) 0%, rgba(8, 8, 8, .70) 48%, rgba(8, 8, 8, .42) 100%),
        linear-gradient(180deg, rgba(8, 8, 8, .28) 0%, rgba(8, 8, 8, .76) 100%);
    pointer-events: none;
}

.tas-home-hero > .tas-container {
    position: relative;
    z-index: 2;
}

.tas-home-hero-kicker {
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tas-home-hero-title {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3.3rem, 7vw, 7.6rem);
    font-weight: 520;
    letter-spacing: -.07em;
    line-height: .88;
}

.tas-home-hero-text {
    max-width: 680px;
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1.05rem, 1.55vw, 1.35rem);
    line-height: 1.55;
}

.tas-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2.4rem;
}

.tas-home-about {
    background: var(--tas-white);
}

.tas-home-about-layout {
    min-height: 620px;
    border: 1px solid var(--tas-border);
    background: var(--tas-white);
}

.tas-home-about-media {
    position: relative;
    height: 100%;
    min-height: 620px;
    overflow: hidden;
    background: var(--tas-grey-100);
}

.tas-home-about-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tas-home-about-tag {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: min(320px, 72%);
    padding: 1.4rem 1.6rem;
    background: var(--tas-red);
    color: var(--tas-white);
}

.tas-home-about-tag span,
.tas-home-about-tag strong {
    display: block;
}

.tas-home-about-tag span {
    margin-bottom: .3rem;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tas-home-about-tag strong {
    font-size: 1rem;
    font-weight: 600;
}

.tas-home-about-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 6rem);
}

.tas-home-about-content h2,
.tas-home-section-heading h2,
.tas-home-process-heading h2,
.tas-home-contact-content h2 {
    margin: 0;
    font-size: clamp(2.35rem, 4.6vw, 4.9rem);
    font-weight: 530;
    letter-spacing: -.055em;
    line-height: .98;
}

.tas-home-about-content h2 {
    max-width: 12.5ch;
}

.tas-home-about-content > p:not(.tas-section-kicker) {
    max-width: 700px;
    margin: 1.5rem 0 0;
    color: var(--tas-grey-500);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.7;
}

.tas-home-services {
    background: var(--tas-off-white);
}

.tas-home-section-heading {
    display: flex;
align-items: end;
    margin-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.tas-home-section-heading h2 {
    max-width: 14ch;
}

.tas-home-section-heading > p {
    max-width: 620px;
    margin: 0;
    color: var(--tas-grey-500);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
}

.tas-home-service-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--tas-border);
    background: var(--tas-white);
    transition: transform .3s ease, box-shadow .3s ease;
}

.tas-home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(16, 16, 16, .09);
}

.tas-home-service-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tas-grey-100);
}

.tas-home-service-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.tas-home-service-card:hover .tas-home-service-media > img {
    transform: scale(1.035);
}

.tas-home-service-icon {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    display: flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tas-border);
    background: var(--tas-white);
}

.tas-home-service-icon i {
    color: var(--tas-black);
    font-size: 2.65rem;
    line-height: 1;
}

.tas-home-service-content {
    position: relative;
    padding: clamp(2rem, 3.6vw, 3.2rem);
}

.tas-home-service-number {
    display: block;
    margin-bottom: 1.4rem;
    color: var(--tas-red);
    font-size: .74rem;
    font-weight: 700;
}

.tas-home-service-content h3 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.65rem);
    font-weight: 540;
    letter-spacing: -.04em;
    line-height: 1.04;
}

.tas-home-service-content p {
    max-width: 580px;
    margin: 1.3rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.65;
}

.tas-home-service-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: 1.8rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--tas-black);
    font-size: .84rem;
    font-weight: 680;
}

.tas-home-service-link i {
    font-size: 1.15rem;
}

.tas-home-service-card:hover .tas-home-service-link {
    color: var(--tas-red);
    border-color: var(--tas-red);
}

.tas-home-factors {
    background: var(--tas-white);
}

.tas-home-factor-grid {
    display: flex;
border-top: 1px solid var(--tas-border);
    border-left: 1px solid var(--tas-border);
}

.tas-home-factor {
    min-height: 330px;
    padding: clamp(1.8rem, 3vw, 3rem);
    border-right: 1px solid var(--tas-border);
    border-bottom: 1px solid var(--tas-border);
    background: var(--tas-white);
    width: 100%;
    height: 100%;
}

.tas-home-factor > i {
    display: block;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--tas-black);
    font-size: 3.35rem;
    line-height: 1;
}

.tas-home-factor > span {
    display: block;
    margin-bottom: .75rem;
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
}

.tas-home-factor h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 540;
    letter-spacing: -.03em;
}

.tas-home-factor p {
    margin: .9rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.6;
}

.tas-home-process {
    padding-top: 0;
    background: var(--tas-white);
}

.tas-home-process-layout {
    overflow: hidden;
    background: var(--tas-black);
}

.tas-home-process-heading {
    display: flex;
    height: 100%;
    min-height: 610px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.8rem, 6vw, 6rem);
    background: var(--tas-red);
    color: var(--tas-white);
}

.tas-home-process-heading .tas-section-kicker {
    color: rgba(255, 255, 255, .68);
}

.tas-home-process-heading h2 {
    max-width: 12ch;
}

.tas-home-process-heading > p:not(.tas-section-kicker) {
    max-width: 520px;
    margin: 1.6rem 0 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
}

.tas-home-process-steps {
    height: 100%;
    background: var(--tas-black);
    color: var(--tas-white);
}

.tas-home-process-step {
    display: flex;
    min-height: 203px;
align-items: center;
    padding: clamp(2rem, 4vw, 3.4rem);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-right: 0;
    margin-left: 0;
}

.tas-home-process-step:last-child {
    border-bottom: 0;
}

.tas-home-process-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--tas-white);
}

.tas-home-process-icon i {
    color: var(--tas-black);
    font-size: 2.35rem;
    line-height: 1;
}

.tas-home-process-number {
    align-self: start;
    padding-top: .25rem;
    color: var(--tas-red);
    font-size: .75rem;
    font-weight: 700;
}

.tas-home-process-step h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    font-weight: 540;
    letter-spacing: -.025em;
}

.tas-home-process-step p {
    max-width: 620px;
    margin: .65rem 0 0;
    color: rgba(255, 255, 255, .62);
    line-height: 1.6;
}

.tas-home-guides {
    background: var(--tas-off-white);
}

.tas-home-guide-list {
    border-top: 1px solid var(--tas-border);
}

.tas-home-guide {
    display: flex;
align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--tas-border);
    transition: color .2s ease, padding-left .2s ease;
}

.tas-home-guide:hover {
    padding-left: 1rem;
    color: var(--tas-red);
}

.tas-home-guide-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tas-border);
    background: var(--tas-white);
}

.tas-home-guide-icon i {
    color: var(--tas-black);
    font-size: 2.15rem;
    line-height: 1;
}

.tas-home-guide-label {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.tas-home-guide strong {
    color: var(--tas-grey-500);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    font-weight: 480;
    line-height: 1.5;
    transition: color .2s ease;
}

.tas-home-guide:hover strong {
    color: var(--tas-black);
}

.tas-home-guide > i {
    font-size: 1.35rem;
    text-align: right;
}

.tas-home-contact {
    background: var(--tas-white);
}

.tas-home-contact-panel {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--tas-black);
    color: var(--tas-white);
}

.tas-home-contact-media,
.tas-home-contact-overlay {
    position: absolute;
    inset: 0;
}

.tas-home-contact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.tas-home-contact-overlay {
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .90) 0%, rgba(10, 10, 10, .70) 48%, rgba(10, 10, 10, .30) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, .10) 0%, rgba(10, 10, 10, .74) 100%);
}

.tas-home-contact-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: clamp(2.8rem, 6vw, 6rem);
}

.tas-home-contact-content h2 {
    max-width: 13ch;
}

.tas-home-contact-content > p:not(.tas-section-kicker) {
    max-width: 660px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.65;
}

.tas-home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2.2rem;
}

.tas-home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}

.tas-home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tas-home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tas-home-service-card,
    .tas-home-service-media > img,
    .tas-home-guide {
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .tas-home-factor-grid {
}

    .tas-home-guide {
}
}

@media (max-width: 991.98px) {
    .tas-home-hero {
        min-height: auto;
        padding-top: 10rem;
    }

    .tas-home-about-layout,
    .tas-home-about-media {
        min-height: auto;
    }

    .tas-home-about-media {
        aspect-ratio: 16 / 10;
    }

    .tas-home-section-heading {}

    .tas-home-section-heading h2 {
        max-width: 16ch;
    }

    .tas-home-process-heading {
        min-height: auto;
    }

    .tas-home-guide {
}

    .tas-home-guide strong {
}

    .tas-home-guide > i {
}
}

@media (max-width: 767.98px) {
    .tas-home-hero-media img {
        object-position: 62% center;
        transform: none;
    }

    .tas-home-hero-overlay {
        background:
            linear-gradient(90deg, rgba(8, 8, 8, .86) 0%, rgba(8, 8, 8, .58) 100%),
            linear-gradient(180deg, rgba(8, 8, 8, .32) 0%, rgba(8, 8, 8, .84) 100%);
    }

    .tas-home-hero-title {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .tas-home-hero-actions,
    .tas-home-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tas-home-hero-actions .tas-btn,
    .tas-home-contact-actions .tas-btn {
        width: 100%;
    }

    .tas-home-about-content {
        padding: 2.4rem 1.8rem 2.8rem;
    }

    .tas-home-service-icon {
        right: 1rem;
        bottom: 1rem;
        width: 66px;
        height: 66px;
    }

    .tas-home-service-icon i {
        font-size: 2.25rem;
    }

    .tas-home-factor-grid {
}

    .tas-home-factor {
        min-height: 275px;
    }

    .tas-home-factor > i {
        margin-bottom: 2rem;
        font-size: 3rem;
    }

    .tas-home-process-step {}

    .tas-home-process-icon {
        width: 54px;
        height: 54px;
    }

    .tas-home-process-icon i {
        font-size: 2rem;
    }

    .tas-home-guide {padding: 1.2rem 0;
    }

    .tas-home-guide-icon {
        width: 54px;
        height: 54px;
    }

    .tas-home-guide-icon i {
        font-size: 1.9rem;
    }

    .tas-home-contact-panel {
        min-height: 540px;
    }
}

@media (max-width: 575.98px) {
    .tas-home-hero-kicker {
        font-size: .68rem;
    }

    .tas-home-about-tag {
        min-width: 68%;
        padding: 1rem 1.1rem;
    }

    .tas-home-service-content {
        padding: 1.8rem 1.4rem 2rem;
    }

    .tas-home-process-step {
}

    .tas-home-process-number {
        display: none;
    }

    .tas-home-guide {
}

    .tas-home-guide-label {
        font-size: .76rem;
    }

    .tas-home-guide strong {
        font-size: .95rem;
    }

    .tas-home-contact-panel {
        margin-right: calc(var(--tas-container-x) * -1);
        margin-left: calc(var(--tas-container-x) * -1);
    }

    .tas-home-contact-content {
        padding: 2.5rem 1.25rem;
    }
}
