/* ==========================================================
   TASACIÓN DE DEPARTAMENTO
   Prefijo exclusivo tas-depto-
========================================================== */

.tas-depto-hero {
    position: relative;
    min-height: calc(100svh - var(--tas-bottom-nav-height));
    padding: clamp(5.2rem, 7vw, 6.5rem) 0 clamp(2rem, 3vw, 3rem);
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--tas-white);
}

.tas-depto-hero-overlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(16, 16, 16, .93) 0%,
            rgba(16, 16, 16, .79) 42%,
            rgba(16, 16, 16, .40) 72%,
            rgba(16, 16, 16, .18) 100%
        );
    pointer-events: none;
}

.tas-depto-hero .tas-container {
    position: relative;
    z-index: 1;
}

.tas-depto-hero-layout {
    min-height: 500px;
    border: 1.2px solid rgba(255, 255, 255, .18);
}

.tas-depto-hero-content {
    display: flex;
    width: min(790px, 100%);
    min-height: 500px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem);
}

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

.tas-depto-hero h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.7rem, 4.8vw, 5rem);
    font-weight: 520;
    letter-spacing: -.065em;
    line-height: .91;
}

.tas-depto-hero-content > p:not(.tas-depto-hero-kicker) {
    max-width: 700px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.02rem, 1.45vw, 1.25rem);
    line-height: 1.65;
}

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

/* Introducción editorial */

.tas-depto-intro {
    background: var(--tas-white);
}

.tas-depto-intro-layout {
    display: flex;
align-items: start;
}

.tas-depto-intro-copy h2,
.tas-depto-process-heading h2,
.tas-depto-factors-heading h2,
.tas-depto-purpose-heading h2,
.tas-depto-faq-heading h2,
.tas-depto-related h2 {
    margin: 0;
    color: var(--tas-black);
    font-weight: 530;
    letter-spacing: -.055em;
    line-height: .98;
}

.tas-depto-intro-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.5rem, 4.8vw, 5rem);
}

.tas-depto-intro-copy > p:not(.tas-section-kicker) {
    max-width: 820px;
    margin: 1.4rem 0 0;
    color: var(--tas-grey-500);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.78;
}

.tas-depto-intro-copy p a,
.tas-depto-process-text p a,
.tas-depto-factors-heading p a,
.tas-depto-factor p a,
.tas-depto-purpose-column p a,
.tas-depto-related p a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: rgba(177, 21, 27, .38);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tas-depto-intro-copy p a:hover,
.tas-depto-process-text p a:hover,
.tas-depto-factors-heading p a:hover,
.tas-depto-factor p a:hover,
.tas-depto-purpose-column p a:hover,
.tas-depto-related p a:hover {
    color: var(--tas-red);
}

.tas-depto-intro-media {
    position: sticky;
    top: 2rem;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: var(--tas-grey-100);
}

.tas-depto-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statement */

.tas-depto-statement {
    background: var(--tas-black);
    color: var(--tas-white);
}

.tas-depto-statement-inner {
    display: flex;
align-items: start;
    padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.tas-depto-statement-index {
    padding-top: .65rem;
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
}

.tas-depto-statement p {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 5.4rem);
    font-weight: 510;
    letter-spacing: -.055em;
    line-height: .98;
}

/* Proceso */

.tas-depto-process {
    background: var(--tas-off-white);
}

.tas-depto-process-heading {
    display: flex;
align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.tas-depto-process-heading .tas-section-kicker {
margin-bottom: -.5rem;
}

.tas-depto-process-heading h2 {
    max-width: 14ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-depto-process-heading > p:last-child {
    margin: 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

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

.tas-depto-process-row {
    display: flex;
padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-bottom: 1px solid var(--tas-border);
}

.tas-depto-process-number {
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
}

.tas-depto-process-title h3 {
    max-width: 17ch;
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2.25rem);
    font-weight: 550;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.tas-depto-process-text p {
    max-width: 700px;
    margin: 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

/* Factores */

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

.tas-depto-factors-layout {
    display: flex;
align-items: start;
}

.tas-depto-factors-heading {
    position: sticky;
    top: 2rem;
}

.tas-depto-factors-heading h2 {
    max-width: 13ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-depto-factors-heading > p:not(.tas-section-kicker) {
    max-width: 650px;
    margin: 1.5rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.72;
}

.tas-depto-factors-media {
    margin: 2.4rem 0 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tas-grey-100);
}

.tas-depto-factors-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.tas-depto-factor {
    display: flex;
gap: 1.25rem;
    padding: clamp(1.8rem, 3vw, 2.7rem) 0;
    border-bottom: 1px solid var(--tas-border);
}

.tas-depto-factor > span {
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
}

.tas-depto-factor h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 550;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.tas-depto-factor p {
    max-width: 700px;
    margin: .85rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.65;
}

/* Propósito */

.tas-depto-purpose {
    background: var(--tas-off-white);
}

.tas-depto-purpose-heading {
    display: flex;
align-items: start;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.tas-depto-purpose-index {
    padding-top: .45rem;
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
}

.tas-depto-purpose-heading h2 {
    max-width: 15ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-depto-purpose-columns {
    display: flex;
border-top: 1px solid var(--tas-border);
    border-left: 1px solid var(--tas-border);
}

.tas-depto-purpose-column {
    min-height: 470px;
    padding: clamp(2rem, 4vw, 4rem);
    border-right: 1px solid var(--tas-border);
    border-bottom: 1px solid var(--tas-border);
    background: var(--tas-white);
    width: 100%;
    height: 100%;
}

.tas-depto-purpose-column h3 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    font-weight: 540;
    letter-spacing: -.045em;
    line-height: 1;
}

.tas-depto-purpose-column h4 {
    margin: 2.5rem 0 .65rem;
    color: var(--tas-black);
    font-size: 1rem;
    font-weight: 700;
}

.tas-depto-purpose-column p {
    max-width: 650px;
    margin: 1.2rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

.tas-depto-purpose-column h4 + p {
    margin-top: 0;
}

/* FAQ */

.tas-depto-faq {
    background: var(--tas-white);
}

.tas-depto-faq-layout {
    display: flex;
align-items: start;
}

.tas-depto-faq-heading {
    position: sticky;
    top: 2rem;
}

.tas-depto-faq-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-depto-faq-heading > p:not(.tas-section-kicker) {
    max-width: 520px;
    margin: 1.4rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

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

.tas-depto-faq-item {
    border-bottom: 1px solid var(--tas-border);
}

.tas-depto-faq-item summary {
    display: flex;
gap: 1rem;
    align-items: center;
    padding: 1.8rem 0;
    cursor: pointer;
    list-style: none;
}

.tas-depto-faq-item summary::-webkit-details-marker {
    display: none;
}

.tas-depto-faq-item summary > span {
    color: var(--tas-red);
    font-size: .72rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.tas-depto-faq-item summary h3 {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    font-weight: 560;
    letter-spacing: -.025em;
    line-height: 1.2;
    flex: 1 1 auto;
}

.tas-depto-faq-item summary i {
    font-size: 1.25rem;
    transition: transform .2s ease;
    flex: 0 0 auto;
}

.tas-depto-faq-item[open] summary i {
    transform: rotate(45deg);
}

.tas-depto-faq-answer {
    padding: 0 0 2rem 64px;
}

.tas-depto-faq-answer h4 {
    margin: 0 0 .55rem;
    font-size: .92rem;
    font-weight: 700;
}

.tas-depto-faq-answer p {
    max-width: 740px;
    margin: 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

/* Cierre */

.tas-depto-related {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background: var(--tas-black);
    color: var(--tas-white);
}

.tas-depto-related-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 7rem);
}

.tas-depto-related .tas-section-kicker {
    color: rgba(255, 255, 255, .48);
}

.tas-depto-related h2 {
    max-width: 13ch;
    color: var(--tas-white);
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-depto-related p {
    max-width: 760px;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, .63);
    line-height: 1.7;
}

.tas-depto-related p a {
    color: var(--tas-white);
    text-decoration-color: rgba(255, 255, 255, .35);
}

.tas-depto-related .tas-btn {
    flex: 0 0 auto;
}

/* Animación */

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

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

/* Responsive */

@media (max-width: 991.98px) {
    .tas-depto-hero {
        padding: 5.4rem 0 2rem;
    }

    .tas-depto-hero-overlay {
        background: rgba(16, 16, 16, .72);
    }

    .tas-depto-hero-layout,
    .tas-depto-hero-content {
        min-height: 460px;
    }

    .tas-depto-intro-layout,
    .tas-depto-factors-layout,
    .tas-depto-faq-layout {
}

    .tas-depto-intro-media {
        max-width: 520px;
    }

    .tas-depto-intro-media,
    .tas-depto-factors-heading,
    .tas-depto-faq-heading {
        position: static;
    }

    .tas-depto-process-heading {}

    .tas-depto-process-row {
}

    .tas-depto-process-text {
}

    .tas-depto-purpose-columns {
}

    .tas-depto-purpose-column {
        min-height: auto;
    }

    .tas-depto-related-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .tas-depto-hero-layout,
    .tas-depto-hero-content {
        min-height: 0;
    }

    .tas-depto-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.45rem);
    }

    .tas-depto-hero-content > p:not(.tas-depto-hero-kicker) {
        margin-top: 1.15rem;
        font-size: .96rem;
        line-height: 1.55;
    }

    .tas-depto-hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 1.4rem;
    }

    .tas-depto-hero-actions .tas-btn,
    .tas-depto-related .tas-btn {
        width: 100%;
    }

    .tas-depto-statement-inner {
}

    .tas-depto-process-row {}

    .tas-depto-process-text {
}

    .tas-depto-purpose-heading {}

    .tas-depto-purpose-column {
        padding: 2rem 1.4rem;
    }

    .tas-depto-faq-item summary {
gap: .7rem;
    }

    .tas-depto-faq-answer {
        padding-left: 42px;
    }
}

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

    .tas-depto-faq-item summary i {
        transition: none;
    }
}
