/* ==========================================================
   FerPilar Suite — estilos según manual de marca / moodboard
   Logo: imagen (Brittany Signature solo en el logo)
   Títulos y destacados: Montserrat Light
   Textos: Lora Regular
   ========================================================== */

:root {
    color-scheme: light;

    /* Paleta de marca */
    --lavanda-profunda: #5c5470;   /* Pantone 7677 C · principal */
    --lavanda-suave: #9c8fb3;      /* Pantone 7444 C · secundario */
    --verde-salvia: #8ea27e;       /* Pantone 5565 C · acento */
    --arena: #e3d9c9;              /* Warm Gray 1 C · fondo */
    --blanco-roto: #f7f4ee;        /* 11-0601 TCX · base */

    /* Derivados */
    --ink: #4b4260;                /* color del texto del logo */
    --ink-soft: #6f6880;
    --lavanda-texto: #7a6c96;      /* lavanda suave con contraste para texto sobre claro */
    --arena-claro: #efe9df;
    --line: rgba(75, 66, 96, .16);

    --title: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --text: 'Lora', Georgia, serif;

    --gutter: clamp(20px, 7vw, 120px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--blanco-roto);
    color: var(--ink);
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--title);
    font-weight: 300;
    letter-spacing: -.005em;
    line-height: 1.2;
}

h2 {
    font-size: clamp(30px, 3.6vw, 46px);
}

h1 strong,
h2 strong {
    font-weight: 300;
    color: var(--lavanda-texto);
}

.wrap {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Etiquetas en mayúsculas espaciadas (como en el manual) */
.label {
    font-family: var(--title);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.kicker span {
    color: var(--verde-salvia);
}

.kicker span::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    margin-left: 14px;
    vertical-align: middle;
    background: currentColor;
    opacity: .5;
}

/* Botones y links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border: 1px solid var(--ink);
    font-family: var(--title);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover {
    background: var(--ink);
    color: var(--blanco-roto);
}

.btn-light {
    border-color: var(--blanco-roto);
    background: var(--blanco-roto);
    color: var(--ink);
}

.btn-light:hover {
    background: transparent;
    color: var(--blanco-roto);
}

.link,
.link-light {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    font-family: var(--title);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.link span {
    color: var(--verde-salvia);
}

.link-light {
    color: var(--blanco-roto);
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Header ---------- */
/* Barra translúcida sobre la foto; logo centrado entre los dos grupos de links */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 100px;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    background: rgba(247, 244, 238, .42);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
    background: rgba(247, 244, 238, .86);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(75, 66, 96, .06);
}

.brand {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand img {
    height: 70px;
    width: auto;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
    font-family: var(--title);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink);
}

.nav-left {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
}

.nav-right {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
}

.nav-group a:not(.nav-cta) {
    transition: color .2s ease;
}

.nav-group a:not(.nav-cta):hover {
    color: var(--lavanda-texto);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: var(--lavanda-profunda);
    color: var(--blanco-roto);
    transition: background .2s ease;
}

.nav-cta:hover {
    background: var(--ink);
}

.nav-cta svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.6;
}

.menu-toggle,
.mobile-nav {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(880px, 100svh);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--lavanda-profunda);
    color: #fff;
}

.hero-image,
.hero-wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-position: center 55%;
}

/* Video de fondo con un movimiento lento, estilo Llao Llao */
.hero-video {
    object-fit: cover;
    transform-origin: 50% 60%;
    animation: hero-drift 16s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12) translate(-1%, -1%);
    }
}

.hero-wash {
    background:
        linear-gradient(90deg, rgba(60, 52, 78, .72) 0%, rgba(60, 52, 78, .38) 45%, rgba(60, 52, 78, 0) 75%),
        linear-gradient(0deg, rgba(60, 52, 78, .55) 0%, rgba(60, 52, 78, 0) 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 120px var(--gutter) clamp(64px, 9vw, 110px);
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .9);
}

.hero-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--verde-salvia);
}

.hero h1 {
    margin: 26px 0 0;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.16;
    text-shadow: 0 1px 24px rgba(40, 34, 54, .25);
}

.hero h1 strong {
    color: #ddd4ec;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 34px;
}

/* ---------- Valores ---------- */
.values {
    background: var(--arena);
    padding: 26px var(--gutter);
}

.values ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.values li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--title);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
}

.values svg {
    width: 24px;
    height: 24px;
    color: var(--lavanda-profunda);
}

/* ---------- 01 El departamento ---------- */
.intro {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.intro h2 {
    margin-bottom: 28px;
}

.intro-title {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.15;
    margin-bottom: 0 !important;
}

.intro-dark {
    background: var(--lavanda-profunda);
    color: var(--blanco-roto);
}

.intro-dark .kicker {
    color: rgba(247, 244, 238, .75);
}

.intro-dark .kicker span {
    color: #b9c7ad;
}

.intro-dark h2 strong {
    color: #d6cdea;
}

.intro-dark .intro-text p:not(.label) {
    color: rgba(247, 244, 238, .8);
}

.intro-dark .intro-text .lead {
    color: var(--blanco-roto) !important;
}

.intro-dark .intro-photo figcaption {
    background: var(--lavanda-profunda);
    color: rgba(247, 244, 238, .8);
}

.intro-text p:not(.label) {
    color: var(--ink-soft);
    margin-bottom: 18px;
    max-width: 460px;
}

.intro-text .lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--ink) !important;
}

.intro-text .link {
    margin-top: 14px;
}

.intro-photo {
    position: relative;
}

.intro-photo img {
    height: clamp(320px, 42vw, 560px);
}

.intro-photo figcaption {
    position: absolute;
    left: -1px;
    bottom: -1px;
    padding: 14px 20px;
    background: var(--blanco-roto);
    color: var(--ink-soft);
    font-size: 10px;
}

/* ---------- 02 Comodidades ---------- */
.amenities {
    background: var(--arena-claro);
    padding: clamp(80px, 10vw, 130px) 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(44px, 6vw, 70px);
}

.amenity-block {
    padding-bottom: clamp(44px, 5vw, 64px);
    margin-bottom: clamp(44px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
}

.block-title {
    color: var(--lavanda-texto);
    font-weight: 500;
    margin-bottom: 34px;
}

.complex-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px 40px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.complex-head .block-title {
    margin-bottom: 0;
}

.complex-head p {
    max-width: 460px;
    font-size: 15px;
    color: var(--ink-soft);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.icon-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 44px;
}

.icon-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
}

.icon-grid p {
    max-width: 240px;
    margin: 0 auto;
}

.icon-grid li {
    text-align: center;
}

.icon-grid svg {
    width: 40px;
    height: 40px;
    color: var(--lavanda-profunda);
    margin-bottom: 16px;
}

.icon-grid h4 {
    margin: 0 0 6px;
    font-family: var(--title);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.icon-grid p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--lavanda-profunda);
    color: #fff;
}

.feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(60, 52, 78, .78), rgba(60, 52, 78, 0) 60%);
}

.feature img {
    height: 100%;
    transition: transform .7s ease;
}

.feature:hover img {
    transform: scale(1.04);
}

.feature-label {
    position: absolute;
    z-index: 1;
    left: 26px;
    right: 26px;
    bottom: 26px;
}

.feature-label h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.feature-label p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
}

/* ---------- 03 Galería ---------- */
.gallery {
    background: var(--lavanda-profunda);
    color: var(--blanco-roto);
    padding: clamp(80px, 10vw, 130px) 0;
}

.gallery .kicker {
    color: rgba(247, 244, 238, .75);
}

.gallery .kicker span {
    color: #b9c7ad;
}

.gallery h2 strong {
    color: #cfc5e0;
}

.gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
}

.gallery-grid img {
    height: 100%;
    min-height: 0;
}

.g-big {
    grid-column: span 2;
    grid-row: span 2;
}

.g-wide {
    grid-column: span 2;
}

.g-tall {
    grid-row: span 2;
}

.g-full {
    grid-column: 1 / -1;
    grid-row: span 2;
    object-position: center 60%;
}

.gallery-note {
    margin-top: 22px;
    font-size: 10px;
    color: rgba(247, 244, 238, .6);
}

/* ---------- 04 Ubicación ---------- */
.location {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.location {
    align-items: start;
}

.location-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.building-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.building-photos figure {
    position: relative;
}

.building-photos img {
    height: clamp(240px, 30vw, 440px);
    max-width: 100%;
}

.building-photos figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 14px;
    background: var(--blanco-roto);
    color: var(--ink-soft);
    font-size: 10px;
    white-space: nowrap;
}

.location-map {
    position: relative;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: clamp(340px, 40vw, 520px);
    border: 0;
    filter: saturate(.75);
}

.map-btn {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: var(--blanco-roto);
}

.location h2 {
    margin-bottom: 24px;
}

.location-text>p:not(.label) {
    color: var(--ink-soft);
    max-width: 440px;
}

.location-list {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.location-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.location-list svg {
    width: 20px;
    height: 20px;
    color: var(--verde-salvia);
    flex: none;
}

/* ---------- Reservas ---------- */
.booking {
    position: relative;
    overflow: hidden;
    background: var(--arena);
    text-align: center;
    padding: clamp(90px, 11vw, 140px) 24px;
}

.booking>.label {
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.booking h2 {
    max-width: 720px;
    margin: 0 auto;
}

.booking-copy {
    margin: 22px auto 36px;
    color: var(--ink-soft);
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.sprig {
    position: absolute;
    width: 90px;
    height: 135px;
    color: var(--lavanda-suave);
    stroke-width: .9;
    opacity: .7;
}

.sprig-left {
    left: 6%;
    bottom: 30px;
    transform: rotate(-12deg);
}

.sprig-right {
    right: 6%;
    top: 40px;
    transform: rotate(14deg);
    color: var(--verde-salvia);
}

.btn-whatsapp {
    gap: 12px;
    padding: 18px 32px;
    background: var(--lavanda-profunda);
    border-color: var(--lavanda-profunda);
    color: var(--blanco-roto);
    font-size: 12px;
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.btn-whatsapp:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.booking-phone {
    margin-top: 16px;
    font-family: var(--title);
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--ink-soft);
}

.platforms-wrap {
    margin-top: 56px;
}

.platforms-wrap .label {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.platforms .btn {
    padding: 11px 22px;
    font-size: 10px;
    border-color: rgba(75, 66, 96, .35);
}

/* Restaurantes cercanos */
.nearby {
    margin-top: 28px;
}

.nearby .label {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.nearby ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nearby li {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    background: var(--arena-claro);
}

/* Botón flotante de WhatsApp */
/* Subido para que no lo tape el cartel "Powered by Netlify" de abajo a la derecha */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483647;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--lavanda-profunda);
    color: var(--blanco-roto);
    box-shadow: 0 8px 24px rgba(60, 52, 78, .3);
    transition: transform .2s ease, background .2s ease;
}

.wa-float:hover {
    transform: scale(1.06);
    background: var(--ink);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--lavanda-profunda);
    color: var(--blanco-roto);
    padding: 70px var(--gutter) 28px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 210px;
    height: auto;
}

.footer-tagline {
    margin-top: 14px;
    font-family: var(--title);
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(247, 244, 238, .75);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 34px;
    margin-top: 38px;
    font-family: var(--title);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: #cfc5e0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid rgba(247, 244, 238, .18);
}

.footer-bottom p {
    font-family: var(--title);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(247, 244, 238, .6);
}

.back-top {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(247, 244, 238, .35);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .icon-grid,
    .icon-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 80px;
    }

    .site-header {
        height: 80px;
        grid-template-columns: 42px 1fr 42px;
    }

    .nav-group {
        display: none;
    }

    .brand img {
        height: 54px;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 1px;
        width: 24px;
        background: var(--ink);
        transition: width .2s ease;
    }

    .menu-toggle span:last-child {
        width: 16px;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        width: 24px;
    }

    .mobile-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 8px var(--gutter) 24px;
        background: var(--blanco-roto);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 20px rgba(75, 66, 96, .08);
        font-family: var(--title);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .2em;
        text-transform: uppercase;
    }

    .site-header.menu-open {
        background: var(--blanco-roto);
    }

    .site-header.menu-open .mobile-nav {
        display: flex;
    }

    .mobile-nav a {
        padding: 14px 0;
    }

    .mobile-nav .nav-cta {
        align-self: flex-start;
        margin-top: 10px;
        padding: 13px 20px;
    }

    .hero {
        min-height: 92svh;
    }

    .hero-image {
        object-position: 40% center;
    }

    .hero-wash {
        background:
            linear-gradient(0deg, rgba(60, 52, 78, .82) 0%, rgba(60, 52, 78, .35) 55%, rgba(60, 52, 78, .1) 100%);
    }

    .hero h1 {
        font-size: clamp(30px, 8.4vw, 42px);
    }

    .values ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .values li {
        font-size: 11px;
        letter-spacing: .18em;
    }

    .intro,
    .location {
        grid-template-columns: 1fr;
    }

    .location-media {
        order: 1;
    }

    .building-photos figcaption {
        padding: 8px 10px;
        font-size: 9px;
        letter-spacing: .16em;
    }

    .icon-grid,
    .icon-grid.grid-4,
    .icon-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        height: 340px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .g-big {
        grid-row: span 2;
    }

    .g-full {
        grid-row: span 1;
    }

    .map-btn {
        position: static;
        margin-top: 12px;
    }

    .sprig {
        width: 56px;
        height: 84px;
        opacity: .5;
    }

    .footer-bottom {
        flex-direction: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
