/*
Theme Name: DibujoKawaii
Theme URI: https://dibujokawaii.com
Author: dibujokawaii.com
Author URI: https://dibujokawaii.com
Description: Theme a medida para dibujokawaii.com — dibujos kawaii para colorear e imprimir y tutoriales paso a paso. Arquitectura de dos silos (Colorear/Imprimir + Cómo dibujar) con enlazado interno bidireccional, schema HowTo y diseño 100% fiel al manual de identidad kawaii. No es un ecommerce: es un sitio de contenido (fichas para colorear + tutoriales).
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dibujokawaii
Tags: blog, education, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DibujoKawaii — Sistema de diseño (Manual de Identidad v1.0)
   Paleta 60-30-10 · Fredoka (titulares) + Quicksand (cuerpo)
   ============================================================ */

:root {
  /* Azul — color de marca (30%) */
  --blue:          #6aaae4;
  --blue-pastel:   #d6ebf8;
  --blue-dark:     #4a8fc7;
  --blue-deeper:   #3375ad;

  /* Fondo del menú (editable desde Personalizar) */
  --dk-nav-bg:     #6aaae4;

  /* Amarillo — acento cálido */
  --yellow:        #ffc56d;
  --yellow-pastel: #fff4e0;
  --yellow-deep:   #f5a835;

  /* Coral — SOLO CTAs, badges y alertas (10%) */
  --coral:         #ff595a;
  --coral-hover:   #e64a4b;
  --coral-light:   #ffe0e0;

  /* Neutros y fondo (60%) */
  --cream:         #f8fafc;
  --cream-dark:    #eef2f6;
  --white:         #ffffff;

  /* Texto */
  --text:          #1e2d3d;
  --text-mid:      #4a5568;
  --text-light:    #8090a4;

  /* Acentos de categoría (pills) */
  --mint:          #c8f5e0;
  --mint-text:     #2d8a5e;
  --lavender:      #e8d5ff;
  --lavender-text: #6b3fa0;

  /* Radios */
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   26px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow:    0 6px 24px rgba(106,170,228,.20);
  --shadow-lg: 0 16px 48px rgba(106,170,228,.22);
  --shadow-coral: 0 6px 20px rgba(255,89,90,.30);

  /* Layout */
  --container: 1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── Tipografía ── */
h1, h2, h3, h4, .font-display {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(34px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.4vw, 32px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 20px; font-weight: 600; }

a { color: var(--blue-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-deeper); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral);
}

/* ── Layout helpers ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.text-center { text-align: center; }
.lead { font-size: 18px; color: var(--text-mid); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-family: 'Quicksand', sans-serif;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .22s ease; text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-hover); color:#fff; transform: translateY(-2px); }
.btn-secondary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(106,170,228,.3); }
.btn-secondary:hover { background: var(--blue-dark); color:#fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-pastel); color: var(--blue-deeper); }
.btn-ghost { background: var(--cream-dark); color: var(--text-mid); }
.btn-ghost:hover { background: var(--white); }
.btn-lg { padding: 17px 38px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ── Pills / tags ── */
.tag { display:inline-block; padding: 5px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }
.tag-blue { background: var(--blue-pastel); color: var(--blue-dark); }
.tag-yellow { background: var(--yellow-pastel); color: var(--yellow-deep); }
.tag-coral { background: var(--coral-light); color: var(--coral-hover); }
.tag-mint { background: var(--mint); color: var(--mint-text); }
.tag-lavender { background: var(--lavender); color: var(--lavender-text); }
.badge {
  display:inline-block; background: var(--coral); color:#fff;
  font-size: 10px; font-weight: 700; letter-spacing:.04em;
  padding: 4px 10px; border-radius: var(--radius-full);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: relative; z-index: 60; }

/* Fila 1 — logo arriba del todo (altura máx. controlada desde Personalizar) */
.header-top { background: var(--white); border-bottom: 1px solid var(--cream-dark); }
.header-top-inner { display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.header-top .custom-logo, .header-top .custom-logo-link img { max-height: 70px; width: auto; display: block; }
.site-brand { display: flex; align-items: center; gap: 9px; font-family:'Fredoka',sans-serif; font-weight:700; font-size: 24px; color: var(--blue-dark); }
.site-brand:hover { color: var(--blue-deeper); }
.site-brand .brand-emoji { font-size: 30px; }

/* Fila 2 — barra de menú azul oficial, siempre a la vista (sticky) */
.header-nav-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--dk-nav-bg, var(--blue));
  box-shadow: 0 4px 16px rgba(30,45,61,.12);
}
.header-nav-inner { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  display:flex; align-items:center; gap:6px;
  padding: 14px 16px; 
  font-size: 14.5px; font-weight: 700; color: #fff;
  border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255,255,255,.18); color:#fff; }
.main-nav .nav-cta > a, .nav-cta a {
  background: var(--white); color: var(--coral-hover);
  margin-left: 6px; padding: 9px 16px; border-radius: var(--radius-full);
}
.main-nav .nav-cta > a:hover, .nav-cta a:hover { background: var(--coral); color:#fff; }
.nav-toggle { display:none; background:none; border:none; font-size:16px; font-weight:700; cursor:pointer; color:#fff; padding: 14px 4px; }

/* ── Breadcrumbs ── */
.breadcrumb { font-size: 13px; color: var(--text-light); padding: 16px 0 0; }
.breadcrumb a { color: var(--blue-dark); font-weight: 600; }
.breadcrumb span[aria-current] { color: var(--text-mid); }

/* ============================================================
   HERO (front-page)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-pastel) 0%, var(--yellow-pastel) 55%, var(--coral-light) 100%);
  padding: 78px 0 90px;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .opener {
  display:inline-block; background: var(--white); color: var(--coral-hover);
  font-weight: 700; font-size: 14px; padding: 8px 18px;
  border-radius: var(--radius-full); box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--blue-deeper); }
.hero p.lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display:flex; flex-wrap:wrap; gap: 22px; margin-top: 34px; font-size: 13px; font-weight:600; color: var(--text-mid); }
.hero-trust span { display:flex; align-items:center; gap:7px; }

/* ── Dual path (los dos silos) ── */
.dual-path { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -48px; position: relative; z-index: 5; }
.path-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 30px 30px 28px; box-shadow: var(--shadow-lg);
  border: 2.5px solid transparent; transition: all .22s ease;
}
.path-card:hover { transform: translateY(-4px); }
.path-card .pc-icon { font-size: 40px; margin-bottom: 12px; }
.path-card h3 { margin-bottom: 8px; }
.path-card p { font-size: 14.5px; color: var(--text-mid); margin-bottom: 18px; }
.path-card.is-color { border-color: var(--coral); }
.path-card.is-color h3 { color: var(--coral-hover); }
.path-card.is-learn { border-color: var(--blue); }
.path-card.is-learn h3 { color: var(--blue-deeper); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 10px; display:block; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--text-mid); font-size: 16.5px; }

/* ============================================================
   GRID DE DIBUJOS (fichas)
   ============================================================ */
.draw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.draw-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.draw-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.draw-thumb {
  position: relative; aspect-ratio: 4/3;
  display:flex; align-items:center; justify-content:center;
  font-size: 64px; background: var(--blue-pastel);
}
.draw-thumb img { width:100%; height:100%; object-fit: cover; }
.draw-thumb .thumb-badge {
  position:absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.9); color: var(--blue-dark);
  font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-full);
}
.draw-card .draw-body { padding: 16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.draw-card h4 { font-size: 17px; margin-bottom: 4px; }
.draw-card h4 a { color: var(--text); }
.draw-card h4 a:hover { color: var(--blue-dark); }
.draw-card .draw-sub { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.draw-card .draw-actions { margin-top: auto; display:flex; gap: 8px; }
.draw-card .draw-actions .btn { flex: 1; }

/* color de fondo de thumb por categoría */
.thumb--animales { background: var(--blue-pastel); }
.thumb--comida   { background: var(--yellow-pastel); }
.thumb--tematicos{ background: var(--lavender); }
.thumb--faciles  { background: var(--mint); }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.cat-grid { display:grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 20px; }
.cat-card {
  display:flex; flex-direction:column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border: 2px solid var(--cream-dark);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-pastel); }
.cat-card .cat-emoji { font-size: 44px; padding: 26px 24px 0; }
.cat-card .cat-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card .cat-body { padding: 18px 22px 20px; display:flex; flex-direction:column; gap: 5px; flex: 1; }
.cat-card h3 { font-size: 19px; color: var(--text); }
.cat-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.cat-card .cat-cta { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 13.5px; color: var(--coral); }
.cat-card:hover .cat-cta { color: var(--coral-hover); }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.step {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow); text-align:center;
}
.step .step-num {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  background: var(--blue); color:#fff; border-radius: var(--radius-full);
  font-family:'Fredoka',sans-serif; font-weight:700; font-size: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-mid); }

/* ============================================================
   LEAD MAGNET
   ============================================================ */
.leadmagnet {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deeper) 100%);
  border-radius: var(--radius-lg); color:#fff;
  padding: 44px 48px; display:flex; gap: 36px; align-items:center;
  box-shadow: var(--shadow-lg); position:relative; overflow:hidden;
}
.leadmagnet::after { content:'🎁'; position:absolute; right:-10px; bottom:-20px; font-size: 150px; opacity:.16; }
.leadmagnet .lm-emoji { font-size: 72px; flex-shrink:0; }
.leadmagnet h2 { color:#fff; margin-bottom: 8px; }
.leadmagnet p { color: rgba(255,255,255,.92); font-size: 15.5px; margin-bottom: 18px; max-width: 520px; }
.lm-form { display:flex; gap: 10px; max-width: 480px; flex-wrap:wrap; }
.lm-form input {
  flex:1; min-width: 220px; padding: 14px 18px; border-radius: var(--radius);
  border: none; font-family:'Quicksand',sans-serif; font-size: 15px; font-weight:600; color: var(--text);
  outline: none;
}
.lm-note { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 12px; }

/* ============================================================
   TIRA DE TUTORIALES
   ============================================================ */
.tut-strip { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tut-card {
  background: var(--white); border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow); transition: transform .22s ease;
  border-top: 5px solid var(--blue);
}
.tut-card:hover { transform: translateY(-4px); }
.tut-card .tut-body { padding: 22px 24px 24px; }
.tut-card .tut-meta { font-size: 12px; font-weight:700; color: var(--blue-dark); margin-bottom: 8px; display:flex; gap:12px; }
.tut-card h3 { font-size: 19px; margin-bottom: 10px; }
.tut-card h3 a { color: var(--text); }
.tut-card h3 a:hover { color: var(--blue-dark); }
.tut-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding: 20px 24px; font-family:'Fredoka',sans-serif; font-weight:600; font-size: 18px; color: var(--text);
  display:flex; justify-content:space-between; align-items:center; gap: 16px; }
.faq-q .chev { color: var(--blue); font-size: 15px; transition: transform .25s ease; flex-shrink:0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow:hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; font-size: 15px; color: var(--text-mid); }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   SINGLE — Ficha de dibujo (colorear)
   ============================================================ */
.ficha-layout { display:grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; padding-top: 24px; }
.ficha-frame {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 2.5px dashed var(--blue-pastel); padding: 26px; position: relative;
  display:flex; align-items:center; justify-content:center; min-height: 380px;
}
.ficha-frame .frame-tag { position:absolute; top:16px; left:16px; }
.ficha-frame .frame-q { position:absolute; top:16px; right:16px; }
.ficha-frame .frame-art { font-size: 180px; }
.ficha-info h1 { margin-bottom: 14px; }
.ficha-info .ficha-meta { display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 20px; }
.ficha-cta { display:flex; flex-direction:column; gap: 12px; margin: 24px 0; }
.ficha-cta .btn { width: 100%; }
.crosslink {
  background: var(--blue-pastel); border-radius: var(--radius); padding: 18px 22px;
  display:flex; align-items:center; gap: 14px; margin: 22px 0;
}
.crosslink .cl-emoji { font-size: 34px; }
.crosslink .cl-text { flex:1; }
.crosslink .cl-text strong { display:block; color: var(--blue-deeper); font-family:'Fredoka',sans-serif; }
.crosslink .cl-text span { font-size: 13.5px; color: var(--text-mid); }

.tip-cards { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.tip-card { background: var(--cream); border-radius: var(--radius); padding: 18px 20px; }
.tip-card .tc-t { font-family:'Fredoka',sans-serif; font-weight:600; font-size: 15px; margin-bottom: 6px; }
.tip-card .tc-d { font-size: 13.5px; color: var(--text-mid); }

/* ── Tira relacionados ── */
.related { margin-top: 56px; }
.related h2 { font-size: 24px; margin-bottom: 20px; }
.related-scroll { display:flex; gap: 16px; overflow-x:auto; padding-bottom: 10px; }
.rel-card { flex: 0 0 132px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; text-align:center; }
.rel-thumb { height: 96px; display:flex; align-items:center; justify-content:center; font-size:46px; background: var(--blue-pastel); }
.rel-name { font-size: 13px; font-weight: 700; padding: 10px 8px; color: var(--text); }

/* ============================================================
   SINGLE — Tutorial paso a paso
   ============================================================ */
.tut-header { padding-top: 24px; }
.tut-header .tut-pill { display:inline-flex; gap:8px; align-items:center; margin-bottom: 14px; }
.tut-header h1 { margin-bottom: 14px; max-width: 820px; }
.tut-header .tut-stats { display:flex; flex-wrap:wrap; gap: 18px; font-size: 14px; color: var(--text-mid); font-weight:600; margin-bottom: 18px; }
.tut-intro { background: var(--yellow-pastel); border-radius: var(--radius); padding: 20px 26px; font-size: 16px; color: var(--text-mid); max-width: 880px; }
.tut-intro strong { color: var(--text); }

.steps-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 36px 0; }
.step-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow:hidden; }
.step-card .sc-head { background: var(--coral); color:#fff; font-family:'Fredoka',sans-serif; font-weight:600; font-size:16px; padding: 12px 20px; }
.step-card.is-final .sc-head { background: #7c5cff; }
.step-card .sc-canvas { aspect-ratio: 16/10; display:flex; align-items:center; justify-content:center; background: var(--cream); font-size: 64px; overflow: hidden; }
.step-card .sc-canvas img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.step-card .sc-text { padding: 16px 20px 20px; font-size: 14.5px; color: var(--text-mid); }

.ad-slot { background: var(--cream-dark); border: 1.5px dashed var(--text-light); border-radius: var(--radius);
  padding: 18px; text-align:center; color: var(--text-light); font-size: 13px; font-weight:600; margin: 30px 0; }

/* ============================================================
   COMPARTIR (WhatsApp / Pinterest) — fichas
   ============================================================ */
.share-row { display:flex; align-items:center; gap: 10px; flex-wrap:wrap; margin: 22px 0; }
.share-row .share-label { font-size: 13px; font-weight: 700; color: var(--text-light); }
.share-row .share-hint { font-size: 12px; color: var(--text-light); font-weight: 600; }
@media (hover: none) { .share-row .share-hint { display: none; } }
.share-btn {
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; color:#fff; text-decoration:none;
  transition: transform .2s ease, filter .2s ease;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); color:#fff; }
.share-btn .ic { width: 17px; height: 17px; display:inline-block; }
.share-wa { background: #25d366; }
.share-pin { background: #e60023; }

/* ── Botón flotante de Pinterest sobre cada imagen ──
   Overlay arriba a la derecha. position:absolute = NUNCA mueve el layout. */
.pin-wrap { position: relative; }
.pin-btn {
  position: absolute; top: 12px; right: 12px; left: auto; z-index: 6;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.95); color: #e60023; text-decoration: none;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 8px 13px; border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(30,45,61,.20);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, background .15s ease;
  pointer-events: none;
}
.pin-btn .ic { width: 15px; height: 15px; color: #e60023; }
.pin-wrap:hover .pin-btn,
.pin-btn:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.pin-btn:hover { background: #e60023; color: #fff; }
.pin-btn:hover .ic { color: #fff; }
/* Variante siempre visible (imagen grande de la ficha) */
.pin-btn--static { opacity: 1; transform: none; pointer-events: auto; }
/* En táctil (sin hover real) siempre visible y tocable */
@media (hover: none) {
  .pin-btn { opacity: 1; transform: none; pointer-events: auto; }
}

/* WhatsApp solo-logo (ficha) */
.share-btn.icon-only { padding: 10px; width: 42px; height: 42px; justify-content: center; gap: 0; }
.share-btn.icon-only .ic { width: 20px; height: 20px; }

/* ============================================================
   CONTENIDO DEL EDITOR (.entry-content) — tutoriales y fichas
   Tipografía cuidada para que el contenido clásico respete el diseño.
   ============================================================ */
.entry-content { font-size: 16px; line-height: 1.75; color: var(--text-mid); }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 {
  font-family:'Fredoka',sans-serif; font-size: 24px; color: var(--text);
  margin-top: 38px; margin-bottom: 6px; padding-bottom: 8px;
  border-bottom: 3px solid var(--blue-pastel);
}
.entry-content h3 {
  font-family:'Fredoka',sans-serif; font-size: 20px; color: var(--blue-deeper);
  margin-top: 30px; margin-bottom: 4px;
}
.entry-content h2 + p, .entry-content h3 + p { margin-top: 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin: 22px auto; display: block; max-width: 100%; height: auto;
}
.entry-content figure { margin: 26px 0; }
.entry-content figcaption { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  background: var(--yellow-pastel); border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 22px; margin: 24px 0;
}

/* ============================================================
   ANUNCIOS (editables desde Personalizar → Publicidad)
   ============================================================ */
.ad-real { margin: 30px 0; text-align: center; min-height: 0; }
.ad-real:empty { display: none; }
.ad-placeholder {
  background: var(--cream-dark); border: 1.5px dashed var(--text-light); border-radius: var(--radius);
  padding: 18px; text-align:center; color: var(--text-light); font-size: 13px; font-weight:600; margin: 30px 0;
}

/* ============================================================
   BUSCADOR MODAL (cabecera)
   ============================================================ */
.search-trigger {
  display:flex; align-items:center; gap:7px;
  padding: 14px 16px; font-size: 14.5px; font-weight:700; color:#fff;
  background:none; border:none; cursor:pointer; border-radius: var(--radius-sm);
}
.search-trigger:hover { background: rgba(255,255,255,.18); }
.search-trigger .ic { width:17px; height:17px; }
.search-modal {
  position: fixed; inset: 0; z-index: 200; display:none;
  align-items: flex-start; justify-content: center;
  background: rgba(30,45,61,.55); backdrop-filter: blur(4px);
  padding: 12vh 20px 20px;
}
.search-modal.open { display: flex; }
.search-box {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; padding: 28px 28px 24px; position: relative;
  animation: dkpop .22s ease;
}
@keyframes dkpop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-box h3 { font-size: 20px; margin-bottom: 4px; }
.search-box p { font-size: 13.5px; color: var(--text-mid); margin-bottom: 16px; }
.search-close { position:absolute; top:16px; right:18px; background:none; border:none; font-size:24px; color:var(--text-light); cursor:pointer; line-height:1; }
.search-close:hover { color: var(--text); }
.search-scope { display:flex; gap:8px; margin-bottom: 14px; }
.scope-opt {
  flex:1; text-align:center; padding: 11px 10px; border-radius: var(--radius);
  border: 2px solid var(--cream-dark); background: var(--cream); cursor:pointer;
  font-size: 13.5px; font-weight:700; color: var(--text-mid); transition: all .15s;
}
.scope-opt:hover { border-color: var(--blue-pastel); }
.scope-opt.active { border-color: var(--blue); background: var(--blue-pastel); color: var(--blue-deeper); }
.scope-opt.active.is-color { border-color: var(--coral); background: var(--coral-light); color: var(--coral-hover); }
.search-input-row { display:flex; gap: 10px; }
.search-input-row input {
  flex:1; padding: 13px 16px; border-radius: var(--radius); border: 2px solid var(--cream-dark);
  font-family:'Quicksand',sans-serif; font-size: 15px; font-weight:600; color: var(--text); outline:none;
}
.search-input-row input:focus { border-color: var(--blue); }

/* ============================================================
   VÍDEO DEL TUTORIAL (YouTube)
   ============================================================ */
.tut-video { margin: 36px 0; }
.tut-video h2 { font-size: 24px; margin-bottom: 14px; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); background: var(--text); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ============================================================
   LOGO DEL PIE
   ============================================================ */
.footer-logo { margin-bottom: 12px; display:inline-block; }
.footer-logo img { max-height: 48px; width:auto; display:block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--text); color: rgba(255,255,255,.78); padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display:flex; flex-wrap:wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand { flex: 1 1 280px; min-width: 240px; }
.footer-grid > div:not(.footer-brand) { flex: 1 1 150px; min-width: 140px; }
.site-footer h4 { color:#fff; font-family:'Fredoka',sans-serif; font-size: 16px; margin-bottom: 14px; }
.site-footer .footer-brand .brand-name { font-family:'Fredoka',sans-serif; font-size: 22px; color:#fff; margin-bottom: 10px; }
.site-footer p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.site-footer ul { list-style:none; padding:0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer ul a:hover { color:#fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,.6);
  display:flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-bottom .fb-copy { color: rgba(255,255,255,.75); font-weight: 600; }
.footer-social { display:flex; gap: 10px; margin-top: 16px; }
.soc-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.85);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.soc-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.soc-btn svg { width: 19px; height: 19px; }
.footer-legal { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 10px; }
.footer-legal a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-legal a:hover { color:#fff; text-decoration: underline; }
.footer-legal .sep { color: rgba(255,255,255,.3); }
.footer-bottom .fb-tagline { color: rgba(255,255,255,.5); }

/* ============================================================
   ARCHIVE / HUB
   ============================================================ */
.archive-hero { background: var(--blue-pastel); padding: 48px 0; text-align:center; }
.archive-hero-img { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.archive-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-hero h1 { margin-bottom: 10px; }
.archive-hero p { color: var(--text-mid); max-width: 620px; margin: 0 auto; }

/* ── utilidades ── */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

/* ============================================================
   COMPONENTES v1.4 — columnas dinámicas, imágenes, logo animado
   ============================================================ */
/* Rejilla de populares con nº de columnas configurable */
.draw-grid--custom { grid-template-columns: repeat(var(--cols, 4), 1fr); }

/* Imágenes en "dos caminos" */
.path-card .pc-img { margin-bottom: 12px; }
.path-card .pc-img img { width: 72px; height: 72px; object-fit: contain; }

/* Imágenes en "colorea en 3 pasitos" (mascotas) */
.step .step-img { margin: 0 auto 14px; text-align: center; }
.step .step-img img { width: 90px; height: 90px; object-fit: contain; display: block; margin: 0 auto; }

/* Título de paso en el tutorial */
.sc-title { font-size: 15px; margin-bottom: 6px; color: var(--text); }

/* Imagen destacada en tarjetas de categoría: ver bloque .cat-card arriba */

/* Logo animado en la cabecera (centrado) */
.site-logo { display:inline-block; line-height:0; }
.site-logo svg, .site-logo img { display:block; height:auto; max-height:70px; width:auto; }

/* ============================================================
   v1.5 — intro tutorial, crosslink coral, lightbox
   ============================================================ */
/* Introducción completa del tutorial (texto del editor) */
.tut-intro-full { max-width: 880px; margin: 22px 0 30px; }

/* Crosslink en versión coral (tutorial → ficha) */
.crosslink--coral { background: var(--coral-light); }
.crosslink--coral .cl-text strong { color: var(--coral-hover); }

/* Lightbox: overlay fijo (no provoca CLS) */
html.dk-lb-lock { overflow: hidden; scrollbar-gutter: stable; }
.dk-lb {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(20,28,38,.86); backdrop-filter: blur(3px);
  padding: 4vh 16px;
}
.dk-lb.open { display: flex; }
.dk-lb-fig {
  margin: 0; max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: dklbpop .22s ease;
}
@keyframes dklbpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.dk-lb-full {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius-lg); box-shadow: 0 18px 60px rgba(0,0,0,.5);
  background: #fff; object-fit: contain;
}
.dk-lb-cap { color: #fff; font-size: 14px; text-align: center; max-width: 640px; opacity: .92; }
.dk-lb-close, .dk-lb-prev, .dk-lb-next {
  position: absolute; background: rgba(255,255,255,.16); color: #fff; border: none;
  cursor: pointer; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.dk-lb-close:hover, .dk-lb-prev:hover, .dk-lb-next:hover { background: rgba(255,255,255,.32); }
.dk-lb-close { top: 18px; right: 20px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.dk-lb-prev, .dk-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.dk-lb-prev { left: 18px; }
.dk-lb-next { right: 18px; }
@media (max-width: 600px) {
  .dk-lb-prev, .dk-lb-next { width: 42px; height: 42px; font-size: 26px; }
  .dk-lb-prev { left: 8px; } .dk-lb-next { right: 8px; }
  .dk-lb-close { top: 10px; right: 12px; }
}

/* Filtro de archivo de categoría (Ver todo / Solo para colorear) */
.archive-filter { display:flex; gap:10px; justify-content:center; margin-bottom:30px; flex-wrap:wrap; }
.af-btn {
  padding: 9px 22px; font-family:'Fredoka',sans-serif; font-size: 14.5px; font-weight: 600;
  border: 2px solid var(--cream-dark); border-radius: var(--radius-full);
  background: var(--white); color: var(--text-mid); cursor: pointer; transition: all .15s ease;
}
.af-btn:hover { border-color: var(--blue); color: var(--blue-deeper); }
.af-btn.active { border-color: var(--blue); background: var(--blue-pastel); color: var(--blue-deeper); }
.af-empty { text-align:center; color: var(--text-light); padding: 36px 0; font-weight: 600; }

/* Botón "Cargar más" (AJAX) */
.load-more-wrap { text-align: center; margin-top: 44px; }
.load-more-wrap .btn { min-width: 240px; }
.btn[data-load-more] .lm-spinner { display: none; }
.btn[data-load-more].is-loading .lm-text { visibility: hidden; }
.btn[data-load-more].is-loading { position: relative; }
.btn[data-load-more].is-loading .lm-spinner {
  display: block; position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: dkspin .7s linear infinite;
}
@keyframes dkspin { to { transform: rotate(360deg); } }

/* Galería por categoría (landing colorear online) */
.landing-wrap { display: flex; flex-direction: column; }
.landing-hero { order: 0; text-align: center; margin-bottom: 22px; }
.landing-hero h1 { margin-bottom: 8px; }
.landing-content { order: 1; margin-bottom: 36px; }
@media (max-width: 768px) {
  /* En móvil, el dibujo/app (shortcode dentro del contenido) va primero; el título debajo. */
  .landing-content { order: 0; margin-bottom: 18px; }
  .landing-hero { order: 1; margin-bottom: 22px; }
}
.dk-galeria { display: flex; flex-direction: column; gap: 34px; }
.galeria-cat { }
.galeria-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.galeria-head h2 { font-size: 22px; margin: 0; }
.galeria-vertodos { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ============================================================
   COLORADOR ONLINE — modal + botón flotante
   ============================================================ */
html.dkm-lock { overflow: hidden; }
.dk-colorador-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.dk-colorador-modal[hidden] { display: none; }
.dkm-overlay { position: absolute; inset: 0; background: rgba(30,45,61,.72); backdrop-filter: blur(2px); }
.dkm-panel {
  position: relative; z-index: 1; width: min(96vw, 720px); max-height: 96vh; overflow: auto;
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px;
}
.dkm-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: none;
  border-radius: var(--radius-full); background: var(--white); color: var(--text);
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow); z-index: 2;
}
.dkm-close:hover { background: var(--coral); color: #fff; }
.dkm-error { padding: 40px 20px; text-align: center; color: var(--text-mid); font-weight: 600; }
/* La app ocupa el ancho del modal (anula el max-width:600px del lienzo en data-mode="modal") */
.dk-colorador-modal .dkc { max-width: 100%; }
.dk-colorador-modal .dkc-canvas { max-width: none; width: 100%; height: auto; }

.dk-color-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 9998;
  border: none; cursor: pointer; background: var(--coral); color: #fff;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius-full); box-shadow: var(--shadow-coral);
}
.dk-color-fab[hidden] { display: none; }
.dk-color-fab:hover { background: var(--coral-hover); }
@media (min-width: 769px) { .dk-color-fab { display: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .draw-grid { grid-template-columns: repeat(3,1fr); }
  .draw-grid--custom { grid-template-columns: repeat(3,1fr); }
  .footer-grid > div:not(.footer-brand) { flex-basis: 42%; }
  .ficha-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-nav-inner { justify-content: space-between; }
  .main-nav { display: none; position: absolute; top: 100%; left:0; right:0; background: var(--dk-nav-bg, var(--blue)); padding: 8px 0 14px; box-shadow: 0 10px 24px rgba(30,45,61,.18); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 16px; }
  .main-nav a { justify-content: flex-start; }
  .main-nav .nav-cta > a { margin: 6px 0 0; text-align:center; justify-content:center; }
  .nav-toggle { display: block; }
  .search-trigger-txt { display:none; }
  .search-trigger { padding:12px; }
  .dual-path { grid-template-columns: 1fr; margin-top: -36px; }
  .draw-grid { grid-template-columns: repeat(2,1fr); }
  .draw-grid--custom { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .steps, .tut-strip, .steps-grid { grid-template-columns: 1fr; }
  .leadmagnet { flex-direction: column; text-align:center; padding: 34px 26px; }
  .leadmagnet .lm-emoji { font-size: 56px; }
  .lm-form { justify-content:center; }
  .tip-cards { grid-template-columns: 1fr; }
  /* Ocultar las etiquetas (Gratis / PDF / Para niños) en móvil */
  .ficha-info .ficha-meta { display: none; }
  /* Crosslink más compacto: texto largo fuera, apilado */
  .crosslink { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
  .crosslink .cl-long { display: none; }
  .crosslink .cl-emoji { font-size: 28px; }
  .crosslink .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 460px) {
  .draw-grid { grid-template-columns: 1fr; }
  .draw-grid--custom { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
