/* =========================================================
   TORRE TASACIONES RURALES
   Página: Preguntas frecuentes
   Archivo: assets/css/torre-faq.css
   ========================================================= */


/* ---------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------- */

.torre-faq-page {
    --torre-green: #2f4938;
    --torre-green-dark: #213629;
    --torre-green-soft: #eef2ed;

    --torre-earth: #9b7a4b;
    --torre-earth-dark: #87683f;
    --torre-earth-soft: #f4f0e9;

    --torre-text: #252923;
    --torre-text-soft: #626860;
    --torre-border: #dfe4dc;

    --torre-white: #ffffff;
    --torre-background: #fafbf9;

    --torre-shadow:
        0 14px 38px rgba(32, 49, 37, 0.08);

    --torre-radius-small: 8px;
    --torre-radius: 14px;
    --torre-radius-large: 22px;

    --torre-container: 1180px;
    --torre-content: 920px;

    color: var(--torre-text);
    background: var(--torre-background);

    overflow-x: clip;
}


/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */

.torre-faq-page,
.torre-faq-page *,
.torre-faq-page *::before,
.torre-faq-page *::after {
    box-sizing: border-box;
}

.torre-faq-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.torre-faq-page a {
    color: inherit;
}

.torre-faq-page button,
.torre-faq-page a {
    -webkit-tap-highlight-color: transparent;
}

.torre-faq-container {
    width: min(
        calc(100% - 48px),
        var(--torre-container)
    );

    margin-inline: auto;
}

.torre-faq-content {
    max-width: var(--torre-content);
}


/* ---------------------------------------------------------
   3. SCROLL
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

#valor,
#alquiler,
#herencias,
#inversion,
#tasacion,
#mercado,
#relevamientos,
#localidades {
    scroll-margin-top: 40px;
}


/* ---------------------------------------------------------
   4. HERO
   --------------------------------------------------------- */

.torre-faq-hero {
    position: relative;

    padding:
        clamp(72px, 9vw, 132px)
        0
        clamp(60px, 7vw, 96px);

    background:
        linear-gradient(
            135deg,
            #f7f9f6 0%,
            #ffffff 62%,
            #f3f6f2 100%
        );
}

.torre-faq-hero::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: min(
        calc(100% - 48px),
        var(--torre-container)
    );

    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--torre-border) 12%,
            var(--torre-border) 88%,
            transparent
        );
}


/* ---------------------------------------------------------
   5. BREADCRUMBS
   --------------------------------------------------------- */

.torre-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    color: var(--torre-text-soft);

    font-size: 0.78rem;
    line-height: 1.5;
}

.torre-breadcrumbs a {
    color: var(--torre-green);
    text-decoration: none;
}

.torre-breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.torre-breadcrumbs span[aria-hidden="true"] {
    opacity: 0.45;
}


/* ---------------------------------------------------------
   6. EYEBROW / CABECERAS
   --------------------------------------------------------- */

.torre-eyebrow {
    margin: 0 0 18px;

    color: var(--torre-earth);

    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.torre-faq-hero h1 {
    max-width: 900px;

    margin: 0;

    color: var(--torre-green-dark);

    font-size:
        clamp(
            2.35rem,
            5vw,
            4.6rem
        );

    line-height: 1.04;
    letter-spacing: -0.035em;
}

.torre-faq-intro {
    max-width: 770px;

    margin:
        clamp(25px, 3vw, 36px)
        0
        0;

    color: var(--torre-text-soft);

    font-size:
        clamp(
            1.06rem,
            1.6vw,
            1.24rem
        );

    line-height: 1.75;
}

.torre-title-line {
    width: 82px;
    height: 3px;

    margin: 34px 0 24px;

    border-radius: 999px;

    background: var(--torre-earth);
}

.torre-faq-highlight {
    margin: 0;

    color: var(--torre-green);

    font-size:
        clamp(
            1rem,
            1.3vw,
            1.12rem
        );

    font-weight: 650;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   7. NAVEGACIÓN DE 8 BLOQUES
   --------------------------------------------------------- */

.torre-faq-nav {
    position: relative;
    z-index: 10;

    padding: 32px 0;

    border-bottom:
        1px solid var(--torre-border);

    background: var(--torre-white);
}

.torre-faq-nav-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.torre-faq-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 88px;

    padding: 18px 16px;

    border:
        1px solid var(--torre-border);

    border-radius:
        var(--torre-radius-small);

    background:
        var(--torre-white);

    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.torre-faq-nav a span {
    display: block;

    margin-bottom: 8px;

    color: var(--torre-earth);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.torre-faq-nav a strong {
    color: var(--torre-green-dark);

    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.25;
}

.torre-faq-nav a:hover {
    transform: translateY(-2px);

    border-color:
        rgba(47, 73, 56, 0.35);

    background:
        var(--torre-green-soft);

    box-shadow:
        0 8px 20px rgba(32, 49, 37, 0.06);
}


/* ---------------------------------------------------------
   8. SECCIONES PRINCIPALES
   --------------------------------------------------------- */

.torre-faq-section {
    padding:
        clamp(72px, 8vw, 120px)
        0;

    background: var(--torre-white);
}

.torre-faq-section-soft {
    background: var(--torre-green-soft);
}

.torre-section-header {
    margin-bottom:
        clamp(34px, 5vw, 54px);
}

.torre-section-number {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--torre-earth);

    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.3;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.torre-section-header h2,
.torre-field-copy h2,
.torre-author h2,
.torre-faq-cta h2,
.torre-final-cta h2 {
    margin: 0;

    color: var(--torre-green-dark);

    font-size:
        clamp(
            1.85rem,
            3.7vw,
            3.15rem
        );

    line-height: 1.1;
    letter-spacing: -0.025em;
}

.torre-section-header h2::after {
    content: "";

    display: block;

    width: 60px;
    height: 2px;

    margin-top: 24px;

    background: var(--torre-earth);
}

.torre-section-description {
    max-width: 770px;

    margin: 26px 0 0;

    color: var(--torre-text-soft);

    font-size: 1.05rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   9. ACORDEONES
   --------------------------------------------------------- */

.torre-accordion {
    border-top:
        1px solid var(--torre-border);
}

.torre-faq-item {
    margin: 0;

    border-bottom:
        1px solid var(--torre-border);
}

.torre-faq-item h3 {
    margin: 0;

    font-size: inherit;
}

.torre-faq-question {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    gap: 24px;

    width: 100%;

    padding:
        25px
        4px;

    border: 0;

    background: transparent;

    color: var(--torre-green-dark);

    font-family: inherit;

    font-size:
        clamp(
            1.02rem,
            1.4vw,
            1.16rem
        );

    font-weight: 650;
    line-height: 1.45;

    text-align: left;

    cursor: pointer;

    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.torre-faq-question:hover {
    color: var(--torre-earth);

    padding-left: 8px;
}

.torre-faq-icon {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border:
        1px solid var(--torre-border);

    border-radius: 50%;

    color: var(--torre-green);

    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;

    transition:
        transform 200ms ease,
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease;
}

.torre-faq-question[aria-expanded="true"] {
    color: var(--torre-earth);
}

.torre-faq-question[aria-expanded="true"]
.torre-faq-icon {
    transform: rotate(45deg);

    border-color: var(--torre-green);

    background: var(--torre-green);

    color: var(--torre-white);
}

.torre-faq-answer {
    padding:
        0
        clamp(44px, 6vw, 74px)
        27px
        4px;

    color: var(--torre-text-soft);

    font-size:
        clamp(
            0.98rem,
            1.2vw,
            1.05rem
        );

    line-height: 1.78;
}

.torre-faq-answer p {
    margin: 0 0 16px;
}

.torre-faq-answer p:last-child {
    margin-bottom: 0;
}

.torre-faq-answer a {
    color: var(--torre-green);

    font-weight: 650;

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   10. CTA INTERMEDIOS
   --------------------------------------------------------- */

.torre-faq-cta {
    padding:
        clamp(58px, 7vw, 90px)
        0;

    background: var(--torre-green-dark);

    color: rgba(255, 255, 255, 0.82);
}

.torre-faq-cta-light {
    background: var(--torre-earth-soft);

    color: var(--torre-text-soft);
}

.torre-faq-cta-inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    gap:
        clamp(36px, 6vw, 80px);
}

.torre-faq-cta h2 {
    max-width: 720px;

    color: var(--torre-white);
}

.torre-faq-cta-light h2 {
    color: var(--torre-green-dark);
}

.torre-faq-cta p:not(.torre-eyebrow) {
    max-width: 700px;

    margin: 20px 0 0;

    font-size: 1.02rem;
    line-height: 1.7;
}

.torre-faq-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;
}


/* ---------------------------------------------------------
   11. BOTONES
   --------------------------------------------------------- */

.torre-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 14px 22px;

    border:
        1px solid transparent;

    border-radius: 7px;

    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.2;

    letter-spacing: 0.055em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.torre-btn:hover {
    transform: translateY(-2px);
}

.torre-btn-primary {
    background: var(--torre-earth);

    color: var(--torre-white) !important;

    box-shadow:
        0 8px 24px rgba(92, 70, 40, 0.16);
}

.torre-btn-primary:hover {
    background: var(--torre-earth-dark);
}

.torre-btn-secondary {
    border-color:
        rgba(255, 255, 255, 0.45);

    background: transparent;

    color: var(--torre-white) !important;
}

.torre-faq-cta-light
.torre-btn-secondary,
.torre-final-cta
.torre-btn-secondary {
    border-color:
        rgba(47, 73, 56, 0.28);

    color:
        var(--torre-green-dark) !important;
}

.torre-btn-secondary:hover {
    border-color: currentColor;
}


/* ---------------------------------------------------------
   12. INVERSIÓN
   --------------------------------------------------------- */

.torre-investment-numbers {
    margin-bottom: 24px;

    color:
        rgba(47, 73, 56, 0.11);

    font-size:
        clamp(
            2.15rem,
            7vw,
            5.8rem
        );

    font-weight: 800;
    line-height: 0.95;

    letter-spacing: -0.055em;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   13. RELEVAMIENTOS + FOTO
   --------------------------------------------------------- */

.torre-field-section {
    padding:
        clamp(80px, 9vw, 130px)
        0;

    background: var(--torre-green-dark);

    color:
        rgba(255, 255, 255, 0.78);
}

.torre-field-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(360px, 1.05fr);

    align-items: center;

    gap:
        clamp(
            48px,
            8vw,
            110px
        );
}

.torre-field-copy h2 {
    margin-bottom: 24px;

    color: var(--torre-white);
}

.torre-field-copy > p {
    margin: 0 0 34px;

    line-height: 1.75;
}

.torre-field-section
.torre-accordion {
    border-top-color:
        rgba(255, 255, 255, 0.18);
}

.torre-field-section
.torre-faq-item {
    border-bottom-color:
        rgba(255, 255, 255, 0.18);
}

.torre-field-section
.torre-faq-question {
    color: var(--torre-white);
}

.torre-field-section
.torre-faq-question:hover,
.torre-field-section
.torre-faq-question[aria-expanded="true"] {
    color: #d7bf94;
}

.torre-field-section
.torre-faq-icon {
    border-color:
        rgba(255, 255, 255, 0.25);

    color: var(--torre-white);
}

.torre-field-section
.torre-faq-question[aria-expanded="true"]
.torre-faq-icon {
    border-color: var(--torre-earth);

    background: var(--torre-earth);
}

.torre-field-section
.torre-faq-answer {
    color:
        rgba(255, 255, 255, 0.76);
}

.torre-field-image {
    margin: 0;
}

.torre-field-image img {
    width: 100%;

    aspect-ratio: 16 / 9;
    object-fit: cover;

    border-radius:
        var(--torre-radius-large);

    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.18);
}

.torre-field-image figcaption {
    margin-top: 13px;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 0.8rem;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   14. LOCALIDADES
   --------------------------------------------------------- */

.torre-localities {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin:
        -12px
        0
        clamp(40px, 6vw, 64px);
}

.torre-localities span {
    display: inline-flex;

    align-items: center;

    min-height: 36px;

    padding: 8px 13px;

    border:
        1px solid rgba(47, 73, 56, 0.15);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.7);

    color:
        var(--torre-green-dark);

    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}


/* ---------------------------------------------------------
   15. AUTOR
   --------------------------------------------------------- */

.torre-author {
    padding:
        clamp(70px, 8vw, 110px)
        0;

    background: var(--torre-white);
}

.torre-author-inner {
    max-width: var(--torre-content);
}

.torre-last-updated {
    margin: 0 0 32px;

    color: var(--torre-text-soft);

    font-size: 0.82rem;
    line-height: 1.5;
}

.torre-author-content {
    position: relative;

    padding:
        clamp(
            32px,
            5vw,
            54px
        );

    border-left:
        4px solid var(--torre-earth);

    background: var(--torre-earth-soft);
}

.torre-author h2 {
    margin-bottom: 10px;
}

.torre-author-role {
    margin: 0 0 22px;

    color: var(--torre-earth);

    font-weight: 700;
}

.torre-author-content > p:not(.torre-eyebrow) {
    max-width: 720px;

    color: var(--torre-text-soft);

    line-height: 1.75;
}

.torre-text-link {
    display: inline-block;

    margin-top: 14px;

    color:
        var(--torre-green) !important;

    font-weight: 700;

    text-decoration: none;
}

.torre-text-link:hover {
    text-decoration: underline;

    text-underline-offset: 4px;
}


/* ---------------------------------------------------------
   16. CTA FINAL
   --------------------------------------------------------- */

.torre-final-cta {
    padding:
        clamp(82px, 10vw, 140px)
        0;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #f1f4ef 0%,
            #ffffff 52%,
            #f4f0e8 100%
        );
}

.torre-final-cta-inner {
    max-width: 920px;
}

.torre-final-cta h2 {
    max-width: 760px;

    margin-inline: auto;
}

.torre-final-cta-inner > p:not(.torre-eyebrow) {
    max-width: 680px;

    margin:
        22px
        auto
        0;

    color: var(--torre-text-soft);

    font-size:
        clamp(
            1rem,
            1.4vw,
            1.1rem
        );

    line-height: 1.7;
}

.torre-three-data {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin:
        clamp(40px, 6vw, 58px)
        0;
}

.torre-three-data div {
    min-height: 124px;

    padding: 23px;

    border:
        1px solid var(--torre-border);

    border-radius:
        var(--torre-radius);

    background:
        rgba(255, 255, 255, 0.75);
}

.torre-three-data strong {
    display: block;

    margin-bottom: 15px;

    color: var(--torre-earth);

    font-size: 0.75rem;

    letter-spacing: 0.12em;
}

.torre-three-data span {
    display: block;

    color: var(--torre-green-dark);

    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
}

.torre-final-cta
.torre-faq-actions {
    justify-content: center;
}


/* ---------------------------------------------------------
   17. FOCUS / ACCESIBILIDAD
   --------------------------------------------------------- */

.torre-faq-page a:focus-visible,
.torre-faq-page button:focus-visible {
    outline:
        3px solid rgba(155, 122, 75, 0.45);

    outline-offset: 4px;
}


/* ---------------------------------------------------------
   18. TABLET
   --------------------------------------------------------- */

@media (max-width: 980px) {

    .torre-faq-nav-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .torre-faq-cta-inner {
        grid-template-columns: 1fr;
    }

    .torre-field-grid {
        grid-template-columns: 1fr;
    }

    .torre-field-image {
        max-width: 760px;
    }

}


/* ---------------------------------------------------------
   19. MOBILE
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .torre-faq-container {
        width:
            min(
                calc(100% - 32px),
                var(--torre-container)
            );
    }

    .torre-faq-hero {
        padding:
            64px
            0
            56px;
    }

    .torre-faq-hero::after {
        width:
            calc(100% - 32px);
    }

    .torre-breadcrumbs {
        margin-bottom: 22px;
    }

    .torre-faq-nav {
        padding: 22px 0;
    }

    .torre-faq-nav-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .torre-faq-nav a {
        min-height: 78px;

        padding: 14px 13px;
    }

    .torre-faq-section {
        padding:
            66px
            0;
    }

    .torre-faq-question {
        gap: 16px;

        padding:
            21px
            2px;
    }

    .torre-faq-question:hover {
        padding-left: 2px;
    }

    .torre-faq-icon {
        width: 30px;
        height: 30px;
    }

    .torre-faq-answer {
        padding:
            0
            2px
            24px;
    }

    .torre-investment-numbers {
        white-space: normal;

        line-height: 1.05;
    }

    .torre-faq-cta {
        padding:
            56px
            0;
    }

    .torre-faq-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }

    .torre-btn {
        width: 100%;
    }

    .torre-field-section {
        padding:
            68px
            0;
    }

    .torre-field-grid {
        gap: 44px;
    }

    .torre-field-image img {
        border-radius:
            var(--torre-radius);
    }

    .torre-localities {
        gap: 7px;
    }

    .torre-localities span {
        min-height: 34px;

        padding: 7px 11px;

        font-size: 0.76rem;
    }

    .torre-author {
        padding:
            58px
            0;
    }

    .torre-author-content {
        padding:
            28px
            24px;

        border-left-width: 3px;
    }

    .torre-three-data {
        grid-template-columns: 1fr;

        margin:
            36px
            0;
    }

    .torre-three-data div {
        min-height: auto;
    }

    .torre-final-cta {
        padding:
            70px
            0;
    }

}


/* ---------------------------------------------------------
   20. TELÉFONOS MUY PEQUEÑOS
   --------------------------------------------------------- */

@media (max-width: 390px) {

    .torre-faq-nav-grid {
        grid-template-columns: 1fr;
    }

    .torre-faq-nav a {
        min-height: auto;
    }

}


/* ---------------------------------------------------------
   21. REDUCIR MOVIMIENTO
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .torre-faq-page *,
    .torre-faq-page *::before,
    .torre-faq-page *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}


/* ---------------------------------------------------------
   22. IMPRESIÓN
   --------------------------------------------------------- */

@media print {

    .torre-faq-nav,
    .torre-faq-cta,
    .torre-final-cta {
        display: none;
    }

    .torre-faq-page {
        background: #ffffff;
        color: #000000;
    }

    .torre-faq-answer[hidden] {
        display: block !important;
    }

    .torre-field-section {
        background: #ffffff;
        color: #000000;
    }

    .torre-field-section
    .torre-faq-question,
    .torre-field-copy h2 {
        color: #000000;
    }

}