/* =========================================================
   ÁVILA, LARES & ASOCIADOS
   PROPUESTA 1 — "PATRIMONIO" · Editorial de lujo / Banca privada
   Layout: simétrico · centrado · reglas doradas hairline · serif protagonista
   Paleta: Azul marino + Dorado champagne
   ========================================================= */

:root {
  --navy-900: #07111F;
  --navy-800: #0A1A2F;
  --navy-700: #0D2138;
  --navy-600: #143150;
  --gold:      #C9A24B;
  --gold-300:  #DDBE7E;
  --gold-100:  #EFE2C5;
  --bone:      #FBFAF7;
  --bone-200:  #F4F1EA;
  --bone-300:  #E8E2D4;
  --ink:       #1A1D24;
  --ink-soft:  #3C414B;
  --muted:     #6E7079;
  --line:      rgba(10, 26, 47, 0.12);
  --line-gold: rgba(201, 162, 75, 0.35);
  --hair-gold: rgba(201, 162, 75, 0.45);
  --line-dark: rgba(255, 255, 255, 0.12);

  --display: "Playfair Display", Georgia, serif;
  --serif:   "Cormorant Garamond", Georgia, serif;
  --sans:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-sm: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 10vw, 9.5rem); position: relative; }

/* ---------- Ornamento decorativo reutilizable ---------- */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase;
  font-weight: 500; color: var(--gold); margin-bottom: 1.4rem;
  font-family: var(--sans);
}

/* Section heads — siempre centrados con ornamento */
.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head::before {
  content: "✦";
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.4em;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--navy-800);
}
.section-title em { color: var(--gold); font-style: italic; }
.section-intro { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.35rem; color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }
.lead-muted { color: var(--ink-soft); font-family: var(--serif); font-size: 1.4rem; max-width: 52ch; }

/* Buttons — classic, squared */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.1rem 2.2rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(221,190,126,.5); }
.btn-ghost:hover { background: rgba(201,162,75,.12); border-color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Switcher */
.prop-switcher {
  position: fixed; z-index: 200; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.7rem 0.5rem 1rem;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-gold); border-radius: 100px;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.6);
}
.prop-switcher .ps-label { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 500; }
.prop-switcher a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 0.9rem; font-weight: 600; font-family: var(--display); color: rgba(255,255,255,.75); transition: all .3s var(--ease); }
.prop-switcher a:hover { background: rgba(255,255,255,.12); color: #fff; }
.prop-switcher a.active { background: var(--gold); color: var(--navy-900); }
.prop-switcher .ps-name { font-family: var(--serif); font-size: 0.92rem; color: var(--gold-300); padding-left: 0.5rem; margin-left: 0.2rem; border-left: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
@media (max-width: 480px) { .prop-switcher .ps-name { display: none; } }

/* =================== HEADER (centrado, refinado) =================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-block: 1.5rem; transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease); }
.site-header.scrolled { background: rgba(251,250,247,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 0.8rem; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  font-family: var(--display); font-weight: 500; font-size: 1.05rem; border-radius: 2px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.brand:hover .brand-mark { background: var(--gold); color: var(--navy-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--navy-800); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.site-header:not(.scrolled) .brand-name { color: var(--bone); }
.site-header:not(.scrolled) .brand-mark { border-color: var(--gold-300); color: var(--gold-300); }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--bone); }
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); position: relative; transition: color .3s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease), left .35s var(--ease); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-links a.active { color: var(--gold); }
.nav-links .nav-cta { background: var(--gold); color: var(--navy-900) !important; padding: 0.62rem 1.4rem; border-radius: var(--radius-sm); }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold-300); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-800); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO (centrado · simétrico · sin rejilla técnica) =================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--bone); overflow: hidden; padding-top: 6rem; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--navy-800);
  background-image: radial-gradient(130% 120% at 50% 0%, var(--navy-600) 0%, var(--navy-800) 55%, var(--navy-900) 100%); }
/* Se neutraliza la rejilla técnica para una estética editorial limpia */
.hero-grid, .hero-glow { display: none !important; }
.hero-inner { position: relative; z-index: 2; max-width: 940px; margin-inline: auto; }
/* Ornamento centrado + fina regla dorada sobre el eyebrow */
.hero-inner::before {
  content: "✦";
  display: block;
  color: var(--gold-300);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(10px);
  animation: heroOrn 1.2s var(--ease) .15s forwards;
}
@keyframes heroOrn { to { opacity: 1; transform: none; } }
.hero .eyebrow { color: var(--gold-300); display: inline-block; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 1.08; margin-bottom: 1.9rem; }
.hero-title em { color: var(--gold-300); font-style: italic; }
.hero-lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.6rem); color: rgba(255,255,255,.84); max-width: 56ch; margin: 0 auto 2.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* Stats — fila centrada con finas reglas doradas verticales */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(1.6rem, 4.5vw, 4rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line-dark);
  max-width: 880px; margin-inline: auto;
}
.stat { position: relative; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center; }
.stat + .stat::before {
  content: ""; position: absolute; top: 12%; bottom: 12%;
  left: calc(-1 * clamp(0.8rem, 2.25vw, 2rem)); width: 1px;
  background: var(--hair-gold);
}
.stat-num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; color: var(--gold-300); line-height: 1; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { display: block; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 100px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold-300); border-radius: 4px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;top:8px} 30%{opacity:1} 60%{opacity:1;top:22px} 100%{opacity:0;top:22px} }

/* =================== MARQUEE =================== */
.marquee { background: var(--navy-800); color: var(--gold-100); padding-block: 1.2rem; overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(201,162,75,.18); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.4rem; animation: marquee 46s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.marquee-track span:nth-child(even) { color: var(--gold); font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* =================== FIRMA (texto centrado editorial) =================== */
.firma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.firma-text p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: 1.5rem; }
.firma-text strong { color: var(--navy-800); font-weight: 600; }
.firma-photo { margin-top: 2rem; }
.pillars { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hair-gold); }
.pillar { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.9rem 0; position: relative; transition: padding-left .45s var(--ease); }
.pillar::before { content: ""; position: absolute; left: -1.4rem; top: 50%; transform: translateY(-50%) scaleY(0); height: 60%; width: 2px; background: var(--gold); transition: transform .45s var(--ease); }
.pillar:hover { padding-left: 1rem; }
.pillar:hover::before { transform: translateY(-50%) scaleY(1); }
.pillar-num { font-family: var(--display); font-size: 0.9rem; color: var(--gold); font-weight: 500; letter-spacing: 0.1em; }
.pillar h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--navy-800); margin: 0.3rem 0 0.5rem; }
.pillar p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.15rem; }

/* =================== ÁREAS — ÍNDICE EDITORIAL a 2 columnas =================== */
.areas { background: var(--bone-200); }
.areas-grid {
  counter-reset: area;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  border-top: 1px solid var(--hair-gold);
}
.area-card {
  counter-increment: area;
  position: relative;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 2rem 0 2rem 4rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.area-card::before {
  content: counter(area, upper-roman);
  position: absolute; left: 0; top: 2.05rem;
  font-family: var(--display); font-style: italic;
  font-size: 1.5rem; color: var(--gold);
  width: 3rem; line-height: 1;
}
/* Se ocultan los iconos: el índice prescinde de tarjetas y símbolos */
.area-ico { display: none !important; }
.area-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--navy-800); margin-bottom: 0.5rem; line-height: 1.18; transition: color .35s var(--ease); }
.area-card p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.12rem; line-height: 1.45; }
.area-card:hover { padding-left: 4.6rem; }
.area-card:hover h3 { color: var(--gold); }

/* =================== TRIBUTARIA =================== */
.tributaria { background: var(--navy-800); color: var(--bone); overflow: hidden; text-align: center; }
.tributaria-inner { display: block; max-width: 820px; margin-inline: auto; }
.tributaria .eyebrow { color: var(--gold-300); display: block; text-align: center; }
.tributaria .section-title { color: var(--bone); }
.tributaria .section-title em { color: var(--gold-300); }
.tributaria-text { margin-bottom: 3rem; }
.tributaria .lead-muted { color: rgba(255,255,255,.78); margin: 1.4rem auto 0; }
.trib-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4rem); text-align: left; max-width: 760px; margin-inline: auto; }
.trib-list li { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.3rem; font-family: var(--serif); }
.trib-list li::before { content: "✦"; color: var(--gold-300); font-size: 0.8rem; }
.trib-list li:hover { color: var(--gold-300); }

/* =================== ENFOQUE =================== */
.enfoque-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--hair-gold); border-left: 1px solid var(--line); }
.enfoque-card { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 2.6rem 2rem; background: transparent; text-align: center; transition: background .4s var(--ease); }
.enfoque-card:hover { background: var(--bone-200); }
.enfoque-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: var(--navy-800); margin-bottom: 0.7rem; }
.enfoque-card p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.1rem; }

/* =================== SECTORES =================== */
.sectores { background: var(--navy-800); color: var(--bone); }
.sectores .eyebrow { color: var(--gold-300); }
.sectores .section-title { color: var(--bone); }
.sectores-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; max-width: 900px; margin-inline: auto; }
.sectores-list span { border: 1px solid rgba(221,190,126,.3); border-radius: 100px; padding: 0.8rem 1.7rem; font-family: var(--serif); font-size: 1.15rem; color: rgba(255,255,255,.85); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); cursor: default; }
.sectores-list span:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-3px); }

/* =================== EQUIPO (editorial · retrato grande) =================== */
.equipo-note { margin-top: 1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); font-style: italic; }
.equipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
.member { display: flex; flex-direction: column; gap: 0; align-items: stretch; background: transparent; border: 0; border-radius: 0; padding: 0; transition: transform .5s var(--ease); }
.member:hover { transform: translateY(-5px); box-shadow: none; }
.member-avatar { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line-gold); margin-bottom: 1.3rem; overflow: hidden; position: relative; }
.member-avatar::after { content: none; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) saturate(0.95); transition: transform .8s var(--ease), filter .6s var(--ease); }
.member:hover .member-avatar img { transform: scale(1.04); filter: none; }
.member-info { display: flex; flex-direction: column; }
.member-info h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--navy-800); line-height: 1.15; order: 2; margin-top: 0.5rem; }
.member-role { display: inline-block; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; order: 1; }
.member-info p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.08rem; line-height: 1.45; order: 3; margin-top: 0.6rem; }

/* =================== INTERNACIONAL =================== */
.internacional { background: var(--bone-200); }
.paises-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-bottom: 4rem; border-top: 1px solid var(--hair-gold); border-left: 1px solid var(--line); }
.pais { background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 2.8rem 1.5rem; text-align: center; transition: background .4s var(--ease); }
.pais:hover { transform: none; box-shadow: none; background: var(--bone); }
.pais-code { display: inline-grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%; background: transparent; color: var(--gold); font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.04em; border: 1px solid var(--line-gold); transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.pais:hover .pais-code { background: var(--gold); color: var(--navy-900); transform: scale(1.06); }
.pais h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; color: var(--navy-800); }
.pais p { font-family: var(--serif); color: var(--muted); font-size: 1.05rem; margin-top: 0.3rem; }
.aliados { text-align: center; }
.aliados-label { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.6rem; }
.aliados-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; }
.aliados-list span { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); padding: 0.55rem 1.4rem; border: 1px solid var(--line); border-radius: 100px; background: var(--bone); }

/* =================== POR QUÉ =================== */
.porque { background: var(--navy-800); color: var(--bone); }
.porque-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.porque-head { text-align: left; }
.porque .eyebrow { color: var(--gold-300); }
.porque .section-title { color: var(--bone); }
.porque-list { display: grid; }
.porque-list li { display: flex; align-items: center; gap: 1.2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line-dark); font-family: var(--serif); font-size: 1.35rem; color: rgba(255,255,255,.88); }
.porque-list li:first-child { border-top: 1px solid var(--line-dark); }
.porque-list li::before { content: "✦"; flex: 0 0 auto; color: var(--gold); font-size: 0.85rem; }

/* =================== CONTACTO =================== */
.contacto { background: var(--bone); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contacto-text { text-align: left; }
.contacto-text .eyebrow { color: var(--gold); }
.contacto-details { margin-top: 2.5rem; display: grid; gap: 1.6rem; }
.cdetail-label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.cdetail p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.15rem; }
.cdetail a { transition: color .3s var(--ease); }
.cdetail a:hover { color: var(--gold); }
.contacto-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; background: var(--bone-200); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 3.5vw, 2.8rem); box-shadow: none; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 0.96rem; padding: 0.9rem 0.95rem; border: 1px solid var(--bone-300); border-radius: var(--radius-sm); background: var(--bone); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,75,.16); }
.contacto-form .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: var(--navy-600); }
.form-note.err { color: #b0492f; }

/* =================== FOOTER =================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3.5rem; }
.brand--footer .brand-name { color: var(--bone); }
.footer-tagline { margin-top: 1.3rem; max-width: 42ch; font-family: var(--serif); font-size: 1.2rem; color: rgba(255,255,255,.62); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav > div { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-title { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; margin-bottom: 0.3rem; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,.62); transition: color .3s var(--ease); width: fit-content; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.6rem; border-top: 1px solid var(--line-dark); font-size: 0.84rem; color: rgba(255,255,255,.45); }

/* =================== IMÁGENES =================== */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .5; }
.hero-tint { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,26,47,.82), rgba(7,17,31,.92)),
              radial-gradient(120% 90% at 50% 35%, transparent 30%, rgba(7,17,31,.7) 100%); }

.firma-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-gold); }
.firma-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.firma-photo:hover img { transform: scale(1.04); }

.imageband { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; text-align: center; }
.imageband-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.imageband-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,26,47,.82), rgba(7,17,31,.9)); }
.imageband-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); margin-inline: auto; max-width: 880px; }
.imageband-inner::before { content: "✦"; display: block; color: var(--gold-300); letter-spacing: 0.4em; margin-bottom: 1.2rem; font-size: 0.9rem; }
.imageband-eyebrow { font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.imageband-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.16; color: var(--bone); margin-inline: auto; }
.imageband-title em { color: var(--gold-300); font-style: italic; }

.porque { overflow: hidden; }
.porque-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .14; }
.porque > .container { position: relative; z-index: 1; }

/* =================== REVEAL (fundido lento, señorial) =================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.areas-grid .reveal.in, .equipo-grid .reveal.in, .enfoque-grid .reveal.in { transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee-track, .scroll-hint span::after, .hero-inner::before { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* =================== RESPONSIVE =================== */
@media (max-width: 980px) {
  .firma-grid, .porque-inner, .contacto-inner, .footer-inner { grid-template-columns: 1fr; }
  .porque-head { text-align: center; }
  .hero-stats { gap: 1.6rem 2.5rem; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem; background: var(--navy-800); padding: 3rem 2.5rem; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.6); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: rgba(255,255,255,.85) !important; font-size: 1rem; }
  .nav-links a::after { left: 0; }
  .nav-toggle { display: flex; z-index: 110; }
  .areas-grid, .trib-list { grid-template-columns: 1fr; }
  .contacto-form { grid-template-columns: 1fr; }
  .field-full, .contacto-form .btn, .form-note { grid-column: 1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 2rem 1.5rem; }
  .stat { flex: 0 0 40%; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 440px) {
  .equipo-grid { grid-template-columns: 1fr; }
  .enfoque-grid, .paises-grid { grid-template-columns: 1fr; }
}
