/* ==========================================================================
   AIRCAN SISTEMAS - TEMA CLARO & DETALLE DE SISTEMA ESTILO E-COMMERCE (sistemas.css)
   ========================================================================== */

:root {
  --sys-bg: #f8fafc;
  --sys-bg-card: #ffffff;
  --sys-bg-card-hover: #ffffff;
  --sys-border: #e2e8f0;
  --sys-border-hover: #93c5fd;
  --sys-primary: #0154f9;
  --sys-primary-hover: #003aae;
  --sys-cyan: #00f0ff;
  --sys-text: #0f172a;
  --sys-text-muted: #64748b;
  --sys-text-dim: #94a3b8;
  --sys-radius: 14px;
  --sys-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sys-font-heading: 'Outfit', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.sistemas-page {
  font-family: var(--sys-font);
  background-color: var(--sys-bg);
  color: var(--sys-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(1, 84, 249, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(1, 84, 249, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ==========================================================================
   NAVBAR SUPERIOR: NOTCH FLOTANTE LIMPIO (SÓLO ÍCONO, VOLVER Y WHATSAPP)
   ========================================================================== */
.sistemas-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sistemas-nav__inner {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: #000000;
  padding: 0.44rem 1.15rem 0.52rem 1.15rem;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  width: auto !important;
  max-width: fit-content !important;
  margin: 0 auto;
}

/* Curvas orgánicas superiores (orejas cóncavas del notch) */
.sistemas-nav__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18px;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 0 100%, transparent 17.5px, #000000 18px);
  pointer-events: none;
}

.sistemas-nav__inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 100% 100%, transparent 17.5px, #000000 18px);
  pointer-events: none;
}

.sistemas-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sistemas-nav__icon {
  height: 24px;
  width: auto;
  display: block;
}

.sistemas-nav-btn--return {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.18s ease;
  cursor: pointer;
}

.sistemas-nav-btn--return:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.sistemas-nav__wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.sistemas-nav__wa-btn:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   CABECERA PRINCIPAL (TÍTULO LIMPIO)
   ========================================================================== */
.sistemas-main {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
}

.sistemas-header {
  max-width: 1280px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1.5rem 0.5rem;
  text-align: center;
}

.sistemas-header__title {
  font-family: var(--sys-font-heading);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA
   ========================================================================== */
.sistemas-toolbar {
  max-width: 600px;
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
}

.sistemas-search-wrap {
  position: relative;
  width: 100%;
}

.sistemas-search-input {
  width: 100%;
  padding: 0.8rem 1.2rem 0.8rem 3rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.sistemas-search-input:focus {
  border-color: #0154f9;
  box-shadow: 0 0 0 4px rgba(1, 84, 249, 0.12), 0 6px 20px rgba(1, 84, 249, 0.08);
}

.sistemas-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0154f9;
  pointer-events: none;
}

.sistemas-search-clear {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.sistemas-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Barra de estado (sólo contador, sin catálogo aircan) */
.sistemas-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   GRILLA DE SISTEMAS COMPACTAS (CARDS PEQUEÑAS & SIN BADGES QUE TAPEN)
   ========================================================================== */
.sistemas-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* Tarjeta compacta */
.sistema-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sys-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.sistema-card:hover {
  border-color: #93c5fd;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 84, 249, 0.12), 0 2px 6px rgba(1, 84, 249, 0.06);
}

.sistema-card.is-targeted {
  animation: target-pulse-light 3s ease-in-out infinite;
  border-color: #0154f9 !important;
}
@keyframes target-pulse-light {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(1, 84, 249, 0.3), 0 12px 30px rgba(1, 84, 249, 0.15);
    transform: translateY(-4px) scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(1, 84, 249, 0.5), 0 16px 36px rgba(1, 84, 249, 0.25);
    transform: translateY(-4px) scale(1.025);
  }
}

/* Imagen de portada de la card */
.sistema-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.sistema-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.sistema-card:hover .sistema-card__img {
  transform: scale(1.04);
}

/* Botón zoom para vista rápida */
.sistema-card__zoom-btn {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sistema-card:hover .sistema-card__zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.sistema-card__zoom-btn:hover {
  background: #0154f9;
  border-color: #0154f9;
  color: #ffffff;
}

/* Cuerpo de la card compacta */
.sistema-card__body {
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sistema-card__title {
  font-family: var(--sys-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.sistema-card__desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

/* Botón WhatsApp a todo el ancho */
.sistema-card__actions {
  display: block;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.sistema-btn-wa {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1fad53);
  color: #ffffff !important;
  border: none;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.sistema-btn-wa:hover {
  background: linear-gradient(135deg, #2ae26f, #22be5c);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.42);
  color: #ffffff !important;
}

/* ==========================================================================
   VISTA DE DETALLE DEL SISTEMA (ESTILO IMAGEN 3)
   ========================================================================== */
.sistemas-view [hidden],
.detail-btn[hidden] {
  display: none !important;
}

.sistemas-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 5rem;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.detail-back-link:hover {
  color: #0154f9;
  transform: translateX(-3px);
}

.detail-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.detail-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-family: var(--sys-font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: #000000;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.detail-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 2rem;
}

.detail-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* Botones Glass Tema Claro Limpios (Solo Título e Ícono) */
.detail-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.detail-btn__title {
  font-family: var(--sys-font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
}

.detail-btn__icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.detail-btn__icon-svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.detail-btn:hover .detail-btn__icon-img,
.detail-btn:hover .detail-btn__icon-svg {
  transform: scale(1.12);
}

/* Glass WhatsApp */
.detail-btn--glass-wa {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  box-shadow: 
    0 4px 16px rgba(34, 197, 94, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.detail-btn--glass-wa .detail-btn__title {
  color: #15803d;
}

.detail-btn--glass-wa:hover {
  background: rgba(240, 253, 244, 0.95);
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(34, 197, 94, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* Glass Demo */
.detail-btn--glass-demo {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(1, 84, 249, 0.28);
  box-shadow: 
    0 4px 16px rgba(1, 84, 249, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.detail-btn--glass-demo .detail-btn__title {
  color: #0f172a;
}

.detail-btn--glass-demo .detail-btn__icon-svg {
  color: #0154f9;
}

.detail-btn--glass-demo:hover {
  background: rgba(239, 246, 255, 0.95);
  border-color: #0154f9;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(1, 84, 249, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.sistemas-nav__wa-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.sistema-btn-wa__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   MODAL LIGHTBOX HD FULLSCREEN (VISOR INTERACTIVO DE DEMO)
   ========================================================================== */
.sys-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sys-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sys-lightbox__dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  width: min(94vw, 900px, calc((100dvh - 7rem) * 16 / 9));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: lightbox-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sys-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sys-lightbox__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sys-lightbox__badge {
  background: #0154f9;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.sys-lightbox__title {
  font-family: var(--sys-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sys-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sys-lightbox__wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25d366;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.sys-lightbox__wa-btn:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.sys-lightbox__close {
  background: #e2e8f0;
  border: none;
  color: #475569;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sys-lightbox__close:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: rotate(90deg);
}

.sys-lightbox__body {
  position: relative;
  padding: 12px;
  background: #f8fafc;
  overflow: hidden;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  max-height: none;
}

.sys-lightbox__body img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: contain;
  display: block;
}

@media (max-width: 650px) {
  .detail-btn__subtitle {
    display: none;
  }
  .detail-btn {
    padding: 0.75rem 0.95rem;
  }
  .sys-lightbox__header {
    padding: 0.75rem 1rem;
  }
  .sys-lightbox__badge {
    display: none;
  }
}

.detail-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 1.5rem 0 1.5rem;
}

.detail-meta {
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-meta strong {
  color: #0f172a;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
}

.detail-meta-val {
  color: #334155;
  font-weight: 600;
}

/* Pestañas de Descripción / Módulos */
.detail-tabs-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
  margin-bottom: 4rem;
}

.detail-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.detail-tab-btn {
  background: none;
  border: none;
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.detail-tab-btn:hover {
  color: #0f172a;
}

.detail-tab-btn.is-active {
  color: #000000;
  border-bottom: 2.5px solid #000000;
  margin-bottom: -1px;
}

.detail-tab-pane {
  display: none;
  max-width: 820px;
  margin: 0 auto;
}

.detail-tab-pane.is-active {
  display: block;
}

.detail-desc-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  text-align: center;
}

.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1050px;
  margin: 0 auto;
}

.detail-feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.detail-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-feature-card:hover {
  transform: translateY(-2px);
  border-color: #bbf7d0;
  box-shadow: 0 20px 44px -26px rgba(15, 23, 42, 0.36);
}

.detail-feature-card:hover::before {
  opacity: 1;
}

.detail-feature-card__icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9px;
  background: #ecfdf5;
  color: #16a34a;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #d1fae5;
}

.detail-feature-card__icon svg {
  color: inherit;
}

.detail-feature-card__content {
  min-width: 0;
}

.detail-feature-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}

.detail-feature-card__text {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
  color: #64748b;
}

/* Publicidad del sistema */
.detail-marketing-section {
  padding-top: 1.5rem;
}

.detail-marketing-heading-wrap {
  text-align: center;
}

.detail-marketing-eyebrow {
  margin: 0;
  color: #0154f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-marketing-heading {
  margin: 0.35rem 0 0;
  font-family: var(--sys-font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #0f172a;
}

.detail-marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0;
}

.detail-media-card:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.detail-media-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.32);
}

.detail-media-card__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f8fafc;
  cursor: zoom-in;
}

.detail-media-card__video,
.detail-media-card__image {
  display: block;
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
  background: #f8fafc;
  pointer-events: none;
}

.detail-media-card__video {
  object-fit: cover;
  background: #0f172a;
}

.detail-media-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.24));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-media-card__preview:hover .detail-media-card__play {
  opacity: 1;
}

.detail-media-card__play svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.detail-media-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
}

.detail-media-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-media-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #0154f9;
  transition: all 0.18s ease;
}

.detail-media-card__download:hover {
  border-color: #0154f9;
  background: #0154f9;
  color: #ffffff;
}

.sys-lightbox__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0154f9;
  transition: all 0.18s ease;
}

.sys-lightbox__download:hover {
  background: #0154f9;
  color: #ffffff;
}

.sys-lightbox__body video {
  position: absolute;
  top: 12px;
  left: 12px;
  display: block;
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: contain;
  background: #000000;
}

.sys-lightbox__body video[hidden],
.sys-lightbox__body img[hidden],
.sys-lightbox__download[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .detail-marketing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .detail-marketing-grid {
    grid-template-columns: 1fr;
  }

  .detail-media-card__video,
  .detail-media-card__image {
    height: 210px;
    max-height: 210px;
  }
}
/* Sistemas Relacionados */
.detail-related-section {
  padding-top: 2rem;
  text-align: center;
}

.detail-related-heading {
  font-family: var(--sys-font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #000000;
  margin-bottom: 2rem;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Estado de búsqueda vacía */
.sistemas-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--sys-radius);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.sistemas-empty__icon {
  font-size: 2.8rem;
  margin-bottom: 0.85rem;
}
.sistemas-empty__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.sistemas-empty__desc {
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 1.2rem;
  font-size: 0.9rem;
}
.sistemas-reset-btn {
  background: #0154f9;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sistemas-reset-btn:hover {
  background: #003aae;
}

/* FOOTER */
.sistemas-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .detail-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sistemas-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .sistemas-main {
    padding-top: 4.8rem;
  }
}
@media (max-width: 550px) {
  .detail-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .detail-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .detail-features-grid {
    grid-template-columns: 1fr;
  }
}