/* =========================================================
   Sitio público
   ========================================================= */
.lead { font-size: 1.16rem; color: var(--ink); line-height: 1.6; }
.muted { color: var(--muted); }
.muted-light { color: #B9C7D4; font-size: .95rem; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: block; position: relative; height: 62px; width: 168px; flex: none; transition: height .3s, width .3s; }
.nav.is-solid .nav__brand { height: 52px; width: 141px; }
.nav__brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.logo-dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: #E4ECF3; text-decoration: none; font-weight: 700; font-size: .97rem; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; color: #fff; }
.nav__toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav.is-solid { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 42, 68, .06); padding: 8px 0; }
.nav.is-solid .logo-dark { opacity: 1; }
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .nav__links a:not(.btn) { color: var(--navy); }
.nav.is-solid .nav__links a:not(.btn):hover { background: var(--bg); }
.nav.is-solid .nav__toggle { color: var(--navy); }
.nav.is-solid .nav__toggle:hover { background: var(--bg); }
.nav__links a.is-active:not(.btn) { color: var(--gold-l); }
.nav.is-solid .nav__links a.is-active:not(.btn) { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; padding: 150px 0 150px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; }
.orb--1 { width: 760px; height: 760px; right: -220px; top: -260px; background: radial-gradient(circle at 35% 35%, #1d4a73, var(--navy-2) 60%); }
.orb--2 { width: 520px; height: 520px; right: -120px; bottom: -260px; background: rgba(31, 122, 109, .45); filter: blur(2px); }
.orb--3 { width: 640px; height: 640px; left: -240px; bottom: -340px; background: var(--navy-2); }
.hills { position: absolute; left: -4%; bottom: -2px; width: 108%; max-width: none; height: 200px; }
.hill { transform-origin: center; }
.hill--1 { fill: rgba(31, 122, 109, .28); animation: drift 18s ease-in-out infinite alternate; }
.hill--2 { fill: rgba(127, 207, 195, .16); animation: drift 14s ease-in-out infinite alternate-reverse; }
.hill--3 { fill: #fff; }
@keyframes drift { to { transform: translateX(-40px) scaleY(1.06); } }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #C9D6E2; max-width: 34em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions--center { justify-content: center; }
.hero__visual { position: relative; min-height: 480px; }
.glass { position: relative; z-index: 1; margin: 58px 0 0 auto; width: min(100%, 420px); padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); box-shadow: var(--sh-3); }
.glass__top { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 12px; }
.glass__top b { display: block; font-size: 1.05rem; }
.glass__top span { font-size: .85rem; color: #A9B8C6; }
.glass__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glass__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 700; }
.glass__list em { margin-left: auto; font-style: normal; font-weight: 400; font-size: .85rem; color: var(--teal-l); }
.float { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--sh-3); font-size: .88rem; animation: bob 6s ease-in-out infinite; }
.float b { display: block; color: var(--navy); font-size: .95rem; }
.float span { color: var(--muted); }
.float .i { width: 22px; height: 22px; color: var(--teal); }
.float--1 { left: 0; top: 0; }
.float--2 { left: 0; bottom: 0; animation-delay: -2s; }
.float--2 .i { color: var(--gold); }
.float--3 { right: -12px; bottom: -22px; animation-delay: -4s; }
.float--3 .i { color: #128C7E; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: 70px 0 -210px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.stats div { padding: 26px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--navy); margin-bottom: 6px; }
.stats div:nth-child(2) dt { color: var(--teal); }
.stats div:nth-child(3) dt { color: var(--gold); }
.stats dd { margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }

/* ---------- Secciones genéricas ---------- */
.sec { padding: 110px 0; position: relative; }
#nosotros { padding-top: 190px; }
.sec--tint { background: var(--bg); }
.sec--dark { background: var(--navy); color: #fff; overflow: hidden; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lead { color: #C9D6E2; }
.sec h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.sec__head { max-width: 780px; margin-bottom: 52px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide { grid-template-columns: 1fr 1.05fr; }

/* Pilares */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pillar { display: flex; gap: 20px; align-items: center; padding: 24px 26px; border-radius: var(--r); background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.pillar:hover { transform: translateX(6px); background: #fff; box-shadow: var(--sh-2); }
.pillar h3 { font-size: 1.4rem; margin: 0 0 4px; }
.pillar p { margin: 0; color: var(--muted); }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: transparent; }
.service__n { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-size: 1.8rem; color: var(--gold); }
.service h3 { font-size: 1.35rem; margin: 22px 0 8px; }
.service p { color: var(--muted); flex: 1; }
.service__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.service__more .i { transition: transform .2s; }
.service__more:hover .i { transform: translateX(4px); }

/* Portal */
.feats { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 16px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; }
.feats b { display: block; color: var(--navy); }
.feats span { color: var(--muted); font-size: .97rem; }
.browser { margin: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; border: 1px solid var(--line); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.browser:hover { transform: none; }
.browser__bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; background: #EEF2F5; }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E5A09A; }
.browser__bar i:nth-child(2) { background: #E8CC8A; }
.browser__bar i:nth-child(3) { background: #9FD0A8; }
.browser__bar span { margin-left: 14px; font-size: .82rem; color: var(--muted); }
.browser__head { display: flex; gap: 12px; align-items: center; padding: 16px 22px; background: var(--navy); color: #fff; font-size: .95rem; }
.browser__body { padding: 24px 22px 18px; }
.browser__body h3 { font-size: 1.2rem; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acts li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.acts .i { width: 22px; height: 22px; color: var(--teal); }
.acts div { flex: 1; min-width: 0; }
.acts b { display: block; color: var(--navy); }
.acts div span { font-size: .85rem; color: var(--muted); }
.browser figcaption { font-size: .8rem; font-style: italic; color: var(--muted-2); text-align: right; padding: 0 22px 16px; }

/* Secciones temáticas */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic { padding: 30px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.topic:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.topic h3 { font-size: 1.35rem; margin: 20px 0 8px; }
.topic p { color: var(--muted); margin: 0; }

/* Flujo PQRS */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.flow::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; border-top: 2px dashed var(--line); z-index: -1; }
.flow li { text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow .badge-ic { width: 58px; height: 58px; box-shadow: 0 0 0 8px #fff; }
.flow__n { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-top: 12px; }
.flow h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.flow p { color: var(--muted); font-size: .95rem; margin: 0; }
.band { display: flex; gap: 12px; align-items: center; margin: 48px 0 0; padding: 18px 22px; background: var(--teal-bg); color: var(--navy); border-radius: var(--r); font-weight: 700; }
.band .i { width: 22px; height: 22px; color: var(--teal); }

/* WhatsApp */
.wa-feats { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wa-feats li { display: flex; gap: 14px; align-items: flex-start; }
.wa-feats b { display: block; }
.wa-feats span { color: #A9B8C6; font-size: .93rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.phone { justify-self: center; position: relative; }
.phone__screen { width: 320px; border-radius: 40px; background: #ECE5DD; border: 12px solid var(--navy-3); box-shadow: 0 0 0 2px #3A5673, var(--sh-3); overflow: hidden; min-height: 470px; }
.phone__head { display: flex; gap: 10px; align-items: center; padding: 22px 16px 12px; background: #075E54; color: #fff; }
.phone__head b { display: block; font-size: .98rem; }
.phone__head span { font-size: .8rem; opacity: .85; }
.phone__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.phone__chat { padding: 18px 14px; display: grid; gap: 12px; }
.msg { position: relative; margin: 0; max-width: 88%; padding: 10px 12px 18px; background: #fff; color: var(--ink); border-radius: 0 12px 12px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: .93rem; line-height: 1.4; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: .7rem; color: var(--muted-2); }
.phone__cap { text-align: center; font-size: .8rem; font-style: italic; color: #A9B8C6; margin-top: 12px; }
.js .phone .msg { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .phone.is-in .msg { opacity: 1; transform: none; }
.js .phone.is-in .msg:nth-child(2) { transition-delay: .5s; }
.js .phone.is-in .msg:nth-child(3) { transition-delay: 1s; }

/* Informe */
.report { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.report__stat { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 40px 36px; position: relative; overflow: hidden; }
.report__stat::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: var(--navy-2); }
.report__stat > * { position: relative; z-index: 1; }
.report__n { display: block; font-family: var(--serif); font-size: 6.5rem; line-height: 1; color: var(--gold-l); }
.report__stat b { display: block; font-size: 1.4rem; margin: 6px 0 12px; }
.report__stat p { color: #C9D6E2; }
.channels { list-style: none; margin: 26px 0 0; padding: 22px 0 0; display: flex; gap: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.channels li { display: flex; gap: 8px; align-items: center; color: #DCE6EF; font-weight: 700; }
.channels .i { color: var(--teal-l); }
.report__h { font-size: 1.4rem; }
.contents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contents li { display: flex; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--bg); }
.contents .i { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.contents b { display: block; color: var(--navy); }
.contents span { color: var(--muted); font-size: .94rem; }

/* Ecosistema */
.result { display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); margin-top: 28px; }
.result b { color: var(--navy); font-family: var(--serif); font-size: 1.15rem; }
.result p { margin: 4px 0 0; color: var(--muted); }
.hub { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines circle { fill: none; stroke: #B7C4CF; stroke-width: 1.5; stroke-dasharray: 5 6; }
.hub__lines line { stroke: #B7C4CF; stroke-width: 2; }
.hub__center { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: var(--sh-2); display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--navy); }
.hub__node { position: absolute; display: grid; justify-items: center; gap: 4px; text-align: center; transform: translate(-50%, -50%); }
.hub__node b { color: var(--navy); }
.hub__node > span:last-child { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.hub__node .badge-ic { width: 64px; height: 64px; box-shadow: 0 0 0 8px var(--bg); }
.hub__node--t { left: 50%; top: 15%; }
.hub__node--r { left: 85%; top: 50%; }
.hub__node--b { left: 50%; top: 85%; }
.hub__node--l { left: 15%; top: 50%; }

/* Plan */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; right: 14px; top: 38px; height: 3px; background: var(--line); }
.timeline > li { position: relative; padding-top: 64px; display: flex; flex-direction: column; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.timeline__last::before { background: var(--gold) !important; box-shadow: 0 0 0 2px var(--gold) !important; }
.timeline__when { position: absolute; top: 0; left: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.timeline__last .timeline__when { color: var(--gold); }
.timeline h3 { font-size: 1.25rem; }
.timeline > li > ul { flex: 1; margin: 0; padding: 22px 22px 22px 40px; background: var(--bg); border-radius: var(--r); color: var(--ink); }
.timeline > li > ul li { margin-bottom: 6px; }
.timeline > li > ul li::marker { color: var(--teal); }

/* Cierre */
.closing { position: relative; background: var(--navy); color: #fff; padding: 120px 0; text-align: center; overflow: hidden; isolation: isolate; }
.closing__in { display: grid; justify-items: center; }
.closing__sym { margin-bottom: 26px; }
.closing h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.closing p { color: #C9D6E2; font-size: 1.15rem; margin-bottom: 34px; }

/* Pie */
.footer { background: var(--navy-3); color: #A9B8C6; padding: 54px 0 40px; }
.footer__in { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.footer__in > img { height: 64px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer nav a { color: #DCE6EF; text-decoration: none; font-weight: 700; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; line-height: 1.8; }
.footer__sec { display: inline-flex; gap: 8px; align-items: center; }
.footer__sec .i { color: var(--teal-l); }

/* Animaciones de entrada */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 920px) {
  .nav__toggle { display: inline-grid; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); flex-direction: column; align-items: stretch; gap: 4px; padding: 88px 20px 24px; background: #fff; box-shadow: var(--sh-3); transform: translateX(105%); transition: transform .35s var(--ease); }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { color: var(--navy); padding: 14px 12px; font-size: 1.05rem; }
  .nav__links a:not(.btn):hover { background: var(--bg); color: var(--navy); }
  .nav__cta { margin: 14px 0 0; }
  .nav__toggle { position: relative; z-index: 2; }
  .nav.menu-open .nav__toggle { color: var(--navy); }
  .split, .split--wide, .report { grid-template-columns: 1fr; gap: 44px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 20px; bottom: 20px; left: 28px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .flow li { display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; text-align: left; align-items: start; padding-bottom: 22px; }
  .flow .badge-ic { grid-row: span 3; }
  .flow__n { margin: 0; font-size: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .browser { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 120px 0 130px; }
  .sec { padding: 80px 0; }
  #nosotros { padding-top: 220px; }
  .services, .topics, .contents, .wa-feats, .timeline { grid-template-columns: 1fr; }
  .float--3 { display: none; }
  .float--2 { left: auto; right: 0; }
  .hero__visual { min-height: 460px; }
  .glass { margin-top: 64px; }
  .phone__screen { width: min(300px, 82vw); min-height: 500px; }
  .channels { gap: 16px; flex-wrap: wrap; }
  .report__n { font-size: 5rem; }
  .footer__in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .hub__node .badge-ic { width: 52px; height: 52px; }
  .hub__center b { font-size: .85rem; }
  .hub__center img { width: 40px; height: 40px; }
}
