:root {
  --blue: #032A91;
  --blue-600: #0a39b8;
  --blue-700: #052a91;
  --ink: #1d2530;
  --ink-soft: #4f5a68;
  --green: #A7DE14;
  --green-ink: #5c7a00;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e5e8ee;
  --shadow: 0 10px 30px rgba(16, 32, 70, .08);
  --shadow-sm: 0 4px 14px rgba(16, 32, 70, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; overflow-wrap: break-word; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:focus-visible { outline: 3px solid rgba(3, 42, 145, .35); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-block { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header[data-scrolled] { border-color: var(--line); background: rgba(255, 255, 255, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 86px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 68px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; }
.nav-menu a:not(.btn):hover { color: var(--blue); }
.nav-menu a.nav-cta { color: #fff; padding: .55rem 1.1rem; }

.ip-badge {
  display: flex; align-items: center; gap: .6rem; flex: none;
  padding: .45rem .9rem .45rem .65rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.ip-icon { width: 24px; height: 24px; color: var(--blue); flex: none; }
.ip-text { display: flex; flex-direction: column; line-height: 1.15; }
.ip-label { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.ip-value { font-size: .92rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.nav-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 75% at 10% 70%, rgba(167, 222, 20, .20), transparent 62%),
    radial-gradient(45% 60% at 92% 10%, rgba(111, 143, 255, .38), transparent 70%),
    linear-gradient(135deg, #021a5e 0%, #032a91 55%, #0b3fbf 100%);
}
.hero-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; padding-block: 5rem 5.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--green-ink); margin: 0 0 1rem; }
.hero .eyebrow { color: #c6f24a; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; color: #fff; }
.hero h1 span { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn-primary { background: var(--green); color: #021a5e; font-weight: 700; box-shadow: 0 12px 30px rgba(167, 222, 20, .28); }
.hero .btn-primary:hover { background: #bdf02e; }
.hero .btn-primary:focus-visible { outline-color: rgba(255, 255, 255, .7); }

.hero-art { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / .92; margin-inline: auto; }
.hero-ring {
  position: absolute; top: 0; right: 0; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--green), #2f58d8, #6f8fff, var(--green));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  opacity: .95;
}
.hero-dot { position: absolute; border-radius: 50%; }
.hero-dot-a { top: 9%; right: 9%; width: 20px; height: 20px; background: var(--green); box-shadow: 0 0 0 6px rgba(167, 222, 20, .25); }
.hero-dot-b { top: 64%; right: 1%; width: 13px; height: 13px; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); }
.hero-photo {
  position: absolute; left: 0; bottom: 0; width: 84%; height: auto; aspect-ratio: 640 / 425; object-fit: cover;
  border-radius: 22px; border: 6px solid rgba(255, 255, 255, .96); box-shadow: 0 30px 60px rgba(0, 8, 40, .45);
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head h2 span { color: var(--blue); }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 1.4rem; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  align-items: center; justify-content: center; color: var(--blue);
  background: linear-gradient(135deg, #e9f0ff, #dfeaff);
}
.card-icon svg { width: 26px; height: 26px; }
.ci-red { color: #d33a4b; background: linear-gradient(135deg, #ffe4e8, #ffd3da); }
.ci-cyan { color: #0a7ea4; background: linear-gradient(135deg, #d9f1fb, #c7e8f7); }
.ci-amber { color: #b9770a; background: linear-gradient(135deg, #fff1cf, #ffe7ad); }
.ci-violet { color: #6a3fd0; background: linear-gradient(135deg, #ece4ff, #ddd0ff); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-soft); margin: 0 0 1rem; font-size: .96rem; }
.card-more { font-weight: 600; color: var(--green-ink); font-size: .95rem; }
.card-more:hover { color: var(--blue); }
.card-more span { transition: transform .15s ease; display: inline-block; }
.card-more:hover span { transform: translateX(3px); }

.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.about-copy h2 span { color: var(--blue); }
.about-copy p { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.8rem; color: var(--blue); font-weight: 800; }
.facts span { font-size: .85rem; color: var(--ink-soft); }

.about-media { margin: 0; }
.about-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-media figcaption { margin-top: .75rem; text-align: center; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }

.marquee { display: flex; overflow: hidden; padding: .6rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track {
  display: flex; align-items: center; flex-shrink: 0; min-width: 100%;
  justify-content: space-around; gap: 3.5rem; padding-right: 3.5rem;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-logo { width: auto; height: 56px; object-fit: contain; transition: transform .2s ease; }
.brand-logo:hover { transform: scale(1.07); }
.bl-fortinet { height: 27px; }
.bl-lenovo { height: 36px; }
.bl-watchguard { height: 43px; }
.bl-mpl { height: 50px; }
.bl-cisco { height: 56px; }
.bl-vmware, .bl-ubiquiti, .bl-purestorage { height: 62px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.products { grid-template-columns: repeat(3, 1fr); }
.product {
  position: relative; min-height: 190px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.2rem; color: #fff; box-shadow: var(--shadow-sm);
  background: #1d2530 center/cover no-repeat; transition: transform .18s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product span { position: relative; z-index: 1; font-weight: 800; font-size: 1.1rem; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.85); letter-spacing: -.01em; }
.product::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(2,18,60,0) 45%, rgba(2,18,60,.78) 100%); }
.p-net { background-image: url(../assets/products/redes.jpg); }
.p-cloud { background-image: url(../assets/products/nube.jpg); }
.p-data { background-image: url(../assets/products/datacenter.jpg); }
.p-link { background-image: url(../assets/products/enlaces.jpg); }
.p-sec { background-image: url(../assets/products/seguridad.jpg); }
.p-cta { background: var(--surface); border: 1px dashed var(--line); color: var(--blue); align-items: center; justify-content: center; }
.p-cta::after { display: none; }
.p-cta a { font-weight: 800; font-size: 1.1rem; color: var(--blue); }
.p-cta a span { display: inline-block; color: inherit; text-shadow: none; font-size: inherit; transition: transform .15s ease; }
.p-cta a:hover span { transform: translateX(4px); }

.section-timeline { background: var(--surface); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.tl-item { position: relative; padding-top: 2.2rem; }
.tl-dot { position: absolute; top: 0; left: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); border: 5px solid var(--blue); box-shadow: 0 0 0 4px rgba(167, 222, 20, .35); }
.tl-item:first-child .tl-dot { border-color: var(--green); }
.tl-year { display: block; font-size: 1.35rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin-bottom: .35rem; }
.tl-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }


.offices { grid-template-columns: repeat(3, 1fr); }
.office {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.office h3 { color: var(--blue); font-size: 1.2rem; }
.office p { color: var(--ink-soft); font-size: .96rem; }
.office a { display: block; font-weight: 600; margin-top: .2rem; }
.office-entity { display: block; margin-top: .4rem; font-weight: 600; color: var(--ink); }

.section-cta { background: linear-gradient(135deg, #04256f, var(--blue)); color: #fff; }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.quote-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.quote-copy h2 span { color: var(--green); }
.quote-copy p { color: rgba(255, 255, 255, .85); }
.quote-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.quote-points li { position: relative; padding-left: 1.8rem; color: rgba(255,255,255,.92); }
.quote-points li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--green);
}

.quote-form {
  background: var(--surface); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .7rem .85rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3, 42, 145, .12);
}
.field textarea { resize: vertical; }
.field-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .9rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--green-ink); }
.form-status[data-state="error"] { color: #c0392b; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin: .8rem 0 0; }

.site-footer { background: var(--ink); color: #c7ced9; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand img { height: 42px; width: auto; margin-bottom: .8rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #9aa6b6; max-width: 34ch; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .footer-contact a { color: #c7ced9; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #8a96a6; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .timeline::before { display: none; }
  .tl-item { border-top: 3px solid var(--line); }
  .tl-dot { top: -12px; }
  .offices { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .hero-inner { gap: 2.5rem; padding-block: 3.5rem 4rem; }
  .about { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { height: auto; min-height: 86px; flex-wrap: wrap; gap: .4rem 1rem; padding-block: .5rem; }
  .ip-badge { display: flex; flex-basis: 100%; justify-content: center; padding-bottom: .25rem; }
  .ip-text { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: center; gap: .2rem .5rem; }
  .ip-value { overflow-wrap: anywhere; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch;
    gap: .2rem; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem 20px 1rem; box-shadow: var(--shadow); display: none;
  }
  .nav-menu[data-open] { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .7rem 0; }
  .nav-cta { text-align: center; margin-top: .4rem; }
  .cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 1.6rem; padding-left: 2rem; }
  .timeline::before { display: block; left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; background: linear-gradient(180deg, var(--green), var(--blue)); }
  .tl-item { border-top: 0; padding-top: 0; }
  .tl-dot { top: 2px; left: -2rem; }
  .hero-inner { padding-block: 2.5rem 3.2rem; gap: 2rem; }
  .hero-art { max-width: 330px; }
  .hero-ring { width: 82%; }
  .hero-photo { border-width: 4px; border-radius: 16px; }
  .header-inner { min-height: 72px; }
  html { scroll-padding-top: 125px; }
  .brand img { height: 54px; }
  .section { padding: 3.2rem 0; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .facts strong { font-size: 1.5rem; }
  .facts span { font-size: .78rem; }
  .brand-logo { transform: scale(.8); }
  .brand-logo:hover { transform: scale(.86); }
  .marquee-track { gap: 2.2rem; padding-right: 2.2rem; }
  .quote-form { padding: 1.3rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

.brand-link { display: inline-flex; align-items: center; }
.brand-link:focus-visible { outline: 3px solid rgba(3, 42, 145, .35); outline-offset: 4px; border-radius: 6px; }
