/* Shared creative design for all public templates. */
@font-face {
	font-family: "Magia Fredoka";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/fredoka-variable.woff2") format("woff2");
}
body { background: #fffcf6; }
.site-shell { width: min(100% - 3rem, 1180px); }
.site-header { position: relative; z-index: 5; background: #fffefb; border: 0; border-image: none; box-shadow: 0 2px 16px #15394e08; }
.site-header__inner { min-height: 5.5rem; gap: 1.5rem; }
.site-brand { flex-shrink: 0; }
.site-header .site-brand__name { color: #12364a; font-family: "Magia Fredoka", sans-serif; font-weight: 600; max-width: 11rem; font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.04em; }
.site-header .site-brand__tagline { font-size: 0.61rem; max-width: 11rem; line-height: 1.35; color: #536273; }
.site-header .site-brand__mark { width: 3.2rem; height: 3.2rem; }
.site-navigation { margin-left: auto; }
.primary-navigation li:last-child a { margin: 0; padding-inline: 0.6rem; border: 0; }
.site-navigation a { padding: 0.6rem; font-size: 0.8rem; color: #173a4f; white-space: nowrap; }
.creative-header-link, .creative-button { color: #fff; background: #c4424e; border: 0; border-radius: 1rem; box-shadow: 0 6px 0 #a3323d14; font-weight: 800; text-decoration: none; }
.creative-header-link { padding: 0.8rem 1.1rem; font-size: 0.8rem; white-space: nowrap; }
.creative-header-link:hover, .creative-button:hover { color: #fff; background: #a93440; }
:root {
 --magia-font-heading: "Magia Fredoka", "Nunito Sans", sans-serif;
 --magia-color-text: #12364a;
 --magia-color-muted: #526373;
 --magia-color-primary: #c4424e;
 --magia-color-primary-dark: #a93440;
}
h1, h2, h3 { color: #12364a; font-weight: 550; line-height: 1.18; }
.site-main { color: #12364a; }
.magia-breadcrumbs a { color: #16616a; text-underline-offset: 0.25em; }
.magia-button, .wp-element-button, .wp-block-button__link { border-radius: 0.9rem; }
.hub-hero { position: relative; grid-template-columns: 1fr; padding: clamp(1.5rem, 4vw, 3rem); border: 0; border-radius: 1.8rem; background: radial-gradient(ellipse at 100% 0, #c5eee3, transparent 58%), #fff2bd; }
.hub-hero h1 { max-width: 24ch; margin-bottom: 1rem; font-size: clamp(2.4rem, 4.5vw, 4rem); }
.hub-hero__intro { font-size: 1.05rem; line-height: 1.75; }
.hub-main .collection-preview-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.4rem; }
.collection-preview-card { --tile-color: #cef0d7; --tile-accent: #237349; background: var(--tile-color); border: 0; border-radius: 1.2rem; padding: 1.2rem; box-shadow: 0 7px 16px #15394e07; }
.collection-preview-card:nth-child(3n + 2) { --tile-color: #fff0ac; --tile-accent: #7a5410; }
.collection-preview-card:nth-child(3n) { --tile-color: #e8dcfa; --tile-accent: #6c459c; }
.collection-preview-card.collection-preview-card--dibujos-de-gatos-para-colorear { --tile-color: #ffdbd3; --tile-accent: #a73643; }
.collection-preview-card.collection-preview-card--dibujos-de-capibaras-para-colorear, .collection-preview-card.collection-preview-card--dibujos-de-animales-de-granja-para-colorear { --tile-color: #fff0ac; --tile-accent: #7a5410; }
.collection-preview-card.collection-preview-card--dibujos-de-ajolotes-para-colorear { --tile-color: #e8dcfa; --tile-accent: #6c459c; }
.collection-preview-card__image { margin: 0 0 1rem; padding: 0; border: 0; border-radius: 0.8rem; background: transparent; max-height: 24rem; }
.hub-main .collection-preview-card__image { position: relative; flex-shrink: 0; max-height: none; }
.hub-main .collection-preview-card__image img { position: absolute; inset: 0; }
.collection-preview-card__status { color: var(--tile-accent); font-weight: 800; }
.collection-preview-card > p:not(.collection-preview-card__status), .collection-preview-card .magia-meta { color: #344c5a; }
.hub-main .collection-preview-card > p:not(.collection-preview-card__status):not(.magia-meta) { display: block; -webkit-line-clamp: unset; overflow: visible; }
.collection-preview-card .magia-meta { border-color: #ffffffa8; }
.collection-preview-card__link { background: #ffffffc9; border-radius: 0.8rem; padding: 0.75rem; min-height: 2.75rem; justify-content: center; text-decoration: none; color: var(--tile-accent); }
.collection-preview-card__link:hover { background: #fff; color: #12364a; }
.hub-editorial, .hub-directory { background: #fffefb; border-radius: 1.2rem; }
.collection-header h1 { font-weight: 550; color: #12364a; }
.collection-hero { position: relative; background: radial-gradient(ellipse at 5% 5%, #fff2bd, transparent 60%); border-radius: 1.8rem; padding: clamp(1.2rem, 3vw, 2.4rem); }
.collection-cover, .collection-cover img { border-radius: 1rem; }
.collection-summary { background: #e7f7ef; border: 0; border-radius: 1.3rem; }
.collection-card { border-radius: 1.1rem; overflow: hidden; }
.collection-card__image, .collection-card__body { background: #fff; }
.collection-card__actions .magia-button { border-radius: 0.65rem; }
.collection-steps li, .collection-activity-list li, .collection-related-list li, .collection-license { border-radius: 1.1rem; }
.collection-license h2 { color: #fff; }
.collection-faq details { background: #fffefb; border-radius: 0.9rem; }
.content-column > article, .search-results-content { background: #fffefb; border: 1px solid #e4e9e4; border-radius: 1.6rem; padding: clamp(1.2rem, 4vw, 3rem); box-shadow: 0 8px 28px #15394e05; }
.content-column > article > header { padding-bottom: 1.3rem; margin-bottom: 1.5rem; border-bottom: 4px solid #c5eee3; }
.content-column h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.entry-content { line-height: 1.8; }
.entry-content h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.search-results-content article { margin-top: 1.5rem; padding: 1.2rem; border-radius: 1rem; background: #e9f6f2; }
.search-results-content article:nth-of-type(even) { background: #fff2cc; }
.search-results-content article h2 { font-size: 1.65rem; }
.site-footer .site-brand__name { font-family: "Magia Fredoka", sans-serif; color: #fff; }
.creative-topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: -0.2rem 0 1.25rem; font-size: 0.85rem; color: #526373; }
.creative-topic-nav a { color: #16616a; background: #e9f6f2; font-weight: 800; border-radius: 2rem; padding: 0.6rem 1rem; min-height: 2.75rem; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #12364a; outline-offset: 4px; }
@media (max-width: 64rem) {
 .site-header__inner { gap: 0.5rem; }
 .creative-header-link { font-size: 0.73rem; padding-inline: 0.8rem; }
 .site-navigation a { padding-inline: 0.45rem; }
}
@media (max-width: 56rem) { .creative-header-link { display: none; } }
@media (max-width: 48rem) {
 .site-shell { width: min(100% - 2rem, 1180px); }
 .site-header__inner { min-height: 5rem; flex-wrap: wrap; }
 .site-navigation { margin: 0; width: 100%; }
 .site-header .site-brand__name { font-size: 1.3rem; }
 .hub-hero { padding: 1.4rem; }
 .collection-hero { padding: 1.1rem; }
}
@media print {
 .creative-header-link { display: none; }
 .hub-hero, .collection-hero, .content-column > article { background: #fff; box-shadow: none; }
}
/* A quiet, illustrated-library footer shared by every template. */
.site-footer.creative-footer { position: relative; isolation: isolate; overflow: hidden; background: #e7f6ef; color: #344f59; border: 0; margin-top: 2rem; }
.site-footer.creative-footer::before { content: ""; position: absolute; z-index: -1; top: -2.6rem; left: -5%; width: 110%; height: 4rem; border-radius: 0 0 50% 50%; background: #fffcf6; }
.creative-footer::after { content: "✦"; position: absolute; right: 4%; top: 2.8rem; font-size: 4rem; line-height: 1; color: #bddfcc; transform: rotate(12deg); pointer-events: none; z-index: -1; }
.creative-footer .site-footer__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 2rem 4rem; padding-block: 4rem 1.5rem; }
.creative-footer .site-brand, .creative-footer .site-brand:hover, .creative-footer .site-brand__name { color: #12364a; }
.creative-footer .site-brand__name { max-width: 12rem; font-size: 1.75rem; line-height: 1.05; }
.creative-footer .site-brand__tagline { display: none; }
.creative-footer .site-brand__mark { width: 3.3rem; height: 3.3rem; }
.creative-footer__intro { max-width: 23rem; margin: 1.2rem 0 1rem; font-size: 0.9rem; line-height: 1.7; }
.creative-footer__colors { display: flex; gap: 0.45rem; }
.creative-footer__colors i { width: 1.6rem; height: 0.45rem; border-radius: 1rem; background: #f18e90; }
.creative-footer__colors i:nth-child(2) { background: #efc752; }
.creative-footer__colors i:nth-child(3) { background: #69bfa9; }
.creative-footer__colors i:nth-child(4) { background: #ac95d7; }
.creative-footer h2 { font-size: 1.25rem; margin: 0.25rem 0 0.8rem; color: #12364a; }
.creative-footer .site-footer__navigation { justify-self: stretch; }
.creative-footer nav ul { display: grid; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.creative-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.4rem; color: #344f59; font-size: 0.9rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.creative-footer nav a:hover { color: #a93440; text-decoration: underline; text-underline-offset: 0.25em; }
.creative-footer .site-footer__meta { grid-column: 1 / -1; border-color: #c5ded2; padding-top: 1.2rem; color: #435f68; font-size: 0.78rem; }
@media (max-width: 56rem) {
 .creative-footer .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2rem; }
 .creative-footer__brand { grid-column: 1 / -1; }
 .creative-footer__intro { max-width: 32rem; }
}
@media (max-width: 36rem) {
 .creative-footer .site-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3.3rem; }
 .creative-footer .site-footer__meta { flex-direction: column; gap: 0.5rem; }
 .creative-footer .site-brand__name { font-size: 1.6rem; }
 .creative-footer h2 { margin-bottom: 0.4rem; }
}
.creative-footer nav ul { justify-content: start; }
.creative-footer::after { content: ""; width: 3.5rem; height: 3.5rem; background: #bddfcc; clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); }
