:root {
    color-scheme: light;
    --cream: #f5f1ea;
    --paper: #fbf8f4;
    --white: #fff;
    --ink: #2c2620;
    --olive: #b06a47;
    --olive-dark: #8c4f31;
    --muted: #6f655a;
    --line: #e4dbd0;
    --display: "Syne", Georgia, sans-serif;
    --sans: "Karla", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 5px;
}

.detail-header,
.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px clamp(22px, 6vw, 92px);
}

.detail-header {
    min-height: 78px;
    border-bottom: 1px solid rgba(44, 38, 32, 0.09);
}

.nova-mark {
    color: var(--ink);
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nova-mark span {
    margin-left: 3px;
    color: var(--olive-dark);
    font-size: 10px;
    vertical-align: top;
}

.back-link,
.text-link,
.inline-link {
    font-size: 10px;
    font-weight: 700;
}

.back-link {
    color: var(--muted);
}

.back-link span {
    margin-right: 8px;
    color: var(--olive);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding-bottom: clamp(58px, 7vh, 86px);
    overflow: hidden;
}

/* Fotografía a sangre: la portada se abre con la arquitectura */
.hero-media {
    position: relative;
    grid-area: 1 / 1;
    min-height: clamp(540px, 74vh, 700px);
    overflow: hidden;
}

.hero-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            rgba(26, 29, 22, 0.85) 0%,
            rgba(26, 29, 22, 0.6) 44%,
            rgba(26, 29, 22, 0.18) 76%,
            rgba(26, 29, 22, 0) 100%
        ),
        linear-gradient(
            180deg,
            rgba(26, 29, 22, 0.4) 0%,
            rgba(26, 29, 22, 0) 48%
        );
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: start;
    min-width: 0;
    max-width: 780px;
    padding: clamp(52px, 7vh, 82px) clamp(22px, 6vw, 92px) 60px;
}

/* Texto claro sobre la fotografía */
.hero-copy .eyebrow {
    color: #E8E8DA;
}

.hero-copy .eyebrow > span {
    border-color: #C6CBA9;
}

.hero-copy .overline {
    color: #D9DAC8;
}

.hero-copy .hero-description {
    color: rgba(251, 250, 246, 0.94);
}

.hero-copy .text-link {
    color: var(--paper);
}

.hero-copy .text-link span {
    margin-left: 5px;
    color: #C6CBA9;
}

.hero-copy .demo-note {
    border-top-color: rgba(251, 250, 246, 0.4);
}

.hero-copy .demo-note > span {
    border-color: #C6CBA9;
    color: #E8E8DA;
}

.hero-copy .demo-note p {
    color: rgba(251, 250, 246, 0.9);
}

.hero-copy .hero-footnote {
    color: rgba(251, 250, 246, 0.78);
}

.hero-copy a:focus-visible {
    outline-color: #F1F0E4;
}

/* La vista previa monta sobre el borde inferior de la foto */
.preview-composition {
    position: relative;
    z-index: 3;
    grid-area: 2 / 1;
    width: min(1120px, calc(100% - 44px));
    margin: -70px auto 0;
    justify-self: center;
}

.eyebrow,
.overline,
.hero-footnote,
.section-label,
.preview-bar,
.preview-caption,
.preview-side-note,
.demo-note > span,
.image-index,
.preview-category,
.property-disclaimer,
.feature-number,
.detail-footer > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--olive-dark);
}

.eyebrow > span {
    width: 7px;
    height: 7px;
    border: 1px solid var(--olive);
    transform: rotate(45deg);
}

.overline {
    margin: 52px 0 8px;
    color: var(--muted);
    font-size: 10px;
}

.hero h1 {
    margin: 0;
    color: var(--paper);
    font-family: var(--display);
    font-size: clamp(65px, 8.1vw, 112px);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 0.98;
}

.hero h1 span {
    color: #C6CBA9;
}

.hero-description {
    max-width: 430px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.hero-actions,
.closing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px 24px;
    margin-top: 29px;
}

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 18px;
    font-size: 10px;
    font-weight: 800;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-olive {
    background: var(--olive-dark);
    color: var(--white);
}

.button-olive:hover {
    background: var(--ink);
}

.button-light {
    background: var(--cream);
    color: var(--ink);
}

.button-light:hover {
    background: var(--white);
}

.text-link {
    color: var(--ink);
}

.text-link span,
.inline-link span {
    margin-left: 5px;
    color: var(--olive);
}

.demo-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 430px;
    margin-top: 34px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.demo-note > span {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--olive);
    border-radius: 50%;
    color: var(--olive-dark);
    font-size: 10px;
    letter-spacing: 0;
}

.demo-note p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.hero-footnote {
    display: block;
    margin-top: 27px;
    color: var(--muted);
    font-size: 10px;
}

.preview-composition {
    padding: 18px 0 22px 18px;
}

.preview-composition::before {
    position: absolute;
    z-index: -1;
    inset: 0 22px 0 0;
    border: 1px solid rgba(176, 106, 71, 0.35);
    content: "";
}

.preview-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 24px 64px rgba(37, 39, 32, 0.14);
}

.preview-bar {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 13px;
    background: var(--cream);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5a886;
}

.window-dots i:nth-child(2) {
    background: #c7b892;
}

.window-dots i:nth-child(3) {
    background: #8e9475;
}

.preview-state {
    color: var(--olive-dark);
}

.preview-viewport {
    position: relative;
    height: min(730px, calc(66vw - 41px));
    overflow: hidden;
    background: var(--paper);
}

.preview-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1360px;
    height: 900px;
    border: 0;
    background: var(--paper);
    transform-origin: top left;
}

.preview-caption {
    position: absolute;
    right: -4px;
    bottom: -1px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    background: var(--olive-dark);
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1px;
}

.preview-caption b {
    color: #d5d8c0;
    font-family: var(--display);
    font-size: 13px;
}

.preview-side-note {
    position: absolute;
    top: auto;
    bottom: 64px;
    right: -11px;
    color: var(--olive-dark);
    font-size: 10px;
    writing-mode: vertical-rl;
}

.approach-section,
.properties-section,
.features-section {
    padding: 72px clamp(22px, 8vw, 120px) 82px;
}

.approach-section {
    background: var(--cream);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--olive-dark);
    font-size: 10px;
}

.section-label span:first-child {
    color: var(--muted);
    font-family: var(--display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    align-items: end;
    gap: 48px;
    padding: 34px 0 42px;
}

.approach-grid h2,
.properties-heading h2,
.features-title h2,
.closing-section h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.08;
}

.approach-grid h2 em,
.properties-heading h2 em,
.features-title h2 em,
.closing-section h2 em {
    color: var(--olive-dark);
    font-style: normal;
    font-weight: 800;
}

.approach-copy p,
.properties-heading > p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.inline-link {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(176, 106, 71, 0.55);
}

.architecture-rule {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.architecture-rule i {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--olive);
}

.properties-section {
    max-width: 1500px;
    margin: 0 auto;
}

.properties-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 38px;
}

.properties-heading .section-label {
    margin-bottom: 25px;
}

.properties-heading h2 {
    font-size: clamp(38px, 4.7vw, 60px);
}

.property-preview-link {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
    min-height: 265px;
    background: var(--cream);
}

.property-preview-image {
    position: relative;
    min-height: 265px;
    overflow: hidden;
}

.property-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 265px;
    object-fit: cover;
    transition: transform 400ms ease;
}

.property-preview-link:hover .property-preview-image img {
    transform: scale(1.025);
}

.image-index {
    position: absolute;
    bottom: 14px;
    left: 15px;
    padding: 8px 10px;
    background: rgba(44, 38, 32, 0.72);
    color: var(--white);
    font-size: 10px;
}

.property-preview-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 52px);
}

.preview-category {
    color: var(--olive-dark);
    font-size: 10px;
}

.property-preview-copy strong {
    max-width: 270px;
    margin-top: 17px;
    font-family: var(--display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.25;
}

.property-preview-copy > span:last-child {
    margin-top: 24px;
    font-size: 10px;
    font-weight: 800;
}

.property-preview-copy b {
    margin-left: 7px;
    color: var(--olive-dark);
    font-size: 13px;
}

.property-disclaimer {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.7;
}

.features-section {
    max-width: 1500px;
    margin: 0 auto;
}

.features-title {
    margin-bottom: 36px;
}

.features-title .section-label {
    margin-bottom: 26px;
}

.features-title h2 {
    font-size: clamp(39px, 4.8vw, 62px);
}

.feature-list {
    border-top: 1px solid var(--line);
}

.feature-row {
    display: grid;
    grid-template-columns: 42px minmax(165px, 0.72fr) minmax(210px, 1fr) 20px;
    align-items: center;
    gap: 19px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.feature-number {
    color: var(--olive-dark);
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0;
}

.feature-row h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
}

.feature-row p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.feature-row > a {
    justify-self: end;
    color: var(--olive-dark);
    font-size: 15px;
}

.closing-section {
    position: relative;
    overflow: hidden;
    padding: 77px 22px 82px;
    background: var(--ink);
    color: var(--white);
    text-align: center;
}

.closing-section > .eyebrow {
    position: relative;
    z-index: 1;
    justify-content: center;
    color: #d5d8c0;
}

.closing-section h2 {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: clamp(42px, 6vw, 73px);
}

.closing-section h2 em {
    color: #d5d8c0;
}

.closing-copy {
    position: relative;
    z-index: 1;
    max-width: 475px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.9;
}

.closing-actions {
    position: relative;
    z-index: 1;
    justify-content: center;
}

.closing-section .text-link {
    color: var(--white);
}

.closing-section .text-link span {
    color: #d5d8c0;
}

.closing-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.closing-shape-one {
    top: -250px;
    left: -180px;
    border-radius: 50%;
}

.closing-shape-two {
    top: -205px;
    left: -135px;
    border-radius: 50%;
}

.detail-footer {
    min-height: 77px;
    border-top: 1px solid var(--line);
}

.detail-footer p,
.detail-footer > span {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.detail-footer > span {
    font-size: 10px;
    text-align: right;
}

@media (max-width: 960px) {
    .hero-media {
        min-height: clamp(500px, 66vh, 620px);
    }

    .hero-copy {
        max-width: 700px;
        padding-top: clamp(44px, 6vh, 62px);
    }

    .preview-composition {
        margin-top: -56px;
    }

    .preview-viewport {
        height: min(600px, calc(66vw - 41px));
    }
}

@media (max-width: 640px) {
    .detail-header,
    .detail-footer {
        padding: 17px 20px;
    }

    .detail-header {
        min-height: 66px;
    }

    .back-link {
        font-size: 10px;
    }

    .hero-media {
        min-height: 470px;
    }

    .hero-copy {
        padding: 44px clamp(22px, 6vw, 92px) 44px;
    }

    .preview-composition {
        margin-top: -36px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .overline {
        margin-top: 40px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: clamp(62px, 18vw, 82px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-actions,
    .closing-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .demo-note {
        margin-top: 27px;
    }

    .hero-footnote {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .preview-composition {
        padding-left: 10px;
    }

    .preview-composition::before {
        right: 12px;
    }

    .preview-side-note {
        right: -7px;
        font-size: 10px;
    }

    .preview-viewport {
        height: 480px;
    }

    .preview-caption {
        right: -2px;
        padding: 10px 12px;
        font-size: 10px;
    }

    .approach-section,
    .properties-section,
    .features-section {
        padding: 58px 22px 64px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0 29px;
    }

    .approach-grid h2,
    .properties-heading h2,
    .features-title h2 {
        font-size: clamp(37px, 10.5vw, 51px);
    }

    .architecture-rule {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .properties-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 27px;
    }

    .properties-heading .section-label {
        margin-bottom: 22px;
    }

    .property-preview-link {
        grid-template-columns: 1fr;
    }

    .property-preview-image,
    .property-preview-image img {
        min-height: 205px;
        height: 205px;
    }

    .property-preview-copy {
        padding: 23px;
    }

    .property-preview-copy strong {
        margin-top: 12px;
        font-size: 25px;
    }

    .property-preview-copy > span:last-child {
        margin-top: 17px;
    }

    .features-title {
        margin-bottom: 27px;
    }

    .features-title .section-label {
        margin-bottom: 22px;
    }

    .feature-row {
        grid-template-columns: 26px minmax(0, 1fr) 20px;
        gap: 10px 12px;
        padding: 17px 0;
    }

    .feature-row h3 {
        font-size: 17px;
    }

    .feature-row p {
        grid-column: 2;
    }

    .feature-row > a {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .closing-section {
        padding: 64px 22px 68px;
    }

    .closing-actions {
        align-items: center;
    }

    .detail-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .detail-footer p {
        order: 1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
