/* =========================================================
   Gestores Financieros y Actuariales — v2
   Paleta: verde azulado de marca + dorado + crema
   ========================================================= */
:root {
  --teal: #115955;
  --teal-deep: #0a3532;
  --teal-ink: #082a28;
  --teal-soft: #e6efee;
  --gold: #b8965a;
  --gold-light: #d8c09a;
  --cream: #f8f4ee;
  --sand: #efe7db;
  --ink: #142120;
  --text: #3d4847;
  --muted: #6f7a79;
  --line: #e3e0da;
  --white: #fff;

  --display: "Cinzel", Georgia, serif;
  --elegant: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --radius: 4px;
  --shadow: 0 20px 50px -20px rgba(10, 53, 50, .25);
  --shadow-sm: 0 8px 24px -12px rgba(10, 53, 50, .2);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
p { margin: 0 0 1.15em; }
::selection { background: var(--gold-light); color: var(--ink); }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.bg-cream { background: var(--cream); }
.bg-teal { background: var(--teal); color: rgba(255,255,255,.85); }
.bg-teal h2, .bg-teal h3 { color: var(--white); }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.heading { font-size: clamp(30px, 3.6vw, 46px); }
.heading em {
  font-family: var(--elegant); font-style: italic; font-weight: 500;
  color: var(--teal); letter-spacing: 0;
}
.bg-teal .heading em, .world .heading em { color: var(--gold-light); }
.bg-teal .eyebrow { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 17px; color: var(--muted); }
.bg-teal .section-head p { color: rgba(255,255,255,.75); }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--teal); --fg: var(--white); --bd: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { --bg: var(--teal-deep); --bd: var(--teal-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { --bg: var(--gold); --bd: var(--gold); --fg: var(--white); }
.btn-gold:hover { --bg: #a48249; --bd: #a48249; }
.btn-ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.55); }
.btn-ghost:hover { --bg: var(--white); --fg: var(--teal); --bd: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(5px); }

/* ---------- Encabezado del sitio ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, padding .35s, color .35s;
  padding: 22px 0;
  color: var(--white);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
  color: var(--ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; position: relative; z-index: 2; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; }
.brand span { font-family: var(--display); font-size: 15px; line-height: 1.25; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  position: relative; text-decoration: none; color: inherit;
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 0; opacity: .85; transition: opacity .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-cta { padding: 11px 22px; border: 1px solid currentColor; border-radius: var(--radius); opacity: 1; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover, .nav .nav-cta.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 7px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Portadas ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  padding: 140px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,42,40,.94) 0%, rgba(10,53,50,.82) 45%, rgba(17,89,85,.45) 100%),
    linear-gradient(0deg, rgba(8,42,40,.6), transparent 40%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero .eyebrow { color: var(--gold-light); }
.hero-logo { width: 84px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.05; margin-bottom: 28px; max-width: 14ch;
}
.hero h1 em { font-family: var(--elegant); font-style: italic; font-weight: 500; color: var(--gold-light); letter-spacing: 0; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 580px; color: rgba(255,255,255,.82); margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--gold-light); border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero { min-height: 64vh; padding: 170px 0 90px; align-items: flex-end; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 62px); max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero.tall { padding-bottom: 170px; }
.crumbs { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { margin: 0 10px; color: var(--gold-light); }

/* ---------- Inicio: intro ---------- */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.big-quote {
  font-family: var(--elegant); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; color: var(--teal); margin: 0 0 30px;
}
.big-quote::before { content: "\201C"; display: block; font-size: 2.4em; line-height: .6; color: var(--gold); margin-bottom: 10px; }
.intro-text { font-size: 17px; text-align: justify; hyphens: auto; }
.intro-text p:first-child::first-letter {
  float: left; font-family: var(--display); font-size: 64px; line-height: .9;
  padding: 6px 12px 0 0; color: var(--teal);
}

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 64px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255,255,255,.18); }
.stat-num { font-family: var(--display); font-size: clamp(44px, 5vw, 64px); color: var(--white); line-height: 1; }
.stat-num sup { font-size: .5em; color: var(--gold-light); vertical-align: top; position: relative; top: .2em; }
.stat-label { margin-top: 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---------- Tarjetas de servicio ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-card .media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.svc-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .media img { transform: scale(1.07); }
.svc-card .num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--display); font-size: 14px; color: var(--white); letter-spacing: .1em;
  background: rgba(10,53,50,.75); padding: 4px 10px; border-radius: 2px;
}
.svc-card .body { padding: 0 26px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-card .icon-badge { margin-top: -31px; margin-bottom: 18px; }
.svc-card h3 { font-size: 19px; margin-bottom: 12px; }
.svc-card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); flex: 1; }
.icon-badge {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--teal); color: var(--white);
  box-shadow: 0 0 0 6px var(--white);
  position: relative;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Respaldo profesional ---------- */
.endorse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.endorse-logos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.endorse-logos .card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 30px; display: grid; place-items: center; height: 220px;
}
.endorse-logos .soa { width: 150px; border-radius: 50%; }
.endorse-logos .pmi { width: 100%; max-width: 280px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Carrusel de clientes ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 60s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 64px; width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s;
}
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Banda de llamado ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); text-align: center;
  padding: clamp(90px, 12vw, 150px) 0;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-attachment: fixed; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(8,42,40,.86), rgba(8,42,40,.92)); }
.cta h2 { color: var(--white); font-size: clamp(32px, 4.4vw, 56px); max-width: 20ch; margin: 0 auto 22px; }
.cta h2 em { font-family: var(--elegant); font-style: italic; font-weight: 500; color: var(--gold-light); }
.cta p { max-width: 560px; margin: 0 auto 40px; color: rgba(255,255,255,.78); font-size: 17px; }
.cta .eyebrow { color: var(--gold-light); }
.cta .hero-actions { justify-content: center; }

/* ---------- Acerca de ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
.framed { position: relative; }
.framed img, .framed video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; }
.framed::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px;
  border: 1px solid var(--gold); border-radius: var(--radius);
}
.framed .tag {
  position: absolute; z-index: 2; left: -30px; bottom: 40px;
  background: var(--teal); color: var(--white); padding: 22px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.framed .tag strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--gold-light); }
.framed .tag span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.justify { text-align: justify; hyphens: auto; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.area { background: var(--teal); padding: 50px 40px; transition: background .4s; }
.area:hover { background: var(--teal-deep); }
.area .ico { width: 46px; height: 46px; color: var(--gold-light); margin-bottom: 26px; }
.area .n { font-family: var(--display); color: var(--gold-light); font-size: 13px; letter-spacing: .2em; }
.area h3 { font-size: 22px; margin: 8px 0 0; }

.manifesto {
  font-family: var(--elegant); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.35; color: var(--teal);
  text-align: center; max-width: 900px; margin: 0 auto;
}
.manifesto::before, .manifesto::after { content: ""; display: block; width: 60px; height: 1px; background: var(--gold); margin: 0 auto 34px; }
.manifesto::after { margin: 34px auto 0; }

.values-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.value {
  grid-column: span 2;
  background: var(--white); padding: 40px 34px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.value:nth-child(4) { grid-column: 2 / span 2; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value::after {
  content: attr(data-n); position: absolute; right: 22px; top: 12px;
  font-family: var(--display); font-size: 64px; color: var(--teal-soft); line-height: 1;
}
.value .ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 20px; position: relative; z-index: 1; }
.value h3 { font-size: 21px; color: var(--teal); position: relative; z-index: 1; }
.value p { font-size: 14.5px; line-height: 1.75; margin-bottom: .8em; position: relative; z-index: 1; }

.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.clients-grid div {
  flex: 0 0 calc((100% - 5 * 18px) / 6); height: 120px;
  background: var(--white); border-radius: var(--radius);
  display: grid; place-items: center; padding: 18px 22px;
  border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.clients-grid div:hover { border-color: var(--gold-light); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.clients-grid img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 1000px) { .clients-grid div { flex-basis: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 640px) { .clients-grid div { flex-basis: calc((100% - 18px) / 2); height: 100px; } }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.member {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  text-align: center;
}
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.member .photo { aspect-ratio: 1; overflow: hidden; background: var(--teal-soft); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .photo img { transform: scale(1.06); }
.member .info { padding: 22px 18px 26px; }
.member h3 { font-size: 17px; margin-bottom: 4px; }
.member .role { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.member .spec { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; min-height: 42px; }
.li {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--teal); transition: background .3s, color .3s, border-color .3s;
}
.li svg { width: 16px; height: 16px; }
.li:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.partner {
  display: flex; gap: 22px; align-items: center;
  background: var(--white); padding: 26px; border-radius: var(--radius); border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.partner img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.partner .firm { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; line-height: 1.5; }
.partner h3 { font-size: 17px; margin: 0 0 6px; }
.partner .spec { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

.world {
  position: relative; isolation: isolate; color: var(--white); text-align: center; overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0;
  background: #02090b url("../img/about-world.jpg") center/cover;
}
.world::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(8,42,40,.35), rgba(2,9,11,.85) 70%); }
.world h2 { color: var(--white); }
.world .eyebrow { color: var(--gold-light); }
.countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 46px auto 0; max-width: 900px; }
.countries li {
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid rgba(216,192,154,.45); border-radius: 40px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(4px);
  transition: background .3s, border-color .3s;
}
.countries li:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Página de servicios ---------- */
.svc-rows { display: grid; gap: clamp(90px, 11vw, 140px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-media .big-n {
  position: absolute; top: -50px; left: -24px; z-index: 1;
  font-family: var(--display); font-size: 120px; line-height: 1; color: var(--gold);
}
.svc-row:nth-child(even) .svc-media .big-n { left: auto; right: -24px; }
.svc-row h2 { font-size: clamp(26px, 2.8vw, 36px); }
.svc-row p { font-size: 17px; color: var(--muted); margin-bottom: 30px; }

/* ---------- Detalle de servicio ---------- */
.lead-block { font-size: 17px; line-height: 1.85; text-align: justify; hyphens: auto; }
.lead-block p:first-child { font-family: var(--elegant); font-size: 26px; line-height: 1.5; color: var(--teal); text-align: left; font-weight: 500; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 42px 40px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .45s var(--ease), transform .45s var(--ease);
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .6s var(--ease); }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.feature:hover::before { width: 100%; }
.feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feature-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.feature-head .icon-badge { box-shadow: none; background: var(--teal-soft); color: var(--teal); transition: background .3s, color .3s; }
.feature:hover .icon-badge { background: var(--teal); color: var(--white); }
.feature-head h3 { font-size: 21px; margin: 0; }
.feature p { font-size: 15.5px; line-height: 1.8; text-align: justify; hyphens: auto; }
.feature p:last-child { margin-bottom: 0; }

.other-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.other {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  min-height: 230px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); text-decoration: none;
}
.other img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.other::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,42,40,.94), rgba(8,42,40,.35)); }
.other:hover img { transform: scale(1.08); }
.other h3 { color: var(--white); font-size: 19px; margin: 0 0 10px; }
.other .link-arrow { color: var(--gold-light); }

/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 5fr 7fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-top: -120px; position: relative; z-index: 2;
}
.contact-info {
  background: var(--teal); color: rgba(255,255,255,.85);
  padding: 60px 48px; position: relative; overflow: hidden;
}
.contact-info::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 1px solid rgba(216,192,154,.3);
  box-shadow: 0 0 0 40px rgba(216,192,154,.05), 0 0 0 80px rgba(216,192,154,.04);
}
.contact-info h2 { color: var(--white); font-size: 32px; }
.contact-info > p { margin-bottom: 40px; }
.c-item { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; text-decoration: none; position: relative; z-index: 1; }
.c-item .icon-badge { width: 54px; height: 54px; background: rgba(255,255,255,.08); box-shadow: none; color: var(--gold-light); border: 1px solid rgba(216,192,154,.35); transition: background .3s, color .3s; }
.c-item .icon-badge svg { width: 22px; height: 22px; }
a.c-item:hover .icon-badge { background: var(--gold); color: var(--white); }
.c-item small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.c-item span { font-size: 16px; color: var(--white); word-break: break-word; }

.contact-form { padding: 60px 56px; }
.contact-form h3 { font-size: 26px; }
.contact-form > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 24px 0 10px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; border-radius: 0; outline: none;
}
.field textarea { min-height: 120px; resize: vertical; display: block; }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 15px; color: var(--muted); transition: all .25s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--teal); transition: width .4s var(--ease); }
.field:focus-within::after { width: 100%; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form-actions small { color: var(--muted); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--teal-ink); color: rgba(255,255,255,.65); padding: 90px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr; gap: 50px; padding-bottom: 70px; }
.site-footer .brand { color: var(--white); margin-bottom: 22px; }
.motto { font-family: var(--elegant); font-style: italic; font-size: 22px; color: var(--gold-light); line-height: 1.4; margin: 0 0 22px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px;
}
.endorsed-mini { display: flex; gap: 12px; align-items: center; }
.endorsed-mini img { height: 38px; width: auto; background: var(--white); padding: 5px 9px; border-radius: 3px; }
.endorsed-mini img.soa { border-radius: 50%; padding: 0; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--white); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s !important; }
.reveal[data-d="2"] { transition-delay: .2s !important; }
.reveal[data-d="3"] { transition-delay: .3s !important; }
.reveal[data-d="4"] { transition-delay: .4s !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Adaptable ---------- */
@media (max-width: 1100px) {
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value, .value:nth-child(4) { grid-column: auto; }
  .value:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--teal-ink); color: var(--white);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav a { font-size: 16px; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
  .intro-grid, .split, .endorse-grid, .svc-row, .contact-wrap { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .areas { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .other-svcs { grid-template-columns: 1fr; }
  .framed { max-width: 460px; margin: 0 auto 30px; }
  .contact-wrap { margin-top: -80px; }
  .cta-bg { background-attachment: scroll; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand span { font-size: 13px; }
  .hero { padding: 120px 0 100px; }
  .hero-logo { width: 64px; }
  .svc-cards, .team-grid, .values-grid { grid-template-columns: 1fr; }
  .value:last-child { grid-column: auto; }
  .team-grid { max-width: 340px; margin: 0 auto; }
  .endorse-logos { grid-template-columns: 1fr; }
  .stat { padding: 44px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form, .feature { padding: 40px 26px; }
  .framed::before { inset: 16px -12px -12px 16px; }
  .framed .tag { left: 0; }
  .svc-media .big-n { font-size: 80px; top: -34px; left: 0; }
  .svc-row:nth-child(even) .svc-media .big-n { right: 0; }
  .marquee::before, .marquee::after { width: 50px; }
  h1, h2, h3 { overflow-wrap: anywhere; }
}

/* ---------- Selector de idioma ---------- */
.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.lang a { text-decoration: none; opacity: .55; padding: 4px 2px; transition: opacity .2s, color .2s; }
.lang a:hover { opacity: 1; }
.lang a.on { opacity: 1; color: var(--gold); }
.site-header:not(.scrolled) .lang a.on { color: var(--gold-light); }
.lang i { width: 1px; height: 12px; background: currentColor; opacity: .35; }
.header-right { display: flex; align-items: center; gap: 34px; }
.footer-lang { display: flex; gap: 14px; }
.footer-lang a.on { color: var(--gold-light); }
@media (max-width: 900px) { .header-right { gap: 18px; } .lang { position: relative; z-index: 2; } .nav-open .lang a.on { color: var(--gold-light); } }

/* Inicio: el logo del encabezado aparece solo después de la portada */
.is-home .site-header .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.is-home .site-header.past-hero .brand { opacity: 1; transform: none; pointer-events: auto; }
