/* ============================================
   SUR CREA CONSTRUCCIÓN
   Vibe: Editorial Luxury
   Layout: Asymmetric Editorial Split
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --gold: #C9A84C;
  --gold-hover: #d4b85e;
  --navy: #1a1f36;
  --navy-light: #2a3050;

  /* Neutral — warm monochrome */
  --black: #111114;
  --off-black: #2F3437;
  --white: #FFFFFF;
  --bone: #FDFBF7;
  --cream: #F7F6F3;
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-muted: #787774;
  --text-secondary: #5c5850;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  /* Motion — custom cubic-bezier, no linear/ease-in-out */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* Spacing */
  --container: 1320px;
  --gutter: clamp(1.5rem, 5vw, 3.5rem);
  --section-pad: clamp(6rem, 12vw, 10rem);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--off-black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit; color: inherit; border: none; outline: none; background: none;
}

/* ---------- GRAIN OVERLAY ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--bone { background: var(--bone); }

.section--gold-gradient {
  background: linear-gradient(135deg, #b8943f 0%, var(--gold) 40%, #d4b85e 60%, #c9a84c 100%);
  padding-top: calc(44px + var(--section-pad));
}

.section--gold-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--white);
}

.section--gold-gradient::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 44px solid var(--white);
}

.section--gold-gradient .eyebrow {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}

.section--gold-gradient .heading-xl,
.section--gold-gradient .body-lg {
  color: var(--navy);
}

.section--gold-gradient .form__label {
  color: var(--navy);
}

.section--gold-gradient .form__input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(26, 31, 54, 0.15);
  color: var(--navy);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(26, 31, 54, 0.15);
}

.section--gold-gradient .form__input:focus {
  background: var(--white);
  border-color: var(--navy);
}

.section--gold-gradient .btn {
  background: var(--navy);
  color: var(--white);
}

.section--gold-gradient .btn:hover {
  background: var(--off-black);
}

.section--dark {
  background: var(--navy);
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.eyebrow--light {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.heading-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 2rem;
}

.heading-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.heading--light { color: var(--white); }

.body-lg {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 55ch;
  margin-bottom: 1.25rem;
}

.body-lg:last-of-type { margin-bottom: 0; }

/* ---------- SPLIT LAYOUTS ---------- */
.split {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.split--60-40 { grid-template-columns: 1.5fr 1fr; }
.split--40-60 { grid-template-columns: 1fr 1.5fr; }
.split--50-50 { grid-template-columns: 1fr 1fr; }
.split--align-center { align-items: center; }

.split--reverse .split__left { order: 1; }
.split--reverse .split__right { order: 2; }

.split__left--sticky {
  position: sticky;
  top: 8rem;
}

/* ---------- BUTTONS — pill with nested icon ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem 0.9rem 1.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  transition: all 700ms var(--ease-spring);
  margin-top: 2.5rem;
}

.btn:hover {
  background: var(--gold);
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 0.85rem;
  transition: transform 700ms var(--ease-spring);
}

.btn:hover .btn__icon {
  transform: translate(2px, -1px) scale(1.08);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 600ms var(--ease-spring);
}

.nav__inner {
  display: flex;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 56px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0 auto;
}


.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--off-black);
  transition: color 400ms var(--ease-spring);
}

.nav__links a:hover { color: var(--gold); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 1rem 0.65rem 1.4rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: background 500ms var(--ease-spring);
}

.nav__cta:hover {
  background: var(--gold);
}

.nav__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: transform 500ms var(--ease-spring);
}

.nav__cta:hover .nav__cta-icon {
  transform: translate(2px, -1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: all 500ms var(--ease-spring);
  transform-origin: center;
}

.nav__burger.active span:first-child {
  transform: rotate(45deg) translate(2.3px, 2.3px);
}
.nav__burger.active span:last-child {
  transform: rotate(-45deg) translate(2.3px, -2.3px);
}

/* ---------- MOBILE MENU — full overlay with stagger ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-spring);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links { text-align: center; }

.mobile-menu__links li {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms var(--ease-out-expo);
  transition-delay: calc(var(--i) * 80ms);
}

.mobile-menu.active .mobile-menu__links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
  transition: color 300ms;
}

.mobile-menu__links a:hover { color: var(--gold); }

/* ---------- HERO — scroll-driven frame animation ---------- */
.hero-scroll {
  position: relative;
  height: 400vh;
  width: 100%;
}

.hero-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.hero-scroll__canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 82vw;
  max-height: 82vh;
  object-fit: contain;
}

/* Edge fade masks */
.hero-scroll__fade {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-scroll__fade--top {
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
}

.hero-scroll__fade--bottom {
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}

.hero-scroll__fade--left {
  top: 0; bottom: 0; left: 0;
  width: 120px;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.hero-scroll__fade--right {
  top: 0; bottom: 0; right: 0;
  width: 120px;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

/* Text overlays */
.hero-scroll__overlay {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-scroll__text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  max-width: 900px;
  white-space: nowrap;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: none;
  will-change: opacity, transform, filter;
}

/* ---------- DIVIDER BAR ---------- */
.divider-bar {
  width: 100%;
  padding: 3rem 0;
  background: linear-gradient(135deg, #b8943f 0%, var(--gold) 40%, #d4b85e 60%, var(--gold) 100%);
  margin-top: -15vh;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  text-align: center;
}

.divider-bar__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 auto;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

/* ---------- MANIFESTO ---------- */
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.manifesto__van {
  position: absolute;
  bottom: 1.5rem;
  width: clamp(260px, 30vw, 440px);
  height: auto;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
  pointer-events: none;
}

.manifesto__van--left {
  left: 2%;
  transform: translateX(-100%);
}

.manifesto__van--right {
  right: 2%;
  transform: translateX(100%);
}

.manifesto__van.visible {
  opacity: 1;
  transform: translateX(0);
}

.manifesto {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}


/* Mobile van — hidden on desktop */
.manifesto__mobile-van {
  display: none;
}

.manifesto__stats {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.manifesto__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.manifesto__stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.manifesto__stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- RAZONES ---------- */
.razones {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 7rem);
  padding-top: calc(44px + clamp(4rem, 8vw, 6rem));
  text-align: center;
  position: relative;
}

.razones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #b8943f 0%, var(--gold) 40%, #d4b85e 60%, var(--gold) 100%);
}

.razones::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 44px solid var(--gold);
}

.razones__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.razones__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.razones__circle {
  width: clamp(100px, 12vw, 160px);
  height: clamp(100px, 12vw, 160px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.razones__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.razones__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.razones__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------- DOUBLE-BEZEL CARDS ---------- */
.card__shell {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px;
  transition: all 700ms var(--ease-spring);
}

.card__core {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: box-shadow 700ms var(--ease-spring);
}

.card:hover .card__shell {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.card__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Dark card variants */
.card__shell--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-light);
}

.card__core--dark {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.card--dark:hover .card__shell--dark {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.card__number--gold { color: var(--gold); }
.card__title--light { color: var(--white); }

/* ---------- BENTO GRIDS ---------- */
.bento {
  display: grid;
  gap: 1.25rem;
}

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

.bento--asymmetric {
  grid-template-columns: repeat(3, 1fr);
}

.card--span-2 { grid-column: span 2; }

/* ---------- PROYECTOS (GOLD SECTION) ---------- */
.proyectos {
  background: linear-gradient(135deg, #b8943f 0%, var(--gold) 40%, #d4b85e 60%, #c9a84c 100%);
  padding: var(--section-pad) 0;
  padding-top: calc(44px + clamp(3rem, 5vw, 4rem));
  position: relative;
}

.proyectos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
}

.proyectos::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 44px solid var(--navy);
}

.eyebrow--dark {
  color: var(--navy);
  background: rgba(26, 31, 54, 0.1);
}

.heading--dark {
  color: var(--navy);
}

.body-lg--dark {
  color: rgba(26, 31, 54, 0.7);
}

.proyectos__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.proyectos__desc {
  max-width: 60ch;
  margin: 0 auto;
}

.proyectos__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.proyectos__tags li {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(26, 31, 54, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
}

.proyectos__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 31, 54, 0.15);
  border: 1px solid rgba(26, 31, 54, 0.1);
}

.proyectos__video {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  margin: -2px;
  object-fit: cover;
  display: block;
}


/* ---------- TIMELINE ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__step {
  display: flex;
  gap: 2rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline__step:last-child { padding-bottom: 0; }

.timeline__step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline__step:last-child::before { display: none; }

.timeline__marker {
  flex-shrink: 0;
}

.timeline__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.timeline__content {
  padding-top: 0.5rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- IMAGE FRAMES — double bezel ---------- */
.img-frame__shell {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px;
  overflow: hidden;
}

.img-frame__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: 16px;
  transition: transform 800ms var(--ease-spring);
}

.img-frame__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 800ms var(--ease-spring);
}

.img-frame:hover .img-frame__placeholder,
.img-frame:hover .img-frame__img {
  transform: scale(1.02);
}

.img-frame--portrait .img-frame__placeholder,
.img-frame__img--portrait {
  aspect-ratio: 3 / 4;
}

/* ---------- GALERÍA ---------- */
.galeria {
  background: var(--navy);
  padding: var(--section-pad) 0;
  padding-top: calc(44px + var(--section-pad));
  position: relative;
}

.galeria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--white);
}

.galeria::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 44px solid var(--white);
}

.galeria__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.galeria__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.galeria__item--wide {
  grid-column: 1 / -1;
}

.galeria__img-shell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 5px;
  overflow: hidden;
}

.galeria__placeholder,
.galeria__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  transition: transform 800ms var(--ease-spring);
}

.galeria__placeholder {
  background: rgba(255, 255, 255, 0.06);
}

.galeria__img {
  object-fit: cover;
  display: block;
}

.galeria__item:hover .galeria__placeholder,
.galeria__item:hover .galeria__img {
  transform: scale(1.02);
}

.galeria__item--wide .galeria__placeholder,
.galeria__item--wide .galeria__img {
  aspect-ratio: 21 / 9;
}

.galeria__caption {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.01em;
}

/* ---------- LOCATION LIST ---------- */
.location-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.location-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-list__dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.location-list__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-list__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.location-list__zones {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Area section — left fills map height */
#area .split--align-center {
  align-items: stretch;
}

#area .split__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#area .eyebrow {
  align-self: flex-start;
}

#area .split__right,
#area .img-frame,
#area .img-frame__shell {
  height: 100%;
}

#area .img-frame__img {
  aspect-ratio: unset;
}

/* ---------- FORM ---------- */
.form__group { margin-bottom: 1.75rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.form__input {
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--navy);
  background: transparent;
  transition: border-color 400ms var(--ease-spring);
}

.form__input:focus {
  border-color: var(--gold);
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23787774'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form .btn { margin-top: 1rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  padding: 5rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer__logo {
  height: 70px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--gold);
  line-height: 1.7;
  font-family: var(--font-display);
  font-style: italic;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer__links li { margin-bottom: 0.75rem; }

.footer__links a,
.footer__links li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 400ms var(--ease-spring);
}

.footer__links a:hover { color: var(--gold); }

.footer__bottom { padding-top: 2rem; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 400ms var(--ease-spring);
}

.footer__legal a:hover {
  color: var(--gold);
}

/* Sobre — chat invite */
.sobre__chat-invite {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.sobre__chat-invite a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 300ms var(--ease-spring);
}

.sobre__chat-invite a:hover {
  color: var(--navy);
}

/* Contacto — chat invite */
.contacto__chat-invite {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.75;
  margin-top: 1.25rem;
  opacity: 0.75;
}

.contacto__chat-invite a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 300ms var(--ease-spring);
}

.contacto__chat-invite a:hover {
  opacity: 0.6;
}

/* ---------- CHATBOT ---------- */
.chat {
  position: fixed;
  bottom: 0;
  right: 2rem;
  z-index: 90;
}

.chat__tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  transition: background 400ms var(--ease-spring);
  position: relative;
  z-index: 2;
}

.chat__tab:hover {
  background: var(--gold);
}

.chat__tab-icon {
  width: 18px;
  height: 18px;
}

.chat__tab-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Expand button in header */
.chat__expand {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 300ms var(--ease-spring), background 300ms var(--ease-spring);
}

.chat__expand svg {
  width: 15px;
  height: 15px;
}

.chat__expand:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Backdrop */
.chat__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out-expo), visibility 400ms;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.chat.expanded .chat__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Expanded mode — near-fullscreen overlay */
.chat.expanded .chat__panel {
  position: fixed;
  width: calc(100vw - 4rem);
  height: calc(100vh - 6rem);
  max-height: none;
  top: 5.5rem;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  transform: scale(1);
  transform-origin: bottom right;
  border-radius: 16px;
  z-index: 100;
}

.chat.expanded .chat__messages {
  max-height: none;
  min-height: 0;
  flex: 1;
}

.chat.active .chat__tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

/* Panel */
.chat__panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 400ms var(--ease-out-expo),
              transform 400ms var(--ease-out-expo),
              visibility 400ms;
}

.chat.active .chat__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.chat__header {
  padding: 1rem 1.25rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.chat__header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chat__header-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  transition: opacity 300ms var(--ease-spring);
}

.chat__avatar--img {
  padding: 0;
  overflow: hidden;
}

.chat__avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat__header-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat__status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.chat__header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 300ms var(--ease-spring), background 300ms var(--ease-spring);
}

.chat__close svg {
  width: 16px;
  height: 16px;
}

.chat__close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Messages */
.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 300px;
  max-height: 360px;
  background: var(--white);
}

.chat__msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.chat__msg--user {
  flex-direction: row-reverse;
}

.chat__msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  flex-shrink: 0;
}

img.chat__msg-avatar--img {
  object-fit: cover;
  background: none;
}

.chat__msg-body {
  max-width: 78%;
}

.chat__msg-body p {
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
}

.chat__msg--bot .chat__msg-body p {
  background: var(--cream);
  color: var(--off-black);
  border-bottom-left-radius: 4px;
}

.chat__msg--user .chat__msg-body p {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat__msg-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  padding: 0 0.25rem;
}

.chat__msg--user .chat__msg-time {
  text-align: right;
}

/* Typing indicator */
.chat__typing {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.chat__typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.chat__typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}

.chat__typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick replies */
.chat__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-left: 2.25rem;
}

.chat__quick-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 100px;
  color: var(--gold);
  cursor: pointer;
  transition: all 300ms var(--ease-spring);
}

.chat__quick-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Input bar */
.chat__input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  border-radius: 0 0 16px 16px;
}

.chat__input {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: var(--cream);
  border-radius: 8px;
  color: var(--navy);
}

.chat__input::placeholder {
  color: var(--text-muted);
}

.chat__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 300ms var(--ease-spring), transform 300ms var(--ease-spring);
}

.chat__send svg {
  width: 16px;
  height: 16px;
}

.chat__send:hover {
  background: var(--navy);
}

.chat__send:active {
  transform: scale(0.92);
}

/* Attach / image upload button */
.chat__attach {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 300ms var(--ease-spring), background 300ms var(--ease-spring);
}

.chat__attach svg {
  width: 18px;
  height: 18px;
}

.chat__attach:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

/* Image messages */
.chat__msg-image {
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.chat__msg-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.chat__msg--user .chat__msg-image {
  border-bottom-right-radius: 4px;
}

/* System notice (agent connected) */
.chat__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  animation: chatNoticeIn 500ms var(--ease-out-expo);
}

.chat__notice strong {
  color: var(--navy);
  font-weight: 600;
}

.chat__notice-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chat__notice-dot--waiting {
  background: #f59e0b;
  animation: waitingPulse 1.5s ease infinite;
}

@keyframes waitingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes chatNoticeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Searching for agent */
.chat__searching {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem;
  animation: chatNoticeIn 400ms var(--ease-out-expo);
}

.chat__searching p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat__searching-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(201, 168, 76, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: chatSpin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes chatSpin {
  to { transform: rotate(360deg); }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 800ms var(--ease-out-expo),
              transform 800ms var(--ease-out-expo),
              filter 800ms var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- RESPONSIVE ---------- */

/* ---- TABLET (1024px) ---- */
@media (max-width: 1024px) {
  .bento--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento--asymmetric {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--span-2 { grid-column: span 1; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__brand {
    order: 1;
  }

  /* Manifesto vans — scale down */
  .manifesto__van {
    width: clamp(180px, 22vw, 300px);
  }
}

/* ---- MOBILE (768px) ---- */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(4rem, 10vw, 6rem);
  }

  /* -- Nav -- */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__logo-img {
    height: 44px;
  }

  .nav__inner {
    padding: 0.4rem var(--gutter);
  }

  /* Burger — ensure 44×44 min touch target */
  .nav__burger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* -- Splits — single column -- */
  .split,
  .split--60-40,
  .split--40-60,
  .split--50-50 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Reverse splits: text first, image second on mobile */
  .split--reverse .split__left { order: 1; }
  .split--reverse .split__right { order: 0; }

  .split__left--sticky { position: static; }

  /* -- Hero — fixed at top, content scrolls over it -- */
  .hero-scroll {
    height: 30vh; /* spacer so divider starts below the fixed hero */
  }

  .hero-scroll__sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30vh;
    z-index: 0;
    background: var(--white);
    padding-top: 60px; /* space below the nav */
    box-sizing: border-box;
  }

  .hero-scroll__canvas {
    width: 90%;
    max-width: none;
    max-height: 100%;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: block;
    margin: 0 auto;
  }

  .hero-scroll__overlay {
    display: none;
  }

  .hero-scroll__fade {
    display: none;
  }

  /* -- Divider bar — right below hero spacer -- */
  .divider-bar {
    margin-top: 0;
    padding: 1.5rem 0;
    position: relative;
    z-index: 4;
  }

  /* -- ALL content sections need z-index to cover fixed hero -- */
  .manifesto,
  .razones,
  .proyectos,
  .section,
  .galeria,
  .footer {
    position: relative;
    z-index: 1;
  }

  /* Only white-bg sections get explicit white (don't override navy/gold/bone sections) */
  .manifesto,
  .section:not(.section--gold-gradient):not(.section--bone) {
    background: var(--white);
  }

  .divider-bar__text {
    white-space: normal;
    line-height: 1.4;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    letter-spacing: 0.1em;
  }

  /* body-lg — remove max-width on mobile, container handles it
     (font-size adjusted further below in typography section) */
  .body-lg {
    max-width: none;
  }

  /* Portrait images — constrain height on mobile */
  .img-frame__img--portrait {
    aspect-ratio: 4 / 5;
    max-height: 55vh;
    width: 100%;
    object-position: center top;
  }

  .img-frame--portrait .img-frame__shell {
    display: flex;
    justify-content: center;
  }

  /* -- Manifesto -- */
  .manifesto__van {
    display: none;
  }

  .manifesto {
    padding-bottom: 0;
  }

  .manifesto__mobile-van {
    display: block;
    width: 85%;
    max-width: 380px;
    height: auto;
    margin: 2.5rem auto 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
  }

  .manifesto__mobile-van.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .manifesto__text {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 2rem;
  }

  .manifesto__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  /* -- Razones -- */
  .razones__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .razones__circle {
    width: clamp(80px, 18vw, 130px);
    height: clamp(80px, 18vw, 130px);
  }

  /* -- Transition triangles — smaller on mobile -- */
  .razones::after,
  .proyectos::after,
  .galeria::after,
  .section--gold-gradient::after {
    border-left-width: 38px;
    border-right-width: 38px;
    border-top-width: 30px;
  }

  .razones,
  .galeria {
    padding-top: calc(30px + clamp(4rem, 8vw, 6rem));
  }

  .proyectos {
    padding-top: calc(30px + clamp(3rem, 5vw, 4rem));
  }

  .section--gold-gradient {
    padding-top: calc(30px + var(--section-pad));
  }

  /* -- Proyectos -- */
  .proyectos__video-frame {
    border-radius: 12px;
  }

  .proyectos__tags {
    gap: 0.4rem;
  }

  .proyectos__tags li {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  /* -- Galería -- */
  .galeria__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .galeria__item--wide .galeria__placeholder,
  .galeria__item--wide .galeria__img {
    aspect-ratio: 16 / 10;
  }

  .galeria__img-shell {
    border-radius: 12px;
    padding: 4px;
  }

  .galeria__caption {
    font-size: 0.9rem;
    margin-top: 0.6rem;
  }

  /* -- Área de actuación -- */
  #area .split--align-center {
    align-items: start;
  }

  #area .split__right,
  #area .img-frame,
  #area .img-frame__shell {
    height: auto;
  }

  #area .img-frame__img {
    aspect-ratio: 4 / 3;
  }

  .location-list__name {
    font-size: 1.3rem;
  }

  /* -- Form -- */
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Form inputs — ensure 48px min touch target */
  .section--gold-gradient .form__input {
    padding: 1rem 1rem;
    font-size: 1rem;
  }

  /* Chat invite links — better tap targets */
  .sobre__chat-invite a,
  .contacto__chat-invite a {
    display: inline;
    padding: 0.25rem 0;
  }

  /* -- Footer — 2-col grid: Navegación|Empresa, Logo|Zona -- */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer__nav {
    display: contents; /* flatten cols into parent grid */
  }

  /* Navegación + Empresa stay order 0 → row 1 */
  /* Brand + Zona get order 1 → row 2 */
  .footer__brand {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .footer__nav .footer__col:nth-child(3) {
    order: 1;
  }

  .footer__logo {
    height: 55px;
  }

  /* Menu links — slightly larger on mobile */
  .footer__links a,
  .footer__links li {
    font-size: 1rem;
  }

  .footer__links li {
    margin-bottom: 0.85rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer__legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* -- Chatbot — right sidebar tab on mobile -- */
  .chat {
    right: 0;
    left: auto;
    bottom: 0;
  }

  .chat__tab {
    position: fixed;
    right: 0;
    top: 50%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    border-radius: 10px 0 0 10px;
    padding: 0.9rem 0.6rem;
    gap: 0.5rem;
  }

  .chat__tab-icon {
    transform: rotate(90deg);
  }

  .chat__panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 75vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .chat.active .chat__panel {
    transform: translateY(0);
  }

  /* Chat expanded on mobile — full screen below nav */
  .chat.expanded .chat__panel {
    width: 100%;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  /* -- Typography adjustments -- */
  .heading-xl {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 1.5rem;
  }

  .heading-lg {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 2rem;
  }

  .body-lg {
    font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  }

  .eyebrow {
    font-size: 0.65rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.5rem;
  }

  /* -- Buttons -- */
  .btn {
    font-size: 0.75rem;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
  }
}

/* ---- SMALL MOBILE (480px) ---- */
@media (max-width: 480px) {
  .bento--4,
  .bento--asymmetric {
    grid-template-columns: 1fr;
  }

  .hero-scroll__fade--top,
  .hero-scroll__fade--bottom {
    height: 60px;
  }

  .hero-scroll__fade--left,
  .hero-scroll__fade--right {
    width: 20px;
  }

  /* -- Divider bar -- */
  .divider-bar {
    margin-top: 0;
    padding: 1.5rem 0;
  }

  .divider-bar__text {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0 0.5rem;
  }

  /* -- Manifesto -- */
  .manifesto__text {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  }

  .manifesto__stat-number {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .manifesto__stat-label {
    font-size: 0.65rem;
  }

  /* -- Razones — single column -- */
  .razones__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .razones__circle {
    width: 120px;
    height: 120px;
  }

  .razones__text {
    max-width: 40ch;
  }

  /* -- Transition triangles — even smaller -- */
  .razones::after,
  .proyectos::after,
  .galeria::after,
  .section--gold-gradient::after {
    border-left-width: 28px;
    border-right-width: 28px;
    border-top-width: 22px;
  }

  .razones,
  .galeria {
    padding-top: calc(22px + clamp(4rem, 8vw, 6rem));
  }

  .proyectos {
    padding-top: calc(22px + clamp(3rem, 5vw, 4rem));
  }

  .section--gold-gradient {
    padding-top: calc(22px + var(--section-pad));
  }

  /* -- Proyectos -- */
  .proyectos__video-frame {
    border-radius: 10px;
    aspect-ratio: 16 / 10;
  }

  /* -- Timeline -- */
  .timeline__step {
    gap: 1.25rem;
  }

  .timeline__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline__step::before {
    left: 19px;
    top: 42px;
  }

  .timeline__title {
    font-size: 1.15rem;
  }

  .timeline__text {
    font-size: 0.85rem;
  }

  /* -- Image frames -- */
  .img-frame__shell {
    border-radius: 14px;
    padding: 4px;
  }

  .img-frame__img {
    border-radius: 11px;
  }

  /* -- Galería — single column -- */
  .galeria__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .galeria__item--wide .galeria__placeholder,
  .galeria__item--wide .galeria__img {
    aspect-ratio: 16 / 10;
  }

  /* -- Location list -- */
  .location-list__name {
    font-size: 1.15rem;
  }

  .location-list__zones {
    font-size: 0.72rem;
  }

  /* -- Contacto — chat invite text -- */
  .contacto__chat-invite {
    font-size: 0.85rem;
  }

  /* -- Footer — keep 2-col, tighten gap -- */
  .footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer__top {
    padding-bottom: 2.5rem;
    gap: 2rem 1.5rem;
  }

  .footer__logo {
    height: 50px;
  }

  .footer__tagline {
    font-size: 0.78rem;
  }

  .footer__heading {
    margin-bottom: 1rem;
  }

  .footer__legal {
    gap: 0.75rem;
  }

  .footer__legal a {
    font-size: 0.7rem;
  }

  .footer__bottom p {
    font-size: 0.72rem;
  }

  /* -- Chatbot -- */
  .chat__panel {
    max-height: 80vh;
  }

  .chat__messages {
    min-height: 250px;
  }

  .chat__quick-replies {
    padding-left: 2rem;
  }

  .chat__quick-btn {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }

  /* -- Mobile menu — larger touch targets -- */
  .mobile-menu__links a {
    font-size: 2rem;
  }

  .mobile-menu__links li {
    margin-bottom: 2rem;
  }

  /* -- Portrait image — even more constrained -- */
  .img-frame__img--portrait {
    max-height: 45vh;
  }

  /* -- Sobre chat invite -- */
  .sobre__chat-invite {
    font-size: 0.82rem;
  }

  /* -- Razones name -- */
  .razones__name {
    font-size: 1.05rem;
  }

  /* -- Contacto chat invite -- */
  .contacto__chat-invite {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}
