/* Herramientas IA (/page/ia), buscador de planeaciones y galerias tipo ".grid > .card" */
.resource-card, .ck-plan-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(.resource-card, .ck-plan-card):nth-child(6n+1) { --c: #0d9488; --bg: #f0fdfa; --bd: #99f6e4; }
:is(.resource-card, .ck-plan-card):nth-child(6n+2) { --c: #0284c7; --bg: #f0f9ff; --bd: #bae6fd; }
:is(.resource-card, .ck-plan-card):nth-child(6n+3) { --c: #ea580c; --bg: #fff7ed; --bd: #fed7aa; }
:is(.resource-card, .ck-plan-card):nth-child(6n+4) { --c: #db2777; --bg: #fdf2f8; --bd: #fbcfe8; }
:is(.resource-card, .ck-plan-card):nth-child(6n+5) { --c: #ca8a04; --bg: #fefce8; --bd: #fde68a; }
:is(.resource-card, .ck-plan-card):nth-child(6n+6) { --c: #7c3aed; --bg: #f5f3ff; --bd: #ddd6fe; }
:is(.resource-card, .ck-plan-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;
}
.resource-card .resource-card-header { margin: 9px 9px 0; border-radius: 19px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .14); }
.resource-card .resource-card-content h2 { font-family: 'Outfit', sans-serif; font-weight: 800; color: #1e293b; text-align: center; }
.resource-card .resource-card-content p { text-align: center; }
.resource-card .btn { border-radius: 50px !important; box-shadow: 0 3px 0 rgba(15, 23, 42, .18); }
.resource-card .btn-crear { background: var(--c) !important; }
.resource-card .btn-ver { background: #fff !important; color: var(--c) !important; border: 2px dashed var(--bd) !important; box-shadow: none; }
.resource-card .new-badge { border: 2px solid #fff; border-radius: 50px !important; transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(15, 23, 42, .22); }
.ck-plan-card .ck-card-cover { margin: 9px 9px 0; border-radius: 19px; border: 3px solid #fff; overflow: hidden; box-shadow: 0 3px 10px rgba(15, 23, 42, .14); }
.ck-plan-card .ck-grade-tag { border: 2px solid #fff; border-radius: 50px !important; box-shadow: 0 3px 8px rgba(15, 23, 42, .22); transform: rotate(-2deg); }
.ck-plan-card .ck-card-name, .ck-plan-card .ck-card-name a { font-family: 'Outfit', sans-serif; font-weight: 800; color: #1e293b !important; text-align: center; }
@media (max-width: 540px) {
    :is(.resource-card, .ck-plan-card) { border-radius: 20px !important; box-shadow: 0 4px 0 var(--bd), 0 8px 16px -8px rgba(15, 23, 42, .18) !important; }
}

/* Galerias de proyectos (preescolar, etc.): ".grid > .card" con imagen */
.grid > .card:has(.card-img-container) {
    --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 !important;
}
.grid > .card:has(.card-img-container):nth-child(6n+1) { --c: #0d9488; --bg: #f0fdfa; --bd: #99f6e4; }
.grid > .card:has(.card-img-container):nth-child(6n+2) { --c: #0284c7; --bg: #f0f9ff; --bd: #bae6fd; }
.grid > .card:has(.card-img-container):nth-child(6n+3) { --c: #ea580c; --bg: #fff7ed; --bd: #fed7aa; }
.grid > .card:has(.card-img-container):nth-child(6n+4) { --c: #db2777; --bg: #fdf2f8; --bd: #fbcfe8; }
.grid > .card:has(.card-img-container):nth-child(6n+5) { --c: #ca8a04; --bg: #fefce8; --bd: #fde68a; }
.grid > .card:has(.card-img-container):nth-child(6n+6) { --c: #7c3aed; --bg: #f5f3ff; --bd: #ddd6fe; }
.grid > .card:has(.card-img-container):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; }
.grid > .card:has(.card-img-container) .card-img-container { margin: 9px 9px 0; width: calc(100% - 18px) !important; box-sizing: border-box; max-width: calc(100% - 18px); border-radius: 19px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .14); }
.grid > .card:has(.card-img-container) .card-img-title-overlay { left: 8px; right: 8px; bottom: 8px; padding: 5px 9px; border-radius: 14px; background: rgba(255, 255, 255, .93); color: #1e293b; text-shadow: none; font-weight: 800; }
.grid > .card:has(.card-img-container) .card-badge-pill { background: var(--c) !important; color: #fff !important; border: 2px solid #fff; border-radius: 50px; transform: rotate(-2deg); }
.grid > .card:has(.card-img-container) .card-title { text-align: center; }
.grid > .card:has(.card-img-container) .card-footer { border-top: 2.5px dashed var(--bd); background: transparent; }
.grid > .card:has(.card-img-container) .card-action-link { background: var(--c); color: #fff !important; padding: 6px 13px; border-radius: 50px; box-shadow: 0 3px 0 rgba(15, 23, 42, .18); }
