/* ==========================================================
   INFOSYS - Informática Servicios y Sistemas
   Colores tomados del logo: azul #0973BA, gris #999999
   ========================================================== */
:root {
  --blue: #0973ba;
  --blue-light: #2f9be6;
  --cyan: #38c6f4;
  --gray: #999999;
  --ink: #0f1b2a;
  --text: #3b4a5c;
  --muted: #6b7a8c;
  --bg: #ffffff;
  --soft: #f3f6fa;
  --line: #e2e8f0;
  --navy: #07111f;
  --navy-2: #0c1b2f;
  --navy-line: rgba(255, 255, 255, .09);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 42, .08);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.eyebrow {
  font: 600 .78rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 14px;
}
.accent { background: linear-gradient(90deg, var(--blue-light), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-body);
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: #0a64a3; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(9, 115, 186, .3); }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 500px at 80% -10%, rgba(9, 115, 186, .45), transparent 60%), var(--navy);
  color: #c8d3e0;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(110deg, transparent 35%, #000 90%);
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 90%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan); }
.lead { font-size: 1.15rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__panel, .code {
  background: rgba(12, 27, 47, .85);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--navy-line); font: .78rem/1 ui-monospace, Consolas, monospace; color: #7f90a5; }
.panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3b52; }
.panel__bar i:first-child { background: var(--blue); }
.panel__bar span { margin-left: 8px; }
.panel__list { list-style: none; margin: 0; padding: 10px 0; font: .92rem/1.4 ui-monospace, Consolas, monospace; }
.panel__list li { display: flex; align-items: center; gap: 14px; padding: 11px 18px; color: #dbe4ee; }
.panel__list li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.panel__list b { color: var(--blue-light); font-weight: 600; }
.panel__list em { margin-left: auto; font-style: normal; font-size: .75rem; color: #4ade80; border: 1px solid rgba(74, 222, 128, .35); padding: 2px 8px; border-radius: 20px; }
.panel__status { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--navy-line); font-size: .85rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(56, 198, 244, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(56, 198, 244, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 198, 244, 0); } }

/* Secciones */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #c8d3e0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--cyan); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(9, 115, 186, .35); }
.card p { font-size: .95rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(9, 115, 186, .12), rgba(56, 198, 244, .12));
  margin-bottom: 18px;
}
.card__icon svg, .contact svg, .wa-float svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.ticks li { position: relative; padding-left: 20px; margin: 6px 0; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 32px; }
.chips li { font: 500 .85rem/1 ui-monospace, Consolas, monospace; color: #dbe4ee; padding: 8px 12px; border: 1px solid var(--navy-line); border-radius: 8px; background: rgba(255, 255, 255, .04); }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: .92rem/1.7 ui-monospace, Consolas, monospace; color: #dbe4ee; }
.code .k { color: #60a5fa; } .code .t { color: #5eead4; } .code .s { color: #fbbf24; } .code .c { color: #6b7d93; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--soft); }
.steps li span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 700 1rem/1 var(--font-head); margin-bottom: 16px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -20px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--gray) 0 4px, transparent 4px 8px); }
.steps p { font-size: .95rem; margin: 0; }

/* Clientes */
.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.clients li {
  display: grid; place-items: center; text-align: center; min-height: 92px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font: 600 .95rem/1.3 var(--font-head); color: var(--ink);
  transition: color .2s, border-color .2s;
}
.clients li:hover { color: var(--blue); border-color: rgba(9, 115, 186, .4); }

/* Contacto */
.split--contact { align-items: start; }
.contact { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--navy-line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.contact svg { stroke: var(--cyan); flex: none; }
.contact small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #7f90a5; }
.contact a, .contact span { color: #fff; font-weight: 500; }
.contact a:hover { color: var(--cyan); }

.form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form h3 { color: var(--ink); margin-bottom: 18px; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--soft);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form .btn--ghost { color: var(--blue); border-color: var(--line); }
.form .btn--ghost:hover { background: var(--soft); }
.form__error { color: #c62828; font-size: .88rem; margin: 10px 0 0; min-height: 1.2em; }

/* Footer */
.footer { background: var(--navy); border-top: 1px solid var(--navy-line); color: #7f90a5; padding: 36px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { height: 56px; width: auto; }
.footer p { margin: 0; }
.footer a { color: #c8d3e0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { stroke: #fff; width: 28px; height: 28px; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}

/* Responsivo */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .hero__inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li { min-height: 76px; font-size: .88rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .form { padding: 24px 20px; }
  .form__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}
