/*
Theme Name: Fincas Laxe
Theme URI: https://fincaslaxe.com
Author: Fincas Laxe
Description: Tema propio para Fincas Laxe.
Version: 0.2.0
Text Domain: fincaslaxe
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 850px;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 24px 0;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .08em;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    font-size: 15px;
}

.header-cta {
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2000&q=85')
        center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
}

.eyebrow,
.section-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}

.hero h1 {
    max-width: 900px;
    margin: 18px 0 24px;
    font-size: clamp(52px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero-text {
    max-width: 560px;
    margin: 0 0 34px;
    font-size: 20px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 23px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary {
    background: #fff;
    color: #111;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,.65);
    color: #fff;
}

.btn-light {
    margin-top: 22px;
    background: #fff;
    color: #111;
}

.section {
    padding: 110px 0;
}

.section h2 {
    max-width: 850px;
    margin: 12px 0 20px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.section-intro,
.section p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
}

.section-dark {
    background: #111;
    color: #fff;
}

.site-footer {
    padding: 40px 0;
    background: #0a0a0a;
    color: #aaa;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 800px) {
    .main-nav {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .section {
        padding: 75px 0;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* FL FICHA PROPIEDAD */

body.single-propiedad .site-header {
    position: relative;
    background: #171717;
}

.fl-ficha {
    background: #fff;
    padding: 45px 0 100px;
}

.fl-ficha-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.fl-volver {
    margin-bottom: 35px;
    color: #666;
}

.fl-ficha-ubicacion {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    color: #666;
}

.fl-ficha h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -.035em;
    margin: 15px 0;
}

.fl-ficha-precio {
    font-size: 30px;
    font-weight: 700;
    margin: 20px 0 35px;
}

.fl-galeria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 35px 0 65px;
}

.fl-galeria a:first-child {
    grid-column: 1 / -1;
}

.fl-foto {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.fl-galeria a:first-child .fl-foto {
    height: 520px;
}

.fl-ficha h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 25px;
}

.fl-ficha-datos,
.fl-descripcion,
.fl-ficha-video {
    margin: 60px 0;
}

.fl-datos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fl-dato {
    padding: 20px;
    background: #f6f6f6;
}

.fl-dato span,
.fl-dato strong {
    display: block;
}

.fl-dato span {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.fl-descripcion {
    max-width: 800px;
    line-height: 1.8;
    font-size: 17px;
}

.fl-ficha-video iframe {
    display: block;
    width: min(100%, 390px);
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .fl-galeria,
    .fl-datos-grid {
        grid-template-columns: 1fr;
    }

    .fl-galeria a:first-child {
        grid-column: auto;
    }

    .fl-galeria .fl-foto,
    .fl-galeria a:first-child .fl-foto {
        height: 260px;
    }
}


/* FLX_HERO_CONFIG_V1 */

/* Portada personalizada */

.hero.hero--custom {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #17342f;
}

.fl-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.fl-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero--custom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, var(--fl-hero-overlay, .55)) 0%,
        rgba(0, 0, 0, .12) 100%
    );
}

.hero--custom .hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 700px) {

    .hero--custom::before {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.25) 0%,
            rgba(0,0,0,var(--fl-hero-overlay,.55)) 75%,
            rgba(0,0,0,.48) 100%
        );
    }

}


/* FLX_HERO_OVERLAY_V2 */

/*
 * Escurecemento uniforme e regulable.
 * Degradado adicional moi suave para destacar o texto.
 */

.hero.hero--custom::before {
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.14) 0%,
            transparent 75%
        ),
        rgba(0,0,0,var(--fl-hero-overlay,.55));
}

/* Mesmo funcionamento en móbil */

@media (max-width:700px) {

    .hero.hero--custom::before {
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.08),
                transparent 40%,
                rgba(0,0,0,.12)
            ),
            rgba(0,0,0,var(--fl-hero-overlay,.55));
    }

}


/* FLX_REDISENO_HERO_V1 */

/* Proporcións da portada */

.hero {
    min-height: 620px;
}

.hero .hero-content {
    padding-top: 75px;
    padding-bottom: 75px;
}

.hero h1 {
    max-width: 790px;
    margin: 18px 0 22px;
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 650;
    line-height: 1.07;
    letter-spacing: -.045em;
}

.hero .hero-text {
    max-width: 540px;
    margin-bottom: 30px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
}

/* Degradado natural, máis intenso detrás do texto */

.hero.hero--custom::before {
    background: linear-gradient(
        90deg,
        rgba(9, 24, 25, var(--fl-hero-overlay, .55)) 0%,
        rgba(9, 24, 25, calc(var(--fl-hero-overlay, .55) * .50)) 55%,
        rgba(9, 24, 25, calc(var(--fl-hero-overlay, .55) * .15)) 100%
    );
}

/* Adaptación móbil */

@media (max-width: 700px) {

    .hero {
        min-height: 610px;
    }

    .hero .hero-content {
        padding-top: 85px;
        padding-bottom: 80px;
    }

    .hero h1 {
        max-width: 540px;
        font-size: clamp(39px, 10vw, 54px);
        line-height: 1.08;
    }

    .hero .hero-text {
        max-width: 350px;
        font-size: 16px;
        line-height: 1.6;
    }

    .hero.hero--custom::before {
        background: linear-gradient(
            180deg,
            rgba(9,24,25,calc(var(--fl-hero-overlay,.55) * .35)) 0%,
            rgba(9,24,25,calc(var(--fl-hero-overlay,.55) * .75)) 65%,
            rgba(9,24,25,var(--fl-hero-overlay,.55)) 100%
        );
    }
}

/* FLX_HERO_CONTRASTE_V2 */

/* Degradado localizado detrás do texto */

.hero.hero--custom::before {
    background: linear-gradient(
        90deg,
        rgba(7,24,28,clamp(.42,calc(var(--fl-hero-overlay,.55) * 1.05),.82)) 0%,
        rgba(7,24,28,clamp(.22,calc(var(--fl-hero-overlay,.55) * .66),.56)) 45%,
        rgba(7,24,28,calc(var(--fl-hero-overlay,.55) * .12)) 78%,
        transparent 100%
    );
}

/* Contraste sutil para os textos */

.hero h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,.28);
}

.hero .hero-text {
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

.hero .eyebrow {
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

