/* =========================================================
   MOM INDUSTRIAL — Rediseño de interfaz
   Sistema visual compartido
   ========================================================= */

:root {
  --navy-900: #0b1622;
  --navy-800: #0f2338;
  --navy-700: #16324d;
  --steel-600: #35506b;
  --steel-400: #6c8aa3;
  --ink-100: #eef3f7;
  --paper: #f6f8fa;
  --white: #ffffff;
  --amber-500: #f0932b;
  --amber-600: #d97a17;
  --amber-100: #fdecd8;
  --teal-500: #10b3a3;
  --teal-600: #0c8f82;
  --success: #2e9e5b;
  --star: #f0932b;
  --line: #e3e9ee;
  --text-900: #10202f;
  --text-600: #47606f;
  --text-400: #7c93a1;
  --shadow-sm: 0 2px 8px rgba(11, 22, 34, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 22, 34, 0.12);
  --shadow-lg: 0 24px 48px rgba(11, 22, 34, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --ff-head: "Poppins", "Segoe UI", sans-serif;
  --ff-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; color: var(--text-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--amber-500);
  border-radius: 2px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy-900); color: var(--ink-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #b7c8d6; }
.section--paper { background: var(--paper); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-teal { background: var(--teal-500); color: var(--white); }
.btn-teal:hover { background: var(--teal-600); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #cfe0ec;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info a { display: inline-flex; align-items: center; gap: 7px; color: #cfe0ec; }
.topbar-info a:hover { color: var(--amber-500); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
}
.topbar-social a:hover { background: var(--amber-500); color: var(--navy-900); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand strong { font-family: var(--ff-head); font-size: 1.05rem; color: var(--navy-900); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-600);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--amber-100); color: var(--amber-600); }
.nav-links a.is-active { background: var(--navy-900); color: var(--white); }
.nav-links .badge {
  font-size: 0.62rem;
  background: var(--teal-500);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  border: none; background: var(--navy-900); color: #fff;
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center; font-size: 1.1rem;
}

@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 72px 16px auto 16px; background: #fff;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 12px;
    display: none; border: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-primary span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, rgba(11,22,34,0.92), rgba(11,22,34,0.72)), var(--navy-800);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(240,147,43,0.25), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
/* Difumina el borde inferior del hero hacia el navy sólido de la sección
   siguiente, para que el corte de color no se vea como un salto brusco. */
.hero::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--navy-900));
  pointer-events: none;
  z-index: 1;
}
/* Variante: cuando la sección siguiente al hero es clara (paper) en vez de
   navy, el difuminado inferior debe fundirse hacia ese mismo tono claro. */
.hero--to-paper::before {
  background: linear-gradient(to bottom, transparent, var(--paper));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 100px;
  max-width: 680px;
}
.hero-inner .eyebrow { color: var(--amber-500); }
.hero-inner .eyebrow::before { background: var(--amber-500); }
.hero-inner h1 { color: var(--white); margin-bottom: 22px; text-transform: uppercase; }
.hero-inner p.lead { color: #cfe0ec; font-size: 1.08rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-media {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 46%; max-width: 560px; opacity: 0.9;
}
@media (max-width: 940px) { .hero-media { display: none; } }
.hero--compact .hero-inner { padding: 78px 0 74px; max-width: 620px; }

/* ---------- Feature list (checks) ---------- */
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-600); font-weight: 500; }
.check-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; margin-top: 2px;
}
.section--dark .check-list li { color: #d6e4ee; }

/* ---------- Split / grid layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Antes: dos imágenes distintas se superponían en collage (una foto real y una
   ilustración, o dos ilustraciones con estilos distintos), lo que mezclaba
   composiciones incompatibles. Ahora cada imagen vive en su propia tarjeta,
   con el mismo tratamiento visual (fondo neutro, borde, radio), sin recortes
   ni mezclas — se ve intencional en vez de collage accidental. */
.split-media.stacked {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.split-media.stacked img.back,
.split-media.stacked img.front {
  position: static;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: linear-gradient(160deg, var(--paper), #eef2f5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.split-media.stacked img.front { margin-top: 28px; }
@media (max-width: 560px) {
  .split-media.stacked { grid-template-columns: 1fr; }
  .split-media.stacked img.front { margin-top: 0; }
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.service-card .body { padding: 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-card .tag {
  text-transform: uppercase; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.2px; color: var(--amber-600);
}
.service-card h3 { margin-bottom: 4px; }
.service-card p { flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: 10px; padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Simple info cards (no image) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.info-card .num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--amber-100); color: var(--amber-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 16px;
}

/* ---------- Tech / cybersecurity HUD section (Division Tecnologica: servicios de TI) ---------- */
.section--cyber {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 12% 8%, rgba(16,179,163,0.09), transparent 70%),
    radial-gradient(ellipse 60% 50% at 88% 92%, rgba(108,138,163,0.10), transparent 70%),
    var(--navy-900);
  overflow: hidden;
}
.section--cyber::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(207,224,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,224,236,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  pointer-events: none;
}
.section--cyber .container { position: relative; z-index: 1; }
.section--cyber .section-head .eyebrow { color: var(--teal-500); }
.section--cyber .section-head .eyebrow::before { background: var(--teal-500); }
.section--cyber .section-head h2 { color: var(--white); }

/* ---------- Evidencia con degradado oscuro y acento ámbar (color de los botones) ---------- */
.section--amber {
  position: relative;
  background:
    radial-gradient(ellipse 65% 55% at 14% 10%, rgba(240,147,43,0.24), transparent 70%),
    radial-gradient(ellipse 65% 55% at 86% 90%, rgba(240,147,43,0.16), transparent 70%),
    var(--navy-900);
  overflow: hidden;
}
.section--amber::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(207,224,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,224,236,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  pointer-events: none;
}
.section--amber .container { position: relative; z-index: 1; }
.section--amber .section-head .eyebrow { color: var(--amber-500); }
.section--amber .section-head .eyebrow::before { background: var(--amber-500); }
.section--amber .section-head h2 { color: var(--white); }

/* Acentos de las tarjetas de evidencia en tono ámbar en vez de teal, para
   que combinen con el color de los botones dentro del estilo tech oscuro */
.section--amber .evidence-card--browser .evidence-badge { border-color: rgba(240,147,43,0.4); color: var(--amber-500); }
.section--amber .evidence-card:not(.evidence-card--terminal) .bar-row .bar.active { background: var(--amber-500); }
.section--amber .evidence-card:not(.evidence-card--terminal) .maturity-dots span.on { background: var(--amber-500); }
.section--amber .evidence-card:not(.evidence-card--terminal) .kpi-box .delta { color: var(--amber-500); }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(16,179,163,0.25);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tech-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
  opacity: 0.85;
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16,179,163,0.55);
  box-shadow: 0 22px 46px rgba(16,179,163,0.16);
}
.tech-card .tag {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 12px;
}
.tech-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(16,179,163,0.15); color: var(--teal-500);
  box-shadow: inset 0 0 0 1px rgba(16,179,163,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.tech-card:nth-child(2n) .tech-icon {
  background: rgba(240,147,43,0.15); color: var(--amber-500);
  box-shadow: inset 0 0 0 1px rgba(240,147,43,0.3);
}
.tech-card:hover .tech-icon { transform: scale(1.08) rotate(-4deg); }
.tech-card h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.tech-card p { color: #b7c8d6; font-size: 0.92rem; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .tech-card, .tech-icon { transition: none; }
}

/* ---------- Evidence / dashboard-style showcase (muestras ilustrativas) ---------- */
.evidence-intro { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.evidence-intro p { color: #b7c8d6; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .evidence-grid { grid-template-columns: 1fr; } }

.evidence-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.evidence-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.evidence-dots { display: flex; gap: 5px; flex: none; }
.evidence-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.evidence-card-head .name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #cfe0ec; }
.evidence-badge { flex: none; font-size: 0.6rem; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); color: #9fb4c4; white-space: nowrap; }
.evidence-body { padding: 20px; }
.evidence-caption { padding: 4px 20px 22px; }
.evidence-caption h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.evidence-caption p { color: #9fb4c4; font-size: 0.86rem; margin-bottom: 0; }

.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.risk-cell {
  aspect-ratio: 1; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: #fff;
}
.risk-scale { display: flex; justify-content: space-between; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; color: #7c93a1; margin-top: 10px; }

.kpi-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.kpi-box .label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; color: #8ea3b3; margin-bottom: 4px; }
.kpi-box .value { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; }
.kpi-box .delta { font-size: 0.7rem; color: var(--teal-500); margin-top: 4px; }
.kpi-box .delta.warn { color: var(--amber-500); }
.bar-row { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.bar-row .bar { flex: 1; background: rgba(255,255,255,0.14); border-radius: 4px 4px 0 0; }
.bar-row .bar.active { background: var(--teal-500); }
.bar-labels { display: flex; gap: 6px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; font-size: 0.58rem; color: #7c93a1; }

.maturity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.82rem; color: #dbe6ee; }
.maturity-row:last-of-type { border-bottom: none; }
.maturity-dots { display: flex; gap: 4px; flex: none; }
.maturity-dots span { width: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.maturity-dots span.on { background: var(--teal-500); }
.maturity-scale { display: flex; justify-content: space-between; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; color: #7c93a1; margin-top: 12px; }

/* ---------- Evidence skins: tres estilos distintos para que no se vean repetidos ---------- */

/* Skin "campo" (industrial/seguridad) — tarjetas tipo bitácora/reporte, acento ámbar lateral */
.evidence-grid--field { grid-template-columns: 1.15fr 0.85fr; grid-template-rows: auto auto; }
.evidence-grid--field .evidence-card:first-child { grid-row: 1 / 3; }
@media (max-width: 940px) { .evidence-grid--field { grid-template-columns: 1fr; } .evidence-grid--field .evidence-card:first-child { grid-row: auto; } }
.evidence-card--field {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius-sm);
}
.evidence-card--field .evidence-card-head { border-bottom: 1px dashed rgba(255,255,255,0.14); }
.evidence-card--field .evidence-dots { display: none; }
.evidence-card--field .evidence-card-head .name { font-size: 0.72rem; color: var(--amber-500); }
.evidence-card--field .evidence-card-head .name::before { content: "◆ "; }
.evidence-card--field .evidence-badge { border-color: rgba(240,147,43,0.4); color: var(--amber-500); }
.evidence-card--field .bar-row .bar.active { background: var(--amber-500); }
.evidence-card--field .maturity-dots span.on { background: var(--amber-500); }
.evidence-card--field .kpi-box .delta { color: var(--amber-500); }

/* Skin "navegador" (hosting / sitios web) — cabecera tipo browser chrome, acento teal */
.evidence-card--browser { border-radius: 16px; }
.evidence-card--browser .evidence-card-head { background: rgba(0,0,0,0.18); gap: 14px; }
.evidence-card--browser .evidence-dots span:nth-child(1) { background: #ff5f57; }
.evidence-card--browser .evidence-dots span:nth-child(2) { background: #febc2e; }
.evidence-card--browser .evidence-dots span:nth-child(3) { background: #28c840; }
.evidence-card--browser .evidence-card-head .name {
  flex: 1; background: rgba(255,255,255,0.06); border-radius: 999px;
  padding: 3px 12px; text-align: center; text-transform: none;
  font-weight: 500; letter-spacing: 0; color: #9fb4c4; font-size: 0.68rem;
}
.evidence-card--browser .evidence-badge { border-color: rgba(16,179,163,0.4); color: var(--teal-500); }

/* Skin "terminal" (ciberseguridad / TI) — monoespaciada, fondo casi negro, glow teal */
.evidence-card--terminal {
  background: #060d15;
  border: 1px solid rgba(16,179,163,0.35);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(16,179,163,0.08), 0 18px 40px rgba(16,179,163,0.1);
}
.evidence-card--terminal .evidence-card-head { background: rgba(16,179,163,0.06); border-bottom: 1px solid rgba(16,179,163,0.2); }
.evidence-card--terminal .evidence-dots span { background: rgba(16,179,163,0.4); }
.evidence-card--terminal .evidence-card-head .name { font-family: "Courier New", monospace; color: var(--teal-500); }
.evidence-card--terminal .evidence-card-head .name::before { content: "$ "; opacity: 0.7; }
.evidence-card--terminal .evidence-badge { border-color: rgba(16,179,163,0.4); color: var(--teal-500); font-family: "Courier New", monospace; }
.evidence-card--terminal .evidence-body, .evidence-card--terminal .evidence-caption { font-family: "Courier New", monospace; }
.evidence-card--terminal .evidence-caption h4 { font-family: var(--ff-head); }
.evidence-card--terminal .kpi-box .value { color: var(--teal-500); text-shadow: 0 0 12px rgba(16,179,163,0.5); }
.evidence-card--terminal .risk-cell { border-radius: 3px; font-family: "Courier New", monospace; }
.evidence-card--terminal .maturity-row { font-size: 0.78rem; }

/* Pestañas de evidencia (usadas en Servicios para combinar los 3 estilos en un solo bloque) */
.evidence-tab-list {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.evidence-tab-btn {
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #b7c8d6; font-weight: 700; font-size: 0.88rem;
  font-family: var(--ff-body);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.evidence-tab-btn:hover { border-color: rgba(255,255,255,0.4); }
.evidence-tab-btn.is-active { background: var(--amber-500); color: var(--navy-900); border-color: var(--amber-500); }
.evidence-panel { display: none; }
.evidence-panel.is-active { display: block; }

/* Page-type cards (Servicios: tipos de páginas) — único apartado con
   toque maximalista: tarjeta destacada más grande, colores saturados
   de la propia paleta de marca, numeral gigante de fondo y ligera
   inclinación tipo collage. El resto del sitio no se toca. */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: typenum;
}
@media (max-width: 940px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .type-grid { grid-template-columns: 1fr; } }

.type-card {
  counter-increment: typenum;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}
.type-card:hover { transform: translateY(-7px) rotate(0deg); box-shadow: var(--shadow-lg); }
.type-card::before {
  content: counter(typenum, decimal-leading-zero);
  position: absolute; top: -18px; right: -8px;
  font-family: var(--ff-head); font-weight: 800;
  font-size: 5.6rem; line-height: 1;
  color: rgba(11,22,34,0.06);
  z-index: 0; pointer-events: none;
}
.type-card > * { position: relative; z-index: 1; }
.type-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--navy-900); }
.type-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Tarjeta destacada: ocupa dos columnas, franja diagonal de marca, mayor tamaño */
.type-grid .type-card:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  background-image:
    repeating-linear-gradient(135deg, rgba(240,147,43,0.10) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  transform: rotate(-0.8deg);
  padding: 38px 34px 32px;
  border: none;
}
.type-grid .type-card:nth-child(1):hover { transform: rotate(0deg) translateY(-7px); }
.type-grid .type-card:nth-child(1) h3 { color: var(--white); font-size: 1.6rem; }
.type-grid .type-card:nth-child(1) p { color: #cfe0ec; font-size: 1.02rem; }
.type-grid .type-card:nth-child(1)::before { color: rgba(255,255,255,0.08); }

.type-grid .type-card:nth-child(2) {
  background: linear-gradient(150deg, var(--amber-500), var(--amber-600));
  border: none;
  transform: rotate(0.9deg);
}
.type-grid .type-card:nth-child(2):hover { transform: rotate(0deg) translateY(-7px); }
.type-grid .type-card:nth-child(2) h3 { color: var(--navy-900); }
.type-grid .type-card:nth-child(2) p { color: #4a2e07; }
.type-grid .type-card:nth-child(2)::before { color: rgba(11,22,34,0.1); }

.type-grid .type-card:nth-child(3) { transform: rotate(-0.6deg); }
.type-grid .type-card:nth-child(3):hover { transform: rotate(0deg) translateY(-7px); }

.type-grid .type-card:nth-child(4) {
  background: linear-gradient(150deg, var(--teal-500), var(--teal-600));
  border: none;
  transform: rotate(0.7deg);
}
.type-grid .type-card:nth-child(4):hover { transform: rotate(0deg) translateY(-7px); }
.type-grid .type-card:nth-child(4) h3, .type-grid .type-card:nth-child(4) p { color: var(--white); }
.type-grid .type-card:nth-child(4) p { color: #d8f5f0; }
.type-grid .type-card:nth-child(4)::before { color: rgba(255,255,255,0.14); }

.type-grid .type-card:nth-child(5) { transform: rotate(-0.9deg); }
.type-grid .type-card:nth-child(5):hover { transform: rotate(0deg) translateY(-7px); }

@media (max-width: 940px) { .type-grid .type-card:nth-child(1) { grid-column: span 2; } }
@media (max-width: 640px) {
  .type-grid .type-card { grid-column: span 1 !important; transform: none !important; }
  .type-grid .type-card:hover { transform: translateY(-5px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .type-card { transition: none; }
}

/* ---------- Values (División Tecnológica) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.value-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
  opacity: 0.9;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,147,43,0.45);
  background: linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
}
.value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(240,147,43,0.14);
  color: var(--amber-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.25s ease;
}
.value-card:nth-child(2) .value-icon { background: rgba(16,179,163,0.16); color: var(--teal-500); }
.value-card:nth-child(3) .value-icon { background: rgba(240,147,43,0.14); color: var(--amber-500); }
.value-card:hover .value-icon { transform: scale(1.08) rotate(-4deg); }
.value-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.value-card a {
  color: var(--amber-500); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.value-card a:hover { gap: 10px; color: #ffb35c; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .value-card, .value-icon, .value-card a { transition: none; }
}

/* Variante clara: misma tarjeta de valores, pero sobre fondo blanco/paper */
.section--paper .value-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.section--paper .value-card:hover {
  background: var(--white);
  border-color: rgba(240,147,43,0.35);
  box-shadow: var(--shadow-md);
}
.section--paper .value-card h3 { color: var(--navy-900); }
.section--paper .value-card a { color: var(--amber-600); }
.section--paper .value-card a:hover { color: var(--amber-500); }

/* ---------- Process steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .step-grid { grid-template-columns: 1fr; } }
.step-card { text-align: left; }
.step-card .step-media {
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--paper), #eef2f5);
  display: flex; align-items: center; justify-content: center;
}
.step-card .step-media img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.step-card .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-900); color: var(--amber-500);
  font-weight: 700; font-size: 0.85rem; margin-bottom: 10px;
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testi-stars { color: var(--star); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.testi-card h4 { margin: 0 0 12px; font-family: var(--ff-head); font-size: 1.05rem; }
.testi-quote { font-style: italic; color: var(--text-600); margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--amber-100);
}
.testi-person .name { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.testi-person .role { font-size: 0.8rem; color: var(--text-400); }

/* ---------- Client logos ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
@media (max-width: 860px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
.logo-strip .logo-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  height: 92px;
}
.logo-strip .logo-box:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.logo-strip img { max-height: 56px; width: auto; margin: 0 auto; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-head);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem; color: var(--amber-600); flex: none; line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #cfe0ec; margin-bottom: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-alert--ok { background: rgba(46,158,91,0.12); color: var(--success); border: 1px solid rgba(46,158,91,0.3); }
.form-alert--error { background: rgba(217,74,23,0.1); color: #b3401a; border: 1px solid rgba(217,74,23,0.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 7px; color: var(--navy-900);
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-900);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); background: var(--white);
}
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--text-600); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.aside-card h3 { margin-bottom: 14px; }
.aside-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.92rem; color: var(--text-600); }
.aside-row:last-child { margin-bottom: 0; }
.aside-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--amber-100); color: var(--amber-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--amber-500); color: var(--navy-900); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b7c8d6; padding-top: 110px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr auto auto 1fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  width: 220px; height: 220px; margin-bottom: 28px;
  object-fit: contain;
  object-position: center center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.footer-brand p { color: #9fb4c4; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #b7c8d6; font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber-500); }
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16, 179, 163, 0.15); color: var(--teal-500);
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 0.82rem; color: #8ea3b3; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .social-row a { width: 34px; height: 34px; background: rgba(255,255,255,0.08); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Page hero background variants using original imagery as texture */
.hero-industrial { background-image: linear-gradient(120deg, rgba(11,22,34,0.93), rgba(11,22,34,0.75)), url('../img/hero-industrial.png'); }
.hero-services { background-image: linear-gradient(120deg, rgba(11,22,34,0.93), rgba(11,22,34,0.75)), url('../img/hero-services.png'); }
.hero-tech { background-image: linear-gradient(120deg, rgba(11,22,34,0.93), rgba(11,22,34,0.75)), url('../img/hero-tech.png'); }
.hero-contact { background-image: linear-gradient(120deg, rgba(11,22,34,0.93), rgba(11,22,34,0.75)), url('../img/hero-contact.png'); }
