@font-face {
    font-family: "FanfareTicker";
    src: url("../fonts/fanfareticker.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "HelveticaNowDisplay-Bold";
    src: url("../fonts/HelveticaNowDisplay-Bold.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "HelveticaNowDisplay-Medium";
    src: url("../fonts/HelveticaNowDisplay-Medium.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Fanfare Ticker";
    src: url("../fonts/fanfareticker.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Display";
    src: url("../fonts/NeueHaasDisplayLight.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Display";
    src: url("../fonts/NeueHaasDisplayRoman.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Display";
    src: url("../fonts/NeueHaasDisplayMediu.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Display";
    src: url("../fonts/NeueHaasDisplayBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Display";
    src: url("../fonts/NeueHaasDisplayBlack.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* Helvetica Now Display: titles and body texts, as in the design PDF
   (no Light file: weight 300 falls back to Regular, like the design). */
@font-face {
    font-family: "Helvetica Now Display";
    src: url("../fonts/HelveticaNowDisplay-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Now Display";
    src: url("../fonts/HelveticaNowDisplay-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Now Display";
    src: url("../fonts/HelveticaNowDisplay-Bold.ttf") format("truetype");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --bg-primary: #dfdad5;
    --bg-secondary: #bee3ee;
    --font-led: "Fanfare Ticker", monospace;
    /* Neue Haas: menu pills, form, tabs, spec labels and footer (as in the PDF) */
    --font-principal: "Neue Haas Display", Arial, sans-serif;
    --font-display: "Helvetica Now Display", "Neue Haas Display", Arial, sans-serif;
    /* Red from the design PDF (a bit darker than before) */
    --red-color: #c83c33;
    --darkred-color: #a8302a;
    --black-color: #232120;
    --light-blue-color: #bee3ee;
    /* Metro line colors (Residencial / Hotelero / Senior) */
    --metro-blue: #7cc6e2;
    --metro-purple: #6a3d9a;
    --metro-green: #00a36c;
    --metro-gradient: linear-gradient(
        90deg,
        var(--metro-green) 0%,
        var(--metro-purple) 55%,
        var(--metro-blue) 100%
    );
    --text-light: #e8e4df;

    /* Living-mode page theme (residencial.html / hotelero.html).
       Defaults = Residencial; body.theme-hotelero overrides them below. */
    --accent: var(--metro-blue); /* dots, active track stretch */
    --accent-soft: var(--metro-blue); /* decorative dots around figures */
    --accent-ink: var(--black-color); /* hero claim and figures */
    --hero-fade-mid: #d3dee3; /* hero background: beige -> this -> fade */
    --hero-fade: #8fcbe6;
    --track: #2f2d2c; /* metro track in "Tipos de apartamentos" */
    --spec-value: rgba(35, 33, 32, 0.55);

    /* Type scale for all content sections (the hero/banners have their own).
       Use these instead of fixed sizes so every section matches. */
    --fs-title: clamp(28px, 3.5vw, 50px); /* section titles, big figures */
    --fs-subtitle: clamp(22px, 2.4vw, 34px); /* subtitles, card titles */
    --fs-body: clamp(17px, 1.35vw, 20px); /* paragraphs: 17px on phones/tablets, up to 20px on desktop */
    --fs-small: 14px; /* notes, labels, legal */
    --lh-body: 1.5;
}
/* Hotelero page: everything in the Hotelero purple */
.theme-hotelero {
    --accent: var(--metro-purple);
    --accent-soft: #a594d0;
    --accent-ink: var(--metro-purple);
    --hero-fade-mid: #d8d3dd;
    --hero-fade: #a99bd2;
    --track: #2d2a50;
    --spec-value: #8a76c0;
}
/* Senior page: everything in the Senior green */
.theme-senior {
    --accent: var(--metro-green);
    --accent-soft: var(--metro-green);
    --accent-ink: #004439; /* text green from the design PDF */
    --hero-fade-mid: #d3e1da;
    --hero-fade: #3fb487;
    --track: #0f3a32;
    --spec-value: #00a174; /* spec figures green from the design PDF */
}
/* Texts that keep Neue Haas Display in the design */
.intro__form,
.intro__description,
.site-footer,
.typology-specs__label {
    font-family: var(--font-principal);
}
/* Living-mode pages: the gallery title dots take the page color */
.theme-residencial .typology__title-dot,
.theme-hotelero .typology__title-dot,
.theme-senior .typology__title-dot {
    background: var(--accent);
}
html {
    overflow-x: hidden;
    width: 100%;
}
body {
    background: var(--bg-primary);
    font-family: var(--font-display);
    font-weight: 400;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}
.site-header {
    background: var(--bg-primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.site-header__inner {
    gap: 24px;
    padding: 32px 24px;
}
.site-header__logo {
    display: block;
    flex: none;
    height: 58px;
    width: auto;
}
/* Pills menu: only where it fits next to both logos (see the 1200px rule
   below). On smaller screens the same three pills are shown in the hero. */
.site-header__nav {
    display: none;
    align-items: center;
    gap: clamp(12px, 1.5vw, 20px);
    animation: header-nav-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.site-header__nav .mode-pill {
    font-size: clamp(13px, 1.1vw, 16px);
    padding: 0.85em 1.4em;
}
/* From 1200px (13" laptops and up): below that the pills plus both logos
   overflow and cut off the Metro logo; the hero shows the pills instead. */
@media (min-width: 1200px) {
    .site-header__nav {
        display: flex;
    }
}
/* ===== Hamburger menu (below 1200px, js/mobile-menu.js) ===== */
.site-header__toggle {
    flex: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: -6px -6px -6px 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    animation: header-logo-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.site-header__toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--black-color);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
.site-header__toggle:focus-visible {
    outline: 2px solid var(--black-color);
    outline-offset: 2px;
}
/* Metro logo moves next to the toggle (the pills nav is hidden here) */
.site-header__logo--metro {
    margin-left: auto;
}
.site-header__mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 24px 28px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--black-color);
    box-shadow: 0 18px 30px -18px rgba(35, 33, 32, 0.35);
    animation: mobile-menu-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header__mobile[hidden] {
    display: none;
}
.site-header__mobile .mode-pill {
    justify-content: center;
    font-size: 16px;
    padding: 0.9em 1.4em;
}
@keyframes mobile-menu-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (min-width: 1200px) {
    .site-header__toggle,
    .site-header__mobile {
        display: none !important;
    }
    .site-header__logo--metro {
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-header__mobile,
    .site-header__toggle span {
        animation: none;
        transition: none;
    }
}
@keyframes header-nav-in {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* AR logo links to the home page */
.site-header__home {
    display: block;
    flex: none;
    border-radius: 4px;
}
.site-header__home:focus-visible {
    outline: 2px solid var(--red-color);
    outline-offset: 4px;
}
.site-header__logo--ar {
    animation: header-logo-left 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.site-header__logo--metro {
    animation: header-logo-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@media (max-width: 640px) {
    .site-header__logo {
        height: 28px;
    }
    .site-header__inner {
        gap: 12px;
        padding: 20px 16px 14px;
    }
}
@keyframes header-logo-left {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes header-logo-right {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-banner {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    /* Top padding clears the fixed header (~122px desktop/tablet, ~62px phone). */
    padding: 150px 0 64px;
    overflow: hidden;
}
@media (max-width: 1023px) {
    .hero-banner {
        min-height: auto;
        padding: 150px 0 56px;
        align-items: flex-start;
    }
}
@media (max-width: 640px) {
    .hero-banner {
        padding-top: 88px;
    }
}

/* Image group flush to the left edge, content centered on the right */
.hero-banner__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
    width: 100%;
}
@media (min-width: 1024px) {
    .hero-banner__layout {
        grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
        align-items: center;
    }
}
.hero-banner__media {
    padding-right: 24px;
}
@media (min-width: 1024px) {
    .hero-banner__media {
        padding-right: 0;
    }
}
.hero-banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}
@media (min-width: 1024px) {
    .hero-banner__content {
        padding: 0 clamp(24px, 4vw, 80px);
    }
}

.hero-window {
    display: block;
    width: 100%;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    /* Tilt and scale pivot on the left edge so the bleed never opens a gap. */
    transform-origin: left center;
    opacity: 0;
    transform: translateY(30px) scale(0.94);
}
.hero-window__svg {
    display: block;
    width: 100%;
    height: auto;
}
.hero-window__caption {
    font-family: var(--font-principal);
    font-size: 11px;
    font-weight: 500;
    fill: #fff;
}

/* Logo: the PNG's own "Tu hogar, tu ciudad" line is clipped away (the "7" is
   kept) and replaced by the HTML tagline below. */
.hero-banner__logo-estacion {
    position: relative;
    width: min(78%, 600px);
    container-type: inline-size;
    opacity: 0;
    transform: translateY(-110px) scale(0.96);
    filter: blur(6px);
    will-change: transform, opacity, filter;
}
@media (max-width: 1023px) {
    .hero-banner__logo-estacion {
        width: min(90%, 520px);
    }
}
/* Logo + "Residencial · Hotelero · Senior" are one image (from the design PDF) */
.hero-banner__logo-img {
    display: block;
    width: 100%;
    height: auto;
}
.hero-banner__h2 {
    margin: clamp(40px, 5vw, 64px) 0 clamp(32px, 3.5vw, 48px);
    font-family: var(--font-led);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.55vw, 1.6rem);
    letter-spacing: 0.06em;
    line-height: 1.35;
    color: #3a3a3a;
    perspective: 400px;
}
.flap-line {
    display: inline-block;
}
.flap-word {
    white-space: nowrap;
}
.flap-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s ease;
    backface-visibility: hidden;
    transform-origin: 50% 50%;
}
.flap-char.is-visible {
    opacity: 1;
}
.flap-char.is-flipping {
    animation: flap-flip 0.1s ease-in;
}
@keyframes flap-flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}
/* Residencial / Hotelero / Senior pills (revealed by hero-parallax.js) */
.hero-banner__modes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 1.5vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}
/* Desktop (incl. 13" laptops ~1200–1280px): the three pills stay on one
   line, sized to the column so they fit. Phones/tablets may still wrap. */
@media (min-width: 1024px) {
    .hero-banner__modes {
        flex-wrap: nowrap;
        gap: clamp(10px, 1.2vw, 22px);
    }
    .hero-banner__modes .mode-pill {
        flex: none;
        font-size: clamp(13px, 1.12vw, 20px);
    }
}
/* Shared pill: used in the header menu and the hero */
.mode-pill {
    --mode-color: #7cc6e2;
    display: inline-flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.7em 1.25em;
    border: 2px solid var(--mode-color);
    border-radius: 999px;
    font-family: var(--font-principal);
    font-weight: 700;
    font-size: clamp(14px, 1.4vw, 20px);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--black-color);
    text-decoration: none;
}
.mode-pill__dot {
    flex: none;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: var(--mode-color);
}
.mode-pill--residencial {
    --mode-color: #7cc6e2;
}
.mode-pill--hotelero {
    --mode-color: #6a3d9a;
}
.mode-pill--senior {
    --mode-color: #00a36c;
}
a.mode-pill {
    transition: background-color 0.25s ease, color 0.25s ease;
}
a.mode-pill:hover,
a.mode-pill:focus-visible {
    background: var(--mode-color);
    color: #fff;
}
a.mode-pill:hover .mode-pill__dot,
a.mode-pill:focus-visible .mode-pill__dot {
    background: #fff;
}
/* Current page (e.g. Residencial on residencial.html): filled pill */
.mode-pill.is-active,
a.mode-pill.is-active:hover {
    background: var(--mode-color);
    color: var(--black-color);
}
.mode-pill.is-active .mode-pill__dot,
a.mode-pill.is-active:hover .mode-pill__dot {
    background: var(--black-color);
}
/* Dark fills (Hotelero purple, Senior green) need white text for contrast */
.mode-pill--hotelero.is-active,
a.mode-pill--hotelero.is-active:hover,
.mode-pill--senior.is-active,
a.mode-pill--senior.is-active:hover {
    color: #fff;
}
.mode-pill--hotelero.is-active .mode-pill__dot,
a.mode-pill--hotelero.is-active:hover .mode-pill__dot,
.mode-pill--senior.is-active .mode-pill__dot,
a.mode-pill--senior.is-active:hover .mode-pill__dot {
    background: #fff;
}
/* ===== Hero: living-mode landings (residencial / hotelero / senior) =====
   Beige top fading into the page color at the bottom (theme tokens).
   Desktop: title + large image on the left; claim + figures on the right,
   both left-aligned on the same edge. */
.res-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 clamp(56px, 6vw, 110px);
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        var(--bg-primary) 50%,
        var(--hero-fade-mid) 66%,
        var(--hero-fade) 100%
    );
}
@media (max-width: 640px) {
    .res-hero {
        padding-top: 96px;
    }
}
.res-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "tagline"
        "media"
        "stats";
    row-gap: 28px;
}
@media (min-width: 1024px) {
    .res-hero__inner {
        grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
        grid-template-areas:
            "title tagline"
            "media stats";
        column-gap: clamp(40px, 7vw, 120px);
        row-gap: clamp(24px, 3vw, 40px);
        align-items: start;
    }
}

.res-hero__title {
    grid-area: title;
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.5vw, 72px);
    margin: 0;
    padding-top: 0.15em; /* lines up with the first line of the claim */
    font-size: clamp(26px, 2.9vw, 50px);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--black-color);
    animation: res-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.res-hero__title-dot {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    background: var(--accent);
}

.res-hero__tagline {
    grid-area: tagline;
    animation: res-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.res-hero__claim {
    margin: 0;
    font-size: clamp(26px, 2.9vw, 50px);
    font-weight: 300;
    line-height: 1.25;
    color: var(--accent-ink);
}
.res-hero__sub {
    margin: 14px 0 0;
    font-size: clamp(16px, 1.45vw, 26px);
    font-weight: 400;
    color: var(--black-color);
}
/* Longer intro paragraph (Hotelero / Senior) */
.res-hero__sub--text {
    max-width: 30em;
    margin-top: 20px;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.4;
}

/* Image split into a thin top strip and the main panel, like a window */
.res-hero__media {
    grid-area: media;
    position: relative;
    margin: 0;
    border-radius: clamp(18px, 2.4vw, 40px);
    overflow: hidden;
    aspect-ratio: 10 / 7;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0 26%,
        transparent 26% 30%,
        #000 30%
    );
    mask-image: linear-gradient(to bottom, #000 0 26%, transparent 26% 30%, #000 30%);
    /* Entrance, mouse tilt and scroll parallax come from js/hero-window.js
       (same effect as the home hero image); it starts hidden to avoid a flash. */
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    transform-style: preserve-3d;
    will-change: transform, opacity;
}
.res-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Overscan so the mouse pan never reveals the image edge */
    transform: scale(1.1);
    will-change: transform;
}
.res-hero__caption {
    position: absolute;
    right: 9%;
    bottom: 4%;
    color: #fff;
    font-size: 11px;
}

/* Figures: "Apartamentos desde 69.5 hasta 105 m²". The block sits on the
   same left edge as the claim; its lines are centered within it. */
.res-hero__stats {
    grid-area: stats;
    position: relative;
    justify-self: start;
    text-align: center;
    color: var(--accent-ink);
    animation: res-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@media (min-width: 1024px) {
    .res-hero__stats {
        align-self: end;
        margin-bottom: clamp(48px, 6vw, 100px);
    }
}
@media (max-width: 1023px) {
    .res-hero__stats {
        justify-self: center;
    }
}
.res-hero__stats-label {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 50px);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}
.res-hero__stats-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.22em;
    margin: 0.15em 0 0;
    font-size: clamp(48px, 5.3vw, 92px);
    line-height: 1;
    letter-spacing: -0.03em;
}
.res-hero__stats-range strong {
    font-weight: 500;
}
.res-hero__stats-range span {
    font-size: 0.48em;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
/* Hotelero: "+ Balcón" under the figures */
.res-hero__stats-plus {
    margin: 0.2em 0 0;
    font-size: clamp(23px, 2.55vw, 44px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.res-hero__stats-note {
    margin: 0.9em 0 0;
    font-size: clamp(15px, 1.3vw, 22px);
    letter-spacing: 0.12em;
    color: var(--black-color);
}
.res-hero__dot {
    position: absolute;
    z-index: -1;
    width: clamp(26px, 3.1vw, 56px);
    height: clamp(26px, 3.1vw, 56px);
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.9;
}
/* Above "TO" of APARTAMENTOS */
.res-hero__dot--1 {
    top: calc(-1 * clamp(14px, 1.7vw, 30px));
    left: 51%;
}
/* Right of DESDE, clear of the text */
.res-hero__dot--2 {
    top: 0.1em;
    right: calc(-1 * clamp(34px, 4vw, 72px));
}
/* Behind the first figure, lower left */
.res-hero__dot--3 {
    top: 52%;
    left: calc(-1 * clamp(4px, 0.8vw, 14px));
}
@keyframes res-hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .res-hero__title,
    .res-hero__tagline,
    .res-hero__stats {
        animation: none;
    }
}

/* Landing pages: thin line under the header, as in their designs */
.theme-residencial .site-header__inner,
.theme-hotelero .site-header__inner,
.theme-senior .site-header__inner {
    border-bottom: 1px solid var(--black-color);
}

.intro {
    background: var(--black-color);
    /* Grows with its content: a fixed max-height cut off the features on
       short laptop screens (e.g. 13" at 1260×700). */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(64px, 7vw, 110px) 0;
}
@media (max-width: 767px) {
    .intro {
        max-height: none;
        overflow: visible;
        padding: 120px 0;
    }
}
.intro [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    will-change: transform, opacity;
}
.intro > .container {
    width: 100%;
}

.intro__row {
    position: relative;
    z-index: 1;
}
.intro__row > div {
    min-width: 0;
}

.intro__bg-indicator {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 320px;
    z-index: 0;
    pointer-events: none;
}
.intro__bg-indicator img {
    display: block;
    width: 100%;
    height: auto;
}

.intro__title {
    position: relative;
    margin: 0 0 12px;
    color: var(--text-light);
    font-weight: 300;
}
.intro__title-row {
    position: relative;
    display: inline-block;
    font-size: var(--fs-subtitle);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.intro__title-highlight {
    display: block;
    overflow-wrap: break-word;
    margin-top: 18px;
    font-size: var(--fs-title);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}
.intro__title-highlight strong {
    font-weight: 700;
}
.intro__dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
/* Light blue: above "PARTA" */
.intro__dot--1 {
    top: -22px;
    left: 40%;
    background: var(--metro-blue);
}
/* Purple: under "CON" */
.intro__dot--2 {
    top: 54%;
    right: 12%;
    background: var(--metro-purple);
}
/* Green: before "ÁREAS" */
.intro__dot--3 {
    top: 76%;
    left: -16px;
    background: var(--metro-green);
}
@media (max-width: 767px) {
    .intro__title-highlight {
        margin-top: 12px;
    }
}

.intro__subtitle {
    margin: 0 0 18px;
    color: var(--text-light);
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.intro__description + .intro__description {
    margin-top: 1em;
}
/* Hotelero: "+ Balcón" after the intro figures */
.intro__title-plus {
    font-size: 0.6em;
    white-space: nowrap;
}
.intro__description {
    max-width: 520px;
    overflow-wrap: break-word;
    color: var(--text-light);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

/* Form card: original size, wrapped in an animated metro-colors border.
   The gradient lives on an oversized rotating square behind the card, so
   only the 5px ring around the form shows it. */
.intro__content-form {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    padding: 5px;
    border-radius: 32px;
    color: var(--black-color);
    text-align: center;
}
@media (min-width: 1024px) {
    .intro__content-form {
        margin-right: 0;
    }
}
.intro__content-form::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 300%;
    aspect-ratio: 1;
    background: conic-gradient(
        var(--metro-green),
        var(--metro-purple),
        var(--metro-blue),
        var(--metro-purple),
        var(--metro-green)
    );
    transform: translate(-50%, -50%);
    animation: form-border-spin 4s linear infinite;
}
@keyframes form-border-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .intro__content-form::before {
        animation: none;
    }
}
.intro__form {
    padding: 22px;
    border-radius: 27px;
    background: var(--bg-primary);
}
.intro__form-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.intro__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.intro__form-legend {
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    float: none;
}
.intro__field {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--black-color);
    font-family: var(--font-principal);
    font-size: 15px;
    text-align: left;
}
.intro__field::placeholder {
    color: var(--black-color);
    opacity: 1;
}
.intro__field:focus {
    outline: 2px solid var(--metro-purple);
    outline-offset: -1px;
}
select.intro__field {
    color: var(--black-color);
}
.intro__checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    /* The whole row is clickable and at least 44px tall (touch target) */
    min-height: 44px;
    margin: 8px 0 12px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.intro__checkbox input[type="checkbox"] {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid var(--metro-green);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.intro__checkbox input[type="checkbox"]:checked {
    background: var(--metro-green);
    box-shadow: inset 0 0 0 4px #fff;
}
.intro__checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--metro-purple);
    outline-offset: 2px;
}
.intro__terms-link {
    color: inherit;
    text-decoration: none;
}
.intro__terms-link:hover {
    text-decoration: underline;
}
.intro__submit {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 11px;
    background: var(--black-color);
    color: #fff;
    font-family: var(--font-principal);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: 0.3s;
}
.intro__submit:hover {
    opacity: 0.85;
}
.intro__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}
/* Consent note (replaces the terms checkbox) */
.intro__consent {
    margin: 8px 0 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    color: var(--black-color);
}
.intro__consent a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
/* Error / sending message under the button (js/lead-form.js) */
.intro__form-status {
    margin: 10px 0 0;
    color: var(--darkred-color);
    font-size: var(--fs-small);
    line-height: 1.4;
}

/* ===== Thank-you pages (gracias-*.html) =====
   Same hero language as the landing: beige fading into the mode color,
   mode title with its dot, the 3D window image and an animated metro band. */
.thanks {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 160px 0 clamp(56px, 6vw, 110px);
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        var(--bg-primary) 50%,
        var(--hero-fade-mid) 70%,
        var(--hero-fade) 100%
    );
}
@media (max-width: 640px) {
    .thanks {
        padding-top: 96px;
    }
}
.thanks__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    align-items: center;
}
@media (min-width: 1024px) {
    .thanks__inner {
        grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
        column-gap: clamp(40px, 6vw, 110px);
    }
}
.thanks__content {
    animation: res-hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.thanks .res-hero__title {
    animation: none;
}
.thanks__claim {
    margin: clamp(24px, 3vw, 40px) 0 0;
    font-size: clamp(34px, 4vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--accent-ink);
}
.thanks__claim strong {
    display: block;
    font-weight: 700;
}
.thanks__text {
    max-width: 30em;
    margin: 20px 0 0;
    color: var(--black-color);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}
.thanks__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.thanks__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border: 2px solid var(--black-color);
    border-radius: 999px;
    color: var(--black-color);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.thanks__btn:hover,
.thanks__btn:focus-visible {
    background: var(--black-color);
    color: #fff;
}
.thanks__btn--primary {
    background: var(--black-color);
    color: #fff;
}
.thanks__btn--primary:hover,
.thanks__btn--primary:focus-visible {
    background: transparent;
    color: var(--black-color);
}
.thanks__band {
    height: 10px;
    margin-top: 40px;
    max-width: 360px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--metro-green),
        var(--metro-purple),
        var(--metro-blue),
        var(--metro-purple),
        var(--metro-green)
    );
    background-size: 200% 100%;
    animation: thanks-band 4s linear infinite;
}
@keyframes thanks-band {
    to {
        background-position: -200% 0;
    }
}
.thanks .res-hero__media {
    grid-area: auto;
}
@media (prefers-reduced-motion: reduce) {
    .thanks__content,
    .thanks__band {
        animation: none;
    }
}

.intro__features {
    margin-top: 30px;
}
.intro__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.intro__feature img {
    width: 48px;
    height: auto;
    margin-bottom: 12px;
    /* The PNGs are light blue; render them white as in the design. */
    filter: brightness(0) invert(1);
}
.intro__feature-text {
    max-width: 300px;
    color: var(--text-light);
    font-family: var(--font-led);
    font-size: var(--fs-body);
    letter-spacing: 0.05em;
    line-height: var(--lh-body);
    text-transform: uppercase;
}

.typology {
    background-color: var(--bg-primary);
    min-height: 100dvh;
    /* 40px top band in the metro colors (was solid red) */
    border-top: 40px solid;
    border-image: var(--metro-gradient) 1;
    position: relative;
    z-index: 50;
}
@media (max-width: 767px) {
    .typology {
        min-height: 0;
    }
}
.typology__content {
    position: relative;
    z-index: 1;
}

/* Blurred metro-colors glow on the left edge */
.typology__glow-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* Fade out toward the bottom: the next section has the same background,
       so a clipped glow would show a hard edge. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 96%);
}
/* Animated glow: the three gradient colors rotate through the metro palette
   (registered custom properties make the colors interpolate smoothly) while
   the blob drifts and breathes. `translate`/`scale` are used instead of
   `transform` because typology-parallax.js writes `transform` inline. */
@property --glow-a {
    syntax: "<color>";
    inherits: false;
    initial-value: #00a36c;
}
@property --glow-b {
    syntax: "<color>";
    inherits: false;
    initial-value: #6a3d9a;
}
@property --glow-c {
    syntax: "<color>";
    inherits: false;
    initial-value: #7cc6e2;
}
.typology__glow,
.typology__glow-wrap::before {
    --glow-a: var(--metro-green);
    --glow-b: var(--metro-purple);
    --glow-c: var(--metro-blue);
}
.typology__glow {
    position: absolute;
    top: 12%;
    left: -14%;
    width: 42%;
    height: 95%;
    background:
        radial-gradient(ellipse 45% 40% at 30% 42%, var(--glow-a) 0%, transparent 100%),
        radial-gradient(ellipse 30% 22% at 62% 30%, var(--glow-b) 0%, transparent 100%),
        radial-gradient(ellipse 45% 30% at 58% 92%, var(--glow-c) 0%, transparent 100%);
    filter: blur(40px);
    opacity: 0.95;
    animation:
        glow-colors 18s ease-in-out infinite,
        glow-drift 22s ease-in-out infinite alternate;
}
/* Second, softer glow on the right behind the slider, on its own rhythm */
.typology__glow-wrap::before {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -10%;
    width: 38%;
    height: 70%;
    background:
        radial-gradient(ellipse 45% 40% at 60% 55%, var(--glow-c) 0%, transparent 100%),
        radial-gradient(ellipse 30% 25% at 35% 30%, var(--glow-b) 0%, transparent 100%);
    filter: blur(60px);
    opacity: 0.55;
    animation:
        glow-colors 18s ease-in-out -9s infinite,
        glow-drift-right 26s ease-in-out infinite alternate;
}
@keyframes glow-colors {
    0%,
    100% {
        --glow-a: #00a36c;
        --glow-b: #6a3d9a;
        --glow-c: #7cc6e2;
    }
    33% {
        --glow-a: #6a3d9a;
        --glow-b: #7cc6e2;
        --glow-c: #00a36c;
    }
    66% {
        --glow-a: #7cc6e2;
        --glow-b: #00a36c;
        --glow-c: #6a3d9a;
    }
}
@keyframes glow-drift {
    0% {
        translate: 0 0;
        scale: 1;
    }
    50% {
        translate: 8% -6%;
        scale: 1.12;
    }
    100% {
        translate: 3% 8%;
        scale: 0.94;
    }
}
@keyframes glow-drift-right {
    0% {
        translate: 0 0;
        scale: 1;
    }
    50% {
        translate: -10% -12%;
        scale: 1.15;
    }
    100% {
        translate: -4% 4%;
        scale: 0.9;
    }
}
@media (prefers-reduced-motion: reduce) {
    .typology__glow,
    .typology__glow-wrap::before {
        animation: none;
    }
}
@media (max-width: 767px) {
    .typology__glow {
        left: -35%;
        width: 80%;
        height: 70%;
    }
    .typology__glow-wrap::before {
        width: 70%;
        height: 45%;
        right: -30%;
    }
}

/* Light blue rail: comes down from the section above, then turns right
   over the slider and leaves the screen. */
.typology__line-end {
    position: absolute;
    z-index: 2;
    /* Anchored to the right edge of the screen so it never crosses the
       content of the section above. The vertical stretch sits --rail-gap from
       the edge (it is 8.1% into the SVG) and the horizontal end runs off-screen. */
    --rail-w: clamp(220px, 20vw, 380px);
    --rail-gap: clamp(40px, 6vw, 120px);
    width: var(--rail-w);
    top: -10rem;
    right: calc(var(--rail-gap) - var(--rail-w) * 0.919);
    pointer-events: none;
}
.typology__line-svg {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 767px) {
    /* Phones: behind the content and pushed to the edge so it doesn't cross the title */
    .typology__line-end {
        z-index: 0;
        --rail-w: 160px;
        --rail-gap: 12px;
        top: -6rem;
    }
}
.rail-train {
    fill: none;
    animation: rail-dash 3s linear infinite;
}
.typology__line-end .rail-train {
    animation-name: rail-dash, rail-glow-on-blue;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes rail-dash {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: var(--dash-end, 0px);
    }
}
@keyframes rail-glow-on-blue {
    0%,
    100% {
        stroke: #ffffff;
    }
    50% {
        stroke: #e3f4fa;
    }
}

.typology__title-section {
    display: block;
    overflow-wrap: break-word;
    margin-top: 4px;
    font-size: var(--fs-title);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.05;
}
/* Gallery title: centered inline block so the dots can sit around the text */
.typology__title-section--dots {
    position: relative;
    display: table;
    margin-inline: auto;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--black-color);
}
.typology__title-dot {
    position: absolute;
    width: 0.24em;
    height: 0.24em;
    max-width: 12px;
    max-height: 12px;
    border-radius: 50%;
}
.typology__title-dot--purple {
    top: 2%;
    left: 59%;
    background: var(--metro-purple);
}
.typology__title-dot--green {
    top: 52%;
    left: 17%;
    background: var(--metro-green);
}
.typology__title-dot--blue {
    top: 66%;
    left: calc(100% + 0.4em);
    background: var(--metro-blue);
}
/* Phones: the lines wrap differently, so only the top dot still lands right */
@media (max-width: 767px) {
    .typology__title-dot--green,
    .typology__title-dot--blue {
        display: none;
    }
}

/* Slider: one large image at a time; slides cross-fade with a short shift. */
.typology__slider {
    position: relative;
    max-width: 1400px;
    margin: clamp(28px, 3vw, 40px) auto 0;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
}
.typology__track {
    position: relative;
    aspect-ratio: 16 / 9;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.typology__track.is-dragging {
    cursor: grabbing;
}
.typology__track.is-dragging .typology__slide {
    transition: opacity 0.5s ease;
}
.typology__slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: perspective(1400px) translateX(0) scale(0.97);
    transition:
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease;
    will-change: transform, opacity;
}
.typology__slide.is-jump {
    transition: none;
}
.typology__slide.is-prev {
    z-index: 2;
    transform: perspective(1400px) translateX(-6%) scale(0.97);
}
.typology__slide.is-next {
    z-index: 2;
    transform: perspective(1400px) translateX(6%) scale(0.97);
}
.typology__slide.is-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: perspective(1400px) translateX(0) scale(1) rotateY(0deg);
}
.typology__slide img {
    -webkit-user-drag: none;
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    translate: var(--dx, 0px) var(--sy, 0px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, translate;
}
.typology__slide.is-jump img {
    transition: none;
}

/* Dark caption bar: amenity name + Residencial / Hotelero / Senior legend */
.typology__caption {
    position: absolute;
    right: 3%;
    bottom: 9%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    width: min(70%, 820px);
    padding: 0.85em 1.6em;
    border-radius: 999px;
    background: rgba(24, 22, 22, 0.92);
    color: var(--bg-primary);
    font-family: var(--font-led);
    font-size: clamp(12px, 1.25vw, 17px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
.typology__slide.is-active .typology__caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}
.typology__caption-title {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
}
.typology__caption-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 0.9em;
    margin: 0;
    padding: 0;
    list-style: none;
}
.typology__caption-modes li {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    line-height: 1;
}
.typology__caption-dot {
    flex: none;
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
}
.typology__caption-dot--residencial {
    background: var(--metro-blue);
}
.typology__caption-dot--hotelero {
    background: var(--metro-purple);
}
.typology__caption-dot--senior {
    background: var(--metro-green);
}
.typology__note {
    position: absolute;
    left: 3%;
    bottom: 4%;
    z-index: 4;
    color: #fff;
    font-size: 10px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .typology__slider {
        border-radius: 14px;
    }
    .typology__track {
        aspect-ratio: 4 / 5;
    }
    .typology__caption {
        left: 12px;
        right: 12px;
        bottom: 44px;
        width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
        border-radius: 18px;
    }
    .typology__note {
        bottom: 14px;
        left: 14px;
    }
}

.typology__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    color: #fff;
    font-size: clamp(26px, 2.6vw, 40px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.typology__arrow:hover {
    opacity: 0.85;
}
.typology__arrow--prev {
    left: 1.5%;
}
.typology__arrow--next {
    right: 1.5%;
}
.typology__arrow--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}
.typology__arrow--next:hover {
    transform: translateY(-50%) translateX(3px);
}
.typology__dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 3.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.typology__dot {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    padding: 0;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
}
.typology__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}
@media (max-width: 767px) {
    .typology__dots {
        bottom: 18px;
        left: auto;
        right: 16px;
        transform: none;
    }
}

/* "Conoce más de las tres formas de vivir" + metro lines.
   Lives inside .typology so the animated glow continues behind it. */
.typology-modes {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(8px, 1vw, 16px);
}
.typology-modes__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 2vw, 28px);
    text-align: center;
}
.typology-modes__title {
    margin: 0;
    font-size: var(--fs-subtitle);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--black-color);
}
.typology-modes__title strong {
    font-weight: 700;
}
.typology-modes__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
}

/* Lines scale with --lw (the width of each curved piece); the purple line's
   position and thickness are derived from the same 320×90 SVG grid. */
.typology-modes__lines {
    --lw: min(320px, 46vw);
    position: relative;
    width: 100%;
    /* 26 units of stroke on a 320×160 grid: same thickness on all three lines.
       Blue/green run at y=20 and y=140, the purple line at y=80, leaving
       clear space between them as in the design. */
    --lt: calc(var(--lw) * 26 / 320);
    height: calc(var(--lw) * 160 / 320);
    margin-top: clamp(32px, 4vw, 56px);
    overflow: hidden;
}
/* Full-width straight line, centered on y=80 of the grid */
.typology-modes__line-purple {
    position: absolute;
    left: 0;
    width: 100%;
    top: calc(var(--lw) * 80 / 320 - var(--lt) / 2);
    height: var(--lt);
    display: block;
    overflow: visible;
}
.typology-modes__line-purple line {
    stroke-width: var(--lt);
}
/* Same moving light as the rail above */
.typology-modes .rail-train {
    animation-name: rail-dash, rail-glow-on-blue;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.typology-modes__line-purple .rail-train {
    animation-duration: 6s;
}
@media (prefers-reduced-motion: reduce) {
    .typology-modes .rail-train,
    .typology__line-end .rail-train {
        animation: none;
        stroke: none;
    }
}
.typology-modes__line {
    position: absolute;
    top: 0;
    width: var(--lw);
    height: auto;
    overflow: visible;
}
.typology-modes__line--blue {
    left: 0;
}
.typology-modes__line--green {
    right: 0;
}
@media (min-width: 768px) {
    .intro__feature img {
        width: 56px;
        height: auto;
    }
    .intro__features {
        margin-top: 36px;
    }
}

.typology-types {
    background-color: var(--light-blue-color);
    min-height: 100dvh;
    position: relative;
    z-index: 50;
    overflow-x: hidden;
}
.typology-tabs__dot-anchor {
    position: relative;
}
.typology-tabs__dot-anchor::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red-color);
}
.typology-tabs__dot-anchor--start::after {
    left: -16px;
    right: auto;
}
.typology-tabs {
    margin-top: 32px;
}
.typology-tabs__nav {
    position: relative;
    width: 100%;
    aspect-ratio: 1220 / 260;
}
.typology-tabs__line {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.typology-tabs__segment {
    fill: none;
    stroke: #3a1512;
    stroke-width: 18;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
}
.typology-tabs__segment.is-active {
    stroke: var(--red-color);
}
.typology-tabs__station {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.typology-tabs__dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #3a1512;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}
.typology-tabs__label {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--black-color);
    transition: color 0.3s ease;
}
.typology-tabs__station.is-active .typology-tabs__dot {
    border-color: var(--red-color);
    transform: scale(1.15);
}
.typology-tabs__station.is-active .typology-tabs__label {
    color: var(--red-color);
}
.typology-tabs__station--fixed {
    cursor: default;
}
.typology-tabs__panels {
    margin-top: 24px;
}
.typology-tabs__panel {
    display: none;
}
.typology-tabs__panel.is-active {
    display: block;
}
.typology-detail__floorplan {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    opacity: 0;
}
.typology-tabs.is-inview .typology-tabs__panel.is-active .typology-detail__floorplan {
    animation: floorplan-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.typology-tabs.is-inview .typology-tabs__panel.is-active .typology-detail__floorplan:nth-child(2) {
    animation-delay: 0.15s;
}
@keyframes floorplan-in {
    0% {
        opacity: 0;
        transform: translateY(90px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .typology-tabs.is-inview .typology-tabs__panel.is-active .typology-detail__floorplan {
        animation-duration: 0.01s;
        animation-delay: 0s;
    }
}
.typology-detail__floorplan {
    cursor: zoom-in;
}

/* Floating WhatsApp button with animated color border */
.whatsapp-float {
    position: fixed;
    right: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-right, 0px));
    bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: block;
    width: clamp(60px, 5vw, 72px);
    aspect-ratio: 1;
    padding: 3px;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
    animation: whatsapp-float-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1s backwards;
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    background: conic-gradient(
        #6b3fa0,
        #3b5bdb,
        #22b8cf,
        #40c057,
        #22b8cf,
        #3b5bdb,
        #6b3fa0
    );
    animation: whatsapp-border-spin 3s linear infinite;
}
.whatsapp-float__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #3a3a3a;
}
.whatsapp-float__icon {
    width: 52%;
    height: 52%;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.08);
}
.whatsapp-float:focus-visible {
    outline: 2px solid var(--red-color);
    outline-offset: 4px;
}
@keyframes whatsapp-border-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes whatsapp-float-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float::before {
        animation: none;
    }
}

/* Floor plan lightbox */
.floorplan-zoom-open,
.floorplan-zoom-open body {
    overflow: hidden;
}
.floorplan-zoom {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 18, 17, 0.94);
    animation: floorplan-zoom-in 0.25s ease-out both;
}
.floorplan-zoom__scroller {
    position: absolute;
    inset: 0;
    padding: calc(clamp(64px, 9vh, 96px) + env(safe-area-inset-top, 0px))
        clamp(0px, 4vw, 96px) calc(48px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}
.floorplan-zoom__img {
    display: block;
    flex: none;
    margin: auto;
    max-width: none;
    height: auto;
    background: #fff;
    border-radius: 12px;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
}
.floorplan-zoom.is-zoomed .floorplan-zoom__img {
    border-radius: 0;
    cursor: grab;
}
.floorplan-zoom.is-dragging .floorplan-zoom__img {
    cursor: grabbing;
}
.floorplan-zoom__close {
    position: absolute;
    top: calc(clamp(12px, 3vw, 40px) + env(safe-area-inset-top, 0px));
    right: calc(clamp(16px, 3vw, 48px) + env(safe-area-inset-right, 0px));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 4vw, 56px);
    height: clamp(44px, 4vw, 56px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    border-radius: 50%;
    background: var(--red-color);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.floorplan-zoom__close:hover {
    background: var(--darkred-color);
    transform: scale(1.06);
}
.floorplan-zoom__hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}
.floorplan-zoom.is-zoomed .floorplan-zoom__hint {
    opacity: 0;
}
@keyframes floorplan-zoom-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.typology-specs {
    display: flex;
    margin-top: 40px;
}
.typology-specs__item {
    flex: 1;
    padding: 0 20px;
    text-align: center;
}
.typology-specs__item:first-child {
    padding-left: 0;
}
.typology-specs__item:last-child {
    padding-right: 0;
}
.typology-specs__item:not(:first-child) {
    border-left: 1px solid rgba(35, 33, 32, 0.3);
}
.typology-specs__label {
    margin: 0 0 10px;
    color: var(--red-color);
    font-weight: 700;
    font-size: var(--fs-small);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.typology-specs__value {
    margin: 0;
    font-family: var(--font-led);
    font-size: 20px;
    letter-spacing: 0.03em;
    color: rgba(35, 33, 32, 0.65);
    text-transform: uppercase;
}
.typology-360 {
    position: relative;
    display: block;
    margin-top: 40px;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(35, 33, 32, 0.06);
}
.typology-360[hidden] {
    display: none;
}
.typology-360__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 640px) {
    .typology-specs {
        flex-wrap: wrap;
        row-gap: 20px;
    }
    .typology-specs__item {
        flex: 0 0 50%;
        padding: 0 12px;
    }
    .typology-specs__item:nth-child(2) {
        border-left: 1px solid rgba(35, 33, 32, 0.3);
    }
    .typology-specs__item:nth-child(3) {
        padding-left: 0;
        border-left: none;
    }
    .typology-specs__item:nth-child(4) {
        border-left: 1px solid rgba(35, 33, 32, 0.3);
    }
    .typology-specs__value {
        font-size: 17px;
    }
}
@media (max-width: 640px) {
    .typology-tabs__label {
        font-size: 13px;
        bottom: 28px;
    }
}

/* ===== Tipos de apartamentos (residencial.html) =====
   Metro track with one stretch per type: the active stretch turns light
   blue. The track runs edge to edge; its ends curve off-screen. */
.tipos {
    --track-w: 10px;
    --track-y: 43px; /* line center inside the 72px-tall track */
    position: relative;
    background: var(--bg-primary);
    padding: clamp(56px, 6vw, 96px) 0 clamp(56px, 6vw, 96px);
    overflow-x: clip;
}
.tipos__title {
    display: table;
    margin: 0 auto;
    font-size: var(--fs-title);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center;
    text-transform: uppercase;
    color: var(--black-color);
}
.tipos__word {
    position: relative;
}
.tipos__word::before {
    content: "";
    position: absolute;
    width: 0.22em;
    height: 0.22em;
    max-width: 11px;
    max-height: 11px;
    border-radius: 50%;
    background: var(--accent);
}
.tipos__word--dot-tl::before {
    top: 0.02em;
    left: -0.12em;
}
.tipos__word--dot-br::before {
    bottom: 0.08em;
    right: -0.2em;
}
.tipos__word--dot-bl::before {
    bottom: 0.06em;
    left: -0.22em;
}

.tipos__tabs {
    margin-top: clamp(28px, 3vw, 44px);
}
.tipos__track {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, 1100px) minmax(24px, 1fr);
    height: 72px;
}
.tipos__end {
    position: relative;
}
.tipos__end svg {
    position: absolute;
    top: 0;
    width: 60px;
    height: 72px;
    overflow: visible;
}
.tipos__end path {
    fill: none;
    stroke: var(--track);
    stroke-width: var(--track-w);
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.tipos__end--left svg {
    left: 0;
}
.tipos__end--right svg {
    right: 0;
}
/* Straight part of each end, joining the curve to the stops */
.tipos__end::after {
    content: "";
    position: absolute;
    top: calc(var(--track-y) - var(--track-w) / 2);
    height: var(--track-w);
    background: var(--track);
}
.tipos__end--left::after {
    left: 58px;
    right: 0;
}
.tipos__end--right::after {
    left: 0;
    right: 58px;
}
@media (max-width: 767px) {
    .tipos__end svg {
        width: 24px;
    }
    .tipos__end--left::after {
        left: 22px;
    }
    .tipos__end--right::after {
        right: 22px;
    }
}

/* One equal stretch per type, however many there are (3 or 4) */
.tipos__stops {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}
.tipos__stop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-principal);
}
.tipos__label {
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black-color);
    white-space: nowrap;
}
.tipos__bar {
    display: block;
    width: 100%;
    height: var(--track-w);
    margin-top: calc(var(--track-y) - 24px - var(--track-w) / 2);
    background: var(--track);
    transition: background-color 0.35s ease;
}
.tipos__stop:hover .tipos__bar {
    background: #55524f;
}
.tipos__stop.is-active .tipos__bar {
    background: var(--accent);
}
.tipos__stop:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 6px;
}
/* Station dots at each boundary (left of every stop, right of the last) */
.tipos__stop::before,
.tipos__stop:last-child::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: var(--track-y);
    width: 14px;
    height: 14px;
    border: 3px solid var(--track);
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
}
.tipos__stop::before {
    left: 0;
}
.tipos__stop:last-child::after {
    left: 100%;
}

/* Plans + arrows */
/* Arrows sit in the side columns; typology-tabs.js sets --arrow-top to the
   middle of the active plans so they don't align with the specs below. */
.tipos__stage {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    column-gap: clamp(8px, 2vw, 32px);
    margin-top: clamp(32px, 4vw, 56px);
}
.tipos__arrow {
    position: absolute;
    top: var(--arrow-top, 30%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    color: var(--black-color);
    font-size: clamp(28px, 2.6vw, 40px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.tipos__arrow--prev {
    left: 0;
}
.tipos__arrow--next {
    right: 0;
}
.tipos__arrow:hover {
    opacity: 0.7;
}
.tipos__arrow--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}
.tipos__arrow--next:hover {
    transform: translateY(-50%) translateX(3px);
}
.tipos .typology-tabs__panels {
    grid-column: 2;
    margin-top: 0;
}
/* Building plan narrower than the apartment plan, as in the design */
@media (min-width: 1024px) {
    .tipos .typology-detail > .grid {
        grid-template-columns: 2fr 3fr;
        gap: clamp(24px, 3vw, 48px);
    }
    /* Hotelero / Senior: floor plan and apartment plan share the width 50/50 */
    .theme-hotelero .tipos .typology-detail > .grid,
    .theme-senior .tipos .typology-detail > .grid {
        grid-template-columns: 1fr 1fr;
    }
}
.tipos .typology-detail__floorplan {
    border-radius: 0;
}
.tipos .typology-specs {
    max-width: 900px;
    margin: clamp(40px, 5vw, 72px) auto 0;
}
.tipos .typology-specs__label {
    color: var(--black-color);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
}
.tipos .typology-specs__item:not(:first-child) {
    border-left-color: rgba(35, 33, 32, 0.5);
}
.tipos .typology-specs__value {
    color: var(--spec-value);
    font-size: clamp(22px, 2vw, 30px);
}
/* Residencial: bigger tab names (TIPO 1 Y 1A, TIPO 2, TIPO 3) */
.theme-residencial .tipos__label {
    font-size: clamp(12px, 1.15vw, 17px);
}
/* Typologies with a "Valor" column: wider row, the price gets more room */
.tipos .typology-specs--valor {
    max-width: 1240px;
}
.typology-specs--valor .typology-specs__item {
    flex: 1 1 auto;
}
/* Same LED style as the other figures, a bit smaller so 5 columns fit,
   and never broken across lines ("m²" stays next to the number) */
.tipos .typology-specs--valor .typology-specs__value {
    font-size: clamp(18px, 1.6vw, 25px);
    white-space: nowrap;
}
.tipos .typology-specs__item--valor .typology-specs__extra {
    font-size: 1em;
    margin-top: 10px;
}
@media (max-width: 640px) {
    /* Price takes the full first row, the other 4 specs stay 2 x 2 */
    .typology-specs--valor .typology-specs__item--valor {
        flex: 0 0 100%;
        padding: 0;
    }
    /* Equal halves with the same padding, so both columns and the
       dividers line up row to row */
    .typology-specs--valor .typology-specs__item:not(.typology-specs__item--valor) {
        flex: 0 0 50%;
        padding: 0 8px;
    }
    .typology-specs--valor .typology-specs__item:nth-child(2),
    .typology-specs--valor .typology-specs__item:nth-child(4) {
        border-left: none;
    }
    .typology-specs--valor .typology-specs__item:nth-child(3),
    .typology-specs--valor .typology-specs__item:nth-child(5) {
        border-left: 1px solid rgba(35, 33, 32, 0.5);
    }
    .tipos .typology-specs--valor .typology-specs__value {
        font-size: 15px;
    }
}
/* Second, smaller line under a value (e.g. "+ Balcón") */
.typology-specs__extra {
    display: block;
    margin-top: 4px;
    font-size: 0.75em;
}
@media (max-width: 640px) {
    .tipos__label {
        font-size: 10px;
        letter-spacing: 0.04em;
    }
    .tipos__stage {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        column-gap: 4px;
    }
    .tipos__arrow {
        width: 32px;
        height: 32px;
    }
}

.ubicacion {
    background: var(--bg-primary);
}
.ubicacion__map {
    display: block;
    width: 100%;
    height: auto;
}
.ubicacion__badge {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: var(--black-color); /* gray bar from the design PDF (was red) */
    color: #fff;
    font-weight: 500;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1;
    padding: 0.5em 3.2em 0.5em 1.7em;
    border-radius: 999px;
}
.ubicacion__badge-dot {
    position: absolute;
    top: 50%;
    right: 0.45em;
    width: 0.95em;
    height: 0.95em;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}
.ubicacion__text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 12px 0 0 6%;
    color: var(--black-color);
    font-size: clamp(20px, 1.75vw, 30px);
    font-weight: 400;
    line-height: 1.25;
}
.ubicacion__arrow {
    flex: none;
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.05em;
    color: var(--red-color);
}
.ubicacion__text strong {
    font-weight: 700;
}
.ubicacion__links {
    display: flex;
    gap: 8%;
    margin: 30px 1.5% 0 6%;
}
.ubicacion__link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3e3f44;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 17px);
    padding: 0.95em 0.5em;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.ubicacion__link svg {
    width: 1.25em;
    height: 1.25em;
}
.ubicacion__link:hover {
    opacity: 0.85;
}
.ubicacion__cta {
    display: block;
    width: 76%;
    box-sizing: border-box;
    margin: clamp(48px, 7vw, 93px) 0 0 6%;
    text-align: center;
    background: var(--red-color);
    color: var(--bg-primary);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 400;
    line-height: 1;
    padding: 0.55em 0.55em 0.55em 1.2em;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.ubicacion__cta strong {
    font-weight: 700;
    color: var(--bg-primary);
}
.ubicacion__cta:hover {
    background: var(--darkred-color);
}

.site-footer {
    background: var(--bg-primary);
    border-top: 6px solid #3a1512;
    padding: 56px 0 0;
}
.site-footer__brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-footer__ar-logo {
    height: 36px;
    width: auto;
}
.site-footer__estacion-logo {
    overflow: hidden;
    width: 220px;
    aspect-ratio: 763 / 168;
}
.site-footer__estacion-logo img {
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(-10.1%);
}
.site-footer__apoya {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.site-footer__apoya-label {
    font-family: var(--font-led);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(35, 33, 32, 0.6);
    text-transform: uppercase;
}
.site-footer__apoya img {
    height: 30px;
    width: auto;
}
.site-footer__divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid rgba(35, 33, 32, 0.25);
}
.site-footer__heading {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: var(--fs-body);
    color: var(--black-color);
}
.site-footer__text {
    margin: 0 0 4px;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--black-color);
}
.site-footer__copy {
    margin: 0 0 40px;
    font-size: var(--fs-small);
    color: rgba(35, 33, 32, 0.65);
}
.site-footer__tags {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: rgba(35, 33, 32, 0.05);
}
.site-footer__tags-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    font-family: var(--font-led);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #131112;
}
.site-footer__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-footer__tag em {
    font-style: normal;
    font-weight: 300;
}
.site-footer__tag--active {
    color: var(--black-color);
}
.site-footer__tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-color);
}
@media (max-width: 640px) {
    .site-footer__brands {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-footer__apoya {
        align-items: flex-start;
    }
    .site-footer__tags {
        justify-content: flex-start;
    }
}

/* Map entrance: quick, soft fades (~1.2s total). The Estación 77 logo appears first. */
.ubicacion__map.map-anim .map-logo,
.ubicacion__map.map-anim .map-pop,
.ubicacion__map.map-anim .map-fade {
    opacity: 0;
}
.ubicacion__map .map-logo,
.ubicacion__map .map-pop {
    transform-box: fill-box;
    transform-origin: center;
}
.ubicacion__map.is-mapped .map-logo {
    animation: map-logo-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ubicacion__map.is-mapped .map-fade {
    animation: map-fade 0.5s ease-out both;
    animation-delay: var(--d, 0s);
}
.ubicacion__map.is-mapped .map-pop {
    animation: map-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d, 0s);
}
.ubicacion__map .map-route {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
}
.ubicacion__map.is-mapped .map-route {
    animation: map-draw 0.9s cubic-bezier(0.45, 0, 0.2, 1) both;
    animation-delay: var(--d, 0s);
}
@keyframes map-logo-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes map-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes map-pop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes map-draw {
    to {
        stroke-dashoffset: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ubicacion__map.map-anim .map-logo,
    .ubicacion__map.map-anim .map-pop,
    .ubicacion__map.map-anim .map-fade {
        opacity: 1;
    }
    .ubicacion__map.is-mapped * {
        animation: none !important;
    }
}
