/* Productos / Licencias layout - applies only to /services/productos/ */
body.productos-page.screen {
  display: block;
  place-items: initial;
  min-height: 100dvh;
  padding: 24px;
}

body.productos-page > main.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding-block: 24px;
}

body.productos-page .hero-title,
body.productos-page .service-detail-summary,
body.productos-page .productos-grid,
body.productos-page .service-detail-result,
body.productos-page .site-footer {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

body.productos-page .hero-title__row {
  text-decoration: none;
}

body.productos-page .service-detail-panel,
body.productos-page .services-panel,
body.productos-page .whoami-panel {
  width: 100%;
  max-width: 100%;
}

/* Grid de productos: se adapta y colapsa a una columna */
body.productos-page .service-detail-grid.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 0;
}

body.productos-page .productos-grid > .service-detail-panel--wide {
  grid-column: 1 / -1;
}

.productos-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.productos-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

/* Al llegar por ancla desde el carrusel del home, resalta la card. */
.productos-card:target {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.35);
}

.productos-card__logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 10px auto;
  border-radius: 8px;
}

.productos-card .service-detail-panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.productos-card h2 {
  margin: 0;
  color: var(--text);
}

.productos-card__tag {
  margin: 0;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.8vw, 13px);
  letter-spacing: 0.02em;
}

.productos-card__desc {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.productos-card .service-detail-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;        /* Separación uniforme (~24px) entre cada texto e imagen */
  list-style: none;   /* Quita los puntos si es una etiqueta <ul> */
  padding: 0;         /* Quita el sangrado por defecto de las listas */
}

/* Reglas complementarias para las imágenes de la lista */
.productos-card .service-detail-list img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Opcional: redondea un poco las esquinas de los capturas */
}

/* Tabla comparativa */
.productos-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.productos-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.productos-table th,
.productos-table td {
  padding: 12px 14px;
  border: 1px solid rgba(0, 255, 156, 0.18);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  line-height: 1.55;
}

.productos-table th {
  color: var(--green);
  background: rgba(0, 255, 156, 0.04);
}

.productos-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

.productos-footnote {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 940px) {
  body.productos-page.screen {
    padding: 14px;
  }

  body.productos-page .service-detail-grid.productos-grid {
    grid-template-columns: 1fr;
  }
}


.products-grid__cta-container {
  grid-column: 1 / -1;     
  display: flex;
  justify-content: center; 
  align-items: center;
  margin-top: 2rem;        
  padding: 1rem 0;
}