﻿/* =========================================================
   G&G CONSULTING, C.A. — Hoja de estilos
   Paleta cálida de abogacía: marfil, arena, bronce y azul pizarra
   ========================================================= */
:root {
  --navy: #1f2c40;
  --navy-2: #2a3a52;
  --navy-3: #34465f;
  --ivory: #fbf8f2;
  --sand: #f3ece0;
  --sand-2: #e9dfcf;
  --gold: #b08a57;
  --gold-2: #c9a774;
  --gold-soft: #e3cfae;
  --wine: #7d4b45;
  --ink: #2f2a25;
  --muted: #6f665c;
  --line: rgba(176, 138, 87, .28);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(31, 44, 64, .18);
  --shadow-lg: 0 24px 50px -20px rgba(31, 44, 64, .30);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-content: center; gap: 1rem; justify-items: center;
  background: var(--navy);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__mark {
  width: min(220px, 55vw); aspect-ratio: 1280 / 1460; border-radius: 14px; overflow: hidden;
  animation: fadeUp .9s var(--ease) both;
}
.preloader__mark img { width: 100%; height: 100%; object-fit: contain; }
.preloader__line { width: 140px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; position: relative; }
.preloader__line::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-2);
  transform: translateX(-100%); animation: load 1.1s var(--ease) forwards;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes load { to { transform: translateX(0); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font: 500 .88rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s, border-color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -10px rgba(176,138,87,.7); }
.btn--gold:hover { background: #9c7746; }
.btn--ghost { border-color: rgba(227, 207, 174, .55); color: var(--gold-soft); }
.btn--ghost:hover { background: rgba(227, 207, 174, .1); border-color: var(--gold-soft); }
.btn--sm { padding: .7rem 1.2rem; font-size: .75rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.nav.is-scrolled {
  background: rgba(31, 44, 64, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.4);
  --nav-h: 66px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.brand__emblem {
  height: 62px; aspect-ratio: 1280 / 1460; border-radius: 6px; flex: none;
  background: #1c2638 url("assets/logo-gg-recorte.webp") center / cover no-repeat;
  border: 1px solid rgba(201, 167, 116, .55);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.5);
}
.footer__brand .brand__emblem { height: 140px; width: auto; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--gold-soft); letter-spacing: .03em; }
.brand__text small { font-size: .62rem; letter-spacing: .24em; color: rgba(255,255,255,.7); }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) {
  position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.85); transition: color .3s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__menu a:not(.btn):hover, .nav__menu a.is-current { color: var(--gold-soft); }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 110; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold-soft); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  background: radial-gradient(120% 90% at 80% 30%, #314460 0%, var(--navy) 55%, #18222f 100%);
  color: #f4efe6; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(201,167,116,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,167,116,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite; }
.orb--1 { width: 420px; height: 420px; background: #8a6a43; top: -120px; right: -80px; }
.orb--2 { width: 360px; height: 360px; background: #6e4a44; bottom: -140px; left: -100px; animation-delay: -7s; opacity: .3; }
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.08; color: #fff; }
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(244,239,230,.82); max-width: 40rem; font-weight: 300; }
.hero__lead strong { color: var(--gold-soft); font-weight: 500; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2.2rem; }
.hero__tags span {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(201,167,116,.35); color: var(--gold-soft); background: rgba(201,167,116,.06);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__logo { display: flex; justify-content: center; }
.hero__logo-frame {
  position: relative; width: min(420px, 100%); aspect-ratio: 1280 / 1460; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(201,167,116,.25);
  animation: levitate 7s ease-in-out infinite;
}
.hero__logo-frame img { width: 100%; height: 100%; object-fit: contain; }

/* Protección del logo: sin selección, arrastre ni menú "guardar imagen" */
.hero__logo-frame, .preloader__mark, .brand__emblem {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hero__logo-frame img, .preloader__mark img {
  pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.hero__logo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,240,210,.18) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 6s ease-in-out 2s infinite;
}
@keyframes levitate { 50% { transform: translateY(-12px); } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.hero__anim { opacity: 0; transform: translateY(26px); }
body.is-loaded .hero__anim { animation: fadeUp 1s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__scroll { position: absolute; bottom: 1.8rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid rgba(227,207,174,.5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--ivory); position: relative; z-index: 2; margin-top: -3rem; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: .5rem; }
.stat__label { font-size: .82rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, #263750 100%); color: #ece5d9; }
.section__head { max-width: 760px; margin-bottom: 3.2rem; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.8vw, 3rem); color: var(--navy); }
.section--navy .section__title { color: #fff; }
.section__sub { color: var(--muted); font-size: 1.05rem; }
.section--navy .section__sub { color: rgba(236,229,217,.75); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
.quote {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--gold);
  background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--navy); line-height: 1.4;
}
.about__goals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.about__goals h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }
.goals { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
.goals li { display: flex; gap: 1rem; align-items: flex-start; }
.goals span {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--gold);
  border: 1px solid var(--gold-soft); background: var(--ivory);
}
.goals strong { color: var(--navy); }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid transparent;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--sand), var(--sand-2)); transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg, .contact__list svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tabs de servicios ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.tab {
  font: 500 .85rem var(--sans); letter-spacing: .02em; padding: .8rem 1.3rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--navy); border: 1px solid var(--sand-2);
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.tab:hover { border-color: var(--gold); transform: translateY(-2px); }
.tab.is-active { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }

.panel { display: none; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.panel.is-active { display: grid; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel__intro { padding: 2.4rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #ece5d9; align-self: start; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.panel__intro h3 { font-family: var(--serif); font-size: 2rem; color: #fff; }
.panel__intro p { color: rgba(236,229,217,.8); margin: 0; }
.panel__list { display: grid; gap: 1rem; }
.item {
  padding: 1.4rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--sand-2);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.item:hover { border-color: var(--gold-soft); transform: translateX(6px); box-shadow: var(--shadow); }
.item h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; }
.item p { margin: 0; color: var(--muted); font-size: .95rem; }
.panel__list--blocks { grid-template-columns: 1fr; }
.block { display: grid; gap: .8rem; }
.block__tag { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- Estructura ---------- */
.structure { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
.structure__pmo, .division {
  border-radius: var(--radius); padding: 2.2rem; border: 1px solid rgba(201,167,116,.25);
  background: rgba(255,255,255,.03); transition: background .4s, transform .4s var(--ease), border-color .4s;
}
.structure__pmo { background: linear-gradient(160deg, rgba(176,138,87,.22), rgba(176,138,87,.05)); border-color: rgba(201,167,116,.45); }
.structure__pmo:hover, .division:hover { transform: translateY(-4px); border-color: var(--gold-2); background-color: rgba(255,255,255,.06); }
.structure__divs { display: grid; gap: 1.5rem; }
.structure h3 { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.structure p { color: rgba(236,229,217,.82); }
.structure small { display: block; font-size: .82rem; color: var(--gold-soft); padding-top: 1rem; border-top: 1px dashed rgba(201,167,116,.3); }
.structure__badge { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.timeline.is-visible::before { transform: scaleX(1); }
.step { text-align: center; padding: 0 .5rem; }
.step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.4rem; border-radius: 50%;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--gold-soft);
  background: var(--navy); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold-soft);
  transition: transform .5s var(--ease);
}
.step:hover .step__n { transform: scale(1.1) rotate(8deg); }
.step h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Diferenciadores ---------- */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-2); }
.diff { background: var(--ivory); padding: 2rem; transition: background .4s; }
.diff:hover { background: #fff; }
.diff h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); position: relative; padding-left: 1.1rem; }
.diff h3::before { content: ""; position: absolute; left: 0; top: .35em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,87,.18); }
.diff p { color: var(--muted); font-size: .93rem; margin: 0; }

.segments { margin-top: 3.5rem; }
.segments h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin-bottom: 1.4rem; }
.segments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.segments__grid > div { display: flex; gap: 1rem; padding: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .95rem; color: var(--ink); }
.segments__grid span { flex: none; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--wine); line-height: 1; }

/* ---------- Equipo ---------- */
.segments__grid p { margin: 0; }
#equipo .section__head { margin-inline: auto; text-align: center; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 860px; margin-inline: auto; }
.member {
  text-align: center; padding: 2.6rem 2rem 2.2rem; border-radius: var(--radius); position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.member::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 60%; height: 3px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member__mark {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1.3rem; border-radius: 50%;
  font-family: var(--serif); font-size: 1.8rem; color: var(--gold); border: 1px solid var(--gold-soft); background: var(--ivory);
}
.member h3 { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); margin-bottom: .5rem; }
.member__role { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ---------- Presencia ---------- */
.presence { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.regions { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.regions li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem; background: #fff; border-radius: 12px; border-left: 3px solid var(--gold);
  transition: transform .4s var(--ease);
}
.regions li:hover { transform: translateX(6px); }
.regions strong { color: var(--navy); font-family: var(--serif); font-size: 1.2rem; }
.regions span { font-size: .85rem; color: var(--muted); text-align: right; }
.presence__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--sand-2); }
.presence__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.85); }

/* ---------- Clientes ---------- */
.marquee { overflow: hidden; padding: 1.6rem 0; margin-bottom: 3rem; border-block: 1px solid var(--line); background: var(--sand);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; color: var(--navy); opacity: .55; white-space: nowrap; transition: opacity .3s, color .3s; }
.marquee__track span:hover { opacity: 1; color: var(--gold); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.client-group { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--sand-2); background: #fff; }
.client-group h3 { font-size: .8rem; font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.client-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.client-group li { padding-left: 1.2rem; position: relative; color: var(--navy); font-weight: 500; font-size: .95rem; }
.client-group li::before { content: "§"; position: absolute; left: 0; color: var(--gold); font-family: var(--serif); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__info > p { color: rgba(236,229,217,.8); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; font-size: .95rem; color: #ece5d9; }
.contact__list svg { flex: none; stroke: var(--gold-2); margin-top: .1rem; }
.contact__list a, .footer__legal a { transition: color .3s; }
.contact__list a:hover, .footer__legal a:hover { color: var(--gold-soft); }
.footer__legal p + p { margin-top: .35rem; }

.form { background: var(--ivory); color: var(--ink); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); display: grid; gap: 1rem; }
.form h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); margin-bottom: .3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 .95rem var(--sans); color: var(--ink); width: 100%;
  padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--sand-2); background: #fff;
  transition: border-color .3s, box-shadow .3s; text-transform: none; letter-spacing: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,87,.15); }
.form .is-invalid { border-color: #b4584d; }
.form__note { margin: 0; font-size: .88rem; min-height: 1.3em; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: #172130; color: rgba(236,229,217,.7); padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid rgba(201,167,116,.15); }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__brand strong { color: var(--gold-soft); font-family: var(--serif); font-size: 1.3rem; letter-spacing: .03em; }
.footer__brand p, .footer__legal p { margin: 0; }
.footer__legal strong { color: var(--gold-soft); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: flex-end; }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__bottom { padding-top: 1.5rem; text-align: center; font-size: .8rem; }
.footer__bottom p { margin: 0; }
.footer__bottom .footer__trademark { margin-top: .5rem; font-size: .72rem; opacity: .6; max-width: 720px; margin-inline: auto; }

.to-top {
  position: fixed; left: 1.3rem; bottom: 1.3rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: var(--gold);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #9c7746; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 95;
  display: flex; align-items: center; gap: .6rem; height: 60px; padding: 0 1.3rem 0 .9rem; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .9rem;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .6);
  transition: transform .35s var(--ease), box-shadow .35s;
  animation: waIn .8s var(--ease) 1.5s both;
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; flex: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out 2.5s infinite; pointer-events: none;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px -10px rgba(18, 140, 70, .7); }
@keyframes waIn { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- Animación reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav__menu { gap: 1.3rem; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards--3, .diffs { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .timeline::before { display: none; }
  .panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .panel__intro { position: static; }
  .about, .contact { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(31, 44, 64, .98); }
  .nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: rgba(24, 34, 48, .98); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__menu a:not(.btn) { font-family: var(--serif); font-size: 1.9rem; transform: translateY(16px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .3s; }
  .nav__menu .btn { margin-top: 1rem; }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu.is-open a { transform: none; opacity: 1; }
  .nav__menu.is-open a:nth-child(2) { transition-delay: .05s; }
  .nav__menu.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav__menu.is-open a:nth-child(4) { transition-delay: .15s; }
  .nav__menu.is-open a:nth-child(5) { transition-delay: .2s; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; }
  .hero__logo-frame { width: min(300px, 75vw); }
  .hero__lead { margin-inline: auto; }
  .hero__tags, .hero__cta { justify-content: center; }
  .hero .eyebrow::before { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about, .presence, .contact, .structure { grid-template-columns: 1fr; }
  .segments__grid, .clients { grid-template-columns: 1fr; }
  .team { gap: 1.2rem; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; flex-direction: column; }
  .footer__nav { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --nav-h: 66px; }
  body { font-size: 15px; }
  .nav .brand__emblem { height: 54px; }
  .brand__text strong { font-size: 1.35rem; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero__cta .btn { width: 100%; }
  .hero__tags span { font-size: .66rem; }
  .hero__scroll { display: none; }
  .cards--3, .diffs, .timeline, .team { grid-template-columns: 1fr; }
  .member h3 { font-size: 1.55rem; }
  .wa-float { height: 56px; width: 56px; padding: 0; justify-content: center; right: 1rem; bottom: 1rem; }
  .wa-float__label { display: none; }
  .to-top { left: 1rem; bottom: 1rem; width: 44px; height: 44px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
  .form__row { grid-template-columns: 1fr; }
  .stat { padding: 1.4rem 1rem; }
  .about__goals, .card, .panel__intro { padding: 1.6rem; }
  .regions li { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .regions span { text-align: left; }
  .quote { font-size: 1.15rem; }
}

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