:root{
  --atlas-cards-primary:#23323d;
  --atlas-cards-green:#8fbe98;
  --atlas-cards-green-dark:#164b3a;
  --atlas-cards-muted:#65717b;
  --atlas-cards-border:#dfe5e2;
  --atlas-cards-surface:#f5f7f6;
}

.atlas-cards{
  display:grid;
  grid-template-columns:repeat(var(--atlas-cards-columns,4),minmax(0,1fr));
  gap:20px;
}

.atlas-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--atlas-cards-border);
  border-radius:10px;
  background:#fff;
  box-shadow:0 7px 22px rgba(24,45,36,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.atlas-card:hover{
  transform:translateY(-3px);
  border-color:#b8d1bf;
  box-shadow:0 14px 34px rgba(24,45,36,.105);
}

.atlas-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none!important;
}

.atlas-card__media{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/10;
  background:#edf2ef;
}

.atlas-card__image{
  display:block;
  width:100%;
  height:100%!important;
  object-fit:cover;
  transition:transform .35s ease;
}

.atlas-card:hover .atlas-card__image{
  transform:scale(1.035);
}

.atlas-card__placeholder{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  background:
    radial-gradient(circle at 50% 35%,rgba(143,190,152,.32),transparent 34%),
    linear-gradient(135deg,#f7f4ea,#e7f1e9);
  color:var(--atlas-cards-green-dark);
  font-size:38px;
}

.atlas-card__body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:17px 17px 18px;
}

.atlas-card__meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 10px;
  min-height:18px;
  margin-bottom:7px;
}

.atlas-card__id{
  color:var(--atlas-cards-green-dark);
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.atlas-card__family{
  color:var(--atlas-cards-muted);
  font-size:10px;
  font-weight:650;
}

.atlas-card__title{
  margin:0 0 7px;
  color:var(--atlas-cards-primary);
  font-size:18px;
  font-weight:750;
  line-height:1.22;
}

.atlas-card__excerpt{
  margin:0;
  color:var(--atlas-cards-muted);
  font-size:13px;
  line-height:1.55;
}

.atlas-card__button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  padding-top:17px;
  color:var(--atlas-cards-green-dark);
  font-size:12px;
  font-weight:800;
}

.atlas-cards__empty{
  grid-column:1/-1;
  padding:28px;
  border:1px dashed var(--atlas-cards-border);
  border-radius:10px;
  color:var(--atlas-cards-muted);
  background:var(--atlas-cards-surface);
  text-align:center;
}

/* Compacto: útil para la portada actual de AtlasSaber */
.atlas-cards--style-compact .atlas-card{
  box-shadow:none;
}

.atlas-cards--style-compact .atlas-card__media{
  aspect-ratio:16/8.3;
}

.atlas-cards--style-compact .atlas-card__body{
  padding:11px 12px 13px;
}

.atlas-cards--style-compact .atlas-card__meta{
  margin-bottom:4px;
}

.atlas-cards--style-compact .atlas-card__title{
  margin-bottom:4px;
  font-size:15px;
}

.atlas-cards--style-compact .atlas-card__excerpt{
  font-size:11px;
  line-height:1.45;
}

/* Minimalista */
.atlas-cards--style-minimal .atlas-card{
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}

.atlas-cards--style-minimal .atlas-card:hover{
  transform:none;
  box-shadow:none;
}

.atlas-cards--style-minimal .atlas-card__body{
  padding:12px 0 4px;
}

@media(max-width:1024px){
  .atlas-cards{
    grid-template-columns:repeat(var(--atlas-cards-columns-tablet,2),minmax(0,1fr));
  }
}

@media(max-width:767px){
  .atlas-cards{
    grid-template-columns:repeat(var(--atlas-cards-columns-mobile,1),minmax(0,1fr));
  }
}

/* Resultados de búsqueda AtlasSaber 1.1.2 */
.atlas-search-results{
  padding:46px 20px 64px;
}

.atlas-search-results__inner{
  width:min(1180px,100%);
  margin:0 auto;
}

.atlas-search-results__header{
  margin:0 0 28px;
}

.atlas-search-results__title{
  margin:0;
  color:var(--atlas-cards-primary);
  font-size:clamp(28px,3vw,42px);
  font-weight:750;
  line-height:1.15;
}

.atlas-search-results__count{
  margin:8px 0 0;
  color:var(--atlas-cards-muted);
  font-size:14px;
}

.atlas-search-results__pagination{
  margin-top:34px;
}

.atlas-search-results__pagination .page-numbers{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.atlas-search-results__pagination a,
.atlas-search-results__pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:7px 11px;
  border:1px solid var(--atlas-cards-border);
  border-radius:8px;
  color:var(--atlas-cards-primary);
  background:#fff;
  text-decoration:none!important;
}

.atlas-search-results__pagination .current{
  border-color:var(--atlas-cards-green);
  background:var(--atlas-cards-green);
  font-weight:800;
}

@media(max-width:767px){
  .atlas-search-results{
    padding:30px 16px 46px;
  }
}
