/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
*, .ekk-pl *::before, .ekk-pl *::after { box-sizing: border-box; margin: 0; padding: 0; }


html { scroll-behavior: smooth; }


body {
  font-family: 'Inter', sans-serif;
  background: #f0f4ff;
  color: #0f172a;
  line-height: 1.6;
  min-height: 100vh;
}

.ekk-pl a { text-decoration: none; color: inherit; }

.ekk-pl button { font-family: 'Inter', sans-serif; }
/* ══════════════════════════════════════
   UTILIDADES
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   UTILIDADES
══════════════════════════════════════ */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
/* ══════════════════════════════════════
   PRINT
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   PRINT
══════════════════════════════════════ */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #00112e 0%, #0a192f 55%, #132544 100%);
  color: #fff;
  padding: 52px 20px 44px;
}

.ekk-pl .hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.ekk-pl .hero-main { flex: 1; min-width: 260px; }

.ekk-pl .breadcrumb {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.ekk-pl .breadcrumb b { color: #f59e0b; }

.ekk-pl .hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

.ekk-pl .hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
}

.ekk-pl .hero-desc {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 580px;
}

.ekk-pl .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.ekk-pl .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 11px;
  background: #0051d5;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .15s;
}

.ekk-pl .btn-primary:hover { background: #0041b0; transform: translateY(-1px); }

.ekk-pl .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 11px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s;
}

.ekk-pl .btn-ghost:hover { background: rgba(255,255,255,.18); }

.ekk-pl .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}

.ekk-pl .hero-trust span { display: flex; align-items: center; gap: 5px; }
/* Ficha lateral */
.ekk-pl /* Ficha lateral */
.hero-card {
  width: 255px;
  background: #132544;
  border: 1px solid rgba(100,116,139,.35);
  border-radius: 16px;
  padding: 20px;
  flex-shrink: 0;
}

.ekk-pl .hero-card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: 14px;
}

.ekk-pl .hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.ekk-pl .hero-card li {
  display: flex;
  gap: 8px;
  color: #cbd5e1;
  align-items: flex-start;
  line-height: 1.5;
}

.ekk-pl .hero-card li b { color: #fff; font-weight: 600; }

.ekk-pl .hero-card-related {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(100,116,139,.25);
}

.ekk-pl .hero-card-related > p {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.ekk-pl .app-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,81,213,.2);
  border: 1px solid rgba(0,81,213,.3);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background .18s;
}

.ekk-pl .app-link:hover { background: rgba(0,81,213,.32); }

.ekk-pl .app-link-icon { font-size: 26px; flex-shrink: 0; }

.ekk-pl .app-link b { color: #fff; font-size: 12px; display: block; margin-bottom: 2px; }

.ekk-pl .app-link small { color: #94a3b8; font-size: 11px; }
/* ══════════════════════════════════════
   NAV PLANTILLAS — STICKY
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   NAV PLANTILLAS — STICKY
══════════════════════════════════════ */
.nav-pl {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.ekk-pl .nav-pl-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ekk-pl .nav-pl-inner::-webkit-scrollbar { display: none; }
/* ── TABS ── */
.ekk-pl /* ── TABS ── */
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  outline: none;
}

.ekk-pl .nav-tab:hover { color: #0051d5; }

.ekk-pl .nav-tab.activa { color: #0051d5; border-bottom-color: #0051d5; }

.ekk-pl .nav-sep { color: #e2e8f0; font-size: 22px; flex-shrink: 0; user-select: none; }

.ekk-pl .nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.ekk-pl .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.ekk-pl .nav-btn:hover { background: #e2e8f0; }

.ekk-pl .nav-btn.guardar { background: #eff6ff; border-color: #bfdbfe; color: #0051d5; }

.ekk-pl .nav-btn.guardar:hover { background: #dbeafe; }

.ekk-pl #save-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  transition: opacity .3s;
  opacity: 0;
  white-space: nowrap;
}

.ekk-pl #save-indicator.visible { opacity: 1; }
/* ══════════════════════════════════════
   INTRO CARDS
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   INTRO CARDS
══════════════════════════════════════ */
.intro-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.ekk-pl .intro-card {
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 2px solid transparent;
}

.ekk-pl .intro-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.ekk-pl .intro-card.activa { border-color: currentColor; }

.ekk-pl .intro-card.azul { background: #eff6ff; color: #0051d5; }

.ekk-pl .intro-card.ambar { background: #fef3c7; color: #d97706; }

.ekk-pl .intro-card.verde { background: #f0fdf4; color: #15803d; }

.ekk-pl .intro-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.ekk-pl .intro-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}
/* ══════════════════════════════════════
   MAIN — CONTENEDOR DE PLANTILLAS
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   MAIN — CONTENEDOR DE PLANTILLAS
══════════════════════════════════════ */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
/* ── PLANTILLAS: solo la activa es visible ── */
.ekk-pl /* ── PLANTILLAS: solo la activa es visible ── */
.plantilla { display: none; }

.ekk-pl .plantilla.activa { display: block; }
/* ══════════════════════════════════════
   HEADER DE PLANTILLA
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   HEADER DE PLANTILLA
══════════════════════════════════════ */
.pl-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  margin: 24px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.ekk-pl .pl-header-main { flex: 1; min-width: 220px; }

.ekk-pl .pl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

.ekk-pl .pl-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.ekk-pl .pl-desc { color: #475569; font-size: 14px; line-height: 1.8; max-width: 560px; }

.ekk-pl .pl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ekk-pl .pl-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.ekk-pl .pl-quote {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  min-width: 200px;
  max-width: 240px;
  font-size: 13px;
  flex-shrink: 0;
}

.ekk-pl .pl-quote-title { font-weight: 700; color: #0f172a; margin-bottom: 10px; font-size: 13px; }

.ekk-pl .pl-quote p { color: #475569; line-height: 1.75; font-style: italic; }

.ekk-pl .pl-quote small { color: #94a3b8; font-size: 11px; display: block; margin-top: 8px; }
/* ══════════════════════════════════════
   BARRA DE PROGRESO
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   BARRA DE PROGRESO
══════════════════════════════════════ */
.progreso {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ekk-pl .progreso-info { min-width: 180px; }

.ekk-pl .progreso-texto { font-size: 13px; font-weight: 700; color: #0f172a; }

.ekk-pl .progreso-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.ekk-pl .progreso-barra-wrap {
  flex: 1;
  min-width: 120px;
  background: #f1f5f9;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.ekk-pl .progreso-barra {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width .4s ease;
}
/* ══════════════════════════════════════
   GRID DE SECCIONES
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   GRID DE SECCIONES
══════════════════════════════════════ */
.sec-grid { display: flex; flex-direction: column; gap: 14px; }
/* ══════════════════════════════════════
   CARD DE SECCIÓN
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   CARD DE SECCIÓN
══════════════════════════════════════ */
.card-sec {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .15s;
}

.ekk-pl .card-sec:focus-within { box-shadow: 0 0 0 3px rgba(0,81,213,.1); }
/* Cabecera de sección */
.ekk-pl /* Cabecera de sección */
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
}

.ekk-pl .sec-head:hover { background: #f8fafc; }

.ekk-pl .sec-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.ekk-pl .sec-info { flex: 1; min-width: 0; }

.ekk-pl .sec-nombre {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ekk-pl .sec-hint { font-size: 12px; color: #94a3b8; margin-top: 1px; }

.ekk-pl .sec-nivel {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ekk-pl .nivel-basico { background: #eff6ff; color: #0051d5; }

.ekk-pl .nivel-intermedio { background: #fef3c7; color: #d97706; }

.ekk-pl .nivel-avanzado { background: #fef2f2; color: #dc2626; }

.ekk-pl .sec-chev {
  font-size: 16px;
  color: #94a3b8;
  transition: transform .2s;
  flex-shrink: 0;
  line-height: 1;
}
/* Cuerpo de sección */
.ekk-pl /* Cuerpo de sección */
.sec-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Colapsado */
.ekk-pl /* Colapsado */
.card-sec.colapsada .sec-body { display: none; }

.ekk-pl .card-sec.colapsada .sec-chev { transform: rotate(-90deg); }

.ekk-pl .card-sec.colapsada .sec-head { border-bottom: none; }
/* ══════════════════════════════════════
   CAMPOS EDITABLES
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   CAMPOS EDITABLES
══════════════════════════════════════ */
.campo-wrap { display: flex; flex-direction: column; gap: 5px; }

.ekk-pl .campo-fila {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.ekk-pl .campo-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ekk-pl .campo-tip {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.ekk-pl .campo {
  width: 100%;
  min-height: 52px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.ekk-pl .campo:focus {
  border-color: #0051d5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,81,213,.1);
}

.ekk-pl .campo.alto { min-height: 88px; }

.ekk-pl .campo.xalto { min-height: 120px; }

.ekk-pl .campo.chico { min-height: 40px; }
/* Notas y advertencias */
.ekk-pl /* Notas y advertencias */
.nota {
  font-size: 12px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 9px 12px;
  border-left: 3px solid #0051d5;
  line-height: 1.65;
}

.ekk-pl .advertencia {
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 8px;
  padding: 9px 12px;
  border-left: 3px solid #f59e0b;
  line-height: 1.65;
}
/* ══════════════════════════════════════
   ELEMENTOS REPETIBLES (puntos, escenas…)
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   ELEMENTOS REPETIBLES (puntos, .ekk-pl escenas…)
══════════════════════════════════════ */
.items-wrap { display: flex; flex-direction: column; gap: 12px; }

.ekk-pl .item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.ekk-pl .item-head { display: flex; align-items: center; gap: 8px; }

.ekk-pl .item-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.ekk-pl .item-titulo { font-size: 13px; font-weight: 700; color: #0f172a; flex: 1; }

.ekk-pl .btn-eliminar {
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}

.ekk-pl .btn-eliminar:hover { color: #dc2626; background: #fef2f2; }

.ekk-pl .btn-agregar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1.5px dashed #93c5fd;
  color: #0051d5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  align-self: flex-start;
  margin-top: 4px;
}

.ekk-pl .btn-agregar:hover { background: #dbeafe; }
/* ══════════════════════════════════════
   NIVELES DE APLICACIÓN
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   NIVELES DE APLICACIÓN
══════════════════════════════════════ */
.apls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ekk-pl .apl-item {
  border: 1px solid;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ekk-pl .apl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ekk-pl .apl-basica { background: #f0fdf4; border-color: #86efac; }

.ekk-pl .apl-basica    .apl-label { color: #15803d; }

.ekk-pl .apl-media { background: #fef3c7; border-color: #fcd34d; }

.ekk-pl .apl-media     .apl-label { color: #d97706; }

.ekk-pl .apl-avanzada { background: #fef2f2; border-color: #fca5a5; }

.ekk-pl .apl-avanzada  .apl-label { color: #dc2626; }
/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #0f264a, #0051d5);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
  color: #fff;
}

.ekk-pl .cta-banner h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.ekk-pl .cta-banner p {
  color: #b4c5ff;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.75;
}

.ekk-pl .cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 30px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.9;
}

.ekk-pl footer a { color: #0051d5; }

.ekk-pl footer b { color: #475569; }
/* ══════════════════════════════════════
   MODAL BOSQUEJO
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   MODAL BOSQUEJO
══════════════════════════════════════ */
#bq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.ekk-pl #bq-overlay.abierto { display: flex; }

.ekk-pl #bq-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden;
}

.ekk-pl #bq-modal-head {
  background: linear-gradient(135deg, #00112e, #0051d5);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ekk-pl #bq-modal-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.ekk-pl #bq-modal-head p { font-size: 12px; color: #b4c5ff; margin-top: 3px; }

.ekk-pl #bq-modal-acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.ekk-pl .bq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: opacity .15s;
}

.ekk-pl .bq-btn:hover { opacity: .85; }

.ekk-pl .bq-btn-imprimir { background: #fff; color: #0051d5; }

.ekk-pl .bq-btn-cerrar { background: rgba(255,255,255,.15); color: #fff; }

.ekk-pl #bq-modal-body {
  padding: 24px;
  max-height: 72vh;
  overflow-y: auto;
}
/* Estilos internos del bosquejo */
.ekk-pl /* Estilos internos del bosquejo */
.bq-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }

.ekk-pl .bq-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ekk-pl .bq-dato {
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.ekk-pl .bq-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.ekk-pl .bq-sec {
  border-left: 4px solid #0051d5;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
}

.ekk-pl .bq-sec-titulo {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: 8px;
}

.ekk-pl .bq-texto {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ekk-pl .bq-oracion { font-style: italic; color: #475569; }

.ekk-pl .bq-punto { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }

.ekk-pl .bq-punto-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.ekk-pl .bq-punto-body { flex: 1; }

.ekk-pl .bq-punto-titulo { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; line-height: 1.5; }

.ekk-pl .bq-ref { font-size: 12px; color: #0051d5; font-weight: 600; margin-bottom: 4px; }

.ekk-pl .bq-detalle { font-size: 13px; color: #475569; line-height: 1.65; }

.ekk-pl .bq-ilus {
  font-size: 12px;
  color: #d97706;
  background: #fef3c7;
  border-radius: 7px;
  padding: 6px 10px;
  margin-top: 6px;
}

.ekk-pl .bq-apls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ekk-pl .bq-apl {
  border: 1px solid;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.65;
}

.ekk-pl .bq-apl-label { font-size: 11px; font-weight: 700; margin-bottom: 5px; }

.ekk-pl .bq-vacio { color: #94a3b8; font-style: italic; font-size: 13px; }
/* ══════════════════════════════════════
   BOTONES FLOTANTES (FAB)
══════════════════════════════════════ */
.ekk-pl /* ══════════════════════════════════════
   BOTONES FLOTANTES (FAB)
══════════════════════════════════════ */
#fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}

.ekk-pl .fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.ekk-pl .fab:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.22); }

.ekk-pl .fab-generar { background: #0051d5; color: #fff; }

.ekk-pl .fab-guardar { background: #fff; color: #475569; border: 1px solid #e2e8f0; }

.ekk-pl .fab-limpiar { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }


@media (max-width: 600px) {
  #fab-wrap { bottom: 16px; right: 16px; }

.ekk-pl .fab span { display: none; }

.ekk-pl .fab { padding: 13px; border-radius: 50%; }
/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.ekk-pl }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
#toast-wrap {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.ekk-pl .toast {
  background: #0f172a;
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  animation: toastIn .25s ease, toastOut .3s ease 1.8s forwards;
}


@keyframes toastIn  { from { opacity:0; transform:translateY(8px); }

.ekk-pl to { opacity:1; transform:translateY(0); }

.ekk-pl }
@keyframes toastOut { from { opacity:1; }

.ekk-pl to { opacity:0; transform:translateY(-6px); }
/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
.ekk-pl }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 36px 16px 32px; }

.ekk-pl .pl-header { padding: 20px; }

.ekk-pl .sec-body { padding: 16px; }

.ekk-pl .campo-fila { grid-template-columns: 1fr; }

.ekk-pl .pl-quote { max-width: 100%; }

.ekk-pl .hero-card { width: 100%; }

}



/* ══════ INTEGRACIÓN AL SITIO ══════ */
/* Hero estándar full-bleed pegado al header */
.ekk-pl-hero { background: linear-gradient(160deg, #00112e 0%, #0A192F 60%, #132544 100%); color: #fff; padding: 56px 20px 48px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: none !important; }
.ekk-pl-hero-wrap { max-width: 1240px; margin: 0 auto; }
.ekk-pl-bc { font-size: 12px; color: #94a3b8; margin-bottom: 18px; font-weight: 600; }
.ekk-pl-bc a { color: #94a3b8 !important; text-decoration: none !important; }
.ekk-pl-bc a:hover { color: #f59e0b !important; }
.ekk-pl-bc b { color: #f59e0b; font-weight: 600; }
.ekk-pl-hero-in { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ekk-pl-hero-main { flex: 1; min-width: 260px; }
.ekk-pl-bh { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3); color: #f59e0b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.ekk-pl-hero h1 { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: clamp(30px, 4.4vw, 56px) !important; font-weight: 800 !important; line-height: 1.12 !important; margin: 0 0 12px !important; color: #fff !important; }
.ekk-pl-hd { color: #cbd5e1; font-size: 16px; line-height: 1.8; margin: 0 0 22px; max-width: 640px; }
.ekk-pl-hd strong { color: #fff; }
.ekk-pl-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ekk-pl-bp { display: inline-flex; align-items: center; gap: 7px; padding: 12px 22px; border-radius: 11px; background: #2563eb; color: #fff !important; font-weight: 700; font-size: 14px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none !important; transition: background .2s; }
.ekk-pl-bp:hover { background: #1d4ed8; color: #fff !important; }
.ekk-pl-bs { display: inline-flex; align-items: center; gap: 7px; padding: 12px 22px; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.ekk-pl-bs:hover { background: rgba(255,255,255,.16); }
.ekk-pl-hero-side { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.ekk-pl-hero-side b { color: #fff; font-size: 13px; display: block; }
.ekk-pl-hero-side small { color: #94a3b8; font-size: 11px; }

/* Contenedor general de la herramienta dentro del contenido WP */
.ekk-pl { background: #f0f4ff; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: none !important; padding-bottom: 10px; }
/* Anular restricciones de Astra dentro del wrapper */
.entry-content[data-ast-blocks-layout] .ekk-pl .card-sec,
.entry-content[data-ast-blocks-layout] .ekk-pl .pl-header,
.entry-content[data-ast-blocks-layout] .ekk-pl .progreso { max-width: none !important; }

/* Sticky del nav de plantillas: compensar header fijo del sitio (80px) */
.ekk-pl .nav-pl { top: 80px !important; }
.ekk-pl main { scroll-margin-top: 150px; }

/* Colores de foco/acentos al azul del sitio */
.ekk-pl .campo:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ekk-pl .fab-generar { background: #2563eb; }
.ekk-pl .nav-tab.activa { background: #2563eb; border-color: #2563eb; }
.ekk-pl .modal-bosquejo-gen, .ekk-pl .bq-gen-btn { background: #2563eb; }


@media (max-width: 768px) {
  .ekk-pl-hero { padding: 36px 16px 32px; }
  .ekk-pl .campo-fila { grid-template-columns: 1fr; }
  .ekk-pl-hero-side { width: 100%; }
}
/* ══════ PRINT — DOCUMENTO PROFESIONAL (APA adaptado) ══════ */
@media print {
  /* ocultar todo lo que no sea el documento */
  .ekk-pl-hero, .ekk-pl .nav-pl, .ekk-pl .intro-grid, .ekk-pl #fab-wrap,
  .ekk-pl .no-print, .ekk-pl .pl-header, .ekk-pl .progreso, .ekk-pl .cta-banner,
  .ekk-pl .intro-card, .ekk-pl .btn-agregar, .ekk-pl #toast-wrap,
  header.site-header, footer.site-footer, .ekk-footer, footer.ekk-footer, .ekkopps-footer, footer#colophon, .site-footer, #ast-scroll-top, .elementor,
  #bq-modal-acciones, .bq-btn { display: none !important; }
  /* solo la plantilla activa oculta; el overlay visible */
  .ekk-pl .plantilla { display: none !important; }
  body { background: #fff !important; }
  .ekk-pl { margin: 0 !important; width: 100% !important; background: #fff !important; padding: 0 !important; }
  #bq-overlay {
    position: static !important; display: block !important;
    background: #fff !important; padding: 0 !important;
    overflow: visible !important;
  }
  #bq-modal { max-width: 100% !important; box-shadow: none !important; border-radius: 0 !important; }
  #bq-modal-head { display: none !important; }
  #bq-modal-body {
    max-height: none !important; overflow: visible !important;
    padding: 0 !important;
  }

  /* ── tipografía documento ── */
  #bq-modal-body, #bq-modal-body * {
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  #bq-modal-body { font-size: 12pt; line-height: 1.5; }
  .bq-doc-head { text-align: center; margin-bottom: 18pt; padding-bottom: 10pt; border-bottom: 1pt solid #000 !important; }
  .bq-doc-titulo { font-size: 16pt !important; font-weight: bold !important; text-transform: uppercase; text-align: center; margin: 0 0 6pt !important; line-height: 1.3 !important; }
  .bq-doc-sub { font-size: 13pt !important; text-align: center; margin: 0 0 4pt !important; }
  .bq-doc-id { font-size: 11pt !important; text-align: center; margin: 0 !important; color: #333 !important; }

  /* secciones */
  .bq-doc-sec { margin: 0 0 14pt !important; border: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
  .bq-doc-sec-t { font-weight: bold !important; font-size: 12pt !important; margin: 0 0 4pt !important; text-transform: uppercase; letter-spacing: .03em; }
  .bq-doc-texto { margin: 0 !important; padding: 0 !important; }
  .bq-doc-texto > * { margin: 0 0 6pt !important; }
  /* contenido con sangría 1.5cm */
  .bq-doc-texto, .bq-doc-subtexto, .bq-doc-verso, .bq-doc-apls, .bq-doc-lista { margin-left: 1.5cm !important; }
  .bq-doc-texto p, .bq-doc-subtexto { font-size: 12pt !important; line-height: 1.5 !important; }
  /* versículos: cursiva con comillas */
  .bq-doc-verso { font-style: italic !important; font-size: 12pt !important; margin: 2pt 0 6pt 1.5cm !important; }
  /* subtítulos internos negrita cursiva */
  .bq-doc-apls strong, .bq-doc-ilus em { font-weight: bold !important; font-style: italic !important; }
  .bq-doc-ilus { font-size: 11.5pt !important; margin: 3pt 0 8pt 1.5cm !important; }
  .bq-doc-punto { margin: 0 0 10pt !important; }
  .bq-doc-punto-t { font-weight: bold !important; font-size: 12pt !important; margin: 0 0 2pt !important; }
  .bq-doc-apls p { margin: 0 0 5pt !important; }
  .bq-doc-oracion { font-style: italic !important; }
  /* líneas en blanco para escribir a mano */
  .bq-doc-linea { border-bottom: 0.5pt solid #999 !important; min-height: 22pt !important; margin: 0 0 14pt 1.5cm !important; font-size: 1pt; }
  .bq-doc-nota { font-size: 11pt !important; margin-bottom: 8pt !important; }
  .bq-doc-vacio { text-align: center; font-style: italic; color: #555 !important; margin-top: 40pt !important; }

  /* secciones feedback (notas/recursos): letra más pequeña */
  .bq-doc-sec-small .bq-doc-sec-t { font-size: 10.5pt !important; letter-spacing: .02em; }
  .bq-doc-sec-small .bq-doc-texto,
  .bq-doc-sec-small .bq-doc-texto p { font-size: 10.5pt !important; line-height: 1.45 !important; }

  /* pie de página del documento */
  #bq-modal-body::after {
    content: "Bosquejo generado con las Plantillas de Sermones de ekklesiamedianetwork.com";
    display: block;
    text-align: center;
    font-size: 9pt;
    font-style: italic;
    color: #888 !important;
    margin-top: 24pt;
    padding-top: 8pt;
    border-top: 0.5pt solid #ccc !important;
  }

  @page { size: Letter; margin: 2.5cm; }
}

/* ══════ MODAL — estilos de pantalla del formato documento ══════ */
.ekk-pl .bq-doc-head { text-align: center; border-bottom: 2px solid #0A192F; padding-bottom: 16px; margin-bottom: 22px; }
.ekk-pl .bq-doc-titulo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: #0A192F; margin: 0 0 6px; line-height: 1.25; text-transform: uppercase; letter-spacing: -.01em; }
.ekk-pl .bq-doc-sub { font-size: 14px; color: #2563eb; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.ekk-pl .bq-doc-id { font-size: 13px; color: #64748b; margin: 0; }
.ekk-pl .bq-doc-sec { border-left: 4px solid #2563eb; background: #f8fafc; border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 0 0 14px; }
.ekk-pl .bq-doc-sec-t { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #334155; margin: 0 0 8px; }
.ekk-pl .bq-doc-texto { font-size: 14px; color: #0f172a; line-height: 1.75; }
.ekk-pl .bq-doc-texto p { margin: 0 0 8px; }
.ekk-pl .bq-doc-punto { margin-bottom: 12px; }
.ekk-pl .bq-doc-punto-t { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 3px; }
.ekk-pl .bq-doc-verso { font-style: italic; color: #475569; font-size: 13.5px; margin: 3px 0 6px; }
.ekk-pl .bq-doc-subtexto { font-size: 13.5px; color: #475569; line-height: 1.7; }
.ekk-pl .bq-doc-ilus { font-size: 12.5px; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.ekk-pl .bq-doc-apls p { margin-bottom: 6px; }
.ekk-pl .bq-doc-apls strong { color: #0f172a; }
.ekk-pl .bq-doc-oracion { font-style: italic; color: #475569; }
.ekk-pl .bq-doc-linea { border-bottom: 1px solid #cbd5e1; height: 26px; margin-bottom: 14px; }
.ekk-pl .bq-doc-nota { font-size: 12.5px; color: #94a3b8; margin-bottom: 10px; }
.ekk-pl .bq-doc-vacio { text-align: center; font-style: italic; color: #94a3b8; padding: 30px 0; }
.ekk-pl .bq-doc-sec-small { border-left-color: #94a3b8; background: #f1f5f9; }
.ekk-pl .bq-doc-sec-small .bq-doc-sec-t { font-size: 10px; color: #64748b; }
.ekk-pl .bq-doc-sec-small .bq-doc-texto { font-size: 12.5px; color: #475569; }
/* Footer idéntico al del resto del sitio: sin padding extra */
