/* ==========================================================
   INFORME PERICIAL DE TASACIÓN
   Lenguaje técnico / documental
   Bootstrap para estructura responsive
========================================================== */

.tas-pericial-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-pericial-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-pericial-hero .tas-container {
    position: relative;
    z-index: 1;
}

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

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

.tas-pericial-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-pericial-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-pericial-hero-content > p:not(.tas-pericial-hero-kicker) {
    max-width: 740px;
    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-pericial-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.8rem;
}

/* Tipografía y enlaces */

.tas-pericial-intro-heading h2,
.tas-pericial-report-heading h2,
.tas-pericial-evidence-copy h2,
.tas-pericial-purpose-main h2,
.tas-pericial-difference-heading h2,
.tas-pericial-context-heading h2,
.tas-pericial-check-heading h2,
.tas-pericial-faq-heading h2,
.tas-pericial-related-copy h2 {
    margin: 0;
    color: var(--tas-black);
    font-weight: 530;
    letter-spacing: -.055em;
    line-height: .98;
}

.tas-pericial-intro-copy p a,
.tas-pericial-evidence-copy p a,
.tas-pericial-purpose-main p a,
.tas-pericial-difference-block p a,
.tas-pericial-context-item p a,
.tas-pericial-related-copy 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-pericial-intro-copy p a:hover,
.tas-pericial-evidence-copy p a:hover,
.tas-pericial-purpose-main p a:hover,
.tas-pericial-difference-block p a:hover,
.tas-pericial-context-item p a:hover,
.tas-pericial-related-copy p a:hover {
    color: var(--tas-red);
}

/* Intro */

.tas-pericial-intro {
    background: #f5f2ed;
}

.tas-pericial-intro-heading {
    padding-right: clamp(0rem, 3vw, 3rem);
}

.tas-pericial-intro-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.tas-pericial-intro-copy {
    padding-top: .2rem;
    border-top: 1px solid var(--tas-border);
}

.tas-pericial-intro-copy > p {
    max-width: 830px;
    margin: 1.5rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.78;
}

/* Reporte */

.tas-pericial-report {
    background: #ffffff;
}

.tas-pericial-report-heading {
    height: 100%;
    min-height: 620px;
    padding: clamp(2.6rem, 5vw, 5rem);
    background: var(--tas-red);
    color: #ffffff;
}

.tas-pericial-report-heading .tas-section-kicker {
    color: rgba(255, 255, 255, .62);
}

.tas-pericial-report-heading h2 {
    max-width: 11ch;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.2vw, 4.5rem);
}

.tas-pericial-report-heading > p:not(.tas-section-kicker) {
    max-width: 470px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, .7);
    line-height: 1.72;
}

.tas-pericial-report-body {
    height: 100%;
    border-top: 1px solid var(--tas-border);
}

.tas-pericial-report-row {
    padding: clamp(2.2rem, 3.8vw, 3.5rem);
    border-right: 1px solid var(--tas-border);
    border-bottom: 1px solid var(--tas-border);
    background: #f5f2ed;
}

.tas-pericial-report-row:nth-child(even) {
    background: #ffffff;
}

.tas-pericial-report-row-final {
    background: #111111 !important;
    color: #ffffff;
}

.tas-pericial-report-row span {
    display: block;
    margin-bottom: .8rem;
    color: var(--tas-red);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tas-pericial-report-row-final span {
    color: rgba(255, 255, 255, .55);
}

.tas-pericial-report-row h3 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.3rem);
    font-weight: 540;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.tas-pericial-report-row p {
    margin: 0;
    color: var(--tas-grey-500);
    line-height: 1.68;
}

.tas-pericial-report-row-final p {
    color: rgba(255, 255, 255, .64);
}

/* Evidencia */

.tas-pericial-evidence {
    background: #f5f2ed;
}

.tas-pericial-evidence-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.45rem, 4.5vw, 4.8rem);
}

.tas-pericial-evidence-copy > p:not(.tas-section-kicker) {
    max-width: 820px;
    margin: 1.4rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.75;
}

.tas-pericial-evidence-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ddd7ce;
}

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

/* Finalidad */

.tas-pericial-purpose {
    background: #ffffff;
}

.tas-pericial-purpose-main {
    min-height: 500px;
    padding: clamp(2.8rem, 5vw, 5rem);
    background: #111111;
    color: #ffffff;
}

.tas-pericial-purpose-main .tas-section-kicker {
    color: var(--tas-red);
}

.tas-pericial-purpose-main h2 {
    max-width: 13ch;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.4vw, 4.8rem);
}

.tas-pericial-purpose-main > p:not(.tas-section-kicker) {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, .63);
    line-height: 1.72;
}

.tas-pericial-purpose-main p a {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, .35);
}

.tas-pericial-purpose-side {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2.8rem, 5vw, 5rem);
    background: var(--tas-red);
    color: #ffffff;
}

.tas-pericial-purpose-side span {
    display: block;
    margin-bottom: 1.3rem;
    color: rgba(255, 255, 255, .6);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tas-pericial-purpose-side strong {
    max-width: 18ch;
    font-size: clamp(1.9rem, 3.2vw, 3.3rem);
    font-weight: 520;
    letter-spacing: -.04em;
    line-height: 1.04;
}

/* Diferencias */

.tas-pericial-difference {
    background: #f5f2ed;
}

.tas-pericial-difference-heading {
    padding-right: clamp(0rem, 3vw, 3rem);
}

.tas-pericial-difference-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 4.5vw, 4.8rem);
}

.tas-pericial-difference-block {
    padding: clamp(2.4rem, 4vw, 4rem);
    border: 1px solid var(--tas-border);
    background: #ffffff;
}

.tas-pericial-difference-block + .tas-pericial-difference-block {
    margin-top: 1.25rem;
}

.tas-pericial-difference-block-dark {
    background: #111111;
    color: #ffffff;
}

.tas-pericial-difference-block > span {
    display: block;
    margin-bottom: 1rem;
    color: var(--tas-red);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tas-pericial-difference-block h3 {
    margin: 0;
    font-size: clamp(1.7rem, 2.8vw, 2.8rem);
    font-weight: 540;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.tas-pericial-difference-block p {
    margin: 1.1rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

.tas-pericial-difference-block-dark p {
    color: rgba(255, 255, 255, .63);
}

/* Contextos */

.tas-pericial-context {
    background: #ffffff;
}

.tas-pericial-context-heading h2 {
    max-width: 16ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-pericial-context-intro {
    max-width: 560px;
    margin: 0;
    color: var(--tas-grey-500);
    line-height: 1.7;
}

.tas-pericial-context-item {
    height: 100%;
    min-height: 350px;
    padding: clamp(2.1rem, 3.5vw, 3.5rem);
    border: 1px solid var(--tas-border);
    background: #f5f2ed;
}

.tas-pericial-context-item-red {
    background: var(--tas-red);
    color: #ffffff;
}

.tas-pericial-context-item-dark {
    background: #111111;
    color: #ffffff;
}

.tas-pericial-context-item > span {
    display: block;
    margin-bottom: 2rem;
    color: var(--tas-red);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tas-pericial-context-item-red > span,
.tas-pericial-context-item-dark > span {
    color: rgba(255, 255, 255, .58);
}

.tas-pericial-context-item h3 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    font-weight: 540;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.tas-pericial-context-item p {
    margin: 1.15rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.68;
}

.tas-pericial-context-item-red p,
.tas-pericial-context-item-dark p {
    color: rgba(255, 255, 255, .68);
}

.tas-pericial-context-item-red p a,
.tas-pericial-context-item-dark p a {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, .35);
}

/* Statement */

.tas-pericial-statement {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: var(--tas-red);
    color: #ffffff;
}

.tas-pericial-statement-copy p {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(2.3rem, 4.8vw, 5.2rem);
    font-weight: 510;
    letter-spacing: -.055em;
    line-height: .98;
}

.tas-pericial-statement-note {
    padding-left: clamp(0rem, 4vw, 4rem);
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.tas-pericial-statement-note span,
.tas-pericial-statement-note strong {
    display: block;
}

.tas-pericial-statement-note span {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .58);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tas-pericial-statement-note strong {
    max-width: 22ch;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 520;
    line-height: 1.5;
}

/* Checklist */

.tas-pericial-check {
    background: #f5f2ed;
}

.tas-pericial-check-heading h2 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 4.5vw, 4.8rem);
}

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

.tas-pericial-check-item {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--tas-border);
}

.tas-pericial-check-item i {
    flex: 0 0 auto;
    margin-top: .2rem;
    color: var(--tas-red);
    font-size: 1.4rem;
}

.tas-pericial-check-item h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 550;
    letter-spacing: -.03em;
}

.tas-pericial-check-item p {
    margin: .55rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.66;
}

/* FAQ */

.tas-pericial-faq {
    background: #ffffff;
}

.tas-pericial-faq-heading {
    height: 100%;
    padding: clamp(3rem, 6vw, 6rem);
    background: #111111;
    color: #ffffff;
}

.tas-pericial-faq-heading .tas-section-kicker {
    color: var(--tas-red);
}

.tas-pericial-faq-heading h2 {
    max-width: 11ch;
    color: #ffffff;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
}

.tas-pericial-faq-list {
    padding: clamp(2.5rem, 5vw, 5rem);
}

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

.tas-pericial-faq-item:first-child {
    border-top: 1px solid var(--tas-border);
}

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

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

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

.tas-pericial-faq-item summary i {
    flex: 0 0 auto;
    color: var(--tas-red);
    font-size: 1.25rem;
    transition: transform .2s ease;
}

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

.tas-pericial-faq-answer {
    padding: 0 0 2rem;
}

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

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

/* Cierre */

.tas-pericial-related {
    background: #f5f2ed;
}

.tas-pericial-related-copy h2 {
    max-width: 14ch;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.tas-pericial-related-copy p {
    max-width: 840px;
    margin: 1.4rem 0 0;
    color: var(--tas-grey-500);
    line-height: 1.72;
}

.tas-pericial-related-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid var(--tas-red);
    color: var(--tas-black);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tas-pericial-related-link:hover {
    color: var(--tas-red);
}

/* Animación */

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

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

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

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

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

    .tas-pericial-report-heading,
    .tas-pericial-purpose-main,
    .tas-pericial-purpose-side {
        min-height: auto;
    }

    .tas-pericial-statement-note {
        padding-top: 2rem;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .3);
        border-left: 0;
    }
}

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

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

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

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

    .tas-pericial-hero-actions .tas-btn {
        width: 100%;
    }

    .tas-pericial-context-item {
        min-height: auto;
    }
}

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

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