/* ============================================================
   BECERRA & ASOCIADOS CONSTRUCTORA — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --verde: #2D5036;
  --arena: #C4A485;
  --gris: #EDEBE9;
  --blanco: #FFFFFF;
  --negro: #0A0A0A;

  /* Semantic aliases */
  --bg-dark: var(--verde);
  --bg-neutral: var(--gris);
  --bg-light: var(--blanco);
  --accent: var(--arena);
  --text-primary: var(--negro);
  --text-light: var(--blanco);

  /* Typography Fluid Scaling */
  --ff-primary: 'Montserrat', sans-serif;
  --ff-serif: 'Playfair Display', serif;

  --fw-body: 400;
  --fw-sub: 600;
  --fw-head: 800;

  /* Fluid typography matching responsive-design skill */
  --fz-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fz-h2: clamp(2rem, 4vw + 0.5rem, 3.2rem);
  --fz-h3: clamp(1.4rem, 2vw + 1rem, 1.8rem);
  --fz-sub: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  --fz-body: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: clamp(16px, 2vw, 24px);
  --sp-5: clamp(24px, 3vw, 32px);
  --sp-6: clamp(32px, 4vw, 48px);
  --sp-7: clamp(40px, 5vw, 64px);
  --sp-8: clamp(48px, 6vw, 80px);
  --sp-9: clamp(64px, 8vw, 96px);
  --sp-10: clamp(80px, 10vw, 128px);

  /* Z-index layers */
  --z-base: 1;
  --z-card: 10;
  --z-nav: 50;
  --z-modal: 100;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-w: 1280px;
  --nav-h: 80px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-primary);
  font-weight: var(--fw-body);
  font-size: var(--fz-body);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-light);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Layout Utilities ──────────────────────────────────────── */
:root {
  --container-pad: var(--sp-6);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--sp-4);
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: var(--sp-3);
  }
}

/* ── Brand Decorative Elements ─────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arena);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--arena);
  flex-shrink: 0;
}

.section-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--arena);
  margin-bottom: var(--sp-4);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: var(--z-nav);
  transition: background var(--t-slow), box-shadow var(--t-slow);
  background: transparent;
}

.navbar--scrolled {
  background: var(--verde);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Footer logo slightly smaller */
.footer__brand .logo-img {
  height: 30px;
}

@media (max-width: 480px) {
  .logo-img {
    height: 28px;
  }
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.navbar__links a {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--t-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--arena);
  transition: width var(--t-base);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--blanco);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* CTA Button */
.btn-cta {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--negro);
  background: var(--arena);
  border: 2px solid var(--arena);
  padding: 0.55em 1.4em;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
}

.btn-cta:hover {
  background: transparent;
  color: var(--arena);
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 164, 133, 0.25);
  border-radius: 6px;
  padding: 3px;
  margin-right: var(--sp-3);
}

.lang-switch__btn {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--t-fast);
  line-height: 1;
}

.lang-switch__btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lang-switch__btn.active {
  background: var(--arena);
  color: var(--negro);
  font-weight: 700;
}

.lang-switch--mobile {
  align-self: flex-start;
  margin-bottom: var(--sp-3);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 164, 133, 0.3);
}

/* ── Sticky Side Tab ───────────────────────────────────────── */

/* === DESKTOP: vertical, hover to expand ==================== */
.side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-tab__trigger {
  width: 40px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 80, 54, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 164, 133, 0.1);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: rgba(196, 164, 133, 0.35);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.side-tab__chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-tab__trigger:hover,
.side-tab:hover .side-tab__trigger {
  background: rgba(45, 80, 54, 0.8);
  color: var(--arena);
  border-color: rgba(196, 164, 133, 0.25);
}

.side-tab__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 7px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    padding 0.35s ease;
}

/* Desktop hover → expand vertically */
@media (hover: hover) and (min-width: 901px) {
  .side-tab:hover .side-tab__panel {
    max-height: 180px;
    opacity: 1;
    padding: 8px 5px;
  }

  .side-tab:hover .side-tab__chevron {
    transform: rotate(-90deg);
  }
}

/* Language: hidden on desktop */
.side-tab__lang {
  display: none;
}

.side-tab__sep {
  display: none;
}

/* Social icon buttons */
.side-tab__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(45, 80, 54, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(196, 164, 133, 0.45);
  color: var(--arena);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.side-tab__social svg {
  width: 20px;
  height: 20px;
}

.side-tab__social:hover {
  background: rgba(45, 80, 54, 0.95);
  border-color: var(--arena);
  color: var(--arena);
  box-shadow: 0 2px 10px rgba(196, 164, 133, 0.15);
}

/* Language button base styles */
.side-tab__lang-btn {
  font-family: var(--ff-primary);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  border: 1px solid transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
  padding: 0;
}

.side-tab__lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(45, 80, 54, 0.4);
}

.side-tab__lang-btn.active {
  background: rgba(196, 164, 133, 0.15);
  color: var(--arena);
  border-color: rgba(196, 164, 133, 0.3);
  font-weight: 700;
}

/* === MOBILE: horizontal, tap to expand ===================== */
@media (max-width: 900px) {
  .side-tab {
    top: 80px;
    transform: none;
    flex-direction: row-reverse;
    align-items: center;
  }

  .side-tab__trigger {
    width: 30px;
    height: 42px;
    border-radius: 8px 0 0 8px;
  }

  .side-tab__panel {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    max-height: none;
    max-width: 0;
    padding: 0;
    opacity: 0;
    background: rgba(45, 80, 54, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 164, 133, 0.12);
    border-right: none;
    border-radius: 22px 0 0 22px;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      padding 0.35s ease;
  }

  .side-tab.open .side-tab__panel {
    max-width: 280px;
    opacity: 1;
    padding: 5px 14px 5px 12px;
  }

  .side-tab.open .side-tab__chevron {
    transform: rotate(180deg);
  }

  .side-tab.open .side-tab__trigger {
    background: rgba(45, 80, 54, 0.85);
    color: var(--arena);
    border-color: rgba(196, 164, 133, 0.2);
  }

  /* Show language on mobile */
  .side-tab__lang {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .side-tab__sep {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(196, 164, 133, 0.18);
    flex-shrink: 0;
    margin: 0 4px;
  }
}

/* ── Mobile menu social links ─────────────────────────────── */
.navbar__mobile-socials {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(196, 164, 133, 0.15);
}

.navbar__mobile-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  padding: 0;
  border: none;
}

.navbar__mobile-socials a:hover {
  color: var(--arena);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 10);
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile panel */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100dvh;
  background: var(--verde);
  z-index: calc(var(--z-nav) + 5);
  flex-direction: column;
  padding: calc(var(--nav-h) + 32px) var(--sp-6) var(--sp-6);
  gap: var(--sp-4);
  transition: right var(--t-slow);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.3);
}

.navbar__mobile.open {
  right: 0;
}

.navbar__mobile a {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(196, 164, 133, 0.2);
  transition: color var(--t-fast);
}

.navbar__mobile a:hover {
  color: var(--arena);
}

.navbar__mobile .btn-cta {
  margin-top: var(--sp-4);
  text-align: center;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-nav) + 4);
}

.mobile-overlay.open {
  display: block;
}

/* Hamburger animation open state */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }

  .navbar__inner>.lang-switch {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    display: flex;
  }
}

.lang-switch--mobile {
  display: none;
}

@media (max-width: 900px) {
  .lang-switch--mobile {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  /* Push content below fixed navbar */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero_building.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
  z-index: 0;
}

.hero.is-loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(10, 10, 10, 0.78) 0%,
      rgba(45, 80, 54, 0.65) 60%,
      rgba(45, 80, 54, 0.45) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-9) var(--sp-8);
  max-width: 680px;
  width: 90%;
  margin: 0 auto;

  /* Glassmorphism card */
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(196, 164, 133, 0.22);
  border-radius: 2px;

  /* 3D layered shadow */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.14),
    0 16px 32px rgba(0, 0, 0, 0.16),
    0 32px 64px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 40px rgba(196, 164, 133, 0.04);

  /* Entry animation */
  animation: card-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arena);
  margin-bottom: var(--sp-4);
  justify-content: center;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--arena);
}

.hero__title {
  font-family: var(--ff-serif);
  font-weight: var(--fw-head);
  font-size: var(--fz-h1);
  line-height: 1.15;
  color: var(--blanco);
  margin-bottom: var(--sp-4);
}

.hero__subtitle {
  font-family: var(--ff-primary);
  font-weight: var(--fw-body);
  font-size: var(--fz-sub);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto var(--sp-6) auto;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--negro);
  background: var(--arena);
  border: 2px solid var(--arena);
  padding: 0.8em 2em;
  cursor: pointer;
  display: inline-block;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast);
}

.btn-primary:hover {
  background: transparent;
  color: var(--arena);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  padding: 0.8em 2em;
  cursor: pointer;
  display: inline-block;
  transition: border-color var(--t-base), background var(--t-base), color var(--t-base), transform var(--t-fast);
}

.btn-secondary:hover {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Scroll arrow */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: var(--fw-sub);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hero__scroll svg {
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ============================================================
   SECCIÓN INSTITUCIONAL
   ============================================================ */
.institutional {
  padding: var(--sp-10) 0;
  background: var(--blanco);
}

.institutional__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

/* Left column */
.institutional__text .section-rule {
  margin-top: var(--sp-3);
}

.institutional__heading {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: var(--fz-h2);
  line-height: 1.2;
  color: var(--negro);
  margin-bottom: var(--sp-6);
  max-width: 520px;
}

.institutional__body {
  font-size: var(--fz-body);
  color: rgba(10, 10, 10, 0.75);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.stat__number {
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--verde);
  line-height: 1;
  display: block;
}

.stat__label {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arena);
  display: block;
  margin-top: 4px;
}

/* Right column — image with offset border */
.institutional__image-wrap {
  position: relative;
}

.institutional__image-inner {
  position: relative;
  display: inline-block;
  width: 100%;
}

.institutional__image-inner::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--arena);
  z-index: 0;
  pointer-events: none;
}

.institutional__image-inner img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Trust badge */
.trust-badge {
  position: absolute;
  bottom: var(--sp-5);
  left: calc(-1 * var(--sp-5));
  background: var(--verde);
  color: var(--blanco);
  padding: var(--sp-3) var(--sp-4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: 0 8px 32px rgba(45, 80, 54, 0.25);
}

.trust-badge__icon {
  color: var(--arena);
  flex-shrink: 0;
}

.trust-badge__text strong {
  display: block;
  font-weight: var(--fw-sub);
  font-size: 0.82rem;
}

.trust-badge__text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .institutional__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .institutional__image-inner img {
    height: 380px;
  }

  .trust-badge {
    left: var(--sp-3);
  }
}

/* ============================================================
   PROYECTOS DESTACADOS
   ============================================================ */
.projects {
  padding: var(--sp-10) 0;
  background: var(--gris);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section-header .eyebrow {
  justify-content: center;
}

.section-header .section-rule {
  margin-inline: auto;
}

.section-title {
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--negro);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.projects__grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  /* Prevent vertical scroll capture */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  gap: var(--sp-4);
  /* Edge bleeding trick */
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects__grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.projects__grid>* {
  flex: 0 0 calc(100% - var(--sp-6));
  /* See hint of next card */
  scroll-snap-align: center;
}

@media (min-width: 601px) {
  .projects__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .projects__grid>* {
    flex: initial;
  }
}

@media (min-width: 901px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.05);
}

.project-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
}

.project-card__badge--active {
  background: var(--arena);
  color: var(--negro);
}

.project-card__badge--delivered {
  background: var(--verde);
  color: var(--blanco);
}

.project-card__info {
  background: var(--blanco);
  padding: var(--sp-4);
}

.project-card__name {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 1rem;
  color: var(--negro);
  margin-bottom: 4px;
}

.project-card__meta {
  font-size: 0.78rem;
  color: rgba(10, 10, 10, 0.55);
  display: flex;
  gap: var(--sp-3);
}

/* Hover overlay */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--verde);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
  padding: var(--sp-5);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card__overlay-name {
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: 1.6rem;
  color: var(--blanco);
  text-align: center;
  line-height: 1.15;
}

.project-card__overlay .btn-primary {
  font-size: 0.72rem;
  padding: 0.6em 1.6em;
}

@media (min-width: 601px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 901px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   GALERÍA MULTIMEDIA
   ============================================================ */
.gallery {
  padding: var(--sp-10) 0;
  background: var(--blanco);
}

.gallery__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.gallery__filter-btn {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--negro);
  background: transparent;
  border: 1px solid rgba(10, 10, 10, 0.2);
  padding: 0.5em 1.4em;
  cursor: pointer;
  transition: all var(--t-base);
}

.gallery__filter-btn:hover,
.gallery__filter-btn.active {
  background: var(--verde);
  color: var(--blanco);
  border-color: var(--verde);
}

.gallery__grid {
  columns: 2;
  column-gap: var(--sp-2);
  margin-top: var(--sp-6);
}

@media (min-width: 480px) {
  .gallery__grid {
    column-gap: var(--sp-3);
  }
}

@media (min-width: 900px) {
  .gallery__grid {
    columns: 3;
  }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--sp-3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img,
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery__item:hover img,
.gallery__item:hover video {
  transform: scale(1.03);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 80, 54, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__play-icon,
.gallery__zoom-icon {
  color: var(--blanco);
}

.gallery__item[data-type="video"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery__load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-7);
}

.btn-outline {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde);
  background: transparent;
  border: 2px solid var(--verde);
  padding: 0.8em 2.4em;
  cursor: pointer;
  display: inline-block;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast);
}

.btn-outline:hover {
  background: var(--verde);
  color: var(--blanco);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* Mobile gap fix handled mobile-first above */

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.96);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  position: relative;
  max-width: 92vw;
  max-height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__media {
  max-width: 88vw;
  max-height: 85dvh;
  object-fit: contain;
  display: block;
}

.lightbox__media--video {
  width: min(80vw, 960px);
  aspect-ratio: 16/9;
}

.lightbox__close {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-5);
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t-fast), transform var(--t-fast);
  z-index: 10;
  background: none;
  border: none;
  padding: 8px;
}

.lightbox__close:hover {
  color: var(--blanco);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast), background var(--t-fast);
}

.lightbox__nav:hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__prev {
  left: var(--sp-3);
}

.lightbox__next {
  right: var(--sp-3);
}

.lightbox__counter {
  position: fixed;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  font-weight: var(--fw-sub);
}

/* ============================================================
   PROCESO DE TRABAJO
   ============================================================ */
.process {
  padding: var(--sp-10) 0;
  background: var(--verde);
}

.process .section-header .eyebrow {
  color: var(--arena);
}

.process .section-header .eyebrow::before {
  background: var(--arena);
}

.process .section-header .section-rule {
  background: var(--arena);
}

.process .section-title {
  color: var(--blanco);
}

.process__steps {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  /* Prevent vertical scroll capture */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  position: relative;
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}

.process__steps::-webkit-scrollbar {
  display: none;
}

.process__step {
  flex: 0 0 calc(100% - var(--sp-6));
  scroll-snap-align: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 601px) {
  .process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7) var(--sp-4);
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .process__step {
    flex: initial;
  }
}

@media (min-width: 768px) {
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
  }

  /* dashed connector line */
  .process__steps::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-image: repeating-linear-gradient(to right,
        var(--arena) 0,
        var(--arena) 8px,
        transparent 8px,
        transparent 16px);
    pointer-events: none;
    z-index: 0;
  }
}

.process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--sp-4);
}

.process__number {
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.07);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.process__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--arena);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--arena);
}

.process__step-title {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.95rem;
  color: var(--blanco);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
}

.process__step-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* Default mobile layout handled above */

/* ============================================================
   SECCIÓN EMOCIONAL
   ============================================================ */
.emotional {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.emotional__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/emotional_family.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.emotional__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(10, 10, 10, 0.88) 0%,
      rgba(10, 10, 10, 0.65) 50%,
      rgba(10, 10, 10, 0.25) 100%);
  z-index: 1;
}

.emotional__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: var(--sp-10) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.emotional__vline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 2px;
  background: var(--arena);
}

.emotional__title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: var(--fz-h2);
  color: var(--blanco);
  line-height: 1.2;
}

.emotional__subtitle {
  font-size: var(--fz-body);
  color: rgba(255, 255, 255, 0.72);
  max-width: 440px;
  line-height: 1.75;
}

/* ============================================================
   DIFERENCIADORES
   ============================================================ */
.differentiators {
  padding: var(--sp-10) 0;
  background: var(--blanco);
}

.differentiators__grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  /* Prevent vertical scroll capture */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}

.differentiators__grid::-webkit-scrollbar {
  display: none;
}

.diff-item {
  flex: 0 0 calc(100% - var(--sp-6));
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 601px) {
  .differentiators__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .diff-item {
    flex: initial;
  }
}

@media (min-width: 901px) {
  .differentiators__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.diff-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.diff-item__icon {
  width: 48px;
  height: 48px;
  color: var(--arena);
  flex-shrink: 0;
}

.diff-item__title {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: var(--fz-sub);
  margin-bottom: var(--sp-2);
}

.diff-item__desc {
  font-size: var(--fz-body);
  color: rgba(10, 10, 10, 0.65);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials {
  padding: var(--sp-10) 0;
  background: var(--gris);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8) var(--sp-5);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonials__grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  /* Prevent vertical scroll capture */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}

.testimonials__grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(100% - var(--sp-6));
  scroll-snap-align: center;
  background: var(--blanco);
  padding: var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 601px) {
  .testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .testimonial-card {
    flex: initial;
  }
}

@media (min-width: 901px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--blanco);
  padding: var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.testimonial-card__quote {
  font-family: var(--ff-serif);
  font-size: 5rem;
  line-height: 0.7;
  color: rgba(196, 164, 133, 0.18);
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  pointer-events: none;
  font-style: normal;
  font-weight: 700;
}

.testimonial-card__text {
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(10, 10, 10, 0.72);
  line-height: 1.75;
  position: relative;
  z-index: 1;
  padding-top: var(--sp-6);
}

.testimonial-card__divider {
  width: 48px;
  height: 1.5px;
  background: var(--arena);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--arena);
}

.testimonial-card__name {
  font-weight: var(--fw-sub);
  font-size: 0.85rem;
  color: var(--negro);
}

.testimonial-card__location {
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.5);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: var(--sp-10) 0;
  background: var(--verde);
  text-align: center;
}

.cta-final .section-rule {
  margin-inline: auto;
  background: var(--arena);
}

.cta-final__title {
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: var(--fz-h3);
  color: var(--blanco);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.cta-final__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  line-height: 1.7;
}

.cta-final__form {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin-inline: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--fw-sub);
  text-align: left;
}

.form-group input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 164, 133, 0.4);
  color: var(--blanco);
  padding: 0.75em 1em;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-base);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus {
  border-color: var(--arena);
}

.cta-final__form .btn-primary {
  align-self: flex-end;
  white-space: nowrap;
}

.cta-final__trust {
  margin-top: var(--sp-4);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1b3326;
  padding: var(--sp-9) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(196, 164, 133, 0.15);
}

@media (min-width: 601px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    padding-bottom: var(--sp-7);
  }
}

@media (min-width: 1025px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: var(--sp-7);
    padding-bottom: var(--sp-8);
  }
}

.footer__brand .logo-brand {
  color: var(--blanco);
}

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-5);
  max-width: 220px;
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196, 164, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: border-color var(--t-base), color var(--t-base);
  cursor: pointer;
}

.footer__social-link:hover {
  border-color: var(--arena);
  color: var(--arena);
}

.footer__col-title {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arena);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-fast);
}

.footer__links a:hover {
  color: var(--blanco);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item svg {
  color: var(--arena);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.footer__thumb {
  aspect-ratio: 1;
  overflow: hidden;
}

.footer__thumb:first-child {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.footer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t-slow);
  opacity: 0.7;
}

.footer__thumb:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.footer__bottom {
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.footer__copyright,
.footer__legal a {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.footer__legal a {
  transition: color var(--t-fast);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.65);
}

.footer__legal {
  display: flex;
  gap: var(--sp-4);
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   V2 CORRECTIONS — Design Premium
   ============================================================ */

/* C1 — Hero: remove old left-align override — card is always centered now */
/* Hero overlay is set in base styles */

/* Arena emphasis word in hero title */
.hero__em {
  color: var(--arena);
  font-style: normal;
}

/* C2 — Institutional: Playfair italic em in Arena + bigger stats */
.inst-em {
  font-style: italic;
  color: var(--arena);
}

.stat__number {
  font-size: clamp(2.4rem, 4vw, 3.2rem) !important;
}

/* C3 — Project overlay: Arena line separator + btn-outline-white */
.project-card__overlay-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--arena);
  flex-shrink: 0;
}

.btn-outline-white {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  padding: 0.6em 1.6em;
  cursor: pointer;
  display: inline-block;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--blanco);
}

.btn-outline-white:active {
  transform: scale(0.98);
}

/* C5 — Process: watermark step number + bigger icons */
.process__step {
  position: relative;
  overflow: visible;
}

.process__step::before {
  content: attr(data-step);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-primary);
  font-weight: var(--fw-head);
  font-size: 9rem;
  line-height: 1;
  color: rgba(196, 164, 133, 0.13);
  letter-spacing: -0.04em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.process__icon {
  position: relative;
  z-index: 1;
}

.process__step-title,
.process__step-desc {
  position: relative;
  z-index: 1;
}

/* C6 — Emotional: Playfair italic em + 3px vertical line + btn-arena */
.emotional__em {
  font-style: italic;
  color: var(--arena);
  font-family: var(--ff-serif);
}

.emotional__vline {
  width: 3px !important;
}

.btn-arena {
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--arena);
  border: 2px solid var(--arena);
  padding: 0.8em 2em;
  cursor: pointer;
  display: inline-block;
  transition: background var(--t-base), filter var(--t-fast), transform var(--t-fast);
}

.btn-arena:hover {
  background: var(--arena);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-arena:active {
  transform: scale(0.98);
}

/* C7 — Differentiators: 32px Arena line + vertical spacing */
.diff-item__line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--arena);
  margin: var(--sp-3) 0 var(--sp-3);
  flex-shrink: 0;
}

.diff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: var(--sp-5);
}

.diff-item__icon {
  margin-bottom: var(--sp-2);
}

.diff-item__title {
  margin-bottom: var(--sp-2);
}

/* C8 — Testimonials: large serif quote + Playfair body + avatar 52px Arena border */
.testimonial-card {
  position: relative;
  overflow: visible;
}

.testimonial-card__quote {
  position: absolute;
  top: -1.2rem;
  left: var(--sp-3);
  font-family: var(--ff-serif);
  font-size: 7rem;
  line-height: 1;
  color: rgba(196, 164, 133, 0.18);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.testimonial-card__text {
  font-family: var(--ff-serif) !important;
  font-style: italic !important;
  position: relative;
  z-index: 1;
}

.testimonial-card__avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  border: 2px solid var(--arena);
  object-fit: cover;
  flex-shrink: 0;
}

/* C10 — Footer: social 40% opacity default → Arena hover, nav link translate, bottom separator */
.footer__social-link {
  color: rgba(255, 255, 255, 0.40) !important;
  transition: color var(--t-base) !important;
}

.footer__social-link:hover {
  color: var(--arena) !important;
}

.footer__links a {
  display: inline-block;
  transition: transform var(--t-base), color var(--t-base);
}

.footer__links a:hover {
  transform: translateX(4px);
  color: var(--blanco) !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Footer tagline italic */
.footer__tagline em {
  font-style: italic;
}

/* CTA final — trust text opacity */
.cta-final__trust {
  opacity: 0.55;
}

/* Btn hover: translateY for CTA */
.btn-primary:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: scale(0.98) !important;
  filter: none;
}

/* ============================================================
   RESPONSIVE CRITICAL FIXES
   ============================================================ */

/* Prevent any horizontal scroll globally */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hide desktop navbar CTA on mobile — it causes overflow navbar */
@media (max-width: 900px) {
  .navbar__inner>.btn-cta {
    display: none;
  }
}

/* Fix hero left-align overflow on mobile */
@media (max-width: 900px) {
  .hero {
    justify-content: center !important;
  }

  .hero__content {
    text-align: center !important;
    padding: var(--sp-10) var(--sp-4) var(--sp-7) !important;
    padding-left: var(--sp-4) !important;
    max-width: 100% !important;
  }

  .hero__subtitle {
    margin-inline: auto !important;
    max-width: 90vw;
  }

  .hero__actions {
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
  }

  .hero__eyebrow {
    justify-content: center !important;
  }

  .hero__eyebrow::before {
    display: block;
  }
}

/* Prevent hero min-height overshoot on very small screens */
@media (max-width: 400px) {
  .hero__title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

/* Fix container max-width to prevent any section overflowing */
.container {
  max-width: var(--max-w);
  width: 100%;
  padding-inline: var(--sp-5);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-3);
  }
}

/* ============================================================
   FIX 1 — Hero green flash: keep bg always overfilling
   ============================================================ */
.hero.is-loaded .hero__bg {
  transform: scale(1.005) !important;
}

/* ============================================================
   FIX 2 — Stats: consistent top-alignment across all 3 items
   ============================================================ */
.stats {
  align-items: start;
}

.stats>div {
  display: flex;
  flex-direction: column;
}


/* ============================================================
   UI/UX PRO MAX & DESIGN TASTE AUDIT — PREMIUM ENHANCEMENTS
   ============================================================ */

/* 1. Global Typography Tension (Luxury Real Estate feel) */
.eyebrow,
.hero__eyebrow {
  letter-spacing: 0.3em !important;
  /* Extreme tracking for subtitles */
}

h1.hero__title,
h2.section-title,
h2.institutional__heading,
.cta-final__title {
  letter-spacing: -0.025em !important;
  /* Tight tracking for massive serif headers */
}

body {
  line-height: 1.75 !important;
  /* Extra breathing room for body paragraphs */
}

/* 2. Proyectos Cards — Editorial & Refined */
.project-card {
  background: transparent !important;
  border: 1px solid rgba(196, 164, 133, 0.2) !important;
  transition: border-color var(--t-base), transform var(--t-base) !important;
  box-shadow: none !important;
}

.project-card:hover {
  border-color: rgba(196, 164, 133, 0.6) !important;
}

.project-card__info {
  padding: var(--sp-6) var(--sp-5) var(--sp-7) !important;
  text-align: center;
}

.project-card__name {
  font-family: var(--ff-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  /* Slight tracking for card titles */
  color: var(--negro) !important;
  margin-bottom: 12px !important;
}

.project-card__meta {
  color: rgba(10, 10, 10, 0.5) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* 3. Process Section — Architectural Layout */
.process__step {
  padding: 0 var(--sp-5) !important;
  /* More negative space */
}

.process__number {
  font-family: var(--ff-serif) !important;
  font-style: italic !important;
  font-size: 6rem !important;
  color: rgba(196, 164, 133, 0.12) !important;
  top: -24px !important;
  letter-spacing: -0.05em !important;
}

.process__icon {
  background: rgba(196, 164, 133, 0.05) !important;
  border-color: rgba(196, 164, 133, 0.3) !important;
}

/* 4. Buttons — Premium Padding & Tension */
.btn-primary,
.btn-cta {
  padding: 1.1em 2.8em !important;
  /* Lavish horizontal padding */
  letter-spacing: 0.15em !important;
  font-size: 0.8rem !important;
  border-radius: 2px !important;
}

.btn-secondary,
.btn-outline-white,
.btn-outline {
  padding: 1.1em 2.8em !important;
  letter-spacing: 0.15em !important;
  font-size: 0.8rem !important;
  border-radius: 2px !important;
}

/* 5. Subdued Gallery Group Hover (Museum effect) */
@media (hover: hover) {
  .gallery__grid:hover .gallery__item:not(:hover) img {
    filter: grayscale(80%) brightness(0.6) !important;
  }
}

.gallery__item img {
  transition: filter 500ms ease, transform 500ms ease !important;
}

.gallery__item:hover img {
  transform: scale(1.03) !important;
}

/* 6. Scroll To Top Button */
.scroll-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 48px;
  height: 48px;
  background: var(--arena);
  color: var(--negro);
  border: none;
  border-radius: 4px;
  /* Slight match to UI Pro Max guidelines */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base), background var(--t-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--blanco);
  color: var(--verde);
}

.scroll-top:active {
  transform: translateY(2px) scale(0.96);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: var(--sp-4);
    right: var(--sp-4);
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   CAROUSEL NAVIGATION (MOBILE ONLY)
   ============================================================ */
.carousel-nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-bottom: var(--sp-4);
}

.carousel-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(196, 164, 133, 0.4);
  color: var(--arena);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.carousel-nav__btn:hover,
.carousel-nav__btn:active {
  background: var(--arena);
  color: var(--blanco);
  border-color: var(--arena);
}

@media (min-width: 601px) {
  .carousel-nav {
    display: none !important;
  }
}

/* ============================================================
   MODERN MINIMALIST DESIGN UPGRADES — Geometric / Editorial
   ============================================================ */

/* ── Section Corner Mark Decoration ─────────────────────────
   Subtle geometric corner marks on key light sections to add
   structure/architectural feel without being heavy-handed     */
.institutional,
.differentiators,
.testimonials {
  position: relative;
}

.institutional::before,
.differentiators::before,
.testimonials::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  width: 36px;
  height: 36px;
  border-top: 1.5px solid rgba(196, 164, 133, 0.35);
  border-left: 1.5px solid rgba(196, 164, 133, 0.35);
  pointer-events: none;
  z-index: 0;
}

.institutional::after,
.differentiators::after,
.testimonials::after {
  content: '';
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-bottom: 1.5px solid rgba(196, 164, 133, 0.25);
  border-right: 1.5px solid rgba(196, 164, 133, 0.25);
  pointer-events: none;
  z-index: 0;
}

/* ── Diff-item: Left-border accent stripe (Editorial look) ── */
@media (min-width: 601px) {
  .diff-item {
    padding: var(--sp-6) !important;
    border-left: 2px solid transparent;
    transition: border-color var(--t-base) !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .diff-item:hover {
    border-left-color: var(--arena);
  }
}

/* ── Section title underline accent ─────────────────────────
   Replace the floating title approach with an Intersection
   underline that grows in on component level               */
.section-header {
  position: relative;
}

/* ── Testimonials: Frosted card feel ────────────────────────*/
.testimonial-card {
  background: var(--blanco) !important;
  border: 1px solid rgba(196, 164, 133, 0.12) !important;
  padding: var(--sp-7) var(--sp-6) !important;
  transition: border-color var(--t-base) !important;
}

.testimonial-card:hover {
  border-color: rgba(196, 164, 133, 0.4) !important;
}

/* ── Stat numbers: ultra-thin bottom rule ────────────────────*/
.stat__number {
  position: relative;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-1);
}

/* ── Process cards on desktop: clean bordered box ────────────*/
@media (min-width: 601px) {
  .process__step {
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: var(--sp-6) var(--sp-4) !important;
    transition: border-color var(--t-base) !important;
  }

  .process__step:hover {
    border-color: rgba(196, 164, 133, 0.35) !important;
  }
}

/* ── Project cards: image zoom on hover ─────────────────────*/
.project-card__img-wrap {
  overflow: hidden;
}

.project-card__img-wrap img {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.04) !important;
}

/* ── Hero: typographic emphasis refinement ────────────────── */
.hero__title {
  letter-spacing: -0.03em !important;
}

/* ── Eyebrow: dot-separator geometry instead of block ──────── */
.hero__eyebrow,
.eyebrow {
  letter-spacing: 0.28em !important;
  font-weight: 800 !important;
  font-size: 0.65rem !important;
}

/* ============================================================
   HERO GEOMETRIC DESIGN ELEMENTS — Real visible redesign
   ============================================================ */

/* Corner L-marks */
.hero__geo {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: geo-fade-in 0.8s ease forwards;
}

.hero__geo--tl {
  top: 24px;
  left: 24px;
  border-top: 1.5px solid rgba(196, 164, 133, 0.65);
  border-left: 1.5px solid rgba(196, 164, 133, 0.65);
  animation-delay: 0.4s;
}

.hero__geo--br {
  bottom: 80px;
  right: 24px;
  border-bottom: 1.5px solid rgba(196, 164, 133, 0.65);
  border-right: 1.5px solid rgba(196, 164, 133, 0.65);
  animation-delay: 0.6s;
}

@keyframes geo-fade-in {
  to {
    opacity: 1;
  }
}

/* Vertical accent line — grows up from bottom left */
.hero__vline {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(to top,
      rgba(196, 164, 133, 0.7),
      transparent);
  z-index: 3;
  pointer-events: none;
  animation: vline-grow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes vline-grow {
  to {
    height: 45vh;
  }
}

/* Year badge — floating chip bottom right */
.hero__year-badge {
  position: absolute;
  bottom: 80px;
  right: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-badge-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes hero-badge-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__year-badge-num {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.04em;
  display: block;
}

.hero__year-badge-label {
  font-family: var(--ff-primary);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arena);
  display: block;
  margin-top: 2px;
}

/* Mobile hero: side-by-side buttons (not stacked) */
@media (max-width: 600px) {
  .hero__actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: var(--sp-3) !important;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.9em 1.4em !important;
    min-width: 130px;
    max-width: 180px;
    font-size: 0.72rem !important;
  }

  /* Hide vline and year badge on very small screens */
  .hero__vline,
  .hero__year-badge {
    display: none;
  }

  .hero__geo--tl {
    top: 12px;
    left: 12px;
  }

  .hero__geo--br {
    bottom: 60px;
    right: 12px;
  }
}

/* ============================================================
   HERO + NAVBAR FULL REDESIGN — Per User Exact Specs
   ============================================================ */

/* ── Navbar Redesign ──────────────────────────────────────── */
.navbar {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
  transition: all 0.4s ease !important;
}

.navbar--scrolled {
  background: rgba(45, 80, 54, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(196, 164, 133, 0.15) !important;
  box-shadow: none !important;
}

/* Nav links */
.navbar__links a {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  background: none !important;
  transition: color 0.2s ease !important;
}

.navbar__links a:hover {
  color: #C4A485 !important;
}

/* CTA button in navbar */
.btn-cta {
  background: transparent !important;
  border: 1.5px solid #C4A485 !important;
  color: #C4A485 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

.btn-cta:hover {
  background: #C4A485 !important;
  color: white !important;
}

/* ── Hero Overlay (Sophisticated gradient) ────────────────── */
.hero__overlay {
  background: linear-gradient(135deg,
      rgba(45, 80, 54, 0.82) 0%,
      rgba(45, 80, 54, 0.65) 40%,
      rgba(20, 40, 28, 0.75) 100%) !important;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4) !important;
}

/* ── Hero Content Glass Card ──────────────────────────────── */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 56px 64px;
  max-width: 760px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
  animation: card-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.hero__eyebrow {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #C4A485 !important;
  margin-bottom: 0 !important;
  display: block !important;
}

/* Remove old pseudo-element lines */
.hero__eyebrow::before,
.hero__eyebrow::after {
  display: none !important;
}

/* Decorative line below eyebrow */
.hero__eyebrow-line {
  display: block;
  width: 40px;
  height: 1.5px;
  background: #C4A485;
  margin: 12px auto 28px auto;
}

/* ── Hero Title — All Playfair ────────────────────────────── */
.hero__title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: clamp(2.8rem, 6vw, 5.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: white !important;
  margin-bottom: var(--sp-5) !important;
}

.hero__em {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #C4A485 !important;
}

/* ── Subtitle ─────────────────────────────────────────────── */
.hero__subtitle {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  max-width: 520px !important;
  margin: 0 auto 44px auto !important;
}

/* ── CTA Buttons (hero-specific) ──────────────────────────── */
.hero__actions {
  display: flex !important;
  gap: 16px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.btn-hero-primary {
  background: #C4A485;
  color: white;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  background: rgba(196, 164, 133, 0.85);
  transform: translateY(-2px);
  color: white;
}

.btn-hero-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  border-color: white;
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Foundation Badge ─────────────────────────────────────── */
.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 48px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 16px 24px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.hero-badge__year {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #C4A485;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-badge__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.hero__scroll {
  color: rgba(196, 164, 133, 0.7) !important;
  border: none !important;
  background: none !important;
  font-size: 0 !important;
  /* hide any text */
}

.hero__scroll svg {
  animation: scrollBounce 2s ease-in-out infinite !important;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content-wrapper {
    padding: 40px 28px !important;
    margin: 0 20px !important;
    width: auto !important;
  }

  .hero__title {
    font-size: clamp(2.25rem, 8vw, 3rem) !important;
  }

  .hero__actions {
    flex-direction: column !important;
    align-items: center !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }

  .hero-badge {
    display: none !important;
  }
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE FIXES — Hero + Navbar
   ============================================================ */

/* Pilares diff-item: card-like hover effect */
.diff-item {
  border: 1px solid rgba(196, 164, 133, 0.25);
  border-radius: 6px;
  background: white;
  padding: var(--sp-5) !important;
  transition: border-color 0.3s ease, background 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease !important;
}

.diff-item:hover {
  border-color: var(--arena) !important;
  background: white !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 40px rgba(196, 164, 133, 0.2) !important;
}

/* Fix: description text color bleed */
.diff-item__desc {
  color: rgba(0, 0, 0, 0.62) !important;
  text-decoration: none !important;
}

/* Hero desktop eyebrow: show full text */
.hero__eyebrow--desktop {
  display: inline;
}

.hero__eyebrow--mobile {
  display: none;
}

/* ── Navbar: compact CTA on mobile/tablet ─────────────────── */
@media (max-width: 900px) {
  .navbar__inner>.btn-cta {
    display: inline-block !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    padding: 7px 10px !important;
    border-width: 1px !important;
    border-radius: 2px !important;
    text-align: center !important;
    background: transparent !important;
    border-color: rgba(196, 164, 133, 0.7) !important;
    color: #C4A485 !important;
    white-space: normal !important;
    width: 80px !important;
    flex-shrink: 0 !important;
  }

  /* Navbar bar height 64px */
  .navbar {
    min-height: 64px !important;
  }

  .navbar__inner {
    height: 64px !important;
    min-height: 64px !important;
  }

  .logo-img {
    height: 30px !important;
  }
}

/* ── Mobile (<768px): Full hero responsive overhaul ─────── */
@media (max-width: 768px) {

  /* Eyebrow: show short version only */
  .hero__eyebrow--desktop {
    display: none !important;
  }

  .hero__eyebrow--mobile {
    display: inline !important;
  }

  /* Hero content card: generous side padding */
  .hero-content-wrapper {
    padding: 40px 28px !important;
    margin: 0 24px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* Title: noticeably smaller but still dominant */
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.12 !important;
  }

  /* Subtitle: slightly smaller for breathing */
  .hero__subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 32px !important;
  }

  /* Buttons: stacked, full width, slimmer padding */
  .hero__actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    padding: 13px 24px !important;
    /* Slimmer than desktop 16px */
  }

  .btn-hero-secondary {
    border-color: rgba(255, 255, 255, 0.45) !important;
    /* More subtle */
  }

  /* Foundation badge: hidden */
  .hero-badge {
    display: none !important;
  }

  /* Hero section: less top padding on very small screens */
  .hero {
    padding-top: 64px !important;
    /* Exact navbar height */
  }
}

/* ── Tablet (768px – 1024px) ──────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Navbar: hamburger only, no nav links */
  .navbar__links {
    display: none !important;
  }

  .navbar__inner>.lang-switch {
    display: none !important;
  }

  .navbar__hamburger {
    display: flex !important;
  }

  .navbar__inner>.btn-cta {
    display: none !important;
  }

  /* Hero card: intermediate width */
  .hero-content-wrapper {
    padding: 48px 52px !important;
    max-width: 640px !important;
  }

  /* Title: intermediate size */
  .hero__title {
    font-size: clamp(2.6rem, 6vw, 4rem) !important;
  }

  /* Buttons: side by side again on tablet */
  .hero__actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: auto !important;
    max-width: none !important;
  }

  /* Foundation badge: still hidden on tablet */
  .hero-badge {
    display: none !important;
  }
}

/* ============================================================
   PROJECTS TOGGLE — Ver todos / Ver menos
   ============================================================ */

.project-card__overlay-detail {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
  line-height: 1.5;
}

.projects__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

.projects__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-primary);
  font-weight: var(--fw-sub);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arena);
  background: transparent;
  border: 1.5px solid rgba(196, 164, 133, 0.5);
  border-radius: 2px;
  padding: 12px 28px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.projects__toggle-btn:hover {
  border-color: var(--arena);
  background: rgba(196, 164, 133, 0.06);
}

.projects__toggle-icon {
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.projects__toggle-btn[aria-expanded="true"] .projects__toggle-icon {
  transform: rotate(180deg);
}

.projects__extra {
  overflow: hidden;
  margin-top: var(--sp-5);
}

.projects__grid--extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 601px) {
  .projects__grid--extra {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 901px) {
  .projects__grid--extra {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects__extra:not([hidden]) .project-card {
  animation: cardFadeUp 0.45s ease forwards;
}

@media (max-width: 600px) {
  .projects__grid--extra {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    padding-bottom: var(--sp-4);
    scrollbar-width: none;
  }

  .projects__grid--extra>* {
    flex: 0 0 calc(100% - var(--sp-6));
    scroll-snap-align: center;
  }
}

/* ============================================================
   PROJECT CARD — "Ver fotos" gallery button
   Hidden by default. Visible only when article has data-gallery
   ============================================================ */

/* Hidden on all cards by default */
.btn-project-gallery {
  display: none;
}

/* Visible only when the parent article has a data-gallery attribute */
article[data-gallery] .btn-project-gallery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--ff-primary, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

article[data-gallery] .btn-project-gallery:hover {
  background: rgba(196, 164, 133, 0.18);
  border-color: rgba(196, 164, 133, 0.6);
  color: #C4A485;
}