:root {
  --hatun-ink: #121d43;
  --hatun-navy: #121d43;
  --hatun-navy-soft: #1c2856;
  --hatun-blue: #35c8f4;
  --hatun-cyan: #35c8f4;
  --hatun-pink: #ff2bbd;
  --hatun-green: #38e49b;
  --hatun-soft: #f5f7ff;
  --hatun-line: #dfe5f2;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--hatun-ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  margin: 0;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hatun-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  align-items: center;
  color: var(--hatun-ink);
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-lockup strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.08rem;
  line-height: 1;
}

.brand-lockup small {
  color: #657783;
  display: block;
  font-size: 0.78rem;
}

.brand-mark {
  height: 42px;
  width: 42px;
}

.nav-link {
  color: #354955;
  font-weight: 600;
}

.nav-link:hover {
  color: #0b84c6;
}

.btn-primary {
  --bs-btn-bg: var(--hatun-pink);
  --bs-btn-border-color: var(--hatun-pink);
  --bs-btn-hover-bg: #dc159b;
  --bs-btn-hover-border-color: #dc159b;
}

.btn-link-light {
  color: #ffffff;
  text-decoration: none;
}

.btn-link-light:hover {
  color: #dff6ff;
}

.hero-section {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 43, 189, 0.22), transparent 26%),
    radial-gradient(circle at 90% 70%, rgba(53, 200, 244, 0.28), transparent 30%),
    linear-gradient(135deg, #0e1837 0%, #121d43 58%, #1c2856 100%);
  color: #ffffff;
  padding: 7rem 0 5.5rem;
}

.hero-section h1,
.verify-section h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.eyebrow {
  color: var(--hatun-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.product-panel,
.demo-form,
.verification-result {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 32, 39, 0.14);
}

.product-panel {
  color: var(--hatun-ink);
  overflow: hidden;
}

.product-panel-top {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f4fff9 100%);
  border-bottom: 1px solid var(--hatun-line);
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
}

.product-panel-top img {
  height: 54px;
  width: 54px;
}

.product-panel-top span,
.product-metric span {
  color: #667985;
  display: block;
  font-size: 0.84rem;
}

.product-panel-top strong,
.product-metric strong {
  display: block;
  font-size: 1rem;
}

.product-metric {
  padding: 1.3rem 1.4rem;
}

.product-metric + .product-metric {
  border-top: 1px solid var(--hatun-line);
}

.content-band,
.modules-section,
.security-section,
.cert-section,
.demo-section,
.verify-section {
  padding: 5rem 0;
}

.content-band,
.cert-section {
  background: #ffffff;
}

.modules-section,
.verify-section {
  background: var(--hatun-soft);
}

.security-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 228, 155, 0.18), transparent 30%),
    radial-gradient(circle at 90% 22%, rgba(255, 43, 189, 0.16), transparent 26%),
    var(--hatun-navy);
  color: #ffffff;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 820px;
}

.section-heading h2,
.security-section h2,
.demo-section h2,
.cert-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading p,
.feature-card p,
.security-section p,
.cert-section p,
.demo-section p,
.verify-section p {
  color: #5f717c;
}

.security-section p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card {
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  height: 100%;
  padding: 1.6rem;
}

.feature-card h3 {
  font-size: 1.2rem;
}

.module-grid,
.sensor-board {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-grid span {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  font-weight: 700;
  min-height: 72px;
  padding: 1rem;
}

.sensor-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sensor-card {
  --accent: var(--hatun-cyan);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
  color: #ffffff;
  min-height: 150px;
  padding: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sensor-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}

.sensor-card strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.8rem;
}

.sensor-card strong em {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06rem;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.sensor-card small {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.sensor-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 10px;
  color: var(--accent);
  display: inline-flex;
  font-size: 1.25rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

/* .sensor-icon: legado para <img> (ya no se usa en la home) */
.sensor-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  object-fit: contain;
  padding: 0.55rem;
  position: relative;
  width: 42px;
}

.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-stack a {
  background: var(--hatun-soft);
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  color: #0b84c6;
  font-weight: 700;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.demo-form {
  padding: 1.5rem;
}

.form-control:focus {
  border-color: var(--hatun-cyan);
  box-shadow: 0 0 0 0.2rem rgba(32, 169, 216, 0.18);
}

.verify-form {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  margin-top: 2rem;
  padding: 1.3rem;
}

.verify-hint {
  font-size: 0.88rem;
  margin: 1rem 0 0;
}

.verification-result {
  min-height: 320px;
  padding: 2rem;
}

.verification-result h2 {
  margin: 1rem 0;
}

.admin-login-title {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.admin-shell {
  background: var(--hatun-soft);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  background: var(--hatun-navy);
  color: #ffffff;
  padding: 1.5rem;
}

.admin-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 1.25rem;
}

.admin-sidebar-brand strong {
  color: #ffffff;
  font-size: 1.15rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.admin-menu {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.admin-menu a {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  font-weight: 700;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-nav-ico {
  color: var(--hatun-cyan);
  font-size: 0.7rem;
  line-height: 1;
}

.admin-menu a.active .admin-nav-ico {
  color: var(--hatun-pink);
}

.admin-sidebar-logout {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.admin-sidebar-logout .btn-outline-light {
  --bs-btn-color: rgba(255, 255, 255, 0.85);
  --bs-btn-border-color: rgba(255, 255, 255, 0.28);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.4);
  --bs-btn-hover-color: #ffffff;
  font-weight: 700;
}

.admin-content {
  padding: 2rem;
}

.admin-subtitle {
  color: #5f717c;
  margin: 0.6rem 0 0;
  max-width: 620px;
}

.admin-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
  padding: 1.3rem 1.4rem;
  position: relative;
}

.admin-kpi::before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.admin-kpi.kpi-clients::before {
  background: var(--hatun-cyan);
}

.admin-kpi.kpi-contracts::before {
  background: var(--hatun-green);
}

.admin-kpi.kpi-certs::before {
  background: var(--hatun-pink);
}

.admin-kpi.kpi-settings::before {
  background: var(--hatun-navy-soft);
}

.admin-kpi-label {
  color: #667985;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.admin-kpi-value {
  color: var(--hatun-ink);
  font-size: 2.4rem;
  line-height: 1;
}

.admin-kpi-foot {
  color: #8a99a3;
  font-size: 0.82rem;
}

.admin-section-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-section-head h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 0;
}

.admin-workspace {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.08);
  overflow: hidden;
  padding: 1rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-form {
  padding: 0.4rem 0;
}

.admin-form-fields {
  display: none;
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid label {
  color: #44545f;
  display: grid;
  font-weight: 700;
  gap: 0.35rem;
}

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.admin-upload-group {
  display: grid;
  gap: 0.5rem;
}

.admin-upload-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.admin-upload-status {
  color: #178057;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-attach-title {
  color: #44545f;
  font-weight: 700;
}

.admin-attach-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-attach-list li {
  align-items: center;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto auto;
  padding: 0.5rem 0.75rem;
}

.admin-attach-list li a {
  color: #0b84c6;
  font-weight: 700;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-attach-list li.attach-pending {
  background: var(--hatun-soft);
}

.attach-size {
  color: #8a99a3;
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-width: 70px;
  padding: 0.25rem 0.55rem;
}

.admin-badge.active {
  background: rgba(40, 217, 154, 0.14);
  color: #178057;
}

.admin-badge.inactive {
  background: rgba(204, 75, 55, 0.12);
  color: #9d3828;
}

.admin-badge.pending {
  background: rgba(240, 173, 30, 0.16);
  color: #93690a;
}

.demo-detail {
  padding: 0.25rem 0;
}

.demo-detail-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.demo-detail-date {
  align-items: center;
  color: #667985;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.45rem;
}

.demo-detail-list {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: minmax(90px, 0.3fr) 1fr;
  margin: 0 0 1rem;
}

.demo-detail-list dt {
  color: #667985;
  font-size: 0.9rem;
}

.demo-detail-list dd {
  font-weight: 700;
  margin: 0;
}

.demo-detail-list dd a {
  color: #0b84c6;
  text-decoration: none;
}

.demo-detail-label {
  color: #667985;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.demo-detail-description {
  background: var(--hatun-soft);
  border-radius: 8px;
  line-height: 1.55;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  white-space: pre-wrap;
}

.demo-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.demo-detail-actions .btn i {
  margin-right: 0.35rem;
}

.admin-icon-btn.success {
  color: #178057;
}

.admin-icon-btn.success:hover {
  background: rgba(40, 217, 154, 0.14);
  color: #178057;
}

.admin-icon-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--hatun-navy);
  display: inline-flex;
  font-size: 0.95rem;
  height: 30px;
  justify-content: center;
  text-decoration: none;
  width: 30px;
}

.admin-icon-btn:hover {
  background: rgba(18, 29, 67, 0.08);
  color: var(--hatun-navy);
}

.admin-icon-btn.danger {
  color: #b2402e;
}

.admin-icon-btn.danger:hover {
  background: rgba(204, 75, 55, 0.12);
  color: #b2402e;
}

.admin-icon-btn + .admin-icon-btn {
  margin-left: 0.15rem;
}

.admin-upload-status a {
  align-items: center;
  color: #0b84c6;
  display: inline-flex;
  gap: 0.4rem;
  text-decoration: none;
}

.valid-result {
  border-top: 5px solid var(--hatun-green);
}

.invalid-result {
  border-top: 5px solid #cc4b37;
}

.muted-result {
  border-top: 5px solid var(--hatun-cyan);
}

.status-pill {
  background: rgba(40, 217, 154, 0.14);
  border-radius: 999px;
  color: #178057;
  display: inline-flex;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
}

.small-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

.verification-list {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
}

.verification-list dt {
  color: #667985;
}

.verification-list dd {
  font-weight: 700;
  margin: 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.constancia-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.constancia-list article {
  align-items: center;
  border: 1px solid var(--hatun-line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  padding: 1rem;
}

.constancia-list article span {
  color: #667985;
  display: block;
  font-size: 0.9rem;
}

.constancia-list article a {
  color: #0b84c6;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  background: var(--hatun-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer-logo {
  background: #ffffff;
  border-radius: 8px;
  max-height: 70px;
  max-width: 300px;
  padding: 0.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

/* === Hero doble producto === */
.hero-products {
  display: grid;
  gap: 1rem;
}

.hero-product-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  display: block;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-product-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-3px);
}

.hero-product-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.hero-product-icon {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 1.25rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.hero-product-icon.security {
  background: rgba(53, 200, 244, 0.18);
  color: var(--hatun-cyan);
}

.hero-product-icon.erp {
  background: rgba(255, 43, 189, 0.16);
  color: var(--hatun-pink);
}

.hero-product-live {
  align-items: center;
  color: var(--hatun-green);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.4rem;
  letter-spacing: 0.08rem;
}

.live-dot {
  animation: live-pulse 1.6s ease-in-out infinite;
  background: var(--hatun-green);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero-product-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.hero-product-card span {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-product-card small {
  color: var(--hatun-cyan);
  display: block;
  font-weight: 700;
  margin-top: 0.7rem;
}

/* === Franja de confianza === */
.trust-strip {
  background: var(--hatun-soft);
  border-bottom: 1px solid var(--hatun-line);
  padding: 1.4rem 0;
}

.trust-items {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.trust-item i {
  color: var(--hatun-pink);
  font-size: 1.4rem;
}

.trust-item span {
  color: #44545f;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* === Seccion Security: pasos === */
.security-steps {
  align-items: stretch;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  margin: 2.5rem 0;
}

.security-step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  position: relative;
}

.step-number {
  color: rgba(255, 255, 255, 0.32);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 0.9rem;
}

.security-step i {
  color: var(--hatun-cyan);
  font-size: 1.6rem;
}

.security-step strong {
  display: block;
  font-size: 1.05rem;
  margin: 0.8rem 0 0.4rem;
}

.security-step p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.step-arrow {
  align-self: center;
  border-right: 2px solid var(--hatun-green);
  border-top: 2px solid var(--hatun-green);
  display: inline-block;
  height: 12px;
  transform: rotate(45deg);
  width: 12px;
}

/* === Monitor en vivo === */
.live-monitor {
  background: rgba(10, 18, 45, 0.75);
  border: 1px solid rgba(53, 200, 244, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  margin: 0 0 3rem;
  overflow: hidden;
}

.live-monitor-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
}

.live-monitor-title {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.6rem;
  letter-spacing: 0.08rem;
}

.live-monitor-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.live-monitor-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.live-metric {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.2rem 1.1rem;
  text-align: center;
  transition: background 0.4s ease;
}

.live-metric .metric-label {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.live-metric .metric-value {
  color: #ffffff;
  display: block;
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.live-metric .metric-unit {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 0.75rem;
}

.live-metric .metric-status {
  background: rgba(40, 217, 154, 0.16);
  border-radius: 999px;
  color: var(--hatun-green);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.55rem;
  padding: 0.15rem 0.6rem;
}

.live-metric.is-warning {
  background: rgba(255, 96, 60, 0.14);
}

.live-metric.is-warning .metric-value {
  color: #ffb199;
}

.live-metric.is-warning .metric-status {
  background: rgba(255, 96, 60, 0.22);
  color: #ffb199;
}

/* === Oferta de sensores y kit demo === */
.security-offer h3 {
  font-size: 1.6rem;
}

.sensor-more {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.demo-kit-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  color: var(--hatun-ink);
  padding: 1.6rem;
}

.demo-kit-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.demo-kit-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.demo-kit-list li {
  display: flex;
  gap: 0.9rem;
}

.demo-kit-list i {
  color: var(--hatun-pink);
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.demo-kit-list strong {
  display: block;
}

.demo-kit-list span {
  color: #5f717c;
  font-size: 0.88rem;
  line-height: 1.4;
}

.market-chips {
  margin-top: 1.5rem;
}

.market-title {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.market-chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.45rem;
  margin: 0 0.4rem 0.55rem 0;
  padding: 0.4rem 0.85rem;
}

.market-chips span i {
  color: var(--hatun-cyan);
}

.market-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}

/* Selectores con mayor especificidad: dentro de .security-section hay una
   regla generica que pinta los <p> de blanco y aqui el fondo es blanco. */
.demo-kit-card .demo-kit-intro {
  color: #5f717c;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.demo-kit-card .demo-kit-note {
  background: var(--hatun-soft);
  border-left: 3px solid var(--hatun-cyan);
  border-radius: 0 8px 8px 0;
  color: #44545f;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 1.2rem;
  padding: 0.7rem 0.9rem;
}

/* === Seccion OSCE / licitaciones === */
.osce-section {
  background: var(--hatun-soft);
  padding: 5rem 0;
}

.osce-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.osce-section > .container > .row > div > p {
  color: #5f717c;
}

.osce-quote {
  background: #ffffff;
  border-left: 5px solid var(--hatun-pink);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 14px 32px rgba(16, 32, 39, 0.08);
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.6rem;
}

.osce-quote p {
  color: var(--hatun-ink) !important;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 0.7rem;
}

.osce-quote cite {
  color: #667985;
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.osce-cards {
  display: grid;
  gap: 0.85rem;
}

.osce-card {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 12px;
  display: grid;
  gap: 0.15rem 1rem;
  grid-template-columns: auto 1fr;
  padding: 1.1rem 1.3rem;
}

.osce-step {
  align-items: center;
  background: rgba(255, 43, 189, 0.1);
  border-radius: 50%;
  color: var(--hatun-pink);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  grid-row: span 2;
  height: 40px;
  justify-content: center;
  margin-top: 0.15rem;
  width: 40px;
}

.osce-card strong {
  font-size: 1.02rem;
}

.osce-card p {
  color: #5f717c !important;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.osce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* === Flujo operativo ERP === */
.erp-flow {
  align-items: stretch;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  margin: 2.5rem 0 3rem;
}

.erp-flow-step {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.06);
  padding: 1.15rem 1rem;
  position: relative;
}

.erp-step-num {
  color: rgba(18, 29, 67, 0.16);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 0.85rem;
  top: 0.8rem;
}

.erp-flow-step i {
  color: var(--hatun-pink);
  font-size: 1.35rem;
}

.erp-flow-step strong {
  display: block;
  font-size: 0.98rem;
  margin: 0.7rem 0 0.35rem;
}

.erp-flow-step p {
  color: #5f717c;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.erp-step-arrow {
  align-self: center;
  border-right: 2px solid var(--hatun-pink);
  border-top: 2px solid var(--hatun-pink);
  display: inline-block;
  height: 10px;
  transform: rotate(45deg);
  width: 10px;
}

/* === Grupos de modulos ERP === */
.erp-groups {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erp-group {
  --accent: var(--hatun-pink);
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 12px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 12px 28px rgba(16, 32, 39, 0.06);
  padding: 1.5rem 1.6rem;
}

.erp-group header {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.erp-group-icon {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 12px;
  color: var(--accent);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.35rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.erp-group header strong {
  display: block;
  font-size: 1.15rem;
}

.erp-group header span {
  color: #667985;
  display: block;
  font-size: 0.86rem;
}

.erp-group ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.erp-group ul li {
  border-left: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: #5f717c;
  font-size: 0.9rem;
  line-height: 1.45;
  padding-left: 0.85rem;
}

.erp-group ul li strong {
  color: var(--hatun-ink);
  display: block;
  font-size: 0.95rem;
}

.erp-badge {
  background: rgba(240, 173, 30, 0.16);
  border-radius: 999px;
  color: #93690a;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  padding: 0.12rem 0.55rem;
  text-transform: uppercase;
  vertical-align: middle;
}

/* === Seccion integracion === */
.integration-section {
  background: var(--hatun-soft);
  padding: 5rem 0;
}

.integration-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.integration-section p {
  color: #5f717c;
}

.integration-flow {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto 1fr;
}

.integration-node {
  background: #ffffff;
  border: 1px solid var(--hatun-line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(16, 32, 39, 0.08);
  padding: 1.5rem;
}

.integration-node i {
  color: var(--hatun-pink);
  font-size: 1.6rem;
}

.integration-node strong {
  display: block;
  font-size: 1.05rem;
  margin: 0.7rem 0 0.35rem;
}

.integration-node span {
  color: #5f717c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.integration-arrow {
  align-self: center;
  border-right: 3px solid var(--hatun-pink);
  border-top: 3px solid var(--hatun-pink);
  display: inline-block;
  height: 16px;
  transform: rotate(45deg);
  width: 16px;
}

/* === WhatsApp === */
.btn-whatsapp {
  --bs-btn-bg: #25d366;
  --bs-btn-border-color: #25d366;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: #1eb457;
  --bs-btn-hover-border-color: #1eb457;
  --bs-btn-hover-color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp i {
  font-size: 1.15em;
  margin-right: 0.3rem;
  vertical-align: -0.08em;
}

.contact-stack a i {
  margin-right: 0.35rem;
}

.contact-stack .contact-whatsapp {
  color: #128c4b;
}

.contact-stack .contact-whatsapp i {
  color: #25d366;
  font-size: 1.15em;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 26px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  font-size: 1.9rem;
  height: 60px;
  justify-content: center;
  position: fixed;
  right: 26px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 60px;
  z-index: 90;
}

.whatsapp-float:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  color: #ffffff;
  transform: scale(1.08);
}

/* === Selector de interes en formulario demo === */
.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.interest-options label {
  align-items: center;
  border: 1px solid var(--hatun-line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
}

.interest-options label:has(input:checked) {
  background: rgba(255, 43, 189, 0.08);
  border-color: var(--hatun-pink);
  color: #b2148a;
}

.interest-options input {
  accent-color: var(--hatun-pink);
}

@media (max-width: 991.98px) {
  .module-grid,
  .sensor-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 1rem;
  }

  .admin-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .admin-menu a {
    white-space: nowrap;
  }

  .admin-sidebar-logout {
    border-top: none;
    margin-top: 1rem;
    padding-top: 0;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-steps {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .live-monitor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .integration-flow {
    grid-template-columns: 1fr;
  }

  .integration-arrow {
    justify-self: center;
    transform: rotate(135deg);
  }

  .erp-flow {
    grid-template-columns: 1fr;
  }

  .erp-step-arrow {
    display: none;
  }

  .erp-groups {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0 4rem;
  }

  .module-grid,
  .sensor-board {
    grid-template-columns: 1fr;
  }

  .verification-list,
  .constancia-list article {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 1.25rem;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    justify-content: flex-start;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .live-monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
