:root {
  --navy: #1a2b4c;
  --gray: #4a4f54;
  --sand: #d6c6af;
  --cream: #f5f1ec;
  --cream-dark: #ede8e0;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #6b6560;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; font-weight: 300; color: var(--text); background: var(--white); overflow-x: hidden; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 60px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(214,198,175,0.3);
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 400; color: var(--gray); letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 10px 24px; font-size: 12px !important; letter-spacing: 2px !important; text-transform: uppercase; }
.nav-cta:hover { background: var(--gray) !important; }

.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 108px 40px 96px;
}
.hero-inner {
  max-width: 820px; margin: 0 auto; width: 100%;
  text-align: center;
}
.hero-content { animation: fadeUp 0.9s ease both; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(200px, 26vw, 320px); height: auto; display: block; margin: 0 auto 34px; }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 66px); font-weight: 300;
  color: var(--white); line-height: 1.14; margin-bottom: 26px;
}
.hero-title em { font-style: italic; color: var(--sand); }
.hero-rule { width: 48px; height: 1px; background: var(--sand); margin: 0 auto 28px; }
.hero-text {
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,0.6); font-weight: 300;
  max-width: 520px; margin: 0 auto 44px;
}
.hero-actions { display: flex; gap: 20px; align-items: center; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; display: flex; align-items: flex-start; justify-content: center;
  animation: scrollcue 2s ease-in-out infinite;
}
.hero-scroll-chevron {
  width: 12px; height: 12px;
  border-right: 1px solid rgba(214,198,175,0.7);
  border-bottom: 1px solid rgba(214,198,175,0.7);
  transform: rotate(45deg);
}
@keyframes scrollcue { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; } 50% { transform: translateX(-50%) translateY(7px); opacity: 0.35; } }
.btn-primary {
  background: var(--sand); color: var(--navy);
  padding: 16px 36px; font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; display: inline-block;
}
.btn-primary:hover { background: var(--white); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none;
  letter-spacing: 0.5px; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--sand); border-color: var(--sand); }

.proposito-block { background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: 84px 60px; text-align: center; }
.proposito-text { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; font-style: italic; color: var(--navy); max-width: 780px; margin: 0 auto 28px; line-height: 1.55; }
.proposito-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--sand); display: inline-block; }
.proposito-label::before { content: ''; display: block; width: 36px; height: 1px; background: var(--sand); margin: 0 auto 16px; }

section { padding: 100px 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.section-title em { font-style: italic; }
.section-rule { width: 40px; height: 1px; background: var(--sand); margin-bottom: 36px; }

.areas { background: var(--white); padding-top: 112px; padding-bottom: 112px; }
.areas-content { max-width: 720px; margin: 0 auto; text-align: center; }
.areas .section-eyebrow { text-align: center; }
.areas .section-title { font-size: clamp(34px, 4.4vw, 56px); }
.areas .section-rule { margin-left: auto; margin-right: auto; }
.areas-text { font-size: 17px; line-height: 1.9; color: var(--muted); font-weight: 300; max-width: 560px; margin: 0 auto; }

.porque { background: var(--navy); }
.porque .section-title { color: var(--white); }
.porque-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 64px; }
.porque-item { border-top: 1px solid rgba(214,198,175,0.25); padding-top: 36px; }
.porque-dash { width: 28px; height: 1px; background: var(--sand); margin-bottom: 28px; }
.porque-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 14px; }
.porque-text { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.5); font-weight: 300; }

.equipo { background: var(--white); }
.equipo-intro { max-width: 820px; margin-bottom: 64px; }
.equipo-historia { font-size: 16px; line-height: 1.9; color: var(--muted); font-weight: 300; margin-bottom: 18px; }
.equipo-grid-socios { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.socio { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.socio-img { width: 140px; height: 172px; object-fit: cover; object-position: center top; display: block; border: 1px solid var(--cream-dark); filter: grayscale(100%) contrast(1.03); transition: filter 0.4s ease; }
.socio-img:hover { filter: grayscale(0%) contrast(1); }
.equipo-grid-resto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--cream-dark); }
.socio-mini { text-align: center; }
.socio-placeholder-mini { width: 92px; height: 92px; border-radius: 50%; background: var(--cream); border: 1px solid var(--sand); box-shadow: 0 0 0 5px var(--white), 0 0 0 6px rgba(214,198,175,0.35); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; letter-spacing: 1px; color: var(--navy); margin: 0 auto 20px; }
.socio-mini-name { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.socio-mini-role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--sand); display: block; }
.socio-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.socio-role { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; display: block; }
.socio-bio { font-size: 13.5px; line-height: 1.8; color: var(--muted); font-weight: 300; }

.clientes { background: var(--cream); padding: 72px 60px; overflow: hidden; }
.clientes-label { text-align: center; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }
.carousel-wrap { overflow: hidden; -webkit-mask: linear-gradient(to right, transparent, black 12%, black 88%, transparent); mask: linear-gradient(to right, transparent, black 12%, black 88%, transparent); }
/* El fondo crema es necesario, no decorativo: el transform de la animación aísla
   al track, así que sin él los logos con fondo blanco harían multiply contra el
   vacío y quedarían con una caja blanca alrededor. */
.carousel-track { display: flex; gap: 56px; animation: scroll 30s linear infinite; width: max-content; align-items: center; background: var(--cream); }
.carousel-track:hover { animation-play-state: paused; }
.client-logo-img { height: 42px; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; filter: grayscale(100%); opacity: 0.6; mix-blend-mode: multiply; transition: filter 0.3s ease, opacity 0.3s ease; }
.client-logo-img:hover { filter: grayscale(0%); opacity: 1; }
/* Compensación óptica: el alto base rinde bien en logos apaisados, pero deja
   diminutas a las marcas cuadradas o con mucho aire interno. */
.client-logo-img.is-md { height: 52px; }
.client-logo-img.is-lg { height: 64px; }
.client-logo-img.is-xl { height: 78px; }

.contacto { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; margin-top: 32px; }
.datos-col { display: flex; flex-direction: column; justify-content: flex-start; }
.dato { text-align: left; margin-bottom: 32px; }
.dato:last-child { margin-bottom: 0; }
.dato-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--sand); margin-bottom: 8px; display: block; }
.dato-value { font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.4; color: var(--navy); }
.mapa-wrap { filter: grayscale(15%); border: 1px solid var(--cream-dark); background: var(--white); }
.mapa-wrap iframe { display: block; height: 100%; min-height: 300px; }

footer { background: var(--navy); padding: 48px 60px; border-top: 1px solid rgba(214,198,175,0.2); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: baseline; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .hero { padding: 100px 24px 64px; }
  .hero-logo { margin-bottom: 26px; }
  .equipo-grid-socios { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
  .porque-grid { grid-template-columns: 1fr; }
  .proposito-block { padding: 56px 24px; }
  .socio { grid-template-columns: 1fr; }
  .socio-img { width: 100%; height: 260px; }
  .equipo-grid-resto { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-height: 680px) { .hero-scroll { display: none; } }

/* --- Marca: tipografía EngraversGothic en wordmark, etiquetas y CTAs --- */
:root { --font-brand: 'Engravers Gothic', 'Outfit', sans-serif; }
.section-eyebrow, .proposito-label, .socio-role, .socio-mini-role,
.clientes-label, .dato-label, .nav-cta, .btn-primary {
  font-family: var(--font-brand);
}
/* Logo (SVG) en nav y footer */
.nav-logo-img { height: 38px; width: auto; display: block; }
.footer-logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 900px) {
  .nav-logo-img { height: 32px; }
  .footer-logo-img { height: 40px; }
}

/* --- Páginas de perfil de socios (/nicolas-colombres/, /gonzalo-sporleder/) --- */
.socio-name a { color: inherit; text-decoration: none; }
.socio-name a:hover { color: var(--gray); }
.socio-link { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: 0.5px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 2px; }
.socio-link:hover { color: var(--gray); }
.perfil { padding: 140px 60px 100px; background: var(--white); min-height: 80vh; }
.perfil-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 48px; letter-spacing: 0.5px; }
.perfil-breadcrumb a { color: var(--muted); text-decoration: none; }
.perfil-breadcrumb a:hover { color: var(--navy); }
.perfil-breadcrumb span { margin: 0 8px; color: var(--sand); }
.perfil-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.perfil-img { width: 100%; height: auto; display: block; border: 1px solid var(--cream-dark); filter: grayscale(100%) contrast(1.03); }
.perfil-bio { font-size: 16px; line-height: 1.9; color: var(--muted); font-weight: 300; max-width: 620px; }
.perfil-actions { justify-content: flex-start; margin-top: 40px; }
.perfil-actions .btn-primary { background: var(--navy); color: var(--white); }
.perfil-actions .btn-primary:hover { background: var(--gray); }
.perfil-ghost { color: var(--gray); border-bottom-color: var(--sand); }
.perfil-ghost:hover { color: var(--navy); border-color: var(--navy); }
@media (max-width: 900px) {
  .perfil { padding: 104px 24px 64px; }
  .perfil-grid { grid-template-columns: 1fr; gap: 36px; }
  .perfil-img { max-width: 320px; }
}
