/* eMarket — Soluciones Page */

/* ===== SISTEMAS WEB ===== */
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.sistema-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-top-color .2s;
}
.sistema-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-top-color: var(--primary-500);
}

/* Card recomendada */
.sistema-card--recommended {
  border-color: var(--primary-500);
  border-top-color: var(--primary-500);
  position: relative;
}
.sistema-card--recommended::before {
  content: '⭐ Más vendido';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Ícono con contenedor circular */
.sistema-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: background .2s;
}
.sistema-card:hover .sistema-card__icon {
  background: color-mix(in srgb, var(--primary-500) 22%, transparent);
}

.sistema-card__title { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: .5rem; }
.sistema-card__para  { font-size: .8rem; color: var(--primary-500); font-weight: 600; margin-bottom: .75rem; }
.sistema-card__desc  { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; flex: 1; line-height: 1.6; }

.sistema-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sistema-card__features li {
  font-size: .83rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.sistema-card__features li::before {
  content: '✓';
  color: var(--primary-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Planes (mensual / anual) bajo cada sistema */
.sistema-card__planes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.plan-pill {
  border: 1px solid var(--border-color);
  border-radius: .75rem;
  padding: .75rem;
  text-align: center;
  position: relative;
  transition: border-color .2s;
}
.plan-pill--popular {
  border-color: var(--primary-500);
  background: color-mix(in srgb, var(--primary-500) 6%, transparent);
}
.plan-pill__badge {
  position: absolute;
  top: -.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-500);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-pill__name  { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.plan-pill__price { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-main); }
.plan-pill__sub   { display: block; font-size: .68rem; color: var(--text-muted); margin-top: .1rem; }


/* ===== SISTEMA ESCRITORIO ===== */
.escritorio-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.escritorio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.escritorio-table th,
.escritorio-table td {
  padding: .85rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: .9rem;
}
.escritorio-table th:first-child,
.escritorio-table td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}
.escritorio-table thead th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-main);
}
.escritorio-table thead th.col-highlight {
  background: var(--primary-500);
  color: #fff;
}
.escritorio-table tr:last-child td { border-bottom: none; }
.escritorio-table .price-row td {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-500);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.escritorio-table .price-row td.col-highlight {
  background: color-mix(in srgb, var(--primary-500) 6%, transparent);
}
.check-yes { color: #22c55e; font-size: 1.1rem; }
.check-no  { color: var(--text-muted); font-size: 1.1rem; }

.escritorio-table tbody tr:hover td {
  background: var(--bg-card);
}
.escritorio-table tbody tr:hover td.col-highlight {
  background: color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.escritorio-cta { display: flex; gap: .75rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }

/* ===== HERO ===== */
.sol-hero {
  background: linear-gradient(135deg, #0a0a29 0%, #141452 100%);
  padding: 8rem 0 3rem;
  color: #fff;
  text-align: center;
}
.sol-hero h1 {
  color: #fff;
  margin: .5rem 0 .75rem;
}
.sol-hero p {
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== CTA FINAL ===== */
.sol-cta {
  background: linear-gradient(135deg, #0a0a29 0%, #141452 100%);
}
.sol-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.sol-cta h2 {
  color: #fff;
  margin-bottom: .75rem;
}
.sol-cta p {
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
}
.sol-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BADGE GLASS (sobre fondos oscuros) ===== */
.badge--glass {
  background: rgba(0,123,255,.2);
  color: #66b0ff;
  border: 1px solid rgba(0,123,255,.3);
}
.sol-cta .badge--glass { margin-bottom: 1rem; }

/* ===== BTN WHATSAPP ===== */
.btn--whatsapp {
  background: #25d366;
  color: #fff !important;
  border-color: transparent;
}
.btn--whatsapp:hover { background: #1ebe5d; }

/* ===== PROMO — overrides específicos de la tabla de escritorio ===== */
/* dark mode: highlighted cell → texto blanco */
[data-theme="dark"] .escritorio-table .price-row td.col-highlight .price-discounted {
  color: #fff;
}
