/* ==========================================================
   VIE — Sistema visual unificado
   Paleta: blanco roto, negro suave, terracota, gris cálido
   ========================================================== */

:root {
  --bg: #F5F2EC;
  --bg-alt: #EBE6DC;
  --ink: #1A1816;
  --ink-soft: #3A3530;
  --muted: #8A8378;
  --line: #D9D2C5;
  --accent: #B8543A;
  --accent-deep: #8F3E28;

  --fs-display: clamp(64px, 11vw, 220px);
  --fs-h1: clamp(44px, 6.5vw, 120px);
  --fs-h2: clamp(36px, 4.5vw, 80px);
  --fs-h3: clamp(24px, 2.4vw, 40px);
  --fs-lead: clamp(18px, 1.4vw, 24px);
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-eyebrow: 12px;

  --pad-x: clamp(24px, 4vw, 80px);
  --gap-section: clamp(96px, 12vw, 200px);

  --serif: "Cormorant Garamond", Georgia, serif;
  --serif-weight: 300;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* === Tipografía === */
.serif { font-family: var(--serif); font-weight: var(--serif-weight); letter-spacing: -0.01em; }
.sans { font-family: var(--sans); }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.display { font-family: var(--serif); font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 0.96; letter-spacing: -0.015em; font-weight: var(--serif-weight); }
.h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.0; letter-spacing: -0.012em; font-weight: var(--serif-weight); }
.h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.01em; font-weight: var(--serif-weight); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }

.shell { padding-inline: var(--pad-x); }
.divider { border: 0; border-top: 1px solid var(--line); width: 100%; }

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.3s ease;
}
.btn-arrow:hover { gap: 22px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* === Reveal on scroll === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.2, 0, 0, 1), transform 1.1s cubic-bezier(0.2, 0, 0, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0, 0, 1), transform 0.9s cubic-bezier(0.2, 0, 0, 1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 480ms; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad-x);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  mix-blend-mode: difference;
  color: #F5F2EC;
}
.nav.is-scrolled, .nav.is-static {
  mix-blend-mode: normal;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--serif); font-size: 28px; font-style: italic; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.nav-logo small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; font-style: normal; text-transform: uppercase; opacity: 0.7; }
.nav-logo-img { display: block; height: 36px; width: auto; max-width: 180px; }
.nav.is-static .nav-logo-img, .nav.is-scrolled .nav-logo-img { height: 32px; }
@media (max-width: 600px) { .nav-logo-img { height: 30px; } }
.footer-brand .footer-logo-img { display: block; height: 64px; width: auto; max-width: 240px; filter: brightness(0) invert(1); margin-bottom: 8px; }
.nav-menu { display: flex; gap: 36px; list-style: none; font-size: 14px; }
.nav-menu a { position: relative; padding: 6px 0; letter-spacing: 0.02em; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; height: 1px; width: 0; background: currentColor; transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }
.nav-menu a.active { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; padding: 10px 18px;
  border: 1px solid currentColor; border-radius: 999px;
  transition: all 0.3s ease;
}
.nav-cta:hover { background: currentColor; }
.nav-cta:hover span { color: var(--bg); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-menu, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 100px var(--pad-x) 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-drawer ul a { font-family: var(--serif); font-size: clamp(36px, 8vw, 56px); line-height: 1; font-weight: var(--serif-weight); letter-spacing: -0.012em; }
.mobile-drawer ul a.active { color: var(--accent); font-style: italic; }
.mobile-drawer .actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); }
.mobile-drawer .actions a { padding: 16px 24px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 500; }
.mobile-drawer .actions .primary { background: var(--ink); color: var(--bg); }
.mobile-drawer .actions .ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative; height: 100vh; min-height: 720px;
  width: 100%; overflow: hidden; color: #F5F2EC;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg picture { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%); }
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 120px var(--pad-x) 48px;
}
.hero-eyebrow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.hero-eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.hero-title { align-self: end; font-family: var(--serif); font-size: clamp(56px, 9.5vw, 180px); line-height: 0.92; letter-spacing: -0.02em; font-weight: var(--serif-weight); max-width: 16ch; }
.hero-title em { font-style: italic; color: #F5F2EC; opacity: 0.95; }
.hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 28px; border-top: 1px solid rgba(245, 242, 236, 0.25); }
.hero-foot-text { font-size: 15px; line-height: 1.5; max-width: 38ch; opacity: 0.85; }
.hero-cta-row { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: #F5F2EC; color: var(--ink);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.hero-cta:hover { background: var(--accent); color: #F5F2EC; }
.hero-cta-ghost { background: transparent; color: #F5F2EC; border: 1px solid rgba(245, 242, 236, 0.4); }
.hero-cta-ghost:hover { background: rgba(245, 242, 236, 0.1); border-color: #F5F2EC; }
.hero-reassure { font-size: 12px; letter-spacing: 0.06em; opacity: 0.75; flex-basis: 100%; text-align: right; margin-top: 4px; }

@media (max-width: 720px) {
  .hero-foot { grid-template-columns: 1fr; gap: 18px; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-reassure { text-align: left; }
}

/* ============ INTRO / MANIFIESTO ============ */
.intro { padding: var(--gap-section) var(--pad-x); display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.intro-label { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 120px; }
.intro-label .num { font-family: var(--serif); font-size: 56px; font-style: italic; color: var(--accent); line-height: 1; }
.intro-text p { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 60px); line-height: 1.08; letter-spacing: -0.012em; font-weight: var(--serif-weight); color: var(--ink); text-wrap: pretty; }
.intro-text p + p { margin-top: 28px; color: var(--ink-soft); }
.intro-text em { color: var(--accent); font-style: italic; }
.intro-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.intro-meta-item .num-big { font-family: var(--serif); font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.intro-meta-item .label { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .intro-label { position: static; }
  .intro-meta { grid-template-columns: 1fr 1fr; }
}

/* ============ PILARES ============ */
.pillars { padding: 0 var(--pad-x) var(--gap-section); }
.pillars-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; padding-bottom: 64px; border-bottom: 1px solid var(--line); margin-bottom: 80px; }
.pillars-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; max-width: 10ch; font-weight: var(--serif-weight); }
.pillars-head h2 em { font-style: italic; color: var(--accent); }
.pillars-head .right { font-size: 17px; color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.pillars-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: stretch; }
.pillar { position: relative; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; background: var(--ink); color: #F5F2EC; min-height: 580px; cursor: pointer; }
.pillar.featured { min-height: 640px; }
.pillar-img { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillar:hover .pillar-img { transform: scale(1.05); }
.pillar-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%); }
.pillar-body { position: relative; z-index: 2; margin-top: auto; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.pillar-num { font-family: var(--serif); font-size: 14px; font-style: italic; opacity: 0.75; letter-spacing: 0.08em; }
.pillar-name { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.012em; font-weight: var(--serif-weight); }
.pillar-desc { font-size: 15px; line-height: 1.55; opacity: 0.9; max-width: 38ch; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pillar-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border: 1px solid rgba(245,242,236,0.35); border-radius: 999px; }
.pillar-arrow { position: absolute; top: 28px; right: 28px; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: rgba(245, 242, 236, 0.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(245, 242, 236, 0.35); transition: all 0.3s ease; }
.pillar:hover .pillar-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 480px; }
  .pillar.featured { min-height: 540px; }
  .pillars-head { grid-template-columns: 1fr; }
}

/* ============ NICHOS ============ */
.niches { padding: var(--gap-section) var(--pad-x); background: var(--bg-alt); position: relative; }
.niches-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.niches-head h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 88px); line-height: 0.96; letter-spacing: -0.015em; max-width: 14ch; font-weight: var(--serif-weight); }
.niches-head h2 em { color: var(--accent); font-style: italic; }
.niches-head .right { font-size: 16px; color: var(--ink-soft); max-width: 42ch; justify-self: end; }
.niches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.niche { display: flex; flex-direction: column; gap: 20px; }
.niche-img { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; transition: transform 1s ease; }
.niche-img img { width: 100%; height: 100%; object-fit: cover; }
.niche:hover .niche-img { transform: translateY(-6px); }
.niche-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 14px; }
.niche-title { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -0.01em; margin-top: -4px; font-weight: var(--serif-weight); }
.niche-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.55; max-width: 36ch; }
.niche-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; align-self: flex-start; transition: gap 0.3s ease; }
.niche-link:hover { gap: 18px; }

@media (max-width: 880px) {
  .niches-head { grid-template-columns: 1fr; }
  .niches-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============ PROYECTOS DESTACADOS ============ */
.projects { padding: var(--gap-section) var(--pad-x); }
.projects-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.projects-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.projects-head h2 em { font-style: italic; color: var(--accent); }
.projects-head .right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.projects-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.projects-filters button { font-size: 13px; letter-spacing: 0.04em; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); transition: all 0.25s ease; }
.projects-filters button:hover { border-color: var(--ink); color: var(--ink); }
.projects-filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pin-grid { columns: 3 320px; column-gap: 20px; }
.pin-card { break-inside: avoid; margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.pin-card.is-hidden { display: none; }
.pin-img { border-radius: 2px; overflow: hidden; transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1); position: relative; }
.pin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-card:hover .pin-img { transform: scale(0.98); }
.pin-img::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity 0.4s ease; }
.pin-card:hover .pin-img::after { opacity: 0.15; }
.pin-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.pin-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; letter-spacing: -0.005em; font-weight: var(--serif-weight); }
.pin-cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.projects-foot { margin-top: 64px; display: flex; justify-content: center; }

/* ============ MÉTODO ============ */
.method { padding: var(--gap-section) var(--pad-x); background: var(--ink); color: var(--bg); }
.method-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.method-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; max-width: 12ch; font-weight: var(--serif-weight); }
.method-head h2 em { font-style: italic; color: var(--accent); }
.method-head .right { font-size: 16px; opacity: 0.75; max-width: 42ch; justify-self: end; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(245, 242, 236, 0.15); border-block: 1px solid rgba(245, 242, 236, 0.15); }
.method-step { background: var(--ink); padding: 40px 28px 56px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.method-step .step-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.method-step .step-name { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.01em; font-weight: var(--serif-weight); }
.method-step .step-desc { font-size: 14px; line-height: 1.55; opacity: 0.75; max-width: 28ch; }

@media (max-width: 880px) {
  .method-head { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
}

/* ============ MARCAS ============ */
.brands { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.brands-eyebrow { text-align: center; margin-bottom: 40px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.marquee { display: flex; gap: 80px; animation: marquee 38s linear infinite; width: max-content; }
.marquee:hover { animation-play-state: paused; }
.marquee-item { white-space: nowrap; color: var(--ink); opacity: 0.85; display: inline-flex; align-items: center; line-height: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ============ TESTIMONIO ============ */
.testimony { padding: var(--gap-section) var(--pad-x); display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }
.testimony-img { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; }
.testimony-img img { width: 100%; height: 100%; object-fit: cover; }
.testimony-quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 52px); line-height: 1.1; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; font-weight: var(--serif-weight); }
.testimony-quote::before { content: '\201C'; font-family: var(--serif); font-size: 1.4em; color: var(--accent); line-height: 0; vertical-align: -0.2em; margin-right: 0.05em; }
.testimony-quote::after { content: '\201D'; font-family: var(--serif); font-size: 1.4em; color: var(--accent); line-height: 0; vertical-align: -0.2em; }
.testimony-by { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.testimony-by::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

@media (max-width: 880px) { .testimony { grid-template-columns: 1fr; } }

/* ============ CONTACT CTA ============ */
.contact { padding: var(--gap-section) var(--pad-x); background: var(--accent); color: var(--bg); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; }
.contact h2 { font-family: var(--serif); font-size: clamp(56px, 8vw, 160px); line-height: 0.92; letter-spacing: -0.02em; max-width: 12ch; font-weight: var(--serif-weight); }
.contact h2 em { font-style: italic; }
.contact-side { display: flex; flex-direction: column; gap: 28px; padding-bottom: 12px; }
.contact-side .lead { font-size: 17px; line-height: 1.55; color: rgba(245, 242, 236, 0.9); max-width: 36ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; }
.contact-cta:hover { background: var(--bg); color: var(--ink); }
.contact-cta.ghost { background: transparent; border: 1px solid rgba(245, 242, 236, 0.5); }
.contact-cta.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-reassure { font-size: 12px; letter-spacing: 0.06em; opacity: 0.8; margin-top: 4px; }
.contact-info { margin-top: 80px; padding-top: 32px; border-top: 1px solid rgba(245, 242, 236, 0.3); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.contact-info .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-bottom: 8px; }
.contact-info .val { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; font-weight: var(--serif-weight); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { grid-template-columns: 1fr 1fr; }
}

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--bg); padding: 80px var(--pad-x) 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(245, 242, 236, 0.15); }
.footer-brand h3 { font-family: var(--serif); font-style: italic; font-size: clamp(48px, 5.5vw, 96px); letter-spacing: -0.02em; line-height: 1; font-weight: var(--serif-weight); }
.footer-brand p { margin-top: 16px; font-size: 14px; opacity: 0.7; max-width: 36ch; line-height: 1.55; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 12px; opacity: 0.5; letter-spacing: 0.04em; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 1; }
.footer-mark { font-family: var(--serif); font-size: clamp(120px, 24vw, 380px); font-style: italic; letter-spacing: -0.04em; line-height: 0.85; margin-top: 80px; margin-bottom: -40px; white-space: nowrap; overflow: hidden; color: rgba(245, 242, 236, 0.95); text-align: center; font-weight: var(--serif-weight); user-select: none; }

@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ============ SUB-PAGE STYLES ============ */
.page-hero { padding: 180px var(--pad-x) 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(60px, 9vw, 180px); line-height: 0.94; letter-spacing: -0.02em; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .right { font-size: 17px; color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.page-hero .meta { margin-top: 20px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 880px) { .page-hero { grid-template-columns: 1fr; } .page-hero .right { justify-self: start; } }

.section { padding: var(--gap-section) var(--pad-x); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.section-head h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(40px, 5.5vw, 100px); line-height: 0.96; letter-spacing: -0.018em; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head .right { font-size: 16px; color: var(--ink-soft); max-width: 44ch; justify-self: end; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } .section-head .right { justify-self: start; } }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.cat { display: flex; flex-direction: column; gap: 18px; cursor: pointer; text-align: left; font-family: inherit; color: inherit; background: transparent; border: 0; padding: 0; width: 100%; }
.cat-img { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; transition: transform 0.8s ease; position: relative; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img { transform: translateY(-4px); }
.cat-img::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%); }
.cat-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 14px; }
.cat-title { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -0.012em; }
.cat-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 36ch; }
@media (max-width: 880px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-cell { aspect-ratio: 3 / 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 28px; transition: background 0.4s ease; text-decoration: none; }
.brand-cell:hover { background: var(--bg-alt); }
.brand-cell .wordmark { max-width: 100%; max-height: 60px; opacity: 0.78; transition: all 0.3s ease; font-family: var(--serif); font-weight: var(--serif-weight); font-size: 28px; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; justify-content: center; height: 60px; }
.brand-cell:hover .wordmark { opacity: 1; }
@media (max-width: 880px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card { display: flex; flex-direction: column; gap: 18px; }
.team-img { aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; filter: grayscale(0.4); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -0.01em; }
.team-role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.team-bio { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 36ch; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); outline: none; transition: border-color 0.2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; background: transparent; color: var(--ink-soft); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover:not(.active) { border-color: var(--ink); color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-img { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h3 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -0.018em; margin-bottom: 24px; }
.split-text p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; max-width: 50ch; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.legal-content { max-width: 720px; margin: 0 auto; padding: 160px var(--pad-x) var(--gap-section); }
.legal-content h1 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -0.018em; margin-bottom: 32px; }
.legal-content h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: 28px; letter-spacing: -0.012em; margin-top: 48px; margin-bottom: 16px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }
.legal-content .updated { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(48px, 5vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.stat-num em { color: var(--accent); font-style: italic; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ============ PROYECTOS PAGE ============ */
.proyectos-toolbar { position: sticky; top: 64px; z-index: 50; background: var(--bg); padding: 24px var(--pad-x); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.proyectos-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.proyectos-filters button { font-size: 13px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); letter-spacing: 0.02em; transition: all 0.25s ease; }
.proyectos-filters button:hover { border-color: var(--ink); color: var(--ink); }
.proyectos-filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.proyectos-count { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.proyectos-count strong { color: var(--accent); font-weight: var(--serif-weight); font-style: italic; }
.proyectos-grid { padding: 48px var(--pad-x) var(--gap-section); columns: 3 320px; column-gap: 24px; }
.proyecto-card { break-inside: avoid; margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; background: transparent; border: 0; padding: 0; width: 100%; text-align: left; font-family: inherit; color: inherit; }
.proyecto-card.is-hidden { display: none; }
.proyecto-img { border-radius: 2px; position: relative; overflow: hidden; transition: transform 0.7s cubic-bezier(0.2, 0, 0, 1); }
.proyecto-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proyecto-card:hover .proyecto-img { transform: scale(0.985); }
.proyecto-img::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity 0.4s ease; }
.proyecto-card:hover .proyecto-img::after { opacity: 0.18; }
.proyecto-img-overlay { position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: end; opacity: 0; transform: translateY(8px); transition: all 0.4s ease; color: #F5F2EC; }
.proyecto-card:hover .proyecto-img-overlay { opacity: 1; transform: none; }
.proyecto-img-overlay .yr { font-family: var(--serif); font-style: italic; font-size: 16px; }
.proyecto-img-overlay .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.proyecto-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.proyecto-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; letter-spacing: -0.005em; font-weight: var(--serif-weight); }
.proyecto-cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ============ REFORMAS PAGE ============ */
.reformas-hero { position: relative; height: 90vh; min-height: 640px; overflow: hidden; color: #F5F2EC; }
.reformas-hero-bg { position: absolute; inset: 0; }
.reformas-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.reformas-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.6) 100%); }
.reformas-hero-content { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 140px var(--pad-x) 64px; }
.reformas-hero-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; display: flex; align-items: center; gap: 12px; }
.reformas-hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.reformas-hero h1 { align-self: end; font-family: var(--serif); font-size: clamp(56px, 9vw, 170px); line-height: 0.92; letter-spacing: -0.02em; font-weight: var(--serif-weight); max-width: 18ch; }
.reformas-hero h1 em { font-style: italic; }
.reformas-hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(245,242,236,0.25); }
.reformas-hero-foot p { font-size: 16px; line-height: 1.5; max-width: 50ch; opacity: 0.9; }

.tipos { padding: var(--gap-section) var(--pad-x); }
.tipos-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.tipos-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.tipos-head h2 em { font-style: italic; color: var(--accent); }
.tipos-head .right { font-size: 16px; color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.tipos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tipo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bg-alt); overflow: hidden; border-radius: 2px; min-height: 380px; }
.tipo-img { transition: transform 1s ease; overflow: hidden; }
.tipo-img img { width: 100%; height: 100%; object-fit: cover; }
.tipo:hover .tipo-img { transform: scale(1.04); }
.tipo-body { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.tipo-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 14px; }
.tipo-title { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.01em; font-weight: var(--serif-weight); }
.tipo-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.55; max-width: 38ch; }
.tipo-list { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.tipo-list li { list-style: none; display: flex; align-items: center; gap: 10px; padding-block: 2px; }
.tipo-list li::before { content: ''; width: 14px; height: 1px; background: var(--accent); }

@media (max-width: 880px) {
  .tipos-grid { grid-template-columns: 1fr; }
  .tipo { grid-template-columns: 1fr; }
  .tipos-head { grid-template-columns: 1fr; }
}

.ba { padding: var(--gap-section) var(--pad-x); background: var(--ink); color: var(--bg); }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.ba-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.ba-head h2 em { font-style: italic; color: var(--accent); }
.ba-head .right { font-size: 16px; opacity: 0.75; max-width: 44ch; justify-self: end; }
.ba-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.ba-tabs button { font-size: 13px; padding: 10px 18px; border: 1px solid rgba(245,242,236,0.3); border-radius: 999px; color: rgba(245,242,236,0.7); letter-spacing: 0.02em; transition: all 0.25s ease; }
.ba-tabs button:hover { border-color: var(--bg); color: var(--bg); }
.ba-tabs button.active { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.ba-stage { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; cursor: ew-resize; user-select: none; background: var(--ink-soft); }
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-img.after-img { z-index: 2; }
.ba-pane { display: none; }
.ba-pane.is-active { display: block; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg); z-index: 3; pointer-events: none; left: 50%; }
.ba-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'><path d='M8 6L4 11L8 16M14 6L18 11L14 16' stroke='%231A1816' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; z-index: 1; }
.ba-label { position: absolute; top: 24px; z-index: 4; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; background: rgba(26, 24, 22, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--bg); font-weight: 500; }
.ba-label.before-label { left: 24px; }
.ba-label.after-label { right: 24px; background: var(--accent); }
.ba-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; border-top: 1px solid rgba(245,242,236,0.15); margin-top: 32px; }
.ba-meta-item .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.ba-meta-item .val { font-family: var(--serif); font-size: 22px; letter-spacing: -0.005em; font-weight: var(--serif-weight); }

@media (max-width: 880px) { .ba-head { grid-template-columns: 1fr; } .ba-meta { grid-template-columns: 1fr 1fr; } }

.proceso { padding: var(--gap-section) var(--pad-x); }
.proceso-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.proceso-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 110px); line-height: 0.94; letter-spacing: -0.02em; font-weight: var(--serif-weight); }
.proceso-head h2 em { font-style: italic; color: var(--accent); }
.proceso-head .right { font-size: 16px; color: var(--ink-soft); max-width: 44ch; justify-self: end; }
.proceso-list { display: flex; flex-direction: column; }
.proceso-row { display: grid; grid-template-columns: 100px 1fr 2fr 200px; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; transition: background 0.4s ease; cursor: default; }
.proceso-row:last-child { border-bottom: 1px solid var(--line); }
.proceso-row:hover { background: rgba(184, 84, 58, 0.04); }
.proceso-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 28px; }
.proceso-name { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.012em; font-weight: var(--serif-weight); }
.proceso-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.55; max-width: 50ch; }
.proceso-time { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.proceso-time strong { display: block; font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: -0.005em; text-transform: none; color: var(--ink); margin-top: 4px; font-weight: var(--serif-weight); }

@media (max-width: 880px) {
  .proceso-head { grid-template-columns: 1fr; }
  .proceso-row { grid-template-columns: 1fr; gap: 12px; }
  .proceso-time { text-align: left; }
}

.r-cta { padding: var(--gap-section) var(--pad-x); background: var(--accent); color: var(--bg); }
.r-cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.r-cta h2 { font-family: var(--serif); font-size: clamp(48px, 7vw, 130px); line-height: 0.94; letter-spacing: -0.02em; max-width: 14ch; font-weight: var(--serif-weight); }
.r-cta h2 em { font-style: italic; }
.r-cta .right p { font-size: 17px; line-height: 1.55; max-width: 38ch; margin-bottom: 24px; }
.r-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.r-cta-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; }
.r-cta-btn:hover { background: var(--bg); color: var(--ink); }
.r-cta-btn.ghost { background: transparent; border: 1px solid rgba(245,242,236,0.5); }
.r-cta-btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 880px) { .r-cta-grid { grid-template-columns: 1fr; } }

/* ============ FAQ (presupuesto) ============ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 28px 0; }
.faq-item > summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; gap: 24px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
.faq-toggle { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.faq-item[open] .faq-toggle::before { content: '\2212 '; }
.faq-item:not([open]) .faq-toggle::before { content: '+ '; }
.faq-a { margin-top: 16px; max-width: 62ch; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ============ TWO-COL HELPERS ============ */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col-aside { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.two-col-aside .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.two-col-aside .val { font-family: var(--serif); font-weight: var(--serif-weight); font-size: 24px; line-height: 1.2; }
.presu-summary { background: var(--bg-alt); padding: 32px 28px; border-radius: 4px; }
.presu-summary .row { margin-top: 14px; }
.presu-summary .row .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.presu-summary .row .v { font-family: var(--serif); font-size: 20px; font-weight: var(--serif-weight); }

.manifiesto-row { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.manifiesto-row .label { position: sticky; top: 120px; }
.manifiesto-row .label .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 48px; line-height: 1; }
.manifiesto-row .label .kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; font-weight: 500; }
.manifiesto-row p { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(28px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.012em; }
.manifiesto-row p + p { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-soft); margin-top: 32px; }
.manifiesto-row em { font-style: italic; color: var(--accent); }
@media (max-width: 880px) { .manifiesto-row { grid-template-columns: 1fr; gap: 32px; } .manifiesto-row .label { position: static; } }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: var(--bg);
  padding: 20px 24px;
  border-radius: 8px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap;
  z-index: 95;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 13px; line-height: 1.5; flex: 1 1 240px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner button { padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: opacity 0.2s; }
.cookie-banner .accept { background: var(--bg); color: var(--ink); }
.cookie-banner .reject { background: transparent; color: var(--bg); border: 1px solid rgba(245,242,236,0.3); }
.cookie-banner button:hover { opacity: 0.85; }

/* === Floating WhatsApp === */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-wa:hover { transform: scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5); }
@media (max-width: 600px) { .fab-wa { bottom: 16px; right: 16px; } }

/* === Form success / error states === */
.form-status { padding: 40px 0; }
.form-status h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.012em; }
.form-status p { margin-top: 20px; }
.form-status.error h2 { color: var(--accent); }

/* === Map === */
.map-wrap { aspect-ratio: 21/9; background: var(--bg-alt); position: relative; overflow: hidden; }
.map-wrap img,
.map-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-wrap img { object-fit: cover; }
@media (max-width: 880px) { .map-wrap { aspect-ratio: 4/3; } }

/* === Category accordion (muebles, interiorismo) === */
.cat-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-size: 12px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-top: 4px;
    transition: gap 0.25s ease;
}
.cat-toggle::after {
    content: ''; display: inline-block;
    width: 14px; height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M7 2v10M2 7h10' stroke='%23B8543A' stroke-width='1.4' stroke-linecap='round'/></svg>") center/contain no-repeat;
    transition: transform 0.4s ease;
}
.cat.is-open .cat-toggle::after { transform: rotate(45deg); }
.cat-detail {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.55s cubic-bezier(0.2,0,0,1), opacity 0.35s ease, margin-top 0.4s ease;
    margin-top: 0;
}
.cat.is-open .cat-detail {
    max-height: 600px;
    opacity: 1;
    margin-top: 4px;
}
.cat-detail-body {
    background: var(--bg-alt);
    border-radius: 4px;
    padding: 28px 28px 32px;
    display: flex; flex-direction: column; gap: 18px;
}
.cat-detail-body p {
    font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 56ch;
}
.cat-detail-list {
    list-style: none; display: grid; gap: 8px; margin: 0; padding: 0;
}
.cat-detail-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.cat-detail-list li::before {
    content: ''; flex-shrink: 0; width: 14px; height: 1px; background: var(--accent); margin-top: 11px;
}
.cat-detail-cta {
    display: inline-flex; align-items: center; gap: 10px;
    align-self: flex-start; margin-top: 4px;
    padding: 12px 22px;
    background: var(--ink); color: var(--bg);
    border-radius: 999px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
    transition: background 0.3s ease;
}
.cat-detail-cta:hover { background: var(--accent); }

/* === Projects gallery modal === */
.proj-modal {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15, 13, 11, 0.88);
    display: none;
    align-items: stretch; justify-content: center;
    padding: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.proj-modal.is-open { display: flex; }
.proj-modal-dialog {
    background: var(--bg);
    width: 100%; max-width: 1280px;
    margin: clamp(20px, 4vh, 60px) clamp(16px, 4vw, 40px);
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    max-height: calc(100vh - clamp(40px, 8vh, 120px));
    overflow: hidden;
}
.proj-modal-stage {
    position: relative; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.proj-modal-main {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.proj-modal-thumbs {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.proj-modal-thumbs button {
    width: 56px; height: 40px; border-radius: 2px; overflow: hidden;
    border: 2px solid transparent; padding: 0; cursor: pointer;
    background: var(--ink); opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.proj-modal-thumbs button.is-active {
    opacity: 1; border-color: var(--bg);
}
.proj-modal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-modal-info {
    padding: clamp(28px, 4vw, 48px);
    display: flex; flex-direction: column; gap: 24px;
    overflow-y: auto;
}
.proj-modal-info .eyebrow { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 14px; text-transform: none; letter-spacing: 0; }
.proj-modal-info h2 {
    font-family: var(--serif); font-weight: var(--serif-weight);
    font-size: clamp(32px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.018em;
}
.proj-modal-info .meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
    padding-top: 24px; border-top: 1px solid var(--line);
}
.proj-modal-info .meta-grid .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.proj-modal-info .meta-grid .v { font-family: var(--serif); font-weight: var(--serif-weight); font-size: 20px; line-height: 1.2; }
.proj-modal-info .desc { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.proj-modal-info .cta-row { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.proj-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(245, 242, 236, 0.92); color: var(--ink);
    display: grid; place-items: center;
    cursor: pointer; border: 0;
    transition: background 0.2s, transform 0.2s;
}
.proj-modal-close:hover { background: var(--bg); transform: rotate(90deg); }
.proj-modal-prev, .proj-modal-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(245, 242, 236, 0.85); color: var(--ink);
    display: grid; place-items: center;
    cursor: pointer; border: 0;
    transition: background 0.2s;
}
.proj-modal-prev { left: 16px; }
.proj-modal-next { right: 16px; }
.proj-modal-prev:hover, .proj-modal-next:hover { background: var(--bg); }
body.modal-open { overflow: hidden; }

@media (max-width: 880px) {
    .proj-modal-dialog { grid-template-columns: 1fr; grid-template-rows: 50vh auto; }
    .proj-modal-info { max-height: none; }
    .proj-modal-info .meta-grid { grid-template-columns: 1fr 1fr; }
}
