:root {
  --blue: #171d8f;
  --blue-dark: #0d145c;
  --blue-deep: #080d45;
  --blue-bright: #2c34c8;
  --ink: #171b2e;
  --muted: #6b7083;
  --line: #dfe2ee;
  --soft: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(13, 20, 92, .12);
  --shadow-soft: 0 12px 32px rgba(13, 20, 92, .09);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); z-index: 999; background: var(--white); color: var(--blue-dark); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-soft); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23,29,143,.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 36px rgba(13,20,92,.09); background: rgba(255,255,255,.97); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { width: 142px; flex: 0 0 auto; }
.brand img { width: 100%; height: 66px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { position: relative; padding: 12px 14px; color: #353a54; font-size: .92rem; letter-spacing: .02em; font-weight: 700; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: #eef0ff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--blue-dark); transition: .25s ease; }

.hero { position: relative; min-height: 730px; display: grid; align-items: center; padding: 78px 0 82px; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #f8f8fd 50%, #f2f3ff 100%); }
.hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(44,52,200,.08), transparent 31%), linear-gradient(120deg, transparent 0 60%, rgba(23,29,143,.03) 60% 61%, transparent 61%); pointer-events:none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .55; }
.hero-glow-one { width: 420px; height: 420px; background: rgba(44,52,200,.08); top: -180px; right: -80px; }
.hero-glow-two { width: 250px; height: 250px; background: rgba(149,154,210,.12); bottom: -110px; left: 6%; }
.hero-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 58px; }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 4px; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 5.5vw, 5.25rem); line-height: .94; letter-spacing: -.045em; }
.hero-role { margin: 20px 0 0; color: var(--blue); font-size: 1.13rem; font-weight: 800; letter-spacing: .15em; }
.hero-line { margin: 25px 0 0; max-width: 620px; color: #4c516a; font-size: .94rem; font-weight: 700; letter-spacing: .07em; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; font-size: .9rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; box-shadow: 0 12px 28px rgba(23,29,143,.22); }
.btn-secondary { background: #fff; border-color: #d7daf1; color: var(--blue-dark); }
.text-link { color: var(--blue); font-weight: 800; font-size: .9rem; padding: 12px 8px; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-contact-strip { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e0e2ed; }
.hero-contact-strip a { display: flex; gap: 7px; color: #393e57; font-size: .86rem; font-weight: 700; }
.hero-contact-strip span { color: var(--blue); }

.hero-visual { position: relative; min-width: 0; }
.portrait-frame { position: relative; width: min(100%, 690px); margin-left: auto; padding: 10px; border: 1px solid rgba(23,29,143,.2); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.portrait-frame::before { content:""; position:absolute; inset:18px; z-index:-1; border: 1px solid rgba(23,29,143,.18); filter: blur(7px); }
.portrait-frame img { width: 100%; height: auto; object-fit: contain; }
.portrait-halo { position:absolute; inset:8% -4% -8% 17%; z-index:-2; border-radius:50%; background:radial-gradient(circle, rgba(23,29,143,.17), rgba(23,29,143,0) 68%); filter:blur(14px); }
.floating-card { position: absolute; left: -34px; bottom: 26px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 16px 38px rgba(13,20,92,.24); border: 1px solid rgba(255,255,255,.18); }
.floating-card span { font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.floating-card strong { font-size: .72rem; letter-spacing: .08em; }

.identity-band { position: relative; color: #fff; background: linear-gradient(100deg, var(--blue-deep), var(--blue) 56%, #252dcc); overflow: hidden; }
.identity-band::after { content:""; position:absolute; width:300px; height:300px; border:1px solid rgba(255,255,255,.13); border-radius:50%; right:-100px; top:-100px; }
.identity-content { min-height: 138px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.identity-mark { width: 66px; height: 66px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.55); border-radius:50%; font-family:Georgia,serif; font-size:1.8rem; }
.identity-content p { margin:0 0 4px; font-weight:900; letter-spacing:.08em; }
.identity-content span { display:block; color:rgba(255,255,255,.75); font-size:.72rem; letter-spacing:.08em; }
.identity-content > strong { font-family:Georgia,serif; font-size:1.25rem; letter-spacing:.08em; }

.section-heading { max-width: 700px; margin-bottom: 44px; }
.section-heading.centered { margin-inline:auto; text-align:center; }
.section-heading h2, .products-intro h2, .advisor-copy h2 { margin: 10px 0 0; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.04; letter-spacing: -.025em; }
.section-heading p { margin:12px 0 0; color:var(--muted); }
.heading-rule { width: 74px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--blue), transparent); }
.centered .heading-rule { margin-inline:auto; }

.services { background: #fff; }
.service-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.service-card { position:relative; min-height: 180px; padding: 28px; border:1px solid #e3e5ef; background:linear-gradient(160deg,#fff 0%,#fbfbff 100%); box-shadow:0 8px 26px rgba(13,20,92,.045); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow:hidden; }
.service-card::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:3px; background:linear-gradient(90deg,var(--blue),#7f85e8); transform:scaleX(.18); transform-origin:left; transition:transform .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color:#c8cbed; box-shadow:var(--shadow-soft); }
.service-card:hover::after { transform:scaleX(1); }
.service-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:24px; border:1px solid #d8dbf4; color:var(--blue); background:#f2f3ff; font-size:.75rem; font-weight:900; }
.service-card h3 { margin:0; color:#252a44; font-size:1.04rem; line-height:1.45; }

.motto { display:flex; align-items:center; gap:22px; color:#fff; background:linear-gradient(135deg,#101773,#171d8f); padding:26px 0; overflow:hidden; }
.motto-line { flex:1; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.5)); }
.motto-line:last-child { transform:scaleX(-1); }
.motto-content { width:auto; display:flex; align-items:center; justify-content:center; gap:28px; white-space:nowrap; font-size:.82rem; font-weight:900; letter-spacing:.18em; }
.motto-content i { width:5px; height:5px; background:rgba(255,255,255,.72); border-radius:50%; }

.products { background: linear-gradient(180deg, #f7f8fc 0%, #fff 100%); }
.products-layout { display:grid; grid-template-columns:.68fr 1.32fr; gap:60px; align-items:start; }
.products-intro { position:sticky; top:130px; }
.products-intro h2 { max-width:420px; }
.products-kicker { margin-top:28px; color:#71768b; font-size:.8rem; letter-spacing:.12em; font-weight:800; }
.product-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.product-card { min-height:118px; display:flex; align-items:center; gap:20px; padding:22px 24px; border:1px solid #e0e3ed; background:#fff; box-shadow:0 8px 20px rgba(13,20,92,.04); transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.product-card:hover { transform:translateY(-4px); border-color:#bfc3e8; box-shadow:var(--shadow-soft); }
.product-card span { flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center; color:var(--blue); border:1px solid #d7daf3; background:#f4f5ff; font-size:.72rem; font-weight:900; }
.product-card h3 { margin:0; font-size:.99rem; line-height:1.35; }
.product-featured { grid-column:1 / -1; color:#fff; background:linear-gradient(135deg,var(--blue-dark),var(--blue)); border-color:transparent; }
.product-featured span { color:#fff; border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.08); }

.advisor-section { padding: 90px 0; color:#fff; background:linear-gradient(118deg,#0a104e 0%,#171d8f 52%,#292fd0 100%); position:relative; overflow:hidden; }
.advisor-section::before, .advisor-section::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.advisor-section::before { width:420px; height:420px; right:-160px; top:-180px; }
.advisor-section::after { width:220px; height:220px; left:34%; bottom:-130px; }
.advisor-grid { position:relative; z-index:1; display:grid; grid-template-columns:.75fr 1.25fr; gap:60px; align-items:center; }
.advisor-logo-card { background:#fff; padding:26px; box-shadow:0 24px 55px rgba(0,0,0,.22); }
.advisor-logo-card img { width:100%; max-height:300px; object-fit:contain; }
.advisor-copy .eyebrow { color:#d8dbff; }
.advisor-copy h2 { color:#fff; }
.advisor-tag { margin-top:22px; color:rgba(255,255,255,.75); font-size:.85rem; letter-spacing:.13em; font-weight:800; }
.advisor-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn-light { background:#fff; color:var(--blue-dark); }
.btn-outline-light { color:#fff; border-color:rgba(255,255,255,.38); background:rgba(255,255,255,.03); }

.contact { background:#fff; }
.contact-layout { display:grid; grid-template-columns:1.08fr .92fr; gap:22px; margin-top:48px; }
.contact-card { color:#fff; background:linear-gradient(135deg,#0c1258,#171d8f 60%,#3037d6); padding:34px; box-shadow:var(--shadow); }
.contact-card-top { display:flex; align-items:center; gap:14px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.16); }
.contact-monogram { width:52px; height:52px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.42); font-family:Georgia,serif; font-size:1.45rem; }
.contact-card-top strong { display:block; letter-spacing:.08em; }
.contact-card-top small { display:block; color:rgba(255,255,255,.68); margin-top:2px; letter-spacing:.12em; }
.contact-items { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
.contact-item { display:block; padding:16px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.055); transition:background .2s ease, transform .2s ease; min-width:0; }
.contact-item:hover { background:rgba(255,255,255,.1); transform:translateY(-2px); }
.contact-label { display:block; margin-bottom:5px; color:#c5c8ff; font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; }
.contact-item strong { font-size:.9rem; overflow-wrap:anywhere; }
.address-card { margin:0; padding:34px; display:flex; gap:20px; border:1px solid #e1e4ee; background:#f7f8fc; font-style:normal; box-shadow:0 10px 28px rgba(13,20,92,.05); }
.address-icon { flex:0 0 auto; width:58px; height:58px; display:grid; place-items:center; color:var(--blue); background:#fff; border:1px solid #dfe2f2; }
.address-card span { display:block; color:var(--blue); font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.14em; }
.address-card strong { display:block; margin-top:12px; color:#242944; font-size:1.05rem; }
.address-card p { margin:8px 0 0; color:#64697c; }

.footer { background:#0a0e3a; color:#fff; }
.footer-grid { min-height:190px; display:grid; grid-template-columns:.8fr 1fr 1fr; align-items:center; gap:36px; }
.footer-brand { width:150px; background:#fff; padding:10px; }
.footer-brand img { width:100%; height:90px; object-fit:contain; }
.footer-center strong { display:block; letter-spacing:.09em; }
.footer-center span { display:block; margin-top:5px; color:#b9bce1; font-size:.8rem; letter-spacing:.12em; }
.footer-contact { display:grid; justify-items:end; gap:5px; color:#d8daf2; font-size:.86rem; }
.footer-contact a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.09); color:#8589b5; padding:18px 0; font-size:.72rem; letter-spacing:.12em; }

.floating-actions { position:fixed; right:22px; bottom:24px; z-index:80; display:grid; gap:10px; }
.floating-actions a, .back-to-top { width:48px; height:48px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--blue),var(--blue-bright)); border:1px solid rgba(255,255,255,.15); box-shadow:0 10px 28px rgba(13,20,92,.26); cursor:pointer; transition:transform .2s ease, opacity .2s ease; }
.floating-actions a:hover, .back-to-top:hover { transform:translateY(-3px); }
.back-to-top { position:fixed; right:22px; bottom:138px; z-index:80; border-radius:0; font-size:1.2rem; opacity:0; pointer-events:none; }
.back-to-top.visible { opacity:1; pointer-events:auto; }

/* Contenido visible por defecto: evita una página en blanco si JavaScript no carga. */
.reveal { opacity:1; transform:none; }
.reveal.revealed { opacity:1; transform:none; }
.reveal-delay { transition-delay:.12s; }

/* Animación segura: decorativa, nunca oculta contenido esencial. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual, .section-heading, .identity-content {
    animation: entrada-suave .65s ease both;
  }
  .hero-visual { animation-delay:.08s; }
}
@keyframes entrada-suave {
  from { opacity:.72; transform:translateY(10px); }
  to { opacity:1; transform:none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns:1fr; gap:48px; }
  .hero { min-height:auto; padding-top:62px; }
  .hero-copy { max-width:760px; }
  .hero-visual { max-width:780px; margin-inline:auto; }
  .floating-card { left:18px; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .products-layout { grid-template-columns:1fr; gap:34px; }
  .products-intro { position:static; }
  .products-intro h2 { max-width:700px; }
  .advisor-grid { grid-template-columns:1fr 1fr; gap:34px; }
  .contact-layout { grid-template-columns:1fr; }
  .identity-content > strong { display:none; }
  .footer-grid { grid-template-columns:1fr 1fr; padding:34px 0; }
  .footer-contact { grid-column:1 / -1; justify-items:start; }
}

@media (max-width: 760px) {
  .container { width:min(calc(100% - 28px), var(--container)); }
  .section { padding:82px 0; }
  .nav-wrap { min-height:74px; }
  .brand { width:118px; }
  .brand img { height:54px; }
  .menu-toggle { display:block; position:relative; z-index:102; }
  .menu-toggle.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity:0; }
  .menu-toggle.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .main-nav { position:fixed; inset:74px 14px auto 14px; display:grid; gap:4px; padding:16px; background:rgba(255,255,255,.98); border:1px solid #e2e4ee; box-shadow:var(--shadow); transform:translateY(-14px); opacity:0; pointer-events:none; transition:.22s ease; }
  .main-nav.open { transform:none; opacity:1; pointer-events:auto; }
  .main-nav a { padding:13px 14px; border-radius:10px; }
  .hero { padding:50px 0 60px; }
  .hero h1 { font-size:clamp(2.5rem, 14vw, 4rem); }
  .hero-line { line-height:1.7; }
  .hero-actions .btn { flex:1 1 135px; }
  .text-link { width:100%; padding-left:0; }
  .hero-contact-strip { display:grid; gap:10px; }
  .portrait-frame { padding:6px; }
  .floating-card { position:relative; left:auto; bottom:auto; margin:-1px 0 0; justify-content:center; }
  .identity-content { min-height:124px; grid-template-columns:auto 1fr; gap:16px; }
  .identity-mark { width:54px; height:54px; }
  .identity-content span { font-size:.65rem; line-height:1.5; }
  .service-grid, .product-grid { grid-template-columns:1fr; }
  .product-featured { grid-column:auto; }
  .motto { gap:12px; }
  .motto-content { gap:13px; font-size:.65rem; letter-spacing:.12em; }
  .motto-line { min-width:18px; }
  .advisor-grid { grid-template-columns:1fr; }
  .advisor-logo-card { max-width:460px; }
  .contact-items { grid-template-columns:1fr; }
  .contact-card, .address-card { padding:24px; }
  .footer-grid { grid-template-columns:1fr; gap:22px; }
  .footer-contact { grid-column:auto; }
  .floating-actions { right:14px; bottom:16px; }
  .back-to-top { right:14px; bottom:126px; }
}

@media (max-width: 460px) {
  .hero-role { font-size:.95rem; }
  .hero-line { font-size:.82rem; }
  .identity-mark { display:none; }
  .identity-content { grid-template-columns:1fr; text-align:center; }
  .motto-content { gap:10px; font-size:.59rem; }
  .motto-content i { width:4px; height:4px; }
  .service-card { min-height:150px; padding:24px; }
  .product-card { min-height:102px; padding:18px; }
  .advisor-actions .btn { width:100%; }
}

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