/* ==========================================================================
   TARJETAS ESCOLARES AMIGABLES para el resto de galerias del sitio
   (monografias, material educativo, cuaderno magico, examenes y el bloque
   "Mira lo que los maestros ya crearon" de cada galeria).
   Para sumar otra galeria basta agregar su clase en estas listas.
   ========================================================================== */
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card) {
    --c: #8b5cf6; --bg: #f5f3ff; --bd: #ddd6fe;
    background: var(--bg) !important;
    border: 2.5px solid var(--bd) !important;
    border-radius: 26px !important;
    box-shadow: 0 6px 0 var(--bd), 0 14px 24px -10px rgba(15, 23, 42, .18) !important;
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s ease, border-color .2s ease !important;
    overflow: hidden;
}
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+1) { --c: #0d9488; --bg: #f0fdfa; --bd: #99f6e4; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+2) { --c: #0284c7; --bg: #f0f9ff; --bd: #bae6fd; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+3) { --c: #ea580c; --bg: #fff7ed; --bd: #fed7aa; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+4) { --c: #db2777; --bg: #fdf2f8; --bd: #fbcfe8; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+5) { --c: #ca8a04; --bg: #fefce8; --bd: #fde68a; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):nth-child(6n+6) { --c: #7c3aed; --bg: #f5f3ff; --bd: #ddd6fe; }
:is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card):hover {
    transform: translateY(-7px) rotate(-.8deg) scale(1.02) !important;
    border-color: var(--c) !important;
    box-shadow: 0 8px 0 var(--c), 0 20px 30px -12px rgba(15, 23, 42, .28) !important;
}
/* portada enmarcada */
:is(.mg-card-cover, .cm-card-cover, .ex-card-cover) {
    margin: 9px 9px 0;
    border-radius: 19px !important;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .14);
}
.ck-gallerypage-preview__card > img { border-radius: 16px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .12); }
/* etiqueta de tipo como "sticker" del color de la card */
:is(.mg-card-type, .cm-card-type, .ex-card-type) {
    background: var(--c) !important;
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 50px !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .2);
    transform: rotate(-2deg);
    align-self: flex-start;
}
:is(.mg-card-type, .cm-card-type, .ex-card-type) i { color: #fff !important; }
:is(.mg-card-title, .cm-card-title, .ex-card-title, .ck-gallerypage-preview__card-title) {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}
:is(.mg-card-meta, .cm-card-meta, .ex-card-meta) {
    border-top: 2.5px dashed var(--bd) !important;
    padding-top: 9px;
}
:is(.mg-card-meta, .cm-card-meta, .ex-card-meta) > span:first-child { color: var(--c); font-weight: 700; }
@media (max-width: 540px) {
    :is(.mg-card, .cm-card, .ex-card, .ck-gallerypage-preview__card) { border-radius: 20px !important; box-shadow: 0 4px 0 var(--bd), 0 8px 16px -8px rgba(15, 23, 42, .18) !important; }
    :is(.mg-card-cover, .cm-card-cover, .ex-card-cover) { margin: 6px 6px 0; border-radius: 14px !important; border-width: 2px; }
}
