:root {
  --navy: #03236B;
  --navy-deep: #01184d;
  --navy-mid: #0a3080;
  --blue: #0A84FF;
  --blue-soft: #3a9bff;
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --gray-mid: #E8ECF2;
  --text: #0d1b3e;
  --text-muted: #4a5878;
  --gold: #C8A951;
  --gold-light: #e8c96a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--white); overflow-x: hidden; }

/* ─── SCROLL PROGRESS ─── */
#scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width .1s linear;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  padding: 20px 6%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s, box-shadow .4s;
}
nav.solid {
  background: rgba(3,35,107,0.97);
  padding: 14px 6%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy);
}
.nav-logo .logo-text { color: var(--white); font-size: 14px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.3; }
.nav-logo .logo-text span { display: block; font-size: 10px; font-weight: 300; letter-spacing: 2px; opacity: .7; }
.nav-cta {
  background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 10px 22px; border-radius: 4px; text-decoration: none;
  letter-spacing: .5px; transition: background .2s, transform .2s; border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero { min-height: 100vh; background: var(--navy-deep); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 45%, rgba(10,132,255,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 15% 85%, rgba(0,210,200,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(10,132,255,0.08) 0%, transparent 50%);
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: 0; }
.hero-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 0 6%; padding-top: 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,169,81,0.15); border: 1px solid rgba(200,169,81,0.35);
  color: var(--gold-light); font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.72); line-height: 1.75;
  margin-bottom: 40px; max-width: 520px;
  opacity: 0; animation: fadeUp .8s .6s forwards;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .8s forwards; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: var(--white);
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 16px 32px; border-radius: 6px; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s; letter-spacing: .3px;
}
.btn-primary:hover { background: var(--blue-soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,132,255,0.4); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(4px); }
.hero-stats { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s 1s forwards; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }
.hero-visual { position: relative; opacity: 0; animation: fadeLeft .9s .5s forwards; }
.hero-card { position: relative; z-index: 1; }
.hero-card {
  background: rgba(5,20,70,0.75); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(20px); border-radius: 16px; padding: 32px; color: var(--white);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.hero-card-header h3 { font-size: 15px; font-weight: 500; opacity: .8; }
.hero-card-badge { background: rgba(0,209,102,.15); border: 1px solid rgba(0,209,102,.3); color: #00d166; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.diagnostic-bar { margin-bottom: 18px; }
.diagnostic-bar label { font-size: 13px; opacity: .7; display: flex; justify-content: space-between; margin-bottom: 8px; }
.diagnostic-bar label span { font-weight: 600; opacity: 1; }
.bar-track { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; position: relative; }
.bar-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.6); border-radius: 3px; }
.hero-card-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.hero-card-footer .icon-wrap { width: 36px; height: 36px; border-radius: 8px; background: rgba(10,132,255,.2); display: flex; align-items: center; justify-content: center; }
.hero-card-footer p { font-size: 13px; opacity: .7; }
.hero-card-footer strong { display: block; font-size: 14px; opacity: 1; }
.hero-float-1, .hero-float-2 {
  position: absolute; background: rgba(5,20,70,0.82);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px);
  border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--white);
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.hero-float-1 { top: -20px; right: -20px; animation: float1 4s ease-in-out infinite; z-index: 10; }
.hero-float-2 { bottom: -20px; left: -20px; animation: float2 5s ease-in-out infinite; z-index: 10; }
.float-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--gray-mid); padding: 20px 6%; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.trust-item svg { color: var(--navy); flex-shrink: 0; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-mid); }

/* ─── AUTHORITY BAR ─── */
.authority-bar { background: var(--gray-light); border-bottom: 1px solid var(--gray-mid); padding: 16px 6%; }
.authority-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.authority-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-right: 8px; white-space: nowrap; }
.authority-badge { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--gray-mid); border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .5px; }
.authority-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ─── SECTION SHARED ─── */
section { padding: 96px 6%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--blue); }
h2.section-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 560px; }

/* ─── BENEFITS ─── */
.benefits { background: var(--gray-light); }
.benefits-header { margin-bottom: 60px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.benefit-card { background: var(--white); border-radius: 12px; border: 1px solid var(--gray-mid); padding: 36px 32px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.benefit-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(3,35,107,0.12); border-color: transparent; }
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #e8f0ff, #d0e4ff); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.benefit-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.benefit-card p { font-size: .95rem; color: var(--text-muted); line-height: 1.65; }
.benefit-number { position: absolute; top: 24px; right: 28px; font-family: var(--serif); font-size: 3.5rem; font-weight: 700; color: rgba(3,35,107,0.06); line-height: 1; pointer-events: none; }

/* ─── EVAL DETAIL ─── */
.eval-list { display: flex; flex-direction: column; gap: 20px; }
.eval-group { background: var(--gray-light); border-radius: 10px; padding: 18px 20px; border: 1px solid var(--gray-mid); }
.eval-group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy); margin-bottom: 12px; }
.eval-group-title svg { color: var(--blue); flex-shrink: 0; }

/* ─── SERVICES ─── */
.services-header { margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--gray-mid); border-radius: 16px; overflow: hidden; }
.service-block { padding: 40px 36px; border-right: 1px solid var(--gray-mid); border-bottom: 1px solid var(--gray-mid); transition: background .3s; cursor: default; }
.service-block:nth-child(2n) { border-right: none; }
@media (min-width: 900px) {
  .service-block:nth-child(2n) { border-right: 1px solid var(--gray-mid); }
  .service-block:last-child, .service-block:nth-child(3) { border-right: none; }
  .service-block:nth-child(3), .service-block:nth-child(4) { border-bottom: none; }
}
.service-block:last-child, .service-block:nth-child(3) { border-bottom: none; }
.service-block:hover { background: var(--navy); }
.service-block:hover .svc-title, .service-block:hover .svc-li { color: var(--white); }
.service-block:hover .svc-item::before { background: var(--gold); }
.service-block:hover .svc-icon { background: rgba(255,255,255,0.1); }
.service-block:hover .svc-icon svg { color: var(--gold); }
.svc-icon { width: 50px; height: 50px; border-radius: 10px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background .3s; }
.svc-icon svg { color: var(--navy); transition: color .3s; }
.svc-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 18px; transition: color .3s; letter-spacing: .3px; }
.svc-list { list-style: none; }
.svc-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); padding: 5px 0; transition: color .3s; }
.svc-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; transition: background .3s; }
.svc-li { transition: color .3s; }

/* ─── IMPACT ─── */
.impact { background: var(--navy); position: relative; overflow: hidden; text-align: center; }
.impact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10,132,255,0.15) 0%, transparent 70%); }
.impact-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; }
.impact .section-inner { position: relative; z-index: 2; max-width: 780px; }
.impact .section-label { color: var(--gold-light); justify-content: center; }
.impact .section-label::before { background: var(--gold); }
.impact h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.impact p { font-size: 1.1rem; color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 44px; }
.impact-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: 16px; padding: 18px 40px; border-radius: 6px; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; letter-spacing: .3px; }
.impact-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,169,81,0.35); }
.impact-btn svg { transition: transform .2s; }
.impact-btn:hover svg { transform: translateX(4px); }
.impact-metrics { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.impact-metric { text-align: center; }
.impact-metric .val { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.impact-metric .val span { color: var(--gold); }
.impact-metric .label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ─── CONFIANZA ─── */
.trust { background: var(--gray-light); }
.trust-header { text-align: center; margin-bottom: 60px; }
.trust-header .section-label { justify-content: center; }
.trust-header .section-sub { margin: 0 auto; text-align: center; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.pillar { text-align: center; padding: 40px 24px; background: var(--white); border-radius: 12px; border: 1px solid var(--gray-mid); transition: transform .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(3,35,107,0.1); }
.pillar-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #e8f0ff, #c8d8f8); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.pillar h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.pillar p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── FOOTER ─── */
footer { width: 100%; background: linear-gradient(180deg, #02163f 0%, #010b24 100%); position: relative; overflow: hidden; padding: 0; color: rgba(255,255,255,.7); }
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent); }
.footer-inner { max-width: 1280px; margin: auto; padding: 80px 24px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 32px; }
.footer-brand .brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-mark { width: 38px; height: 38px; border-radius: 7px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); }
.footer-brand .brand-name { color: var(--white); font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer-contact a { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 12px; transition: color .2s; }
.footer-contact a:hover { color: var(--white); }
.footer-contact a svg { flex-shrink: 0; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; text-decoration: none; color: rgba(255,255,255,.6); transition: background .2s, color .2s; }
.social-btn:hover { background: var(--blue); color: var(--white); border-color: transparent; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ─── ANIMATIONS ─── */
@keyframes orb1 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .35; }
  33% { transform: translate(40px,-30px) scale(1.1); opacity: .5; }
  66% { transform: translate(-20px,20px) scale(.9); opacity: .3; }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .25; }
  50% { transform: translate(-50px,30px) scale(1.15); opacity: .4; }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .2; }
  40% { transform: translate(30px,-40px) scale(1.2); opacity: .35; }
  80% { transform: translate(-15px,15px) scale(.85); opacity: .15; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(6px) rotate(-1deg); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: block; }
  .hero-float-1 { top: -14px; right: -10px; }
  .hero-float-2 { bottom: -14px; left: -10px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  #evaluacion-detalle .section-inner > div { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  section { padding: 72px 5%; }
  nav { padding: 16px 5%; }
  nav.solid { padding: 12px 5%; }
  .hero-content { padding-top: 80px; }
  .hero-card { padding: 22px 18px; }
  .hero-float-1, .hero-float-2 { padding: 10px 14px; font-size: 12px; }
  .hero-float-1 { top: -12px; right: -6px; }
  .hero-float-2 { bottom: -12px; left: -6px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-inner { gap: 24px; }
  .trust-dot { display: none; }
  .impact-metrics { gap: 36px; }
}
