/* Analytics Insider - site-base.css v2.4B
   Capa base compartida. Cargada antes del CSS local para mantener compatibilidad.
   Siguiente fase: retirar duplicados inline por bloques, con QA visual.
*/
:root {
  --blue: #0033A0;
  --blue-dark: #002278;
  --blue-tint: #EEF2FB;
  --black: #0A0A0A;
  --gray-dark: #2D2D2D;
  --gray-mid: #6B6B6B;
  --gray-light: #F4F5F7;
  --white: #FFFFFF;
  --border: #E2E5EC;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--gray-dark); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; object-fit: cover; }
.container { width: min(1200px, 92%); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; border: none; transition: all 0.22s var(--ease); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.lang-en { display: none; }
.lang-es { display: block; }
span.lang-en { display: none; }
span.lang-es { display: inline; }
[data-i18n] { transition: opacity 0.15s ease; }
.lang-fade [data-i18n] { opacity: 0; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--white); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.nav.scrolled { border-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo-text { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--blue); }
.nav__logo-block { background: var(--blue); color: var(--white); padding: 2px 9px; font-weight: 700; font-size: 1.05rem; margin-left: 4px; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-size: 0.875rem; font-weight: 500; color: var(--gray-mid); transition: color 0.2s; position: relative; }
.nav__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.25s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--blue); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-dark); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.lang-btn { padding: 5px 11px; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gray-mid); background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.lang-btn.active { background: var(--blue); color: var(--white); }
.lang-btn:hover:not(.active) { background: var(--blue-tint); color: var(--blue); }
.lang-sep { width: 1px; height: 18px; background: var(--border); }

.nav__mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 99; padding: 20px 24px 28px; flex-direction: column; gap: 4px; }
.nav__mobile.open { display: flex; }
.nav__mobile a { font-size: 0.95rem; font-weight: 500; color: var(--gray-dark); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; transition: color 0.2s; }
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover { color: var(--blue); }
.nav__mobile .nav__mobile-cta { margin-top: 16px; background: var(--blue); color: var(--white); padding: 14px 20px; text-align: center; font-weight: 700; font-size: 0.9rem; display: block; border-bottom: none; }
.nav__mobile .nav__mobile-cta:hover { background: var(--blue-dark); color: var(--white); }

.page-hero { padding: 144px 0 88px; min-height: 440px; background: var(--black); position: relative; overflow: hidden; display: flex; align-items: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.12; }
.page-hero .container { width: min(1180px, calc(100% - 48px)); }
.page-hero__inner { position: relative; z-index: 1; max-width: 980px; }
.page-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-hero__line { width: 32px; height: 2px; background: var(--blue); flex-shrink: 0; }
.page-hero__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.page-hero__title { font-family: var(--serif); max-width: 980px; min-height: calc(1.06em * 2); margin: 0 0 22px; font-size: clamp(2.45rem, 4vw, 3.35rem); font-weight: 700; color: var(--white); line-height: 1.06; letter-spacing: -0.035em; }
.page-hero__title .hero-line { display: block; color: var(--white); }
.page-hero__title .hero-accent { color: #a0b4e0; }
.page-hero__desc { max-width: 760px; min-height: calc(1.72em * 3); margin: 0; font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.72; color: rgba(255,255,255,0.70); font-weight: 300; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

.footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.07); padding: 64px 0 32px; color: rgba(255,255,255,0.55); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer__logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer__logo-text { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer__logo-block { background: var(--blue); color: var(--white); padding: 2px 8px; font-weight: 700; font-size: 1rem; margin-left: 4px; }
.footer__brand { font-size: 0.845rem; line-height: 1.75; font-weight: 300; }
.footer__col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 0.845rem; font-weight: 300; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.77rem; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-hero { padding: 124px 0 70px; min-height: 390px; }
  .page-hero__title { font-size: clamp(2.05rem, 7vw, 3rem); }
}

@media (max-width: 700px) {
  .page-hero { padding: 112px 0 58px; min-height: auto; }
  .page-hero .container { width: min(100% - 36px, 1180px); }
  .page-hero__eyebrow { margin-bottom: 18px; }
  .page-hero__title { min-height: 0; font-size: clamp(1.95rem, 10vw, 2.55rem); line-height: 1.08; margin-bottom: 18px; }
  .page-hero__desc { min-height: 0; font-size: 0.98rem; line-height: 1.68; }
}

@media (max-width: 600px) {
  .nav__inner { gap: 12px; }
  .nav__right { margin-left: auto; gap: 12px; }
  .lang-btn { padding: 5px 9px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}
