/* Compatibilidad con contenido antiguo */

.cards-grid{
  display:grid;
  gap:24px;
  margin:28px 0;
}

.cards-grid--3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.cards-grid--2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.cards-grid--1{
  grid-template-columns:1fr;
}

.cardx{
  background:var(--surface);
  transition:background .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease;
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px;
  box-shadow:var(--shadow-soft);
}

.cardx__head{
  display:flex;
  gap:14px;
  align-items:center;
}

.cardx__icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--surface-soft);
  border:1px solid var(--border);
  font-size:18px;
}

.cardx__title{
  font-weight:800;
  font-size:20px;
  line-height:1.2;
  color:var(--text);
}

.cardx__subtitle{
  color:var(--muted);
  font-size:14px;
  margin-top:2px;
}

.cardx__list{
  margin:16px 0 0;
  padding-left:18px;
  color:var(--muted);
}

.cardx__note{
  margin-top:16px;
  padding:14px;
  border-radius:12px;
  background:var(--surface-soft);
  border:1px solid var(--border);
  color:var(--muted);
}

.cardx__cta{
  margin-top:18px;
}

.btnx,
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid #111;
  border-radius:9px;
  background:#050609;
  color:#fff;
  font-weight:750;
  line-height:1;
  padding:13px 16px;
  text-decoration:none;
}

.btnx--ghost,
.chip{
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.stack{
  display:grid;
  gap:16px;
  margin-top:16px;
}

.stack__label{
  font-weight:800;
  color:var(--text);
}

.stack__icons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.stack__icons img{
  width:36px;
  height:36px;
  object-fit:contain;
}

/* DARK MODE */

[data-theme="dark"] .btnx{
  background:#F8FAFC;
  color:#0B0D10;
  border-color:#F8FAFC;
}

[data-theme="dark"] .btnx--ghost,
[data-theme="dark"] .chip{
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}

@media(max-width:900px){
  .cards-grid--3,
  .cards-grid--2{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MOBILE FIX - cards sin imágenes/iconos en móvil
   Pegar SIEMPRE al final del CSS
   ========================================================= */
@media screen and (max-width: 900px) {
  .cards-grid,
  .cards-grid--3,
  .cards-grid--2,
  .cards-grid--1 {
    grid-template-columns: 1fr !important;
  }

  .cardx__icon,
  .stack__icons,
  .stack__icons img {
    display: none !important;
  }

  .btnx,
  .chip {
    width: 100%;
  }
}
