/* ==========================================================================
   TARJETAS ESCOLARES AMIGABLES (misma linea que las galerias) en el inicio:
   planeaciones por grado + "Mira lo que los maestros ya crearon".
   ========================================================================== */
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__card {
    background: color-mix(in srgb, var(--sp-soft) 55%, #fff) !important;
    border: 2.5px solid color-mix(in srgb, var(--sp-a) 75%, #fff) !important;
    border-radius: 26px !important;
    box-shadow: 0 6px 0 color-mix(in srgb, var(--sp-a) 75%, #fff), 0 14px 24px -10px color-mix(in srgb, var(--sp-acc) 40%, transparent) !important;
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s ease, border-color .2s ease;
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__card:hover {
    transform: translateY(-7px) rotate(-.8deg) scale(1.02);
    border-color: var(--sp-acc) !important;
    box-shadow: 0 8px 0 var(--sp-acc), 0 20px 30px -12px color-mix(in srgb, var(--sp-acc) 55%, transparent) !important;
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__media {
    margin: 9px 9px 0 !important;
    border-radius: 19px !important;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .14);
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__badge {
    background: var(--sp-acc) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50px !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .25) !important;
    transform: rotate(-2deg);
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__period {
    background: #fff !important;
    border: 2px dashed color-mix(in srgb, var(--sp-a) 85%, #fff);
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__body h4 { text-align: center; }
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__body { text-align: center; }
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__footer {
    border-top: 2.5px dashed color-mix(in srgb, var(--sp-a) 75%, #fff) !important;
    margin-top: 6px !important;
}
body .panel.panel.panel.panel:has(.ck-planeaciones-preview) .ck-planeaciones-preview__cta {
    background: var(--sp-acc);
    color: #fff !important;
    padding: 7px 14px !important;
    border-radius: 50px;
    box-shadow: 0 3px 0 rgba(15, 23, 42, .18);
}

/* Bloque "Mira lo que los maestros ya crearon": tarjetas de material didactico */
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card {
    --c: #8b5cf6; --bg: #f5f3ff; --bd: #ddd6fe;
    background: var(--bg) !important;
    border: 2.5px solid var(--bd) !important;
    border-radius: 24px !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;
}
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card:nth-child(4n+1) { --c: #0d9488; --bg: #f0fdfa; --bd: #99f6e4; }
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card:nth-child(4n+2) { --c: #0284c7; --bg: #f0f9ff; --bd: #bae6fd; }
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card:nth-child(4n+3) { --c: #ea580c; --bg: #fff7ed; --bd: #fed7aa; }
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card:nth-child(4n+4) { --c: #db2777; --bg: #fdf2f8; --bd: #fbcfe8; }
.ck-home-gallery-preview__grid > .ck-home-gallery-preview__card:hover {
    transform: translateY(-7px) rotate(-.8deg) scale(1.02);
    border-color: var(--c) !important;
    box-shadow: 0 8px 0 var(--c), 0 20px 30px -12px rgba(15, 23, 42, .28) !important;
}
.ck-home-gallery-preview__card > img { border-radius: 16px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .12); }
.ck-home-gallery-preview__card .ck-home-gallery-preview__card-title { color: #1e293b; font-family: 'Outfit', sans-serif; font-weight: 800; }
