:root {
  color-scheme: light;
  --ink: #10213b;
  --ink-soft: #52627a;
  --navy: #10213b;
  --blue: #315ee8;
  --blue-dark: #244bc8;
  --mint: #75d9c6;
  --paper: #f5f8fc;
  --white: #fff;
  --line: #dce4ef;
  --pale: #eaf0fa;
  --font: "Manrope", Arial, sans-serif;
  --mono: "Roboto Mono", monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 12px 16px; background: var(--navy); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; background: rgb(255 255 255 / 94%); border-bottom: 1px solid rgb(220 228 239 / 85%); backdrop-filter: blur(14px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-logo-slot { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; }
.brand-logo-slot > img { display: none; }
.brand-logo-slot.has-image > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-logo-slot.has-image .brand-mark { display: none; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: end; gap: 3px; padding: 5px; border-radius: 9px; background: var(--navy); }
.brand-mark i { display: block; width: 5px; border-radius: 4px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 15px; opacity: .86; }
.brand-mark i:nth-child(3) { height: 21px; }
.brand-name { color: var(--navy); font-weight: 800; font-size: 18px; letter-spacing: -.06em; }
.brand-name span { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 29px); }
.nav-link { color: #52627a; font-size: 12px; font-weight: 700; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--blue); }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 8px 22px rgb(49 94 232 / 18%); }
.button-primary:hover { background: var(--blue-dark); }
.button-dark { color: white; background: var(--navy); }
.button-dark:hover { background: #1d365d; }
.button-small { min-height: 40px; padding-inline: 16px; font-size: 12px; }
.button-outline { color: var(--navy); background: transparent; border-color: #9eacc0; }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 13px; font-weight: 800; }
.text-link span, .card-link span { transition: transform .2s ease; }
.text-link:hover span, .card-link:hover span { transform: translateX(4px); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; background: var(--paper); }
.section-grid { background-image: linear-gradient(rgb(49 94 232 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(49 94 232 / 4%) 1px, transparent 1px); background-size: 38px 38px; background-position: center top; }
.hero::before { position: absolute; width: 540px; height: 540px; right: -150px; top: -230px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgb(117 217 198 / 22%), transparent 68%); pointer-events: none; }
.hero-layout { min-height: 650px; padding-block: 76px 80px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 96px); position: relative; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--blue); font: 600 10px/1.4 var(--mono); letter-spacing: .095em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #23ae92; box-shadow: 0 0 0 5px rgb(35 174 146 / 12%); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 20px; color: var(--navy); font-size: clamp(42px, 5.2vw, 66px); font-weight: 800; letter-spacing: -.065em; line-height: 1.08; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 550px; margin-bottom: 29px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero-points { margin-top: 43px; padding-top: 21px; display: flex; flex-wrap: wrap; gap: 17px 22px; border-top: 1px solid var(--line); color: #596a81; font-size: 10px; font-weight: 700; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.point-icon { color: var(--blue); font: 500 9px var(--mono); }

.hero-visual { min-width: 0; position: relative; padding: 20px; border: 1px solid #d5deeb; border-radius: 14px; background: rgb(255 255 255 / 91%); box-shadow: 0 24px 70px rgb(16 33 59 / 10%); }
.visual-topline, .visual-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #718099; font: 500 9px var(--mono); letter-spacing: .075em; }
.visual-live { display: inline-flex; align-items: center; gap: 6px; color: #168a76; }
.visual-live i { width: 6px; height: 6px; border-radius: 50%; background: #2eb99b; box-shadow: 0 0 0 4px rgb(46 185 155 / 12%); }
.visual-stage { min-height: 340px; margin-block: 16px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-around; border-radius: 9px; background: linear-gradient(135deg, #f3f6fc, #fff 55%, #edf8f6); }
.visual-stage::before, .visual-stage::after { position: absolute; content: ""; border: 1px solid rgb(49 94 232 / 12%); border-radius: 50%; }
.visual-stage::before { width: 255px; height: 255px; }
.visual-stage::after { width: 185px; height: 185px; border-color: rgb(28 164 139 / 15%); }
.visual-orbit { position: absolute; border: 1px dashed rgb(49 94 232 / 22%); border-radius: 50%; animation: orbit 28s linear infinite; }
.orbit-one { width: 315px; height: 315px; }
.orbit-two { width: 390px; height: 390px; animation-duration: 40s; animation-direction: reverse; }
.visual-node { position: relative; z-index: 2; width: 116px; min-height: 122px; padding: 13px 11px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid #dce4ef; border-radius: 10px; background: white; box-shadow: 0 8px 22px rgb(16 33 59 / 7%); }
.visual-node small { margin: 11px 0 5px; color: #728098; font: 500 7px var(--mono); letter-spacing: .07em; }
.visual-node strong { color: var(--navy); font-size: 10px; line-height: 1.45; }
.node-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue); border-radius: 7px; background: #edf2ff; font-size: 15px; }
.node-core { width: 128px; min-height: 146px; align-items: center; text-align: center; border-color: rgb(49 94 232 / 30%); box-shadow: 0 12px 34px rgb(49 94 232 / 14%); }
.core-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: white; border-radius: 11px; background: var(--navy); font: 600 14px var(--mono); }
.node-core small { color: var(--blue); }
.flow-line { height: 1px; flex: 1 1 14px; position: relative; z-index: 1; max-width: 42px; background: #a9b8cd; }
.flow-line i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: flow 2.4s ease-in-out infinite; }
.flow-two i { animation-delay: 1.2s; }
.stage-caption { position: absolute; bottom: 15px; color: #8290a4; font: 500 8px var(--mono); letter-spacing: .07em; }
.visual-index { color: var(--blue); }
.image-slot { position: relative; overflow: hidden; }
.hero-image-slot { min-height: 1px; margin-top: 13px; }
.hero-image-slot > img { display: none; }
.image-placeholder { min-height: 46px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #77869c; border: 1px dashed #bfcbdb; border-radius: 7px; background: #f9fbfe; font-size: 9px; }
.image-placeholder code { color: #8391a5; font: 400 8px var(--mono); }
.image-slot.has-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-slot.has-image .image-placeholder { display: none; }

.section-pad { padding-block: 104px; }
.section-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.eyebrow-plain { margin-bottom: 15px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 46px); line-height: 1.13; letter-spacing: -.055em; }
.section-heading > p { max-width: 370px; margin: 0 0 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 290px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px; background: white; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #b8c8e5; box-shadow: 0 18px 38px rgb(16 33 59 / 8%); }
.service-card-featured { background: #f3f6fc; border-color: #d4deee; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #6d7e96; font: 500 8px var(--mono); letter-spacing: .06em; }
.line-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); border-radius: 9px; background: #edf2ff; font: 600 17px var(--mono); }
.service-card h3 { margin: 27px 0 10px; color: var(--navy); font-size: 21px; letter-spacing: -.04em; }
.service-card > p { margin-bottom: 25px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.card-link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--blue); border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; }

.projects { background: var(--paper); border-block: 1px solid #e7edf5; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgb(16 33 59 / 9%); }
.project-image { height: 205px; display: block; background: linear-gradient(135deg, #e7eefb, #f4f7fc 48%, #e2f4f0); }
.project-image > img { display: none; }
.project-image .image-placeholder { position: absolute; inset: 0; min-height: 0; justify-content: center; flex-direction: column; border: 0; border-radius: 0; background: transparent; color: #647692; font-size: 11px; }
.project-image .image-placeholder code { font-size: 8px; }
.project-image.has-image .image-placeholder { display: none; }
.project-number { position: absolute; top: 13px; left: 13px; padding: 6px 8px; color: var(--navy); border: 1px solid rgb(255 255 255 / 70%); border-radius: 5px; background: rgb(255 255 255 / 85%); font: 500 9px var(--mono); }
.project-copy { min-height: 220px; padding: 20px; display: flex; flex-direction: column; }
.project-type { margin-bottom: 8px; color: var(--blue); font: 500 8px var(--mono); letter-spacing: .08em; }
.project-copy h3 { margin-bottom: 8px; color: var(--navy); font-size: 20px; letter-spacing: -.04em; }
.project-copy > p:not(.project-type) { margin-bottom: 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.projects-footer { margin-top: 35px; text-align: center; }

.process-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; list-style: none; }
.process-item { min-height: 232px; padding: 21px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.process-item:hover { transform: translateY(-4px); border-color: #b8c8e5; box-shadow: 0 16px 34px rgb(16 33 59 / 8%); }
.process-index { width: 35px; height: 35px; display: grid; place-items: center; color: var(--blue); border-radius: 9px; background: #edf2ff; font: 500 10px var(--mono); }
.process-item h3 { max-width: 220px; margin: 0 0 9px; color: var(--navy); font-size: 15px; line-height: 1.4; letter-spacing: -.025em; }
.process-item p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.75; }
.process-symbol { position: absolute; top: 24px; right: 21px; color: #a4b4ca; font: 500 16px var(--mono); transition: color .2s ease, transform .2s ease; }
.process-item:hover .process-symbol { color: var(--blue); transform: translateX(3px); }

.support-band { padding-block: 61px; color: white; background: var(--navy); }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.eyebrow-light { color: var(--mint); }
.support-inner h2 { max-width: 700px; margin-bottom: 10px; color: white; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.05em; }
.support-inner p:not(.eyebrow) { max-width: 620px; margin: 0; color: #c2ccda; font-size: 12px; line-height: 1.7; }
.button-light { color: var(--navy); background: white; white-space: nowrap; }
.button-light:hover { background: #eaf0fa; }

.closing { padding-block: 92px; }
.closing-panel { position: relative; overflow: hidden; padding: 62px 40px; color: white; border-radius: 14px; background: radial-gradient(circle at 87% 7%, rgb(49 94 232 / 45%), transparent 32%), var(--navy); text-align: center; }
.closing-panel::before { position: absolute; inset: 0; content: ""; opacity: .18; background-image: linear-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg, transparent, black); pointer-events: none; }
.closing-panel > * { position: relative; }
.closing-mark { width: 40px; height: 40px; margin: 0 auto 24px; display: flex; align-items: end; justify-content: center; gap: 4px; padding: 7px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 11px; }
.closing-mark span { width: 5px; border-radius: 4px; background: var(--mint); }
.closing-mark span:nth-child(1) { height: 12px; opacity: .7; }.closing-mark span:nth-child(2) { height: 18px; opacity: .85; }.closing-mark span:nth-child(3) { height: 24px; }
.closing-panel .eyebrow { justify-content: center; margin-bottom: 14px; }
.closing-panel h2 { margin-bottom: 13px; color: white; font-size: clamp(30px, 4vw, 45px); line-height: 1.14; letter-spacing: -.055em; }
.closing-panel > p:not(.eyebrow) { margin-bottom: 23px; color: #c2ccda; font-size: 13px; }
.button-light-text { color: var(--navy); background: white; }

.site-footer { color: #d5deeb; background: #0b192e; }
.footer-main { padding-block: 53px 42px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand-footer .brand-name { color: white; }.brand-footer .brand-name span { color: var(--mint); }
.brand-footer .brand-logo-slot { width: 34px; height: 34px; flex-basis: 34px; }
.footer-brand > p { margin: 15px 0 0; color: #aab7ca; font-size: 11px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { margin-bottom: 4px; color: var(--mint); font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { color: #c2ccda; font-size: 10px; transition: color .2s ease; }
.footer-column a:hover { color: white; }
.footer-bottom { padding-block: 17px 21px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgb(255 255 255 / 12%); color: #93a2b8; font: 400 9px var(--mono); }

.reveal { opacity: 0; transform: translateY(17px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.65,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes flow { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(36px); opacity: 0; } }

@media (max-width: 1000px) {
  .main-nav { gap: 13px; }.nav-link { font-size: 10px; }.nav-cta { padding-inline: 12px; }
  .hero-layout { grid-template-columns: 1fr .9fr; gap: 35px; }.hero-visual { padding: 15px; }.visual-node { width: 98px; }.node-core { width: 112px; }
  .service-card { padding: 20px; }.card-meta { font-size: 7px; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }.wrap { width: min(100% - 36px, var(--wrap)); }
  .header-inner { height: 68px; }.brand-mark { width: 29px; height: 29px; }.brand-name { font-size: 17px; }
  .menu-toggle { width: 42px; height: 42px; padding: 12px 9px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
  .menu-toggle span { height: 2px; width: 100%; background: var(--navy); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; top: 67px; left: 0; right: 0; padding: 15px 18px 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 15px 24px rgb(16 33 59 / 8%); }
  .main-nav.is-open { display: flex; }.nav-link { padding: 13px 4px; border-bottom: 1px solid #edf1f6; font-size: 12px; }.nav-cta { margin-top: 14px; }
  .hero-layout { min-height: 0; padding-block: 63px 52px; grid-template-columns: 1fr; gap: 46px; }
  h1 { max-width: 610px; font-size: clamp(39px, 10vw, 57px); }.hero-lead { font-size: 14px; }.hero-points { margin-top: 30px; gap: 12px 16px; font-size: 9px; }
  .hero-visual { width: min(100%, 500px); margin-inline: auto; }.visual-stage { min-height: 300px; }.visual-node { width: 104px; }.node-core { width: 114px; }.orbit-one { width: 270px; height: 270px; }.orbit-two { width: 340px; height: 340px; }
  .section-pad { padding-block: 73px; }.section-heading { margin-bottom: 30px; flex-direction: column; align-items: flex-start; gap: 13px; }.section-heading h2 { font-size: 34px; }.section-heading > p { max-width: 500px; font-size: 12px; }
  .service-grid, .project-grid { grid-template-columns: 1fr; gap: 13px; }.service-card { min-height: 245px; padding: 23px; }.service-card h3 { margin-top: 21px; }.project-card { display: grid; grid-template-columns: .9fr 1.1fr; }.project-image { height: 100%; min-height: 220px; }.project-copy { min-height: 220px; padding: 17px; }.project-copy h3 { font-size: 18px; }
  .process-list { grid-template-columns: 1fr; gap: 10px; }.process-item { min-height: 0; padding: 18px; gap: 12px; }.process-item h3 { font-size: 13px; }.process-item p { font-size: 10px; }.process-symbol { top: 20px; right: 18px; font-size: 15px; }
  .support-inner { align-items: flex-start; flex-direction: column; gap: 23px; }.support-band { padding-block: 45px; }.support-inner h2 { font-size: 27px; }
  .closing { padding-block: 65px; }.closing-panel { padding: 47px 22px; }.closing-panel h2 { font-size: 31px; }
  .footer-main { grid-template-columns: 1.4fr 1fr; gap: 32px 18px; }.footer-brand { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; }
}
@media (max-width: 430px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }.hero-actions .button { width: 100%; }.hero-visual { padding: 12px; }.visual-topline, .visual-bottom { font-size: 7px; }.visual-node { width: 88px; min-height: 112px; padding: 10px 8px; }.visual-node strong { font-size: 9px; }.node-core { width: 100px; min-height: 130px; }.flow-line { max-width: 23px; }.stage-caption { font-size: 7px; }.orbit-one { width: 235px; height: 235px; }.orbit-two { width: 300px; height: 300px; }
  .project-card { display: flex; }.project-image { height: 185px; min-height: 0; }.project-copy { min-height: 200px; }.footer-main { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mostrar el isotipo CSS cuando no hay archivo de logo */
.brand-logo-slot:not(.has-image) > img { display: none !important; }
.brand-logo-slot:not(.has-image) .brand-mark {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.brand-logo-image { display:block; width:180px; height:auto; object-fit:contain; }
.brand-logo-footer-image { filter:none; background:#fff; padding:4px 8px; border-radius:5px; }

@media (max-width:760px) { .brand-logo-image { width:155px; } }

.brand-isotipo-image { width:34px; height:34px; display:block; object-fit:contain; border-radius:7px; background:#fff; }
