.swa-resources-page{
  max-width:1280px;
  margin:0 auto;
  padding:24px 0 48px;
}
.swa-resources-intro{
  min-height:150px;
  margin:0 auto 28px;
  border-radius:14px;
  background:#f7f9fc;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.swa-resources-intro-inner{
  width:100%;
  max-width:760px;
  margin:0 auto;
  padding:24px 28px;
  text-align:center;
  color:#555;
  font-size:1.05rem;
  line-height:1.5;
}
.swa-resources-intro.swa-has-background .swa-resources-intro-inner{
  width:100%;
  min-width:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
}
.swa-resources-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.swa-resource-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 5px 18px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  min-width:0;
  transition:transform .2s ease,box-shadow .2s ease;
}
.swa-resource-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.09);
}
.swa-resource-image{
  aspect-ratio:16/10;
  background:#f6f6f6;
  overflow:hidden;
}
.swa-resource-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.swa-resource-body{
  padding:18px;
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
}
.swa-resource-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#6b7280;
  font-size:.84rem;
}
.swa-pdf-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:24px;
  padding:0 7px;
  border-radius:6px;
  background:#e53935;
  color:#fff;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
}
.swa-pdf-label{font-weight:600}
.swa-resource-body h3{font-size:1.08rem;margin:0 0 10px}
.swa-resource-description{color:#666;font-size:.94rem;margin-bottom:16px}
.swa-resource-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:auto;
}
.swa-resource-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-width:0;
  white-space:nowrap;
  text-align:center;
  line-height:1.2;
  padding:.72rem .8rem;
}
.swa-btn-view,
.swa-btn-download{
  transition:transform .2s ease,box-shadow .2s ease;
}

.swa-btn-view:hover,
.swa-btn-view:focus,
.swa-btn-download:hover,
.swa-btn-download:focus{
  transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(0,0,0,.12);
}

.swa-btn-download{
  font-size:.95rem;
}

@media(max-width:1100px){
  .swa-resources-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
  .swa-resources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .swa-resources-intro{min-height:130px}
}
@media(max-width:520px){
  .swa-resources-grid{grid-template-columns:1fr}
  .swa-resources-intro{
    min-height:auto;
    margin-bottom:22px;
    background-image:none !important;
    background:#f7f9fc !important;
    border:1px solid #edf1f5;
    border-radius:12px;
  }
  .swa-resources-intro-inner{
    padding:18px 14px;
    font-size:.95rem;
    line-height:1.4;
  }
}

/* v2.0.1 - iconos de acciones */
.swa-btn-icon {
  display:inline-flex;
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.swa-btn-icon svg {
  width:18px;
  height:18px;
  fill:currentColor;
  display:block;
}

/* v2.0.1 - colores de botones configurables */
.swa-custom-button-colors .swa-btn-view{
  background:var(--swa-view-color) !important;
  border-color:var(--swa-view-color) !important;
  color:#fff !important;
}
.swa-custom-button-colors .swa-btn-view:hover,
.swa-custom-button-colors .swa-btn-view:focus{
  background:var(--swa-view-hover) !important;
  border-color:var(--swa-view-hover) !important;
  color:#fff !important;
}
.swa-custom-button-colors .swa-btn-download{
  background:var(--swa-download-color) !important;
  border-color:var(--swa-download-color) !important;
  color:#fff !important;
}
.swa-custom-button-colors .swa-btn-download:hover,
.swa-custom-button-colors .swa-btn-download:focus{
  background:var(--swa-download-hover) !important;
  border-color:var(--swa-download-hover) !important;
  color:#fff !important;
}
