/* ========================================================= */
/* VARIABLES GLOBALES */
/* Paleta Lecasse, medidas base y tokens reutilizables */
/* ========================================================= */

:root {
  --cyan: #009fda;
  --cyan-dark: #007fb4;
  --cyan-soft: #e8f7fc;
  --graphite: #57575a;
  --graphite-dark: #2f3338;
  --ink: #15202b;
  --muted: #66717f;
  --line: #d9e4eb;
  --panel: #ffffff;
  --panel-soft: #f5f9fb;
  --blue-deep: #0a3d62;
  --green: #68bd45;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 49, 67, 0.12);
  --radius: 8px;
  --section: clamp(42px, 5.2vw, 72px);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

/* ========================================================= */
/* RESET GENERAL */
/* Normalización base para todo el sitio */
/* ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 46%, #ffffff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================================= */
/* CONTENEDORES Y UTILIDADES */
/* Reglas compartidas para ancho, botones, animaciones y layout */
/* ========================================================= */

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ========================================================= */
/* HEADER / NAVBAR */
/* Barra superior fija con logo, navegación y CTA */
/* ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(217, 228, 235, 0.78);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition:
    box-shadow 240ms ease,
    border-color 240ms ease,
    min-height 240ms ease,
    padding 240ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  min-height: 72px;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 159, 218, 0.2);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 159, 218, 0.2);
  box-shadow:
    0 14px 36px rgba(18, 49, 67, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
}

.brand img {
  width: clamp(220px, 21vw, 300px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(18, 49, 67, 0.08));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--graphite-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--cyan-dark);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--cyan);
}

.nav-cta {
  padding: 12px 17px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--white);
  box-shadow:
    0 14px 28px rgba(0, 159, 218, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nav-cta:hover,
.nav-cta.is-active {
  color: var(--white);
  background: var(--cyan-dark);
  box-shadow:
    0 16px 32px rgba(0, 159, 218, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nav-cta.is-active::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite-dark);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

/* ========================================================= */
/* HERO / LANDING INICIAL */
/* Portada principal con mensaje comercial e imagen de data center */
/* ========================================================= */

.hero {
  position: relative;
  min-height: calc(100svh - 80px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #0a2638;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0 0 0;
  z-index: -2;
  overflow: hidden;
  background: #0a2638;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(1.12) contrast(1.08) brightness(0.82);
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(0, 159, 218, 0.02) 50%, rgba(2, 20, 35, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(3, 22, 35, 0.26));
  pointer-events: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.91) 30%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0.18) 64%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(5, 27, 42, 0.16));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  align-items: start;
  min-height: calc(100svh - 236px);
  padding-top: clamp(10px, 2.7vw, 32px);
  padding-bottom: 148px;
}

.hero-copy {
  max-width: 600px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2,
.vendor-panel h2 {
  margin: 0;
  color: var(--graphite-dark);
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading h2,
.contact-copy h2,
.vendor-panel h2 {
  font-size: clamp(1.95rem, 3.05vw, 2.72rem);
}

.hero-lead {
  max-width: 540px;
  margin: 22px 0 0;
  color: #536477;
  font-size: clamp(0.96rem, 1.08vw, 1.04rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(0, 159, 218, 0.24);
}

.button-secondary {
  border-color: rgba(0, 159, 218, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--graphite-dark);
  box-shadow: 0 14px 28px rgba(17, 37, 54, 0.08);
}

/* ========================================================= */
/* FRANJA DE ESPECIALIDADES */
/* Resumen horizontal de capacidades clave */
/* ========================================================= */

.proof-strip {
  background: transparent;
}

.hero-proof {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 2;
  padding: 0 0 22px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.proof-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(217, 228, 235, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--graphite);
  box-shadow: 0 18px 44px rgba(17, 37, 54, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 159, 218, 0.55);
  box-shadow: 0 24px 54px rgba(17, 37, 54, 0.16);
}

.proof-card svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--cyan-dark);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.proof-card span {
  display: grid;
  gap: 4px;
}

.proof-card strong {
  color: var(--graphite-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.proof-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ========================================================= */
/* SECCIONES GENERALES */
/* Espaciado, encabezados y layouts reutilizables */
/* ========================================================= */

.section {
  padding: var(--section) 0;
}

.about-section,
.cloud-section,
.tech-section {
  background: var(--panel-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 4.5vw, 58px);
  align-items: center;
}

.about-section .split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
  min-height: 300px;
}

.about-section .section-heading {
  max-width: 570px;
  align-self: center;
  justify-self: start;
}

.about-section .text-stack {
  max-width: 600px;
  align-self: center;
  justify-self: end;
}

.section-heading h2,
.contact-copy h2,
.vendor-panel h2 {
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.08;
}

.section-heading p:not(.section-kicker),
.text-stack p,
.contact-copy p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.section-heading.narrow {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.tech-heading {
  max-width: 980px;
}

.tech-heading h2 {
  white-space: nowrap;
}

.text-stack p {
  margin: 0 0 18px;
}

/* ========================================================= */
/* SERVICIOS / STORAGE / IBM / OPEN SOURCE */
/* Grids de tarjetas para capacidades y soluciones */
/* ========================================================= */

.services-section,
.ibm-section,
.opensource-section {
  background: var(--white);
}

.opensource-heading {
  max-width: 1040px;
}

.opensource-heading h2 {
  white-space: nowrap;
}

.highlighted-section,
.security-section,
.contact-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 159, 218, 0.12), transparent 30%),
    linear-gradient(180deg, #f5fbfe 0%, #ffffff 100%);
}

.service-grid,
.feature-grid,
.ibm-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.feature-card,
.vendor-panel,
.security-grid div,
.contact-form {
  border: 1px solid rgba(181, 211, 227, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 254, 0.94));
  box-shadow:
    0 18px 48px rgba(18, 49, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.service-card,
.feature-card {
  min-height: 198px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.vendor-panel,
.security-grid div {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.feature-card::before,
.vendor-panel::before,
.security-grid div::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 159, 218, 0.15), var(--cyan) 26%, var(--cyan-dark));
  box-shadow: 8px 0 24px rgba(0, 159, 218, 0.1);
}

.service-card::after,
.feature-card::after,
.vendor-panel::after,
.security-grid div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    linear-gradient(90deg, var(--cyan-dark), var(--cyan) 34%, rgba(0, 159, 218, 0.08));
  box-shadow: 0 -8px 24px rgba(0, 159, 218, 0.08);
}

.service-symbol {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border-radius: 8px;
  border: 1px solid rgba(0, 159, 218, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 247, 252, 0.9));
  color: var(--cyan-dark);
  box-shadow: 0 12px 28px rgba(18, 49, 67, 0.08);
  position: relative;
}

.service-card > span:not(.service-symbol) {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  padding: 0 10px;
  border: 1px solid rgba(0, 159, 218, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 247, 252, 0.9));
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 49, 67, 0.08);
}

.service-symbol::before,
.service-symbol::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: var(--cyan);
}

.symbol-infrastructure::before {
  width: 24px;
  height: 4px;
  top: 15px;
  left: 11px;
  box-shadow: 0 8px 0 var(--cyan), 0 16px 0 var(--cyan);
}

.symbol-infrastructure::after {
  width: 4px;
  height: 24px;
  top: 11px;
  left: 21px;
  opacity: 0.5;
}

.symbol-operations::before {
  width: 24px;
  height: 24px;
  inset: 11px;
  border: 4px solid var(--cyan);
  background: transparent;
  border-radius: 50%;
}

.symbol-operations::after {
  width: 8px;
  height: 8px;
  inset: 19px;
  border-radius: 50%;
}

.symbol-virtualization::before {
  width: 26px;
  height: 16px;
  left: 10px;
  top: 18px;
  border: 3px solid var(--cyan);
  background: transparent;
  border-radius: 8px;
}

.symbol-virtualization::after {
  width: 18px;
  height: 3px;
  left: 14px;
  top: 23px;
  box-shadow: 0 6px 0 var(--cyan);
}

.symbol-database::before {
  width: 24px;
  height: 10px;
  left: 11px;
  top: 12px;
  border-radius: 50%;
}

.symbol-database::after {
  width: 24px;
  height: 20px;
  left: 11px;
  top: 17px;
  border: 3px solid var(--cyan);
  border-top: 0;
  background: transparent;
  border-radius: 0 0 12px 12px;
}

.service-card h3,
.feature-card h3,
.security-grid h3 {
  margin: 0 auto 12px;
  color: var(--graphite-dark);
  font-size: 1.08rem;
  max-width: 240px;
}

.service-card p,
.feature-card p,
.security-grid p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.62;
  max-width: 260px;
}

.feature-card {
  min-height: 184px;
}

.feature-card.primary {
  background:
    linear-gradient(135deg, rgba(0, 159, 218, 0.96), rgba(0, 127, 180, 0.96)),
    var(--cyan);
  box-shadow:
    0 22px 56px rgba(0, 159, 218, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.feature-card.primary h3,
.feature-card.primary p {
  color: var(--white);
}

.feature-card.primary::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.82));
  box-shadow: 8px 0 24px rgba(255, 255, 255, 0.12);
}

.feature-card.primary::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  box-shadow: 0 -8px 24px rgba(255, 255, 255, 0.12);
}

.highlighted-section .section-heading {
  max-width: 1040px;
}

.highlighted-section .section-heading p:not(.section-kicker) {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.95rem;
}

/* ========================================================= */
/* CLOUD Y MODERNIZACIÓN */
/* Lista de plataformas cloud y migraciones */
/* ========================================================= */

.platform-list {
  display: grid;
  gap: 12px;
}

.platform-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.platform-list strong {
  color: var(--graphite-dark);
  font-size: 1.05rem;
}

.platform-list span {
  color: var(--muted);
  line-height: 1.55;
}

/* ========================================================= */
/* MICROSOFT Y ORACLE */
/* Paneles corporativos con listas técnicas */
/* ========================================================= */

.two-column-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.vendor-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(124px, auto) 1fr;
  padding: clamp(28px, 3.2vw, 36px);
  overflow: hidden;
  text-align: center;
}

.vendor-panel .section-kicker {
  margin-bottom: 14px;
}

.vendor-panel h2 {
  align-self: start;
  max-width: 500px;
  margin-inline: auto;
}

.vendor-panel ul {
  display: grid;
  gap: 13px;
  align-self: start;
  width: min(100%, 510px);
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  text-align: left;
}

.vendor-panel li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.vendor-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 159, 218, 0.1);
}

/* ========================================================= */
/* CIBERSEGURIDAD */
/* Matriz de capacidades de seguridad y cumplimiento */
/* ========================================================= */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-grid div {
  padding: 22px;
}

.security-grid div:last-child {
  grid-column: 1 / -1;
  border-color: rgba(0, 159, 218, 0.28);
  background: var(--cyan-soft);
}

/* ========================================================= */
/* TECNOLOGÍAS */
/* Stack tecnológico y fabricantes */
/* ========================================================= */

.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-grid span {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 24px 22px;
  border: 1px solid rgba(174, 207, 224, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 159, 218, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 253, 0.94));
  color: var(--graphite-dark);
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(18, 49, 67, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.tech-grid span img {
  width: min(70%, 176px);
  max-height: 58px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(18, 49, 67, 0.1));
}

.tech-grid span small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tech-grid span::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(232, 247, 252, 0.34));
}

.tech-grid span:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 159, 218, 0.34);
  box-shadow:
    0 24px 56px rgba(18, 49, 67, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.brand-ibm-power {
  --brand-bg: url("assets/brand-ibm-power.svg");
}

.brand-ibm-storage {
  --brand-bg: url("assets/brand-ibm-storage.svg");
}

.brand-azure {
  --brand-bg: url("assets/brand-azure.svg");
}

.brand-microsoft {
  --brand-bg: url("assets/brand-microsoft.svg");
}

.brand-oracle {
  --brand-bg: url("assets/brand-oracle.svg");
}

.brand-vmware {
  --brand-bg: url("assets/brand-vmware.svg");
}

.brand-hyperv {
  --brand-bg: url("assets/brand-hyperv.svg");
}

.brand-kvm {
  --brand-bg: url("assets/brand-kvm.svg");
}

.brand-redhat {
  --brand-bg: url("assets/brand-redhat.svg");
}

.brand-kubernetes {
  --brand-bg: url("assets/brand-kubernetes.svg");
}

.brand-ansible {
  --brand-bg: url("assets/brand-ansible.svg");
}

.brand-zabbix {
  --brand-bg: url("assets/brand-zabbix.svg");
}

.brand-grafana {
  --brand-bg: url("assets/brand-grafana.svg");
}

.brand-elk {
  --brand-bg: url("assets/brand-elk.svg");
}

.brand-nifi {
  --brand-bg: url("assets/brand-nifi.svg");
}

.brand-spark {
  --brand-bg: url("assets/brand-spark.svg");
}

/* ========================================================= */
/* CONTACTO */
/* Formulario corporativo e información de contacto */
/* ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--graphite-dark);
  font-weight: 800;
}

.contact-details a:hover {
  color: var(--cyan-dark);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--graphite-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--graphite-dark);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 159, 218, 0.12);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--cyan-dark);
  font-weight: 800;
}

/* ========================================================= */
/* FOOTER */
/* Cierre institucional */
/* ========================================================= */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(260px, auto) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer-contact {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.35;
}

.footer-contact strong {
  color: var(--graphite-dark);
  font-size: 0.92rem;
}

.footer-contact a {
  color: var(--cyan-dark);
  font-weight: 700;
}

.footer-link {
  color: var(--cyan-dark);
  font-weight: 800;
  justify-self: end;
}

/* ========================================================= */
/* ANIMACIONES */
/* Aparición progresiva de elementos */
/* ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================= */
/* RESPONSIVE */
/* Ajustes para tablets y móviles */
/* ========================================================= */

@media (max-width: 1120px) {
  .main-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-bottom: 176px;
  }

  .hero-media {
    bottom: 146px;
  }

  .service-grid,
  .feature-grid,
  .ibm-grid,
  .tech-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-heading h2 {
    white-space: normal;
  }

  .opensource-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 82px 14px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 13px 12px;
    border-radius: 8px;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    inset: 0;
    opacity: 0.68;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 54%, rgba(255, 255, 255, 0.7) 100%);
  }

  .hero-grid {
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .hero-proof {
    position: relative;
    padding: 0 0 18px;
  }

  .split-layout,
  .two-column-cards,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-section .split-layout {
    min-height: auto;
    text-align: center;
  }

  .about-section .section-heading,
  .about-section .text-stack {
    max-width: 720px;
    justify-self: center;
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
  }

  .footer-contact,
  .footer-link {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 74px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header.is-scrolled,
  .site-header.nav-active {
    min-height: 66px;
  }

  .brand img {
    width: 188px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 9.5vw, 3rem);
  }

  .service-grid,
  .feature-grid,
  .ibm-grid,
  .security-grid,
  .tech-grid,
  .proof-grid,
  .contact-form,
  .platform-list div {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: auto;
  }

  .service-card,
  .feature-card {
    min-height: 190px;
  }
}
