/* ============================================================
   PALACIO MOLINA — Stylesheet
   Font:   DM Sans (Google Fonts)
   Verde:  #2d3637   Crema: #ece7da   Marrón: #9a4d1b
   ============================================================ */

/* --- Variables --- */
:root {
  --verde:        #2d3637;
  --crema:        #ece7da;
  --marron:       #9a4d1b;
  --blanco:       #ffffff;
  --verde-oscuro: #1a2626;
  --dark:         #1c1f1f;
  --border-crema: rgba(45, 54, 55, 0.15);
  --border-warm:  rgba(156, 125, 96, 0.25);
  --card-radius:  28px;

  --font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
  --max-w:    1300px;
  --pad-x:    clamp(20px, 5vw, 80px);
  --ease:     0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--verde);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Imagen placeholder (negro) --- */
.img-ph {
  width: 100%;
  height: 100%;
  background: #000;
  display: block;
  min-height: 200px;
}

/* ============================================================
   GRÁFICO DECORATIVO
   ============================================================ */
.grafico {
  display: block;
  width: auto;
  height: 25px;
  margin-bottom: 15px;
}
.grafico--light {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.grafico--small {
  height: 27px;
  margin-bottom: 12px;
}

/* ============================================================
   HEADING GROUP — ornamento al mismo ancho que el título
   ============================================================ */
.heading-group {
  display: flex;
  flex-direction: column;
  width: fit-content;
}
.heading-group .grafico {
  width: 62.5%;
  height: auto;
  align-self: flex-start;
}
.origen__text .heading-group .grafico {
  align-self: flex-start;
}
.vision__content .heading-group .grafico {
  align-self: center;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 56px;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(0.8rem, 1vw, 0.94rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn--brown {
  background: var(--marron);
  color: var(--crema);
  border-color: var(--marron);
}
.btn--brown:hover {
  background: #7d3d14;
  border-color: #7d3d14;
}
.btn--outline-dark {
  background: transparent;
  color: var(--marron);
  border-color: var(--marron);
}
.btn--outline-dark:hover {
  background: var(--marron);
  color: var(--crema);
}
.btn--outline-cream {
  background: transparent;
  color: var(--crema);
  border-color: var(--crema);
}
.btn--outline-cream:hover {
  background: var(--crema);
  color: var(--verde);
}
.btn--form-submit {
  margin-top: 32px;
  align-self: flex-start;
}

/* Texto en marrón */
.text-marron { color: var(--marron); }

/* Link con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marron);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--marron); }

/* ============================================================
   LOGOS
   ============================================================ */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer__logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(0.7);
}
.partner-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(0.5);
  transition: filter var(--ease);
}
.partner-img--ges {
  height: 35px;
}
.partner-img:hover { filter: brightness(0) invert(0.85); }
.partner-img--natural { filter: none; opacity: 0.85; }
.partner-img--natural:hover { filter: none; opacity: 1; }
.partner-img--sm { height: 21px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: var(--verde);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo { grid-column: 2; }

.nav__group {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav__group a {
  font-size: clamp(0.65rem, 0.83vw, 0.74rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
  opacity: 0.85;
  transition: opacity var(--ease);
}
.nav__group a:hover { opacity: 1; }

.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--crema);
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 30px;
  height: 16px;
}
.nav__logo-text {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crema);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--crema);
  transition: all var(--ease);
}

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(28, 38, 38, 0.98);
  padding: 24px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav__mobile.open { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 20px; }
.nav__mobile a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
  opacity: 0.85;
}

/* ============================================================
   SECCIÓN 01 — HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 560px;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hero__content {
  background: var(--crema);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px clamp(36px, 5vw, 72px) 60px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 1.05;
  color: var(--verde);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--verde);
  margin-bottom: 28px;
  opacity: 0.8;
}

.hero__tags {
  font-weight: 500;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 40px;
}
.tag-plus {
  color: var(--marron);
  margin: 0 8px;
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

/* ============================================================
   RECUADROS REDONDEADOS (foto, origen, amenities)
   ============================================================ */
.full-photo-wrap {
  background: #fff;
  padding: 15px var(--pad-x);
}
.card-wrap {
  padding: 0 var(--pad-x);
  background: var(--crema);
}
.card-wrap:has(.origen) {
  background: var(--blanco);
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.card-wrap:has(.amenities-hero) {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 50px;
  padding-bottom: 15px;
}

.full-photo {
  border-radius: var(--card-radius);
  overflow: hidden;
}
.card-wrap .origen,
.card-wrap .amenities-hero {
  border-radius: var(--card-radius);
  overflow: hidden;
}

/* ============================================================
   SECCIÓN 02 — ESTADÍSTICAS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--blanco);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 44px;
  gap: 10px;
}

.stats__number {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  color: var(--marron);
  letter-spacing: -0.01em;
  line-height: 1;
}

.stats__label {
  font-weight: 400;
  font-size: clamp(0.65rem, 1.1vw, 0.98rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde);
}

/* ============================================================
   FOTO EN RECUADRO
   ============================================================ */
.full-photo {
  width: 100%;
  background: #000;
}
.full-photo img {
  width: 100%;
  height: clamp(320px, 40vw, 560px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   SECCIÓN 03 — EL ORIGEN
   ============================================================ */
.origen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--crema);
  min-height: 620px;
}

.origen__text {
  padding: clamp(60px, 7vw, 100px) clamp(36px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.origen__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.9vw, 4.4rem);
  line-height: 1.05;
  color: var(--verde);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.origen__body {
  font-size: clamp(0.88rem, 1.25vw, 1.1rem);
  line-height: 1.8;
  color: var(--verde);
  margin-bottom: 20px;
  max-width: 520px;
}
.origen__body--light { font-weight: 300; }
.origen__body--semibold {
  font-weight: 600;
  font-style: italic;
}
.origen__body--semibold .text-marron { font-style: italic; }

.origen__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.origen__media {
  overflow: hidden;
  background: #000;
}
.origen__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   SECCIÓN 04 — LA VISIÓN
   ============================================================ */
.vision {
  position: relative;
  background: var(--verde);
}

.vision__bg {
  position: relative;
  width: 100%;
  line-height: 0;
}
.vision__bg img {
  width: 100%;
  height: auto;
  display: block;
}

.vision__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 54, 55, 0.20);
}

.vision__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--pad-x);
}

.vision__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.9vw, 4.4rem);
  color: var(--crema);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.vision__subtitle {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: rgba(236, 231, 218, 0.8);
}

/* ============================================================
   TIPOLOGÍAS CARDS
   ============================================================ */
.tipologias {
  background: var(--blanco);
  padding: 64px var(--pad-x);
}

.tipologias__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tipo-card { grid-column: span 2; }
.tipo-card:nth-child(4) { grid-column: 2 / span 2; }
.tipo-card:nth-child(5) { grid-column: 4 / span 2; }

.tipo-card {
  background: var(--crema);
  border-radius: 30px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background var(--ease), box-shadow var(--ease);
}
.tipo-card:hover {
  background: #ddd7c8;
  box-shadow: 0 4px 24px rgba(45,54,55,0.08);
}

.tipo-card__name {
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: var(--verde);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tipo-card__tag {
  display: block;
  font-weight: 500;
  font-size: clamp(0.6rem, 0.85vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marron);
  margin-bottom: 18px;
}

.tipo-card__desc {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.82rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--verde);
  flex: 1;
  margin-bottom: 24px;
}

.tipo-card__link {
  font-weight: 400;
  font-size: clamp(0.7rem, 0.9vw, 0.89rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marron);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.tipo-card__link:hover { border-bottom-color: var(--marron); }

/* ============================================================
   SECCIÓN 05 — AMENITIES HERO (verde)
   ============================================================ */
.amenities-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--verde);
  min-height: 520px;
}

.amenities-hero__text {
  padding: clamp(60px, 7vw, 100px) clamp(36px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.amenities-hero__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.9vw, 4.4rem);
  color: var(--crema);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.amenities-hero__lead {
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.92rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--crema);
  margin-bottom: 16px;
}

.amenities-hero__lead--normal {
  font-weight: 300;
}

.amenities-hero__body {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.88rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: rgba(236, 231, 218, 0.8);
  margin-bottom: 40px;
  max-width: 460px;
}

.amenities-hero__media {
  overflow: hidden;
  background: #000;
}
.amenities-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   SECCIÓN 06 — AMENITIES LIST (crema)
   ============================================================ */
.amenities-list {
  background: var(--crema);
  padding: clamp(60px, 6vw, 90px) var(--pad-x);
}

.amenities-list__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 56px;
}

.amenities-list__photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.amenities-list__photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
  flex: 1;
}

.amenities-list__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-content: start;
}

.amenity-item__name {
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  color: var(--verde);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.amenity-item__size {
  display: block;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  color: var(--marron);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  min-height: 1.5em;
}

.amenity-item__desc {
  font-weight: 400;
  font-size: clamp(0.82rem, 1.25vw, 1.1rem);
  line-height: 1.75;
  color: var(--verde);
}

.amenities-list__cta {
  display: flex;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   SECCIÓN 07 — LA OPORTUNIDAD
   ============================================================ */
.oportunidad {
  background: var(--verde);
  padding: clamp(80px, 8vw, 120px) var(--pad-x);
}

.oportunidad__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.oportunidad__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.9vw, 4.4rem);
  color: var(--crema);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.oportunidad__subtitle {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--crema);
  margin-bottom: 64px;
  opacity: 0.85;
}

.oportunidad__boxes {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-warm);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.oportunidad__box {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.oportunidad__icon {
  width: auto;
  height: 48px;
  margin-bottom: 4px;
}

.oportunidad__divider {
  width: 1px;
  background: var(--border-warm);
  flex-shrink: 0;
}

.oportunidad__label {
  font-weight: 400;
  font-size: clamp(0.65rem, 1vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crema);
  opacity: 0.65;
}

.oportunidad__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.oportunidad__value-main {
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  color: var(--crema);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.oportunidad__value-unit {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  color: var(--crema);
  letter-spacing: -0.01em;
}

.oportunidad__pct {
  font-size: 0.65em;
  vertical-align: super;
}

.oportunidad__sub {
  font-weight: 400;
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  color: var(--crema);
  opacity: 0.75;
}

/* ============================================================
   SECCIÓN 08 — INICIO DE OBRA
   ============================================================ */
.obra {
  background: var(--verde-oscuro);
  padding: clamp(56px, 6vw, 80px) var(--pad-x);
}

.obra__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}

.obra__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.obra__step--inicio { gap: 12px; }

.obra__icon {
  width: auto;
  height: 36px;
}

.obra__inicio-label {
  font-weight: 700;
  font-size: clamp(0.65rem, 1vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crema);
}

.obra__arrow {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--marron);
  flex-shrink: 0;
}

.obra__mes {
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--crema);
  line-height: 1;
}
.obra__anio {
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--crema);
  line-height: 1;
}

.obra__entrega-label {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  color: var(--crema);
  opacity: 0.8;
}
.obra__entrega-fecha {
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  color: var(--crema);
}

/* ============================================================
   SECCIÓN 09 — FORMULARIO
   ============================================================ */
.contacto {
  background: var(--crema);
  padding: clamp(80px, 8vw, 120px) var(--pad-x);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contacto__title {
  font-weight: 500;
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  color: var(--verde);
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-left: clamp(16px, 3vw, 48px);
}

.contacto__form {
  display: flex;
  flex-direction: column;
}

.form__field {
  border-bottom: 1px solid rgba(45, 54, 55, 0.25);
}
.form__field input {
  display: block;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
  color: var(--verde);
  background: transparent;
  border: none;
  outline: none;
}
.form__field input::placeholder {
  color: var(--verde);
  opacity: 0.5;
  font-style: italic;
}
.form__field input:focus::placeholder { opacity: 0.25; }
.input--error { border-bottom: 1px solid var(--marron) !important; }
.input__error-msg {
  display: block;
  font-size: 0.75rem;
  color: var(--marron);
  padding: 4px 0 8px;
  font-style: italic;
}

.form__field--radio {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form__question {
  font-family: var(--font);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
  color: var(--verde);
  opacity: 0.5;
}
.form__options {
  display: flex;
  gap: 28px;
}
.form__option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
  color: var(--verde);
}
.form__option input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--marron);
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 44px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--crema);
}
.footer__logo-icon { width: 28px; height: 15px; }
.footer__logo-text {
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crema);
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-slot { display: flex; align-items: center; }
.partner-name {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 231, 218, 0.45);
  line-height: 1.4;
  text-align: center;
}
.partner-name--italic { font-style: italic; text-transform: none; letter-spacing: 0.02em; }
.partner-name small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .tipologias__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tipo-card, .tipo-card:nth-child(4), .tipo-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 900px) {
  /* Hero — imagen no tapa el título */
  .hero { grid-template-columns: 1fr; grid-template-rows: 55vw auto; min-height: unset; }
  .hero__media { min-height: unset; }
  .hero__content { padding: 48px 28px 60px; align-items: center; }

  /* El Origen — todo centrado */
  .origen { grid-template-columns: 1fr; }
  .origen__media { display: none; }
  .origen__text { padding: 44px 28px 40px; align-items: center; text-align: center; }
  .origen__text .heading-group .grafico { align-self: center; }
  .origen__ctas { justify-content: center; }
  .card-wrap:has(.origen) { margin-top: 12px; margin-bottom: 12px; padding-top: 12px; padding-bottom: 12px; }

  /* La Visión — imagen separada, texto abajo sobre crema */
  .vision { background: var(--crema); }
  .vision__overlay { display: none; }
  .vision__content {
    position: static;
    background: var(--crema);
    padding: 44px 28px;
  }
  .vision__title { color: var(--verde); }
  .vision__subtitle { color: var(--verde); opacity: 0.8; }
  .vision__content .grafico--light { filter: none; opacity: 1; }

  /* Tipologías — fondo crema desde 900px para evitar blanco entre secciones */
  .tipologias { background: var(--crema); }

  /* Amenities hero — ancho completo, sin recuadro ni gaps */
  .card-wrap:has(.amenities-hero) {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .card-wrap .amenities-hero { border-radius: 0; }
  .amenities-hero { grid-template-columns: 1fr; }
  .amenities-hero__media { min-height: 60vw; order: -1; }
  .amenities-hero__text { padding: 44px 28px 40px; align-items: center; text-align: center; order: 1; }

  /* Amenities list — fotos a bordes de pantalla, sin border-radius, texto centrado, sin gap superior */
  .amenities-list { padding-top: 0; }
  .amenities-list__inner { grid-template-columns: 1fr; }
  .amenities-list__photos {
    flex-direction: column;
    gap: 0;
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
  }
  .amenities-list__photos img { border-radius: 0; }
  .amenities-list__grid { text-align: center; }
  .amenity-item { text-align: center; }

  .full-photo-wrap { padding: 12px var(--pad-x); }

  .oportunidad__boxes { flex-direction: column; }
  .oportunidad__divider { width: 60%; height: 1px; }

  .obra__inner { gap: 20px; }

  .contacto__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__group { display: none; }
  .nav__hamburger { display: flex; grid-column: 3; justify-self: end; }

  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; padding: 24px 44px; position: relative; }
  .stats__item + .stats__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: var(--marron);
  }

  /* Tipologías — fondo crema, separador marrón al 50%, sin recuadro redondeado, sin gaps verticales */
  .tipologias { background: var(--crema); padding-top: 0; padding-bottom: 0; }
  .tipologias__grid { grid-template-columns: 1fr; gap: 0; }
  .tipo-card, .tipo-card:nth-child(4), .tipo-card:nth-child(5) { grid-column: span 1; }
  .tipo-card {
    background: transparent;
    border-radius: 0;
    border-bottom: none;
    border-top: none;
    padding: 28px 0;
    position: relative;
  }
  .tipo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: var(--marron);
  }
  .tipo-card:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: var(--marron);
  }
  .tipo-card__name { color: var(--marron); font-size: 1.8rem; }
  .tipo-card__tag { color: var(--verde); }

  .amenities-list__grid { grid-template-columns: 1fr; }

  .footer { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__partners { gap: 28px; }
}

@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  .btn { padding: 14px 28px; font-size: 0.75rem; }
  .obra__inner { flex-direction: column; gap: 16px; }
  .obra__arrow { transform: rotate(90deg); }
}
