/* ITInnovaSoft — estilos del sitio
   VOICE: cercana y clara, de empresa de software que habla con dueños de negocio.
   IDEA: el anillo de cuatro colores como hilo conductor; cada especialidad tiene su color.
   PICTURE: el símbolo grande en el inicio, rodeado de las cuatro especialidades.
   COLOUR: grafito y blanco como campos, los cuatro colores del anillo como acentos.
   TYPE / LAYOUT: Sora en todo; bandas a todo lo ancho, contenido a 1200px, una columna en celular. */

@font-face { font-family: 'Sora'; src: url('../fonts/Sora-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --grafito: #1C1C1E; --grafito2: #2A2A2E; --blanco: #FFFFFF; --gris: #F4F4F5;
  --tinta: #18181B; --suave: #52525B; --suave-d: #B4B4BC;
  --azul: #4285F4; --azul-osc: #1A63D6; --rojo: #EA4335; --amarillo: #FBBC05; --verde: #34A853;
  --radio: 18px; --sombra: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 17px/1.6 'Sora', system-ui, sans-serif; color: var(--tinta); background: var(--blanco); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(5vw, 18px); }
.band { padding: clamp(64px, 8vw, 112px) 0; }
.intro { color: var(--suave); font-weight: 300; font-size: 19px; max-width: 640px; margin-top: 14px; }
.oscuro { background: var(--grafito); color: var(--blanco); }
.oscuro .intro { color: var(--suave-d); }
.gris { background: var(--gris); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--azul-osc); color: #fff; font: 600 16px 'Sora', sans-serif; text-decoration: none; border: 2px solid var(--azul-osc);
  cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #1453B8; border-color: #1453B8; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-linea { background: transparent; border-color: rgb(255 255 255 / .5); }
.btn-linea:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid #E4E4E7; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca img { height: 32px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--suave); padding: 10px 0; }
.menu a:not(.btn):hover { color: var(--tinta); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--tinta); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Inicio */
.hero { background: var(--grafito); color: #fff; position: relative; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.tag { font-weight: 500; color: var(--suave-d); font-size: 16px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; }
.lead { font-size: 19px; font-weight: 300; color: #D4D4D8; margin-top: 22px; max-width: 540px; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-pic { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.anillo { position: absolute; inset: 14%; width: 72%; height: 72%; animation: entra 1s ease-out both; }
.chip { position: absolute; padding: 10px 16px; border-radius: 999px; background: var(--grafito2); border: 1px solid #3F3F46;
  font-size: 14px; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.c1 { --c: var(--azul); top: 6%; left: 0; }
.c2 { --c: var(--rojo); top: 6%; right: 0; }
.c3 { --c: var(--amarillo); bottom: 6%; right: 0; }
.c4 { --c: var(--verde); bottom: 6%; left: 0; }
.barra { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.barra i:nth-child(1) { background: var(--azul); } .barra i:nth-child(2) { background: var(--rojo); }
.barra i:nth-child(3) { background: var(--amarillo); } .barra i:nth-child(4) { background: var(--verde); }
@keyframes entra { from { opacity: 0; transform: rotate(-40deg) scale(.9); } }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.serv { background: var(--gris); border-radius: var(--radio); padding: 30px 26px; }
.serv::before { content: ''; display: block; width: 44px; height: 44px; border-radius: 50%; border: 7px solid var(--c); margin-bottom: 22px; }
.serv p { color: var(--suave); font-size: 15.5px; margin-top: 10px; }
.s1 { --c: var(--azul); } .s2 { --c: var(--rojo); } .s3 { --c: var(--amarillo); } .s4 { --c: var(--verde); }

/* Sistemas */
.sistemas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.sis { background: var(--grafito2); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #3F3F46; }
.sis-logo { height: 200px; display: grid; place-items: center; padding: 28px; }
.sis-logo img { max-width: 100%; max-height: 144px; width: auto; height: auto; object-fit: contain; }
.l-itf { background: #111827; } .l-itf img { width: 280px; max-height: none; }
.sis-lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.sis-lista li { color: var(--suave-d); font-size: 15.5px; padding-left: 18px; position: relative; }
.sis-lista li b { color: #fff; font-weight: 600; }
.sis-lista li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.sis-lista li:nth-child(2)::before { background: var(--verde); }
.sis-txt .sis-lista + .btn { margin-top: 12px; }
.l-sim { background: #FFFFFF; }
.l-kom { background: #0F172A; }
.sis-txt { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sis-cat { font-weight: 600; font-size: 19px; }
.sis-txt p:not(.sis-cat) { color: var(--suave-d); font-size: 15.5px; flex: 1; }
.sis-txt p:has(+ .sis-lista) { flex: none; }
.sis-txt .btn { align-self: flex-start; margin-top: 8px; }

/* Proyectos */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.galeria figure { margin: 0; background: var(--gris); border-radius: var(--radio); overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.galeria figcaption { padding: 14px 18px; font-weight: 500; font-size: 15px; }

/* Clientes */
.logos { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.logos li { background: #fff; border-radius: 14px; height: 150px; display: grid; place-items: center; padding: 18px; box-shadow: var(--sombra); }
.logos img { max-height: 112px; width: auto; max-width: 100%; object-fit: contain; }

/* Nosotros */
.nos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.valores li { padding: 20px 22px 20px 58px; background: var(--gris); border-radius: 14px; position: relative; color: var(--suave); }
.valores li b { color: var(--tinta); }
.valores li::before { content: ''; position: absolute; left: 22px; top: 24px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--c); }
.valores li:nth-child(1) { --c: var(--azul); } .valores li:nth-child(2) { --c: var(--rojo); }
.valores li:nth-child(3) { --c: var(--amarillo); } .valores li:nth-child(4) { --c: var(--verde); }

/* Contacto */
.contacto { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.dato { display: block; margin-top: 22px; font-size: 20px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dato span { display: block; font-size: 14px; font-weight: 400; color: var(--suave-d); }
.dato:hover { color: var(--amarillo); }
.form { background: #fff; color: var(--tinta); border-radius: var(--radio); padding: clamp(22px, 3vw, 36px); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.campos label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.campos .full { grid-column: 1 / -1; }
input, select, textarea { font: 16px 'Sora', sans-serif; padding: 12px 14px; border: 1.5px solid #D4D4D8; border-radius: 10px; background: #fff; color: var(--tinta); width: 100%; min-height: 48px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); }
.trampa { position: absolute !important; left: -9999px; }
.aviso, .estado { font-size: 15px; font-weight: 500; }
.aviso { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.ok { background: #E6F4EA; color: #1E6B34; } .err { background: #FCE8E6; color: #A50E0E; }
.estado { margin-top: 14px; }
.estado.ok, .estado.err { padding: 12px 16px; border-radius: 10px; }

/* Pie */
.pie { background: #111113; color: #D4D4D8; padding: 44px 0; font-size: 15px; }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie img { height: 28px; width: auto; }
.pie a { color: #fff; }
.copy { width: 100%; color: #A1A1AA; font-size: 14px; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #1E8E3E; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px rgb(0 0 0 / .25); }
.wa-flotante svg { width: 24px; height: 24px; }
.wa-flotante:hover { background: #17783A; }

/* Tabletas */
@media (max-width: 980px) {
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sistemas { grid-template-columns: 1fr; }
  .sis { flex-direction: row; } .sis-logo { width: 40%; height: auto; min-height: 200px; }
  .nos, .contacto { grid-template-columns: 1fr; gap: 36px; }
}
/* Menú en celular */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(5vw, 18px) 20px; border-bottom: 1px solid #E4E4E7; display: none; }
  .menu.abierto { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid #F4F4F5; }
  .menu .btn { margin-top: 14px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-pic { max-width: 380px; }
}
/* Celulares */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .servicios, .campos { grid-template-columns: 1fr; }
  .sis { flex-direction: column; } .sis-logo { width: auto; height: 170px; min-height: 0; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { height: 104px; padding: 12px; } .logos img { max-height: 76px; }
  .chip { font-size: 12.5px; padding: 8px 12px; }
  .wa-flotante span { display: none; } .wa-flotante { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .anillo { animation: none; } }
@media (max-width: 600px) { .sis-logo img { max-height: 114px; } .l-itf img { width: 240px; max-height: none; } }
