@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/Raleway-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/Raleway-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/Raleway-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('/assets/fonts/Raleway-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ANDO: blanco dominante, grises del concepto de marca y el amarillo del logo solo como acento. */
:root {
  --white: #ffffff;
  --paper: #f6f6f4;
  --mist: #ececea;
  --stone: #d6d5d0;
  --taupe: #a19b8a;
  --gray: #676763;
  --gray-light: #8f8e89;
  --ink: #1c1c1b;
  --graphite: #262625;
  --line: #e1e0dc;
  --yellow: #ffff00;
  --sans: 'Raleway', Arial, sans-serif;
  --gutter: 1.25rem;
  --sticky-height: 4.2rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 0 calc(var(--sticky-height) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

img { display: block; max-width: 100%; }

figure { margin: 0; }

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

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

button:disabled { cursor: wait; opacity: .6; }

address { font-style: normal; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-weight: 300; letter-spacing: -.02em; }

h2 em, h1 em { font-style: normal; font-weight: 500; }

.page-shell { width: min(100% - (var(--gutter) * 2), 1200px); margin: 0 auto; }

.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; background: var(--white); padding: .75rem 1rem; color: var(--ink); }

.skip-link:focus { top: 1rem; }

/* Grilla de collage: 6 columnas en mobile y 12 en desktop, con una columna exterior para sangrar imágenes. */
.stage { display: grid; grid-template-columns: var(--gutter) repeat(6, minmax(0, 1fr)) var(--gutter); }

.stage > * { min-width: 0; }

.shot { position: relative; overflow: hidden; background: var(--mist); }

.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .55s var(--ease); }

.shot:hover img { transform: scale(1.03); }

.frame { z-index: 2; outline: .55rem solid var(--white); }

.shot figcaption { position: absolute; left: .9rem; bottom: .9rem; border-radius: 999px; background: rgba(255, 255, 255, .94); padding: .4rem .85rem; color: var(--ink); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* El "toggle" del logo de ANDO: el toque mínimo de amarillo junto a cada título de sección. */
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; color: var(--gray); font-size: .66rem; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; }

.eyebrow::before { content: ''; width: 1.7rem; height: .9rem; flex: 0 0 auto; border: 1.5px solid var(--ink); border-radius: 999px; background: radial-gradient(circle at calc(100% - .42rem) 50%, var(--yellow) 0 .26rem, transparent .28rem); }

.js img[loading="lazy"] { opacity: 0; }

.js img[loading="lazy"].is-loaded { opacity: 1; }

.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; gap: .8rem; border: 1px solid transparent; border-radius: 999px; padding: .85rem 1.5rem; font-size: .7rem; font-weight: 600; letter-spacing: .13em; line-height: 1.2; text-align: center; text-transform: uppercase; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }

.button:hover { transform: translateY(-2px); }

.button--primary { background: var(--ink); color: var(--white); }

.button--primary:hover { background: var(--yellow); color: var(--ink); }

.button--outline { border-color: var(--ink); background: transparent; color: var(--ink); }

.button--outline:hover { background: var(--ink); color: var(--white); }

.button--submit { width: 100%; margin-top: 1rem; }

.text-link { display: inline-flex; gap: .55rem; border-bottom: 1px solid currentColor; padding-bottom: .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--white); padding: 1rem 0; }

.site-header__inner { display: flex; width: min(100% - (var(--gutter) * 2), 1400px); align-items: center; justify-content: space-between; gap: 1rem; margin: 0 auto; }

.brand-lockup { display: inline-flex; min-width: 0; align-items: center; gap: .6rem; }

.brand-lockup__rosbaco { width: auto; height: 1.7rem; }

.brand-lockup__ando { width: auto; height: 1.35rem; }

.brand-lockup__divider { width: 1px; height: 1.4rem; background: var(--stone); }

.site-nav { display: none; align-items: center; gap: 2rem; }

.site-nav a, .header-cta { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.site-nav a { color: var(--gray); transition: color .25s ease; }

.site-nav a:hover { color: var(--ink); }

.header-cta { border-bottom: 2px solid var(--yellow); padding-bottom: .3rem; white-space: nowrap; }

/* Hero */
.hero { padding: 1.5rem 0 0; }

.hero__copy { grid-column: 2 / 8; grid-row: 1; position: relative; z-index: 2; }

.hero h1 { margin-bottom: 1.2rem; font-size: clamp(2.8rem, 13vw, 7.4rem); font-weight: 400; letter-spacing: -.045em; line-height: .96; }

.hero h1 span { display: block; color: var(--gray-light); font-weight: 300; }

.hero h1 span:nth-child(2) { padding-left: .9em; }

.hero h1 span:nth-child(3) { padding-left: .35em; }

.hero__lead { max-width: 30rem; margin-bottom: 1.8rem; color: var(--gray); font-size: 1.02rem; line-height: 1.75; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; }

.hero__main { grid-column: 1 / 9; grid-row: 2; margin-top: 2.5rem; aspect-ratio: 4 / 3.3; }

.hero__accent { grid-column: 5 / 8; grid-row: 3; margin-top: -4.5rem; aspect-ratio: 574 / 720; }

.hero__meta { grid-column: 2 / 5; grid-row: 3; align-self: end; display: grid; gap: .35rem; margin: 0; padding-right: 1rem; color: var(--gray); font-size: .62rem; font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }

/* Proyecto */
.intro { padding: 5rem 0 4.5rem; }

.intro__heading { grid-column: 2 / 8; }

.intro h2, .lifestyle h2, .amenities h2, .essentials h2, .quality h2, .location h2, .team h2, .section-heading h2 { margin-bottom: 1.3rem; font-size: clamp(2.1rem, 8vw, 3.9rem); line-height: 1.08; }

.intro__copy { grid-column: 3 / 8; margin-top: 1rem; }

.intro__copy p, .lifestyle__copy > p:not(.eyebrow), .amenities__lead, .quality__copy > p:not(.eyebrow), .location__copy > p:not(.eyebrow), .team__studio p, .section-heading > p:last-child { color: var(--gray); font-size: 1rem; line-height: 1.8; }

.intro__copy .button { margin-top: .6rem; }

.ficha { grid-column: 2 / 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.2rem; margin: 3.5rem 0 0; }

.ficha__item:nth-child(even) { margin-top: 2.5rem; }

.ficha dt { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; color: var(--gray); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.ficha__letter { display: inline-flex; width: 3.4rem; height: 1.85rem; align-items: center; justify-content: center; margin-bottom: 1rem; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 1rem; font-weight: 400; letter-spacing: 0; }

.ficha dt strong { color: var(--ink); font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; }

.ficha dd { margin: .7rem 0 0; border-top: 1px solid var(--line); padding-top: .7rem; color: var(--gray); font-size: .84rem; line-height: 1.6; }

/* Lifestyle */
.lifestyle { padding: 1rem 0 4rem; }

.lifestyle__main { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 3; }

.lifestyle__copy { grid-column: 2 / 8; grid-row: 2; padding-top: 2.6rem; }

.lifestyle__copy .text-link { margin-top: .5rem; }

.lifestyle__accent { grid-column: 4 / 9; grid-row: 3; margin-top: 2rem; aspect-ratio: 2 / 1; }

/* Banda de palabras del concepto "ANDO +" */
.word-band { overflow: hidden; border-block: 1px solid var(--line); padding: 1.3rem 0; }

.word-band__track { display: flex; width: max-content; gap: 2.2rem; margin: 0; color: var(--stone); font-size: clamp(2.2rem, 7vw, 5.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; animation: word-band 60s linear infinite; }

.word-band__track span:nth-child(4n + 1) { color: var(--ink); }

@keyframes word-band { to { transform: translateX(-50%); } }

/* Amenities */
.amenities { background: var(--paper); padding: 5rem 0; }

.amenities__heading { grid-column: 2 / 8; grid-row: 1; }

.amenities__lead { grid-column: 3 / 8; grid-row: 2; }

.amenities__main { grid-column: 1 / 9; grid-row: 3; margin-top: 2rem; aspect-ratio: 4 / 3; }

.amenities__main figcaption, .location__main figcaption { top: .9rem; bottom: auto; }

.amenities__pool { grid-column: 4 / 8; grid-row: 4; margin-top: -3.5rem; aspect-ratio: 4 / 3; outline-color: var(--paper); }

.amenities__aerial { grid-column: 2 / 6; grid-row: 5; margin-top: 1.6rem; aspect-ratio: 16 / 10; }

.amenities__floors { grid-column: 2 / 8; grid-row: 6; display: grid; margin: 2.6rem 0 0; }

.amenities__floors div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; border-top: 1px solid var(--stone); padding: .9rem 0; }

.amenities__floors dt { color: var(--gray); font-size: .66rem; font-weight: 600; letter-spacing: .14em; line-height: 2.1; text-transform: uppercase; }

.amenities__floors dd { margin: 0; font-size: 1.05rem; font-weight: 300; }

/* Essentials */
.essentials { padding: 5rem 0 3rem; }

.essentials__heading { grid-column: 2 / 8; }

.essential { grid-column: 2 / 8; margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }

.essential:nth-of-type(even) { grid-column: 3 / 8; }

.essential span { color: var(--gray); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.essential h3 { margin: 1.2rem 0 .5rem; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; }

.essential p { max-width: 22rem; margin-bottom: 0; color: var(--gray); font-size: .92rem; line-height: 1.7; }

/* Calidad */
.quality { padding: 4rem 0 5rem; }

.quality__copy { grid-column: 2 / 8; grid-row: 1; }

.quality__copy ul { display: grid; margin: 1.4rem 0 0; padding: 0; list-style: none; }

.quality__copy li { position: relative; border-top: 1px solid var(--line); padding: .7rem 0 .7rem 1.4rem; color: var(--ink); font-size: .9rem; }

.quality__copy li::before { content: '+'; position: absolute; left: 0; color: var(--gray-light); }

.quality__main { grid-column: 1 / 9; grid-row: 2; margin-top: 2.6rem; aspect-ratio: 2 / 1.15; }

.quality__accent { grid-column: 2 / 6; grid-row: 3; margin-top: -2.6rem; aspect-ratio: 2 / 1.1; }

/* Unidades */
.typology-section { background: var(--paper); padding: 5rem 0; }

.section-heading { max-width: 44rem; margin-bottom: 2.4rem; }

.typology-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.6rem; }

.typology-tabs button { position: relative; min-height: 2.9rem; border: 1px solid var(--stone); border-radius: 999px; background: var(--white); padding: .5rem 1rem; color: var(--gray); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

.typology-tabs button:hover { border-color: var(--ink); color: var(--ink); }

.typology-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.typology-tabs button[aria-selected="true"]::after { content: ''; position: absolute; top: 50%; right: .9rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--yellow); transform: translateY(-50%); }

.typology-panel { display: grid; gap: 2rem; outline-offset: 6px; }

.typology-panel h3 { margin-bottom: .8rem; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.05; }

.typology-panel__copy > p:not(.eyebrow) { max-width: 34rem; color: var(--gray); line-height: 1.75; }

.typology-panel__copy, .typology-plan { transition: opacity .2s ease, transform .2s ease; }

.typology-panel.is-changing .typology-panel__copy, .typology-panel.is-changing .typology-plan { opacity: .35; transform: translateY(.2rem); }

.typology-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; margin: 1.5rem 0; }

.typology-facts div { border-top: 1px solid var(--stone); padding: .85rem 0; }

.typology-facts dt { margin-bottom: .2rem; color: var(--gray); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.typology-facts dd { margin: 0; font-size: 1.05rem; font-weight: 400; }

.typology-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.typology-actions .button { flex: 1 1 auto; white-space: nowrap; }

.typology-plan { margin: 0; background: var(--white); padding: .6rem; }

.typology-plan img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.typology-plan figcaption { padding: .7rem .3rem .2rem; color: var(--gray); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* Ubicación */
.location { padding: 4rem 0 5rem; }

.location__main { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 3; }

.location__accent { grid-column: 4 / 8; grid-row: 2; margin-top: -3rem; aspect-ratio: 16 / 10; }

.location__copy { grid-column: 2 / 8; grid-row: 3; padding-top: 2.6rem; }

.location__copy address { margin: 1.5rem 0 0; border-left: 2px solid var(--ink); padding-left: 1rem; font-size: 1.2rem; font-weight: 300; line-height: 1.55; }

.map-card { grid-column: 2 / 8; grid-row: 4; margin-top: 2.5rem; background: var(--white); }

.map-frame { position: relative; overflow: hidden; }

.map-canvas { position: relative; width: 100%; min-height: 21rem; aspect-ratio: 1.35; overflow: hidden; background: var(--mist) url('/desarrollos/ando/fotos/mapa-ubicacion-1280.webp') 42% center / cover no-repeat; }

.map-status { position: absolute; z-index: 1; inset: auto 1rem 1rem; width: fit-content; max-width: calc(100% - 2rem); margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); padding: .55rem .9rem; color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .06em; }

.map-canvas.is-loaded ~ .map-status { display: none; }

.map-legend { position: absolute; z-index: 1; top: 1rem; left: 1rem; display: none; gap: .8rem; border-radius: 999px; background: rgba(255, 255, 255, .95); padding: .55rem .9rem; color: var(--ink); font-size: .66rem; font-weight: 600; letter-spacing: .04em; }

.map-canvas.has-developments ~ .map-legend { display: flex; }

.map-legend__item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }

.map-legend__logo { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; object-fit: contain; }

.map-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .9rem 0 0; color: var(--ink); font-size: .68rem; }

.map-card figcaption a { border-bottom: 1px solid currentColor; }

.rosbaco-map-marker { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }

.rosbaco-map-marker img { display: block; width: 1.65rem; height: 1.65rem; object-fit: contain; }

.rosbaco-map-featured { display: inline-flex; width: max-content; flex-direction: column; align-items: center; gap: .35rem; }

.rosbaco-map-featured .rosbaco-map-marker { width: 3.4rem; height: 3.4rem; border: 3px solid var(--yellow); box-shadow: 0 0 0 3px var(--ink), 0 6px 18px rgba(0, 0, 0, .32); }

.rosbaco-map-featured .rosbaco-map-marker img { width: 2.3rem; height: 2.3rem; }

.rosbaco-map-featured__label { display: block; border-radius: 999px; background: var(--yellow); padding: .35rem .75rem; box-shadow: 0 3px 12px rgba(0, 0, 0, .28); color: var(--ink); font-size: .65rem; font-weight: 600; letter-spacing: .08em; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: nowrap; }

/* Equipo */
.team { background: var(--paper); padding: 5rem 0; }

.team__heading { grid-column: 2 / 8; }

.team__studio { grid-column: 2 / 8; margin-top: 2rem; border-top: 1px solid var(--stone); padding-top: 1.2rem; }

.team__studio:last-child { grid-column: 3 / 8; }

.team__studio h3 { margin-bottom: .8rem; font-size: 1.5rem; line-height: 1.2; }

/* Cierre */
.conversion-band { background: var(--mist); padding: 5rem 0 calc(5rem + env(safe-area-inset-bottom, 0px)); }

.conversion-band h2 { max-width: 52rem; margin-bottom: .9rem; font-size: clamp(2.6rem, 11vw, 5.6rem); line-height: 1.02; }

.conversion-band__inner > p:not(.eyebrow) { max-width: 34rem; margin-bottom: 1.8rem; color: var(--gray); font-size: 1.05rem; }

.conversion-band .button { margin: .25rem .6rem .25rem 0; }

/* Footer */
.site-footer { background: var(--graphite); color: var(--white); padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); }

.site-footer__inner { display: grid; gap: 1.5rem; }

.brand-lockup--footer .brand-lockup__rosbaco { height: 2.3rem; }

.brand-lockup--footer .brand-lockup__ando { height: 1.6rem; }

.brand-lockup--footer .brand-lockup__divider { background: rgba(255, 255, 255, .35); }

.footer-project { margin-bottom: .65rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.footer-legal { max-width: 34rem; margin: 0; color: rgba(255, 255, 255, .55); font-size: .75rem; line-height: 1.55; }

.site-footer__copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; }

.site-footer__copyright p { margin: 0; color: rgba(255, 255, 255, .45); font-size: .7rem; letter-spacing: .1em; line-height: 1.6; }

.footer-credit { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; color: rgba(255, 255, 255, .35); font-size: .62rem; letter-spacing: .08em; transition: color .25s ease; }

.footer-credit:hover { color: rgba(255, 255, 255, .6); }

.footer-credit__logo { width: auto; height: 1rem; opacity: .4; transition: opacity .25s ease; }

.footer-credit:hover .footer-credit__logo { opacity: .65; }

/* Sticky CTA */
.sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; width: 100%; z-index: 40; display: grid; grid-template-columns: 1fr 1.15fr; gap: .5rem; min-height: var(--sticky-height); padding: .5rem .65rem calc(.5rem + env(safe-area-inset-bottom, 0px)); background: rgba(28, 28, 27, .96); color: var(--white); }

.sticky-cta a, .sticky-cta button { display: flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; color: inherit; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.sticky-cta button { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }

.sticky-cta__icon { width: 1.4rem; height: 1.4rem; object-fit: contain; }

/* Formulario */
.lead-dialog { width: min(100% - 1.5rem, 760px); max-height: min(100dvh - 2rem, 820px); margin: auto; border: 0; padding: 0; background: transparent; color: var(--ink); }

.lead-dialog::backdrop, .brochure-dialog::backdrop { background: rgba(20, 20, 19, .72); }

.lead-dialog__surface { display: flex; flex-direction: column; max-height: min(100dvh - 2rem, 820px); overflow-y: auto; background: var(--white); padding: 1.25rem var(--gutter) 1.5rem; animation: dialog-in .35s ease both; }

.lead-dialog__header, .brochure-dialog__header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

.lead-dialog__header h2 { margin-bottom: .4rem; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; }

.lead-dialog__header p:last-child, .brochure-dialog__header p:last-child { max-width: 34rem; margin-bottom: 0; color: var(--gray); font-size: .9rem; }

.dialog-close { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.6rem; line-height: 1; }

.form-grid { display: grid; gap: .85rem; }

.field { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }

.field label, .radio-fieldset legend { color: var(--gray); font-size: .66rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--stone); border-radius: 0; background: var(--white); padding: .6rem .1rem; color: var(--ink); font-size: .95rem; outline: 0; }

.field textarea { min-height: 4rem; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }

.field.is-error input, .field.is-error select, .field.is-error textarea { border-bottom-color: #aa2020; }

.radio-fieldset { border: 0; margin: 0; padding: 0; }

.radio-fieldset legend { margin-bottom: .6rem; padding: 0; }

.radio-options { display: flex; gap: 1.25rem; }

.radio-options label { display: flex; align-items: center; gap: .45rem; color: var(--ink); font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

.radio-options input { accent-color: var(--ink); }

.form-message { margin: .6rem 0 0; color: #9f1b1b; font-size: .84rem; }

/* Brochure */
.brochure-dialog { position: fixed; inset: 0; width: 100%; height: 100svh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: transparent; color: var(--ink); }

.brochure-dialog__surface { position: relative; display: flex; height: 100%; min-height: 0; flex-direction: column; background: var(--white); padding: 1rem var(--gutter) calc(var(--sticky-height) + .75rem + env(safe-area-inset-bottom, 0px)); animation: dialog-in .35s ease both; }

.brochure-dialog__header { flex: 0 0 auto; margin-bottom: .85rem; }

.brochure-dialog__header h2 { margin-bottom: .35rem; font-size: clamp(2rem, 8vw, 3.1rem); line-height: 1.08; }

.brochure-dialog__viewer { min-height: 0; flex: 1 1 auto; background: var(--mist); overflow-y: auto; -webkit-overflow-scrolling: touch; }

.pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #4a4a48; }

.pdf-pages canvas { display: block; width: 100%; height: auto; }

.pdf-page-slot { position: relative; display: flex; width: 100%; align-items: center; justify-content: center; overflow: hidden; background: #a19b8a; }

.pdf-page-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.pdf-page-slot.is-rendered .pdf-page-placeholder { display: none; }

.pdf-loader { display: flex; min-height: 420px; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 4.5rem 1.5rem; background: var(--taupe); color: var(--white); text-align: center; }

.pdf-loader.is-hidden { display: none !important; }

.pdf-loader__spinner { width: 48px; height: 48px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: var(--yellow); border-radius: 50%; animation: pdf-spin .85s cubic-bezier(.6, .2, .4, .8) infinite; }

@keyframes pdf-spin { to { transform: rotate(360deg); } }

.pdf-loader__text { margin: 0; font-size: 1.1rem; font-weight: 300; }

.pdf-loader__bar { position: relative; width: min(260px, 80%); height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .25); }

.pdf-loader__progress { width: 35%; height: 100%; border-radius: 2px; background: var(--yellow); animation: pdf-bar-indeterminate 1.4s ease-in-out infinite; }

@keyframes pdf-bar-indeterminate {
  0% { transform: translateX(-100%); width: 25%; }
  50% { width: 60%; }
  100% { transform: translateX(320%); width: 25%; }
}

.pdf-loader__subtext { color: rgba(255, 255, 255, .75); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.brochure-dialog__sticky-cta { position: absolute; inset: auto 0 0; width: 100%; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease, transform .7s var(--ease); }

.reveal--delay { transition-delay: .12s; }

.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.site-footer :focus-visible, .sticky-cta :focus-visible { outline-color: var(--yellow); }

@media (max-width: 639px) {
  .lead-dialog { inset: 0; width: 100%; max-width: none; max-height: none; height: 100dvh; margin: 0; }
  .lead-dialog__surface { max-height: none; height: 100%; padding: 1rem var(--gutter) 1.2rem; }
  .lead-dialog__header h2 { font-size: 1.65rem; }
  .form-grid { gap: .55rem; }
  .field input, .field select { padding: .5rem .1rem; font-size: .92rem; }
  .field textarea { min-height: 2.8rem; font-size: .92rem; }
  .dialog-close { width: 2.3rem; height: 2.3rem; font-size: 1.35rem; }
  .brand-lockup__rosbaco { height: 1.45rem; }
  .brand-lockup__ando { height: 1.1rem; }
  .header-cta { font-size: .6rem; letter-spacing: .12em; }
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; }
  .field--full { grid-column: 1 / -1; }
  .lead-dialog__surface { padding: 1.6rem 2.5rem 1.8rem; }
  .typology-tabs { display: flex; flex-wrap: wrap; }
  .typology-tabs button { padding: .5rem 2.2rem .5rem 1.4rem; }
  .sticky-cta { grid-template-columns: minmax(0, 14rem) minmax(0, 16rem); justify-content: end; padding-right: var(--gutter); padding-left: var(--gutter); }
}

@media (min-width: 900px) {
  :root { --gutter: 3rem; --sticky-height: 4.4rem; }

  /* 12 columnas de 100px entre dos márgenes elásticos: las imágenes sangran tomando la primera o la última. */
  .stage { grid-template-columns: minmax(var(--gutter), 1fr) repeat(12, minmax(0, 6.25rem)) minmax(var(--gutter), 1fr); }

  .site-header { padding: 1.4rem 0; }
  .brand-lockup { gap: .85rem; }
  .brand-lockup__rosbaco { height: 2.1rem; }
  .brand-lockup__ando { height: 1.55rem; }
  .site-nav { display: flex; }

  .hero { padding-top: 0; }
  .hero__copy { grid-column: 2 / 8; grid-row: 1 / 3; align-self: center; padding: 3rem 2.5rem 5rem 0; }
  .hero__main { grid-column: 8 / 15; grid-row: 1 / 3; height: min(84svh, 800px); margin-top: 0; aspect-ratio: auto; }
  .hero__accent { grid-column: 7 / 10; grid-row: 3; margin-top: -8rem; }
  .hero__meta { grid-column: 2 / 6; grid-row: 3; align-self: start; padding-top: 2.2rem; }

  .intro { padding: 8rem 0 7rem; }
  .intro__heading { grid-column: 2 / 9; grid-row: 1; }
  .intro__copy { grid-column: 9 / 14; grid-row: 1; margin-top: 10rem; }
  .ficha { grid-column: 2 / 14; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; margin-top: 6rem; }
  .ficha__item:nth-child(2) { margin-top: 4.5rem; }
  .ficha__item:nth-child(3) { margin-top: 1.5rem; }
  .ficha__item:nth-child(4) { margin-top: 6rem; }

  .lifestyle { padding: 2rem 0 8rem; }
  .lifestyle::before { content: ''; grid-column: 11 / 15; grid-row: 3; margin: -3rem 0 -3.5rem; background: var(--mist); }
  .lifestyle__main { grid-column: 1 / 10; grid-row: 1 / 3; height: 46rem; aspect-ratio: auto; }
  .lifestyle__copy { grid-column: 10 / 15; grid-row: 1; align-self: end; padding: 0 var(--gutter) 3rem 3rem; }
  .lifestyle h2 { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }
  .lifestyle__accent { grid-column: 9 / 13; grid-row: 3; margin-top: -8rem; }

  .amenities { padding: 8rem 0; }
  .amenities__heading { grid-column: 2 / 8; grid-row: 1; }
  .amenities__lead { grid-column: 9 / 14; grid-row: 1; align-self: end; margin-bottom: 1.4rem; }
  .amenities__main { grid-column: 4 / 15; grid-row: 2; height: 42rem; margin-top: 4rem; aspect-ratio: auto; }
  .amenities__pool { grid-column: 2 / 7; grid-row: 3; margin-top: -9rem; }
  .amenities__aerial { grid-column: 9 / 13; grid-row: 3 / 5; margin-top: 4.5rem; }
  .amenities__floors { grid-column: 2 / 7; grid-row: 4; margin-top: 3rem; }

  .essentials { padding: 8rem 0 6rem; }
  .essentials__heading { grid-column: 2 / 7; grid-row: 1 / 3; align-self: start; }
  .essential, .essential:nth-of-type(even) { margin-top: 0; }
  .essential:nth-of-type(1) { grid-column: 8 / 11; grid-row: 1; }
  .essential:nth-of-type(2) { grid-column: 11 / 14; grid-row: 1; margin-top: 6rem; padding-left: 2rem; }
  .essential:nth-of-type(3) { grid-column: 8 / 11; grid-row: 2; margin-top: 3rem; }
  .essential:nth-of-type(4) { grid-column: 11 / 14; grid-row: 2; margin-top: 9rem; padding-left: 2rem; }

  .quality { padding: 6rem 0 8rem; }
  .quality__copy { grid-column: 2 / 7; grid-row: 1 / 3; align-self: center; padding-right: 2rem; }
  .quality__main { grid-column: 8 / 15; grid-row: 1; height: 31rem; margin-top: 0; aspect-ratio: auto; }
  .quality__accent { grid-column: 7 / 11; grid-row: 2; margin-top: -6rem; }

  .typology-section { padding: 8rem 0; }
  .typology-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 4rem; }

  .location { padding: 6rem 0 8rem; }
  .location__main { grid-column: 1 / 11; grid-row: 1; height: 38rem; aspect-ratio: auto; }
  .location__accent { grid-column: 10 / 14; grid-row: 1; align-self: end; margin: 0 0 -6rem; }
  .location__copy { grid-column: 2 / 7; grid-row: 2; padding-top: 6rem; }
  .map-card { grid-column: 8 / 14; grid-row: 2; margin-top: 10rem; }

  .team { padding: 7rem 0; }
  .team__heading { grid-column: 2 / 7; grid-row: 1; }
  .team__studio { grid-column: 8 / 11; grid-row: 1; margin-top: 0; }
  .team__studio:last-child { grid-column: 11 / 14; margin-top: 5rem; padding-left: 2rem; }

  .conversion-band { padding: 8rem 0 calc(8rem + env(safe-area-inset-bottom, 0px)); }
  .site-footer__inner { grid-template-columns: 1fr 1.5fr; align-items: center; }
  body { padding-bottom: calc(var(--sticky-height) + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .word-band__track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); white-space: normal; }
  .word-band__track span:nth-child(n + 12) { display: none; }
}
