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

:root {
  --dark:   #2e2e24;
  --dark2:  #3a3a2e;
  --beige:  #e8dfc8;
  --beige2: #f0e9d6;
  --gold:   #c9a84c;
  --gold2:  #d4b45e;
  --olive:  #6e6e58;
  --cream:  #f5f0e4;
  --text:   #1e1e16;
  --ff-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-body:    'Montserrat', sans-serif;
  --max: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--ff-body); background: var(--dark); color: var(--cream); overflow-x: hidden; cursor: none; }
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR — teodolito crosshair
═══════════════════════════════════════════════ */
#cursor {
  position: fixed; width: 40px; height: 40px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease;
  mix-blend-mode: difference;
}
#cursor-dot {
  position: fixed; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
}
@media (hover: none) { #cursor, #cursor-dot { display: none; } body { cursor: auto; } }

/* ═══════════════════════════════════════════════
   SURVEY CANVAS
═══════════════════════════════════════════════ */
#survey-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.045;
}

/* ═══════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gold); z-index: 9998; width: 0%;
  transition: width 0.08s linear;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--dark);
  border-bottom: 1.5px solid var(--gold);
  transition: background 0.4s, box-shadow 0.4s;
}
header.scrolled {
  background: rgba(46,46,36,0.97);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-words .est {
  font-family: var(--ff-body); font-weight: 200; font-size: 9px;
  letter-spacing: 0.3em; color: var(--cream); text-transform: uppercase; opacity: 0.75;
}
.logo-words .brand {
  font-family: var(--ff-body); font-weight: 600; font-size: 18px;
  letter-spacing: 0.12em; color: var(--cream); text-transform: uppercase;
}
.header-tagline {
  font-size: 8px; letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; font-weight: 400; opacity: 0.9; display: none;
}
@media(min-width:768px){ .header-tagline { display: block; } }

.hamburger {
  background: none; border: none; cursor: none;
  display: flex; flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 1.5px; background: var(--cream);
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1); transform-origin: center;
}
.hamburger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.gold-band {
  background: var(--gold);
  overflow: hidden;
  padding: 5px 0;
  position: relative;
  white-space: nowrap;
}
.gold-band-track {
  display: flex;
  width: max-content;
  animation: marquee-band 20s linear infinite;
  will-change: transform;
}
.gold-band-track span {
  display: inline-block;
  font-size: 7.5px;
  letter-spacing: 0.35em;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
  padding: 0 60px;
  flex-shrink: 0;
}
@keyframes marquee-band {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════
   MENU OVERLAY
═══════════════════════════════════════════════ */
.menu-overlay {
  position: fixed; inset: 0; background: var(--dark); z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  clip-path: circle(0% at 95% 3%);
  transition: clip-path 0.7s cubic-bezier(0.77,0,0.18,1);
  pointer-events: none;
}
.menu-overlay.open { clip-path: circle(150% at 95% 3%); pointer-events: all; }
.menu-overlay nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu-overlay a {
  font-family: var(--ff-body); font-size: clamp(18px,3vw,1.4rem);
  font-weight: 400; letter-spacing: 0.15em; color: var(--cream);
  text-transform: none; padding: 10px 20px; position: relative;
  opacity: 0; transform: translateY(20px);
  transition: color 0.25s, opacity 0.4s, transform 0.4s;
}
.menu-overlay.open a { opacity: 1; transform: translateY(0); }
.menu-overlay.open a:nth-child(1){ transition-delay:0.15s; }
.menu-overlay.open a:nth-child(2){ transition-delay:0.22s; }
.menu-overlay.open a:nth-child(3){ transition-delay:0.29s; }
.menu-overlay.open a:nth-child(4){ transition-delay:0.36s; }
.menu-overlay.open a:nth-child(5){ transition-delay:0.43s; }
.menu-overlay a::after {
  content:''; position: absolute; bottom: 6px; left: 20px; right: 20px;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s;
}
.menu-overlay a:hover { color: var(--gold); }
.menu-overlay a:hover::after { transform: scaleX(1); }
.menu-coords {
  position: absolute; bottom: 30px; font-size: 9px; letter-spacing: 0.2em;
  color: var(--olive); opacity: 0; transition: opacity 0.5s 0.5s; font-weight: 300;
}
.menu-overlay.open .menu-coords { opacity: 1; }

/* ═══════════════════════════════════════════════
   HELPERS
═══════════════════════════════════════════════ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-title {
  font-family: var(--ff-body); font-weight: 800; font-size: clamp(11px,1.4vw,13px);
  letter-spacing: 0.32em; text-transform: uppercase; text-align: center;
  margin-bottom: clamp(24px,4vw,44px);
}
.section-title.dark  { color: var(--text); }
.section-title.light { color: var(--cream); }
.section-label { font-family: var(--ff-body); font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400; opacity: 0.6; margin-bottom: 10px; }
.link-gold { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; letter-spacing: 0.15em; transition: color 0.2s; }
.link-gold:hover { color: var(--gold2); }
.measure-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px; border-radius: 2px; margin-top: 16px;
  font-size: 8px; letter-spacing: 0.2em; color: var(--gold); font-weight: 400; text-transform: uppercase;
}
.measure-tag::before { content:''; width:6px; height:6px; border:1px solid var(--gold); border-radius:50%; }
.arrow-right { display:flex; justify-content:flex-end; margin-top:20px; font-size:22px; color:var(--gold); cursor:none; transition:transform 0.3s; }
.arrow-right:hover { transform:translateX(8px); }
.nav-arrow-wrap { text-align:center; padding:16px 0 6px; color:var(--olive); font-size:20px; cursor:none; transition:color 0.2s; user-select:none; }
.nav-arrow-wrap:hover { color:var(--gold); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative; height: 100svh; min-height: 580px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 110%;
  object-fit: cover; object-position: center; will-change: transform;
  filter: brightness(0.60) saturate(1.15);
}
.hero-kite-wrap {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(400px, 88vw);
  z-index: 2;
}
.hero-kite-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(40deg) brightness(0.18);
  opacity: 0.93;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  z-index: 3;
}
.hero-content h1 {
  font-family: var(--ff-body); font-weight: 800; font-size: clamp(12px,2.2vw,16px);
  letter-spacing: 0.18em; color: #fff; text-transform: uppercase;
  line-height: 1.65; margin-bottom: 20px;
}
.btn-pill {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: 9px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 9px 22px; border-radius: 50px;
  transition: background 0.3s, transform 0.3s, letter-spacing 0.3s;
}
.btn-pill:hover { background: var(--gold2); transform: scale(1.05); letter-spacing: 0.32em; }
.hero-coords {
  position: absolute; bottom: 28px; left: var(--pad); z-index: 3;
  font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.5);
  font-weight: 300; font-family: monospace;
}
.hero-scroll-hint {
  position: absolute; bottom: 28px; right: var(--pad); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll-hint span {
  font-size: 7px; letter-spacing: 0.3em; color: rgba(255,255,255,0.35);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100%{ transform:scaleY(0); transform-origin:top; opacity:0; }
  50%{ transform:scaleY(1); transform-origin:top; opacity:1; }
}


/* ═══════════════════════════════════════════════
   IDENTIDAD Y PAISAJE
═══════════════════════════════════════════════ */
#identidad { background: var(--dark); padding: clamp(60px,8vw,100px) 0; position: relative; z-index:1; }
.identidad-img-wrap { height: clamp(240px,45vw,520px); position: relative; overflow: hidden; margin-top: clamp(24px,4vw,40px); }
.identidad-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 0.6s ease; }
.identidad-img-wrap:hover img { transform: scale(1.03); }
.measure-overlay { position:absolute; inset:0; pointer-events:none; z-index:2; opacity:0; transition:opacity 0.5s; }
.identidad-img-wrap:hover .measure-overlay { opacity:1; }
.identidad-text { padding: clamp(24px,4vw,40px) 0 clamp(40px,6vw,70px); }
.identidad-text p { font-size: clamp(10.5px,1.3vw,13px); font-weight: 300; line-height: 1.9; color: var(--cream); letter-spacing: 0.06em; text-transform: uppercase; max-width: 520px; }
@media(min-width:900px){
  .identidad-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
  .identidad-img-wrap { margin-top:0; height: clamp(240px,45vw,520px); }
}

/* ═══════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════ */
#servicios { background: var(--dark2); padding: clamp(60px,8vw,100px) 0; position: relative; z-index:1; }
.servicios-tabs { display: flex; justify-content: center; gap: clamp(12px,3vw,32px); margin-bottom: clamp(20px,3.5vw,36px); flex-wrap: wrap; }
.servicios-tab { background: none; border: none; border-bottom: 1.5px solid transparent; color: var(--cream); font-family: var(--ff-body); font-size: clamp(9px,1.1vw,11px); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 4px; cursor: none; opacity: 0.5; transition: opacity 0.25s, border-color 0.25s, color 0.25s; }
.servicios-tab.active { opacity: 1; color: var(--gold); border-bottom-color: var(--gold); }
.servicios-tab:hover { opacity: 0.85; }
.servicios-slider { position: relative; height: clamp(300px,50vw,550px); overflow: hidden; }
.servicios-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.servicios-slide.active { opacity: 1; pointer-events: auto; }
.servicios-slide-bg { position: absolute; inset: 0; background-color: #2e2e24; background-size: cover; background-position: center; }
.servicios-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(30,30,22,0.82) 40%, rgba(30,30,22,0.22) 100%); }
.servicios-slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,5vw,64px); max-width: 520px; }
.svc-icon { width: clamp(34px,3.5vw,46px); height: clamp(34px,3.5vw,46px); stroke: var(--gold); fill: none; margin-bottom: 18px; stroke-width: 1.1; }
.svc-title { font-family: var(--ff-body); font-size: clamp(20px,3.2vw,30px); font-weight: 800; letter-spacing: 0.08em; color: var(--cream); margin-bottom: 6px; }
.svc-tag { font-family: var(--ff-body); font-size: 9px; letter-spacing: 0.28em; color: var(--gold); margin-bottom: 18px; opacity: 0.9; }
.svc-desc { font-size: clamp(10.5px,1.2vw,13px); font-weight: 300; line-height: 1.85; color: var(--cream); opacity: 0.88; max-width: 440px; }

/* ═══════════════════════════════════════════════
   PROYECTOS
═══════════════════════════════════════════════ */
#proyectos { background:var(--beige); padding:clamp(60px,8vw,100px) 0; position:relative; z-index:1; }
.search-bar {
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(255,255,255,0.6); border-top:1px solid rgba(0,0,0,0.12);
  border-bottom:1px solid rgba(0,0,0,0.12); padding:11px 18px;
  backdrop-filter:blur(4px);
}
.search-bar-left { display:flex; align-items:center; gap:10px; }
.search-bar-left svg { width:14px; height:14px; stroke:var(--text); fill:none; stroke-width:2; }
.sb-text { font-size:10px; letter-spacing:0.2em; color:var(--text); text-transform:uppercase; font-weight:400; }
.filtro-btn { font-size:10px; letter-spacing:0.2em; color:var(--gold); text-transform:uppercase; font-weight:500; text-decoration:underline; text-underline-offset:3px; background:none; border:none; cursor:none; }
.project-list { border-bottom:1px solid rgba(0,0,0,0.1); }
.project-list-item { padding:13px 18px; border-top:1px solid rgba(0,0,0,0.08); font-size:10px; letter-spacing:0.18em; color:var(--text); text-transform:uppercase; font-weight:400; cursor:none; transition:background 0.2s,padding-left 0.3s; }
.project-list-item:hover { background:rgba(201,168,76,0.12); padding-left:28px; }
.project-main-img { height:clamp(200px,38vw,440px); }
.project-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px; margin-top:3px; }
.project-grid img { height:clamp(110px,20vw,240px); }
@media(min-width:900px){
  .projects-layout { display:grid; grid-template-columns:300px 1fr; gap:0; align-items:start; }
  .projects-sidebar { position:sticky; top:80px; padding-top:20px; }
}
.hex-card-wrap { padding:clamp(20px,4vw,36px); }
.hex-card { background:var(--gold); clip-path:polygon(0% 6%,100% 0%,97% 88%,62% 100%,3% 92%); padding:clamp(24px,4vw,36px) clamp(20px,3.5vw,30px) clamp(36px,5vw,50px); }
.hex-card p { font-size:clamp(10px,1.2vw,12px); line-height:1.75; color:var(--dark); font-weight:300; margin-bottom:14px; }
.hex-card .proj-name { font-size:clamp(11px,1.3vw,13px); font-weight:600; letter-spacing:0.1em; color:var(--dark); text-decoration:underline; text-transform:uppercase; display:block; }
.hex-card .proj-sub { font-size:9px; letter-spacing:0.15em; color:var(--dark); text-transform:uppercase; opacity:0.65; }

/* ═══════════════════════════════════════════════
   DETALLE / MAPA
═══════════════════════════════════════════════ */
.section-detail { background:var(--beige2); padding:clamp(40px,6vw,80px) 0; }
.section-detail.alt { background:var(--beige); }
.project-subtitle { font-size:clamp(11px,1.4vw,13px); font-weight:600; letter-spacing:0.14em; color:var(--text); text-transform:uppercase; text-decoration:underline; text-underline-offset:4px; padding:14px 0; }
.detail-main-img { height:clamp(220px,42vw,500px); }
.detail-text { font-size:clamp(11px,1.2vw,13px); font-weight:300; line-height:1.8; color:var(--text); padding:clamp(18px,3vw,32px) 0; max-width:600px; }
.map-frame { width:100%; height:clamp(260px,40vw,480px); border:none; display:block; }

/* ═══════════════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════════════ */
#nosotros { background:var(--dark); padding:clamp(60px,8vw,100px) 0; position:relative; z-index:1; }
.nosotros-img { height:clamp(260px,45vw,560px); }
.nosotros-label { font-size:9px; letter-spacing:0.3em; color:var(--gold); text-transform:uppercase; font-weight:500; margin-top:clamp(18px,3vw,32px); margin-bottom:10px; }
.nosotros-text { font-size:clamp(11px,1.3vw,13px); font-weight:300; line-height:1.85; color:var(--cream); max-width:560px; }
@media(min-width:900px){
  .nosotros-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
}

/* ═══════════════════════════════════════════════
   EQUIPO CAROUSEL
═══════════════════════════════════════════════ */
#equipo { position: relative; z-index: 1; }
.equipo-coverflow-wrap { position: relative; }
.equipo-cf-stage { overflow: hidden; padding: clamp(20px,3vw,40px) 0; }
.equipo-track {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Coverflow card widths (archive grid override below) */
.equipo-card { flex-shrink: 0; width: clamp(200px,28vw,300px); position: relative; }
@media (max-width: 559px) { .equipo-coverflow-wrap .equipo-card { width: 80vw; } }

/* Card layout */
.equipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px,5vw,56px) clamp(20px,3vw,36px) clamp(28px,4vw,44px);
  box-sizing: border-box;
}

/* Variant backgrounds */
.equipo-card--cream { background: var(--beige); }
.equipo-card--dark  { background: var(--dark2); }
.equipo-card--gold  { background: var(--gold); }

/* Decorative stone */
.equipo-deco { width: 60px; height: auto; margin-bottom: 20px; object-fit: contain; }
.equipo-card--cream .equipo-deco,
.equipo-card--gold  .equipo-deco { filter: brightness(0) saturate(100%); opacity: 0.55; }
.equipo-card--dark  .equipo-deco { filter: brightness(0) invert(1); opacity: 0.4; }

/* Photo with stone mask */
.equipo-foto-wrap { margin-bottom: 28px; }
.equipo-foto {
  width: 200px;
  height: 230px;
  object-fit: cover;
  object-position: top center;
  display: block;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Text styles */
.equipo-nombre { font-family: var(--ff-body); font-weight: 600; font-size: clamp(15px,2.2vw,21px); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.equipo-rol    { font-size: 11px; font-weight: 300; font-style: italic; letter-spacing: 0.08em; margin-bottom: 20px; opacity: 0.75; }
.equipo-bio    { font-size: 11px; font-weight: 300; line-height: 1.85; margin-bottom: 22px; }
.equipo-bio p  { margin: 0; }
.equipo-contacto { font-size: 10px; line-height: 2.1; letter-spacing: 0.04em; margin-bottom: 24px; }
.equipo-contacto a { text-decoration: none; }
.equipo-contacto a:hover { text-decoration: underline; }
.equipo-arrow  { font-size: 18px; margin-top: auto; transition: opacity 0.2s; text-decoration: none; }
.equipo-arrow:hover { opacity: 0.65; }

/* Colors per variant */
.equipo-card--cream .equipo-nombre,
.equipo-card--cream .equipo-rol,
.equipo-card--cream .equipo-bio,
.equipo-card--cream .equipo-contacto,
.equipo-card--cream .equipo-contacto a { color: var(--text); }
.equipo-card--cream .equipo-arrow { color: var(--gold); }

.equipo-card--dark .equipo-nombre,
.equipo-card--dark .equipo-rol,
.equipo-card--dark .equipo-bio,
.equipo-card--dark .equipo-contacto,
.equipo-card--dark .equipo-contacto a { color: var(--cream); }
.equipo-card--dark .equipo-arrow { color: var(--gold); }

.equipo-card--gold .equipo-nombre,
.equipo-card--gold .equipo-rol,
.equipo-card--gold .equipo-bio,
.equipo-card--gold .equipo-contacto,
.equipo-card--gold .equipo-contacto a { color: var(--dark); }
.equipo-card--gold .equipo-arrow { color: var(--dark); }

/* Archive grid */
.equipo-archive-wrap { padding-bottom: clamp(60px,8vw,100px); }
.equipo-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2px,0.3vw,4px); }
@media (min-width: 560px) { .equipo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .equipo-grid { grid-template-columns: repeat(3, 1fr); } }
.equipo-grid .equipo-card { width: 100%; }

/* Nav arrows */
.equipo-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.35); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.5);
  width: 44px; height: 44px; font-size: 18px;
  z-index: 10; cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.equipo-btn:hover { background: rgba(0,0,0,0.72); }
.equipo-btn-prev { left: 8px; }
.equipo-btn-next { right: 8px; }

/* Coverflow states */
.equipo-coverflow-wrap .equipo-card {
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
  will-change: transform, opacity;
}
.equipo-card.cf-active   { transform: rotateY(0deg)   scale(1);    opacity: 1;    z-index: 10; cursor: default; }
.equipo-card.cf-prev     { transform: rotateY(30deg)   scale(0.82); opacity: 0.6;  z-index: 5; }
.equipo-card.cf-next     { transform: rotateY(-30deg)  scale(0.82); opacity: 0.6;  z-index: 5; }
.equipo-card.cf-far-prev { transform: rotateY(50deg)   scale(0.6);  opacity: 0.18; z-index: 1; }
.equipo-card.cf-far-next { transform: rotateY(-50deg)  scale(0.6);  opacity: 0.18; z-index: 1; }
@media (max-width: 559px) {
  .equipo-card.cf-prev { transform: rotateY(25deg)  scale(0.75); opacity: 0.5; }
  .equipo-card.cf-next { transform: rotateY(-25deg) scale(0.75); opacity: 0.5; }
  .equipo-card.cf-far-prev,
  .equipo-card.cf-far-next { opacity: 0; pointer-events: none; }
}

/* ═══════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════ */
#brandi-preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(46,46,36,0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity 0.6s ease, visibility 0.6s ease; }
#brandi-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-isotipo { width: 64px; height: auto; color: var(--gold); animation: preloaderPulse 1.4s ease-in-out infinite; }
.preloader-bar-track { width: 180px; height: 2px; background: rgba(201,168,76,0.25); overflow: hidden; }
.preloader-bar-fill { width: 0%; height: 100%; background: var(--gold); transition: width 1.6s cubic-bezier(0.4,0,0.2,1); }
@keyframes preloaderPulse { 0%,100% { opacity: 0.6; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.02); } }
body.preloader-active { overflow: hidden; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer { background:var(--olive); padding:clamp(28px,4vw,46px) var(--pad); display:flex; flex-direction:column; align-items:center; gap:16px; }
.footer-logo { display:flex; align-items:center; gap:8px; }
.footer-logo svg { width:28px; height:28px; }
.footer-logo-text { display:flex; flex-direction:column; line-height:1.1; }
.footer-logo-text .fe { font-size:8px; letter-spacing:0.2em; color:var(--cream); font-weight:200; opacity:0.7; text-transform:uppercase; }
.footer-logo-text .fb { font-size:14px; letter-spacing:0.1em; color:var(--cream); font-weight:600; text-transform:uppercase; }
.footer-social { display:flex; gap:22px; }
.footer-social svg { width:22px; height:22px; stroke:var(--cream); fill:none; stroke-width:1.5; opacity:0.8; transition:opacity 0.2s,stroke 0.2s; }
.footer-social a:hover svg { opacity:1; stroke:var(--gold); }
.footer-info { text-align:center; font-size:9.5px; color:var(--cream); opacity:0.6; line-height:1.9; letter-spacing:0.06em; }
.footer-copy { font-size:8px; color:var(--cream); opacity:0.4; letter-spacing:0.12em; margin:0; }

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal.visible { opacity:1; transform:none; }
.reveal-left { opacity:0; transform:translateX(-30px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal-left.visible { opacity:1; transform:none; }
.reveal-right { opacity:0; transform:translateX(30px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal-right.visible { opacity:1; transform:none; }
.stagger > * { opacity:0; transform:translateY(18px); transition:opacity 0.5s ease,transform 0.5s ease; }
.stagger.visible > *:nth-child(1){ opacity:1; transform:none; transition-delay:0s; }
.stagger.visible > *:nth-child(2){ opacity:1; transform:none; transition-delay:0.12s; }
.stagger.visible > *:nth-child(3){ opacity:1; transform:none; transition-delay:0.24s; }

/* WordPress — mantiene paleta y tipografías del HTML aprobado */
button.project-list-item {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: none;
}
button.project-list-item.active {
  background: rgba(201, 168, 76, 0.18);
  padding-left: 28px;
}
a.sb-text,
a.filtro-btn {
  cursor: none;
}
.archive-extra-filters {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.archive-extra-filters select,
.archive-extra-filters input[type="search"] {
  font-family: var(--ff-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}
.archive-extra-filters input[type="search"] {
  flex: 1;
  min-width: 160px;
}
#main-archive-proyectos {
  background: var(--beige);
}
#contacto {
  background: var(--dark2);
}
.map-embed-wrap iframe {
  width: 100%;
  height: clamp(260px, 40vw, 480px);
  border: none;
  display: block;
}
.contacto-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contacto-lines {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.contacto-lines a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contacto-form { margin-top: 28px; text-align: left; width: 100%; }
.contacto-form-group { margin-bottom: 16px; }
.contacto-form-group label { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); opacity: 0.7; margin-bottom: 6px; }
.contacto-form-group input,
.contacto-form-group textarea { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; padding: 10px 12px; font-family: var(--ff-body); font-size: 11px; color: var(--cream); outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.contacto-form-group textarea { resize: vertical; }
.contacto-form-group input::placeholder,
.contacto-form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.contacto-form-group input:focus,
.contacto-form-group textarea:focus { border-color: var(--gold); }
.error-404-wrap {
  min-height: 60vh;
  padding: clamp(100px, 15vw, 160px) var(--pad);
  text-align: center;
}
.error-404-wrap h1 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.error-404-wrap p {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 24px;
}
.page-default-wrap {
  padding: clamp(90px, 12vw, 120px) 0 clamp(60px, 8vw, 100px);
}
.page-default-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.page-default-inner h1 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--cream);
}
.page-default-inner .entry-content {
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.92;
}
.ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 600px;
}
.ficha-grid div {
  font-size: 11px;
  color: var(--text);
}
.project-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 24px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-nav-row a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══ SINGLE PROYECTO — DOS COLUMNAS ═══ */
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(24px, 4vw, 40px);
  align-items: start;
}
.detail-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-frame,
.map-embed-wrap iframe {
  width: 100%;
  height: clamp(220px, 30vw, 380px);
  border: none;
  display: block;
}
.taxonomy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
}
.badge-cat {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
}
.badge-etq {
  background: rgba(100,130,90,0.12);
  color: #7a9b6a;
  border: 1px solid rgba(100,130,90,0.35);
}
@media (max-width: 768px) {
  .detail-two-col { grid-template-columns: 1fr; }
}

.hero-sub {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin-top: -8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* HEADER */

.logo-img {
  height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}



/* Botón ver más */
.ver-mas-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: none;
  padding: 10px 0;
  display: block;
  margin-top: 8px;
  transition: color 0.2s;
}
.ver-mas-btn:hover { color: var(--gold2); }
.texto-extra { display: none; }
.texto-extra.visible { display: inline; }
/* Desktop: mostrar siempre el texto completo, ocultar botón y puntos */
@media(min-width: 769px) {
  .texto-extra         { display: inline !important; }
  .texto-extra-dots    { display: none   !important; }
  .ver-mas-btn         { display: none   !important; }
}

/* ═══════════════════════════════════════════════
   PROYECTOS CARRUSEL HOME
═══════════════════════════════════════════════ */
.proy-outer { display: flex; align-items: stretch; gap: 0; }

/* Sidebar: lista de proyectos */
.proy-sidebar {
  width: clamp(130px,16vw,190px); flex-shrink: 0;
  background: var(--dark2);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(201,168,76,0.12);
}
@media(max-width:699px) { .proy-sidebar { display: none; } }
.proy-sidebar-item {
  background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 13px 14px; text-align: left;
  font-family: var(--ff-body); font-size: 7.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); opacity: 0.4; cursor: none; line-height: 1.5;
  transition: opacity 0.2s, color 0.2s, padding-left 0.25s;
}
.proy-sidebar-item:hover { opacity: 0.75; }
.proy-sidebar-item.active { opacity: 1; color: var(--gold); padding-left: 20px; }

/* Contenedor de slides */
.proy-slides-wrap { flex: 1; position: relative; overflow: hidden; }
.proy-slides { overflow: hidden; }
.proy-slide { display: none; }
.proy-slide.active { display: flex; flex-direction: column; }
@media(min-width:700px) {
  .proy-slide.active { flex-direction: row; align-items: stretch; }
}
.proy-slide-img-wrap {
  display: block; overflow: hidden; flex-shrink: 0;
  height: clamp(260px,50vw,520px);
}
@media(min-width:700px) {
  .proy-slide-img-wrap { width: 60%; height: auto; }
}
.proy-slide-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease; display: block; }
.proy-slide:hover .proy-slide-img-wrap img { transform: scale(1.03); }
.proy-slide-info { background: var(--beige); padding: clamp(28px,4vw,52px) clamp(24px,3.5vw,44px); display: flex; flex-direction: column; justify-content: center; gap: 10px; flex: 1; }
.proy-slide-title { font-family: var(--ff-display); font-size: clamp(20px,3.2vw,32px); font-weight: 300; letter-spacing: 0.06em; color: var(--text); text-decoration: none; line-height: 1.2; transition: color 0.2s; }
.proy-slide-title:hover { color: var(--gold); }
.proy-slide-sub { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--olive); font-weight: 400; }
.proy-slide-desc { font-size: clamp(10.5px,1.2vw,12px); font-weight: 300; line-height: 1.85; color: var(--text); opacity: 0.85; }
.proy-slide-link { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; margin-top: 6px; transition: color 0.2s; }
.proy-slide-link:hover { color: var(--gold2); }
.proy-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  background: rgba(46,46,36,0.72); color: var(--cream);
  border: 1px solid rgba(201,168,76,0.5);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: none; z-index: 3;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.proy-arrow:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.proy-arrow-prev { left: 12px; }
.proy-arrow-next { right: 12px; }
.proy-dots { display: flex; justify-content: center; gap: 12px; padding: 16px 0 4px; }
.proy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); border: none; cursor: none; padding: 0; opacity: 0.5; transition: background 0.3s, transform 0.3s, opacity 0.3s; }
.proy-dot.active { background: var(--gold); transform: scale(1.4); opacity: 1; }
.proy-footer-row { display: flex; justify-content: flex-end; margin-top: clamp(12px,2vw,20px); }
.proy-ver-todos {
  font-size: clamp(42px,5.5vw,64px); color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; line-height: 1;
  transition: transform 0.35s, color 0.2s;
}
.proy-ver-todos:hover { transform: translateX(14px); color: var(--gold2); }

/* ═══════════════════════════════════════════════
   ARCHIVE CARDS
═══════════════════════════════════════════════ */
.archive-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px,2.5vw,28px);
  margin-top: clamp(24px,3vw,40px);
  padding-bottom: clamp(60px,8vw,100px);
}
.archive-card { background: var(--beige2); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; margin-bottom: clamp(24px,4vw,40px); }
.archive-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.archive-card.hidden { display: none; }
.archive-card-img-wrap { position: relative; display: block; height: clamp(180px,22vw,280px); overflow: hidden; }
.archive-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; display: block; }
.archive-card:hover .archive-card-img-wrap img { transform: scale(1.06); }
.archive-card-tags { position: absolute; bottom: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.archive-card-tag {
  width: 14px; height: 14px; border-radius: 2px; cursor: none;
  position: relative; transition: transform 0.2s;
  display: block;
}
.archive-card-tag:hover { transform: scale(1.35); }
.archive-card-tag::after {
  content: attr(data-tag-name);
  position: absolute; right: calc(100% + 7px); top: 50%; transform: translateY(-50%);
  background: rgba(46,46,36,0.92); color: var(--cream);
  font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 8px; opacity: 0; transition: opacity 0.2s; pointer-events: none;
  font-family: var(--ff-body);
}
.archive-card-tag:hover::after { opacity: 1; }
.archive-card-body { padding: 14px 16px 18px; }
.archive-card-title { display: block; font-family: var(--ff-body); font-size: clamp(11px,1.2vw,13px); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); text-decoration: none; margin-bottom: 6px; transition: color 0.2s; }
.archive-card-title:hover { color: var(--gold); }
.archive-card-desc { font-size: 10px; font-weight: 300; color: var(--text); opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.04em; line-height: 1.5; }
.archive-card-hover { position: absolute; inset: 0; background: rgba(30,30,22,0.76); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 2; }
.archive-card-img-wrap:hover .archive-card-hover { opacity: 1; }
.archive-card-hover-inner { text-align: center; padding: 16px 20px; display: flex; flex-direction: column; gap: 7px; }
.ach-title { font-family: var(--ff-body); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.ach-meta { font-family: var(--ff-body); font-size: 9px; font-weight: 400; letter-spacing: 0.14em; color: var(--gold); }

/* ═══════════════════════════════════════════════
   NOSOTROS SLIDES
═══════════════════════════════════════════════ */
.nosotros-carousel { position: relative; }
.nosotros-slides { position: relative; }
.nosotros-slide { display: none; }
.nosotros-slide.active { display: block; animation: nsSlideIn 0.45s ease; }
@keyframes nsSlideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.nosotros-layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px,4vw,48px); align-items: center; margin-bottom: 0; }
@media(min-width:900px) {
  .nosotros-layout { grid-template-columns: 1fr 1fr; }
  .nosotros-layout--inv .nosotros-img-col { order: 2; }
  .nosotros-layout--inv .nosotros-text-col { order: 1; }
}
.nosotros-img-col { overflow: hidden; }
.nosotros-text-col { display: flex; flex-direction: column; gap: 12px; }
.nosotros-nav { display: flex; justify-content: center; align-items: center; gap: 18px; padding: clamp(20px,3vw,32px) 0 0; }
.nosotros-nav-dots { display: flex; gap: 12px; align-items: center; }
.nosotros-nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); border: none; cursor: none; padding: 0; opacity: 0.5; transition: background 0.3s, transform 0.3s, opacity 0.3s; }
.nosotros-nav-dot.active { background: var(--gold); transform: scale(1.4); opacity: 1; }
.nosotros-arrow-prev, .nosotros-arrow-next { background: none; border: none; color: var(--gold); font-size: 22px; cursor: none; padding: 4px 8px; opacity: 0.7; transition: transform 0.2s, opacity 0.2s; }
.nosotros-arrow-prev:hover { transform: translateX(-4px); opacity: 1; }
.nosotros-arrow-next:hover { transform: translateX(4px); opacity: 1; }
/* Badge sobre foto en Nosotros */
.nosotros-img-frame { position: relative; display: block; }
.nosotros-badge { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(201,168,76,0.88); color: var(--dark); font-size: 9px; font-weight: 600; letter-spacing: 0.16em; padding: 7px 20px; border-radius: 50px; white-space: nowrap; backdrop-filter: blur(3px); pointer-events: none; }

/* ═══════════════════════════════════════════════
   GALERÍA LIGHTBOX (single proyecto)
═══════════════════════════════════════════════ */
.detail-img-wrap { position: relative; overflow: hidden; }
.galeria-lightbox { margin: clamp(16px,3vw,28px) 0; }
.galeria-wrap { position: relative; }
.proy-coord-overlay { position: absolute; bottom: 14px; left: 16px; z-index: 5; background: rgba(30,30,22,0.72); color: var(--gold); font-family: var(--ff-body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 50px; backdrop-filter: blur(4px); pointer-events: none; }
.galeria-img-label { position: absolute; bottom: 14px; right: 16px; z-index: 5; background: rgba(201,168,76,0.82); color: var(--dark); font-family: var(--ff-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(3px); white-space: nowrap; }
.galeria-wrap:hover .galeria-img-label { opacity: 1; }
.galeria-main-img { width: 100%; height: clamp(300px,50vw,560px); object-fit: cover; object-position: center; display: block; cursor: zoom-in; transition: opacity 0.25s ease; }
.galeria-prev, .galeria-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(46,46,36,0.7); color: var(--gold); border: 1px solid var(--gold); padding: 10px 16px; font-size: 18px; cursor: pointer; z-index: 10; transition: background 0.2s; line-height: 1; }
.galeria-prev { left: 12px; }
.galeria-next { right: 12px; }
.galeria-prev:hover, .galeria-next:hover { background: rgba(46,46,36,0.95); }
.proyecto-back-row { display: flex; justify-content: flex-end; padding: 6px 0 14px; }
.proyecto-back-btn { font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.proyecto-back-btn:hover { opacity: 0.7; }
.galeria-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.galeria-thumbs::-webkit-scrollbar { height: 3px; }
.galeria-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.galeria-thumb { width: 80px; height: 60px; object-fit: cover; object-position: center; cursor: pointer; opacity: 0.55; flex-shrink: 0; transition: opacity 0.2s, outline 0.2s; }
.galeria-thumb:hover { opacity: 0.85; }
.galeria-thumb.active { opacity: 1; outline: 2px solid var(--gold); outline-offset: 0; }
