/* /page/ia: tarjetas identicas a las de /juegos (icono grande, titulo, enlaces de texto) */
#channelkids-resources-wrapper h1{font-family:'Outfit',sans-serif!important;font-weight:900!important;color:#103d82!important}
#channelkids-resources-wrapper .category-title:not([data-category="material-didactico"]){font:800 clamp(24px,2.6vw,32px)/1.2 'Outfit',sans-serif!important;color:#1f3558!important;border-bottom:0!important;margin:2.4rem 0 .4rem!important;padding:0!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:14px!important;margin-top:18px}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card{position:relative;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;min-height:0;background:#fff!important;border:1px solid #e1e8f0!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important;transform:none!important;transition:border-color .15s,box-shadow .15s,transform .15s!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:hover{transform:translateY(-3px)!important;border-color:#9fd8f7!important;box-shadow:0 12px 22px -14px rgba(37,99,235,.4)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header{width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:22px 10px 8px!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;display:flex!important;justify-content:center!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-icon-tile img{width:64px!important;height:64px!important;object-fit:contain;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;filter:none}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-svg-tile svg{width:34px!important;height:34px!important;padding:15px;box-sizing:content-box;border-radius:18px;color:var(--ia-c,#2563eb)!important;background:color-mix(in srgb,var(--ia-c,#2563eb) 11%,#fff)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-svg-tile i{color:var(--ia-c,#2563eb)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=blue]{--ia-c:#2563eb}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=cyan]{--ia-c:#0891b2}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=amber]{--ia-c:#d97706}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=yellow]{--ia-c:#ca8a04}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=purple]{--ia-c:#7c3aed}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=pink]{--ia-c:#db2777}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=indigo]{--ia-c:#4f46e5}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=teal]{--ia-c:#0d9488}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=green]{--ia-c:#16a34a}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=emerald]{--ia-c:#059669}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=lime]{--ia-c:#65a30d}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=orange]{--ia-c:#ea580c}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=red]{--ia-c:#dc2626}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card[data-ia-tone=rose]{--ia-c:#e11d48}
/* texto: solo titulo, sin descripcion */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content{width:100%!important;padding:4px 10px 14px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;flex-grow:1;color:#64748b!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content h2{font:800 16.5px/1.25 'Outfit',sans-serif!important;color:#3a4f6d!important;margin:6px 0 12px!important;min-height:0!important;display:block!important;text-align:center}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content p{display:none!important}
/* enlaces de texto (Ver → / Crear +) */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-group{width:100%!important;margin-top:auto!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:6px 14px!important;flex-wrap:wrap!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn{flex:0 0 auto!important;display:inline-block!important;margin:0!important;padding:2px 0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;font:600 13.5px/1.3 'Outfit',sans-serif!important;color:#6b7c93!important;text-decoration:none!important;transition:color .12s!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn:hover{color:#0b6fa0!important;background:none!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-ver::after{content:" →"}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-crear{color:#0b8aa8!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-crear::after{content:" +"}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-grado{font-size:12px!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .new-badge{top:8px!important;right:8px!important;font-size:9.5px!important;padding:2px 7px!important;border:0!important;border-radius:999px!important;transform:none!important;box-shadow:none!important}
@media(max-width:560px){#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header{padding-top:18px!important}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-icon-tile img{width:58px!important;height:58px!important}}
/* iconos propios de cada herramienta (imagenes ya incluidas en la tarjeta): mismo tamano que los de juegos */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header img{width:64px!important;height:64px!important;max-width:none!important;object-fit:contain!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
@media(max-width:560px){#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header img{width:58px!important;height:58px!important}}

/* icono de linea de un solo color (herramientas que no son juegos) */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-line-tile{color:#0b8aa8!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-line-tile svg{width:64px!important;height:64px!important;display:block;margin:0 auto;padding:0!important;background:none!important;border:0!important;border-radius:0!important;color:#0b8aa8!important}
@media(max-width:560px){#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-line-tile svg{width:58px!important;height:58px!important}}

/* Planeacion Ingles: mismas reglas que el resto (anula estilos de la pagina) */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .new-badge{display:none!important}

/* sin parpadeo: el icono antiguo no se muestra hasta que el script pone el nuevo */
#channelkids-resources-wrapper:not([data-ia-ready]) .grid-container:not([data-category="material-didactico"]) .resource-card-header>*{visibility:hidden!important}
#channelkids-resources-wrapper:not([data-ia-ready]) .grid-container:not([data-category="material-didactico"]) .resource-card-header{min-height:92px!important}

/* botones Ver / Crear: pildoras con relieve (sustituyen a los enlaces de texto) */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-group{gap:8px!important;flex-wrap:nowrap!important;padding:0 10px!important;box-sizing:border-box}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px;flex:1 1 0!important;min-width:0;padding:8px 10px!important;border-radius:999px!important;font:800 13px/1 'Outfit',sans-serif!important;letter-spacing:.01em;white-space:nowrap;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s,color .15s,border-color .15s!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-ver{background:#f1f7fb!important;color:#3a4f6d!important;border:1.5px solid #d3e3ef!important;box-shadow:0 2px 0 #d3e3ef!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-ver:hover{background:#e0f2fe!important;color:#0369a1!important;border-color:#7dd3fc!important;box-shadow:0 2px 0 #7dd3fc!important;transform:translateY(-2px)}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-crear{background:linear-gradient(135deg,#0891b2,#0ea5e9)!important;color:#fff!important;border:1.5px solid transparent!important;box-shadow:0 3px 0 #0a6f8c,0 8px 14px -6px rgba(8,145,178,.55)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-crear:hover{background:linear-gradient(135deg,#0e7490,#0284c7)!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 5px 0 #0a6f8c,0 12px 18px -6px rgba(8,145,178,.6)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn:active{transform:translateY(1px)!important;box-shadow:none!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-ver::after{content:"→";transition:transform .15s}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-ver:hover::after{transform:translateX(3px)}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-crear::after{content:"+";font-size:15px;line-height:1;transition:transform .15s}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-crear:hover::after{transform:rotate(90deg)}
@media(max-width:560px){#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-group{gap:6px!important;padding:0 8px!important}#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn{padding:8px 6px!important;font-size:12.5px!important}}

/* tarjetas en colores pastel (6 tonos que se repiten) */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+1){--pbg:#e6f8f3;--pbd:#a9e6d6;--pc:#0d9488;--pcd:#0a766c}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+2){--pbg:#e8f3fd;--pbd:#b3d9f7;--pc:#0284c7;--pcd:#025f92}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+3){--pbg:#fff0e3;--pbd:#fbcfa5;--pc:#ea580c;--pcd:#b84408}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+4){--pbg:#fdebf4;--pbd:#f8bddb;--pc:#db2777;--pcd:#a91d5c}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+5){--pbg:#fdf6d9;--pbd:#f3de8a;--pc:#ca8a04;--pcd:#9a6a03}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:nth-child(6n+6){--pbg:#f1ecfd;--pbd:#cdbdf6;--pc:#7c3aed;--pcd:#5b21b6}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card{background:var(--pbg,#fff)!important;border:1.5px solid var(--pbd,#e1e8f0)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card:hover{border-color:var(--pc,#9fd8f7)!important;box-shadow:0 14px 24px -14px var(--pc,#2563eb)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content h2{color:var(--pcd,#3a4f6d)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-ver{background:#fff!important;color:var(--pcd,#3a4f6d)!important;border-color:var(--pbd,#d3e3ef)!important;box-shadow:0 2px 0 var(--pbd,#d3e3ef)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-ver:hover{background:var(--pbg,#e0f2fe)!important;color:var(--pcd)!important;border-color:var(--pc)!important;box-shadow:0 2px 0 var(--pc)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-crear{background:var(--pc,#0891b2)!important;box-shadow:0 3px 0 var(--pcd,#0a6f8c),0 8px 14px -6px var(--pc)!important}
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-content a.btn-crear:hover{background:var(--pcd,#0e7490)!important;box-shadow:0 5px 0 var(--pcd),0 12px 18px -6px var(--pc)!important}

/* sin flecha ni signo + en los botones */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-ver::after,#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .btn-crear::after{content:none!important;display:none!important}

/* todos los iconos con el mismo diseno: recuadro blanco de esquinas redondeadas */
#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header img,#channelkids-resources-wrapper .grid-container:not([data-category="material-didactico"]) .resource-card .resource-card-header.ia-line-tile svg{box-sizing:content-box!important;background:#fff!important;border-radius:18px!important;padding:8px!important;box-shadow:0 3px 10px rgba(15,23,42,.10)!important}

/* Tabs: .grid-container{display:grid!important} (kidsoo-gallery-system) anulaba el display:none del JS y mostraba todas las secciones mezcladas */
#channelkids-resources-wrapper .grid-container[style*="display: none"],#channelkids-resources-wrapper .grid-container[style*="display:none"],#channelkids-resources-wrapper .category-title[style*="display: none"],#channelkids-resources-wrapper .category-title[style*="display:none"]{display:none!important}
