/* =========================================================================
   Choco Informado · Diseño editorial (todo el sitio público)
   Marfil cálido, cacao, verde hoja, salvia y dorado mate.
   Source Serif 4 (titulares) + Source Sans 3 (texto, formularios, navegación).
   Todo bajo body.ed-on: sin la clase, el sitio se ve como antes.
   ========================================================================= */
:root {
  --ed-bg: #FAF7F0;
  --ed-ink: #3B2923;
  --ed-ink-2: #6A564D;      /* texto secundario (5.9:1 sobre marfil) */
  --ed-green: #285448;
  --ed-green-2: #1E4037;
  --ed-sage: #E7EFE8;
  --ed-gold: #BB9251;
  --ed-gold-text: #87642B;  /* dorado legible para texto pequeño (4.9:1) */
  --ed-card: #FFFDF8;
  --ed-line: rgba(59, 41, 35, .14);
  --ed-line-2: rgba(59, 41, 35, .22);
  --ed-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ed-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ed-r: 14px;
  --ed-r-s: 12px;
  --ed-r-l: 16px;
  --ed-shadow: 0 1px 2px rgba(59, 41, 35, .05), 0 10px 30px -18px rgba(59, 41, 35, .35);
  --ed-gutter: 16px;
}

/* ── Base del sitio ───────────────────────────────────────────── */
body.ed-on { background: var(--ed-bg) !important; color: var(--ed-ink) !important; font-family: var(--ed-sans) !important; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.ed-on h1, body.ed-on h2, body.ed-on h3, body.ed-on h4, body.ed-on .entry-title, body.ed-on .page-title, body.ed-on .elementor-heading-title {
  font-family: var(--ed-serif) !important; color: var(--ed-ink) !important; letter-spacing: -.01em; line-height: 1.18;
}
body.ed-on a { color: var(--ed-green); }
body.ed-on a:hover { color: var(--ed-green-2); }
body.ed-on :focus-visible { outline: 3px solid var(--ed-gold); outline-offset: 2px; border-radius: 4px; }
body.ed-on p, body.ed-on li, body.ed-on td, body.ed-on label, body.ed-on input, body.ed-on select, body.ed-on textarea, body.ed-on button { font-family: var(--ed-sans); }
body.ed-on img { max-width: 100%; height: auto; }
:is(#choco-home, body) .ed-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(#choco-home, body) .ed-skip { position: absolute; left: 12px; top: -60px; z-index: 10001; background: var(--ed-green); color: #fff !important; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
:is(#choco-home, body) .ed-skip:focus { top: 12px; }
:is(#choco-home, body) .ed-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--ed-gutter); }
:is(#choco-home, body) .ed-wrap--narrow { max-width: 920px; }
:is(#choco-home, body) .ed-ico { width: 20px; height: 20px; flex: none; }

/* Botones y campos de formulario públicos */
:is(#choco-home, body) .ed-btn, body.ed-on .button, body.ed-on button[type=submit], body.ed-on input[type=submit], body.ed-on .btn, body.ed-on .rtcl-btn, body.ed-on .rtcl .btn-primary, body.ed-on .wpforms-submit, body.ed-on .ep-btn, body.ed-on .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: var(--ed-r-s) !important; border: 1.5px solid var(--ed-green) !important;
  background: var(--ed-green) !important; color: #fff !important; font: 600 16px/1.2 var(--ed-sans) !important;
  text-decoration: none !important; cursor: pointer; box-shadow: none !important; transition: background-color .15s, transform .1s;
}
:is(#choco-home, body) .ed-btn:hover, body.ed-on .button:hover, body.ed-on button[type=submit]:hover, body.ed-on input[type=submit]:hover, body.ed-on .rtcl-btn:hover { background: var(--ed-green-2) !important; color: #fff !important; }
:is(#choco-home, body) .ed-btn:active { transform: translateY(1px); }
:is(#choco-home, body) .ed-btn--ghost { background: transparent !important; color: var(--ed-green) !important; }
:is(#choco-home, body) .ed-btn--ghost:hover { background: var(--ed-sage) !important; color: var(--ed-green-2) !important; }
body.ed-on input[type=text], body.ed-on input[type=search], body.ed-on input[type=email], body.ed-on input[type=tel], body.ed-on input[type=url], body.ed-on input[type=number], body.ed-on input[type=date], body.ed-on input[type=password], body.ed-on select, body.ed-on textarea {
  min-height: 46px; padding: 10px 14px; border: 1px solid var(--ed-line-2) !important; border-radius: var(--ed-r-s) !important;
  background: #fff !important; color: var(--ed-ink) !important; font-size: 16px !important; box-shadow: none !important;
}
body.ed-on input:focus, body.ed-on select:focus, body.ed-on textarea:focus { border-color: var(--ed-green) !important; outline: 3px solid rgba(40, 84, 72, .18); outline-offset: 0; }

/* ── Encabezado ──────────────────────────────────────────────── */
:is(#choco-home, body) .ed-header { position: sticky; top: 0; z-index: 9000; background: rgba(250, 247, 240, .96); backdrop-filter: saturate(1.2) blur(6px); }
:is(#choco-home, body) .ed-header__in { display: flex; align-items: center; gap: 18px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
:is(#choco-home, body) .ed-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ed-ink) !important; min-width: 0; }
:is(#choco-home, body) .ed-brand img { width: 56px; height: 56px; object-fit: contain; flex: none; }
:is(#choco-home, body) .ed-brand__sep { width: 2px; height: 40px; background: var(--ed-gold); border-radius: 2px; flex: none; }
:is(#choco-home, body) .ed-brand__name { font: 700 clamp(21px, 2.6vw, 34px)/1 var(--ed-serif); letter-spacing: -.02em; white-space: nowrap; }
:is(#choco-home, body) .ed-nav { display: none; align-items: center; margin-left: auto; }
:is(#choco-home, body) .ed-nav a { font: 500 18px/1 var(--ed-serif); color: var(--ed-ink) !important; text-decoration: none; padding: 10px 6px; }
:is(#choco-home, body) .ed-nav a + a::before { content: "•"; color: var(--ed-gold); margin: 0 12px 0 6px; font-size: 14px; position: relative; top: -2px; }
:is(#choco-home, body) .ed-nav a:hover { color: var(--ed-green) !important; }
:is(#choco-home, body) .ed-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
:is(#choco-home, body) .ed-iconbtn { display: inline-flex; align-items: center; gap: 6px; min-width: 46px; min-height: 46px; padding: 0 12px; justify-content: center;
  border: 1px solid var(--ed-line-2) !important; border-radius: var(--ed-r-s) !important; background: var(--ed-card) !important; color: var(--ed-ink) !important;
  font: 600 16px/1 var(--ed-sans) !important; cursor: pointer; }
:is(#choco-home, body) .ed-iconbtn:hover { background: var(--ed-sage) !important; }
:is(#choco-home, body) .ed-iconbtn__txt { display: none; }
:is(#choco-home, body) .ed-header__cta { display: none !important; }
:is(#choco-home, body) .ed-rule { height: 1px; background: linear-gradient(90deg, var(--ed-gold) 0 14%, var(--ed-line-2) 14% 100%); }
:is(#choco-home, body) .ed-drawer { border-bottom: 1px solid var(--ed-line); background: var(--ed-bg); }
:is(#choco-home, body) .ed-drawer__in { display: grid; gap: 2px; padding-top: 10px; padding-bottom: 16px; }
:is(#choco-home, body) .ed-drawer a:not(.ed-btn) { font: 500 19px/1.2 var(--ed-serif); color: var(--ed-ink) !important; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--ed-line); }
:is(#choco-home, body) .ed-drawer .ed-btn { margin-top: 12px; }
@media (min-width: 720px) { :is(#choco-home, body) .ed-iconbtn__txt { display: inline; } :is(#choco-home, body) .ed-header__cta { display: inline-flex !important; } }
@media (min-width: 1100px) { :is(#choco-home, body) .ed-nav { display: flex; } :is(#choco-home, body) .ed-header__actions { margin-left: 18px; } :is(#choco-home, body) .ed-menu-btn { display: none !important; } }
@media (max-width: 480px) { :is(#choco-home, body) .ed-brand img { width: 44px; height: 44px; } :is(#choco-home, body) .ed-brand__sep { height: 30px; } :is(#choco-home, body) .ed-header__in { gap: 10px; min-height: 64px; } }
body.admin-bar .ed-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ed-header { top: 46px; } }

/* ── Buscador emergente (encabezado) ─────────────────────────── */
:is(#choco-home, body) .ed-search { position: fixed; inset: 0; z-index: 10000; background: rgba(59, 41, 35, .45); display: flex; align-items: flex-start; justify-content: center; padding: 12px; }
:is(#choco-home, body) .ed-search[hidden] { display: none; }
:is(#choco-home, body) .ed-search__box { width: 100%; max-width: 680px; margin-top: 8vh; background: var(--ed-bg); border-radius: var(--ed-r-l); padding: 20px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
:is(#choco-home, body) .ed-search__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
:is(#choco-home, body) .ed-search__head h2 { font-size: 24px !important; margin: 0; }
:is(#choco-home, body) .ed-search__hint { font-size: 15px; color: var(--ed-ink-2); margin: 12px 0 0; }
body.ed-search-open { overflow: hidden; }
body.ed-search-open .chb-wa { display: none !important; }

/* Formulario de búsqueda (portada, emergente y resultados) */
:is(#choco-home, body) .ed-sform { display: grid; gap: 10px; }
:is(#choco-home, body) .ed-sform__field { position: relative; }
:is(#choco-home, body) .ed-sform__field .ed-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ed-ink-2); pointer-events: none; }
:is(#choco-home, body) .ed-sform input[type=search] { width: 100%; min-height: 54px !important; padding-left: 46px !important; font-size: 17px !important; border-radius: var(--ed-r-s) !important; }
:is(#choco-home, body) .ed-sform .ed-btn { width: 100%; min-height: 54px; font-size: 18px !important; }
@media (min-width: 720px) { :is(#choco-home, body) .ed-results__form .ed-sform, :is(#choco-home, body) .ed-search .ed-sform { grid-template-columns: 1fr auto; } :is(#choco-home, body) .ed-results__form .ed-sform .ed-btn, :is(#choco-home, body) .ed-search .ed-sform .ed-btn { width: auto; padding: 0 28px; } }

/* ── Portada ─────────────────────────────────────────────────── */
:is(#choco-home, body) .ed-home { padding: 18px 0 8px; }
:is(#choco-home, body) .ed-home__title { font: 700 clamp(32px, 6.4vw, 64px)/1.05 var(--ed-serif) !important; margin: 10px 0 22px !important; letter-spacing: -.025em !important; }
:is(#choco-home, body) .ed-home__grid { display: grid; gap: 18px; }
:is(#choco-home, body) .ed-feature { display: grid; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-r-l); overflow: hidden; box-shadow: var(--ed-shadow); }
:is(#choco-home, body) .ed-feature__img { display: block; aspect-ratio: 16 / 10; background: var(--ed-sage); overflow: hidden; }
:is(#choco-home, body) .ed-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
:is(#choco-home, body) .ed-feature:hover .ed-feature__img img { transform: scale(1.02); }
:is(#choco-home, body) .ed-feature__body { padding: 20px 20px 22px; display: flex; flex-direction: column; justify-content: center; }
:is(#choco-home, body) .ed-kicker { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-green); margin: 0 0 12px; }
:is(#choco-home, body) .ed-kicker::after { content: ""; width: 54px; height: 2px; background: var(--ed-gold); }
:is(#choco-home, body) .ed-feature__title { font: 700 clamp(26px, 3.2vw, 40px)/1.12 var(--ed-serif) !important; margin: 0 0 12px !important; }
:is(#choco-home, body) .ed-feature__title a { color: var(--ed-ink) !important; text-decoration: none; }
:is(#choco-home, body) .ed-feature__title a:hover { text-decoration: underline; text-decoration-color: var(--ed-gold); text-underline-offset: 4px; }
:is(#choco-home, body) .ed-feature__excerpt { font: 400 18px/1.55 var(--ed-serif); color: var(--ed-ink); margin: 0 0 14px; }
:is(#choco-home, body) .ed-link { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1.2 var(--ed-serif); color: var(--ed-green) !important; text-decoration: none !important; }
:is(#choco-home, body) .ed-link .ed-ico { transition: transform .15s; }
:is(#choco-home, body) .ed-link:hover .ed-ico { transform: translateX(3px); }
:is(#choco-home, body) .ed-panel { background: var(--ed-sage); border-radius: var(--ed-r-l); padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
:is(#choco-home, body) .ed-panel__title { display: flex; align-items: center; gap: 10px; font: 700 clamp(26px, 2.8vw, 34px)/1.1 var(--ed-serif) !important; margin: 0 !important; padding-bottom: 14px; border-bottom: 2px solid var(--ed-gold); }
:is(#choco-home, body) .ed-panel__title .ed-ico { width: 30px; height: 30px; color: var(--ed-green); }
:is(#choco-home, body) .ed-panel__q { font: 700 22px/1.2 var(--ed-serif); margin: 14px 0 8px; color: var(--ed-ink); }
:is(#choco-home, body) .ed-panel__note { font-size: 16px; color: var(--ed-ink-2); margin: 10px 0 6px; }
:is(#choco-home, body) .ed-panel__dir { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ed-green) !important; text-decoration: none; }
:is(#choco-home, body) .ed-panel__dir .ed-ico { width: 18px; height: 18px; }
@media (min-width: 900px) {
  :is(#choco-home, body) .ed-home__grid { grid-template-columns: 2fr 1fr; align-items: stretch; }
  :is(#choco-home, body) .ed-feature { grid-template-columns: 1.45fr 1fr; }
  :is(#choco-home, body) .ed-feature__img { aspect-ratio: auto; min-height: 380px; }
  :is(#choco-home, body) .ed-feature__body { padding: 28px; }
}
:is(#choco-home, body) .ed-strip { display: grid; gap: 10px; margin: 18px 0 6px; grid-template-columns: 1fr; }
:is(#choco-home, body) .ed-strip__card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-r); text-decoration: none !important; color: var(--ed-ink) !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
:is(#choco-home, body) .ed-strip__card:hover { border-color: var(--ed-gold); box-shadow: var(--ed-shadow); transform: translateY(-1px); }
:is(#choco-home, body) .ed-strip__ico { color: var(--ed-green); padding-right: 14px; border-right: 2px solid var(--ed-gold); }
:is(#choco-home, body) .ed-strip__ico .ed-ico { width: 32px; height: 32px; }
:is(#choco-home, body) .ed-strip__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
:is(#choco-home, body) .ed-strip__txt strong { font: 700 19px/1.15 var(--ed-serif); }
:is(#choco-home, body) .ed-strip__txt span { font: 400 15px/1.35 var(--ed-serif); color: var(--ed-ink-2); }
:is(#choco-home, body) .ed-strip__arrow { color: var(--ed-green); }
@media (min-width: 620px) { :is(#choco-home, body) .ed-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { :is(#choco-home, body) .ed-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1360px) { :is(#choco-home, body) .ed-strip { grid-template-columns: repeat(6, 1fr); } :is(#choco-home, body) .ed-strip__card { align-items: flex-start; gap: 10px; min-height: 124px; padding: 16px 12px 34px; } :is(#choco-home, body) .ed-strip__ico { padding-right: 10px; } :is(#choco-home, body) .ed-strip__ico .ed-ico { width: 26px; height: 26px; } :is(#choco-home, body) .ed-strip__txt strong { font-size: 17px; } :is(#choco-home, body) .ed-strip__txt span { font-size: 14px; } :is(#choco-home, body) .ed-strip__arrow { position: absolute; right: 12px; bottom: 10px; } }

/* La portada existente (debajo del bloque nuevo) toma la paleta editorial */
body.ed-on #choco-home { --cream: #FAF7F0; --cream-2: #F1ECE1; --ink: #3B2923; --ink-soft: #5B463D; --muted: #6A564D; --line: rgba(59,41,35,.14);
  --terra: #285448; --terra-deep: #1E4037; --cacao: #3B2923; --serif: "Source Serif 4", Georgia, serif; --sans: "Source Sans 3", system-ui, sans-serif; --read: "Source Serif 4", Georgia, serif;
  background: var(--ed-bg) !important; color: var(--ed-ink) !important; }
body.ed-on #choco-home > .util, body.ed-on #choco-home > .masthead, body.ed-on #choco-home > nav.main, body.ed-on #choco-home .hero { display: none !important; }
body.ed-on #choco-home section { border-radius: 0; }
body.ed-on #choco-home .pozol { background: var(--ed-ink) !important; }
body.ed-on #choco-home .ch-foot { display: none !important; }
body.ed-on .chb-hero, body.ed-on .chb-secciones, body.ed-on hr.chb-greca { display: none !important; }

/* ── Páginas interiores: ancho de lectura y tarjetas ─────────── */
body.ed-on .site-main, body.ed-on main.site-main, body.ed-on .page-content, body.ed-on .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1240px; }
body.ed-on .site-main { padding-left: var(--ed-gutter); padding-right: var(--ed-gutter); margin-left: auto; margin-right: auto; }
body.ed-on.single-post .site-main, body.ed-on.single-post article { max-width: 780px; margin-left: auto; margin-right: auto; }
body.ed-on.single-post .entry-title, body.ed-on.single-post h1 { font-size: clamp(30px, 4.6vw, 46px) !important; line-height: 1.12 !important; margin: 24px 0 14px !important; }
body.ed-on.single-post .entry-content, body.ed-on.single-post .page-content { font: 400 19px/1.7 var(--ed-serif); color: var(--ed-ink); }
body.ed-on.single-post .entry-content p { margin: 0 0 1.1em; }
body.ed-on.single-post .entry-content img, body.ed-on.single-post .wp-post-image { border-radius: var(--ed-r); }
body.ed-on.single-post .entry-content iframe { max-width: 100%; border-radius: var(--ed-r); }
body.ed-on blockquote { border-left: 3px solid var(--ed-gold); background: var(--ed-sage); padding: 14px 18px; border-radius: 0 var(--ed-r-s) var(--ed-r-s) 0; margin: 1.2em 0; font-style: italic; }
body.ed-on .page-header .entry-title, body.ed-on .page-title { font-size: clamp(30px, 4.4vw, 48px) !important; }

/* Directorio, Baratillo, tiendas (Classified Listing) */
body.ed-on .rtcl, body.ed-on .rtcl * { font-family: var(--ed-sans); }
body.ed-on .rtcl .listing-item, body.ed-on .rtcl-listing-item, body.ed-on .rtcl .rtcl-widget-listing-item, body.ed-on .rtcl-list-view .listing-item, body.ed-on .rtcl-grid-view .listing-item, body.ed-on .rtcl-single-listing-details, body.ed-on .rtcl .rtcl-sidebar-widget, body.ed-on .store-item, body.ed-on .rtcl-store-item {
  background: var(--ed-card) !important; border: 1px solid var(--ed-line) !important; border-radius: var(--ed-r) !important; box-shadow: none !important; overflow: hidden;
}
body.ed-on .rtcl .listing-title a, body.ed-on .rtcl .rtcl-listing-title a, body.ed-on .rtcl h3 a, body.ed-on .rtcl-listing-title { font-family: var(--ed-serif) !important; color: var(--ed-ink) !important; font-weight: 700 !important; }
body.ed-on .rtcl .rtcl-price, body.ed-on .rtcl-price-amount { color: var(--ed-green) !important; font-weight: 700 !important; font-size: 20px !important; }
body.ed-on .rtcl .badge, body.ed-on .rtcl .rtcl-badge { border-radius: 999px !important; background: var(--ed-sage) !important; color: var(--ed-green) !important; }
body.ed-on .rtcl .rtcl-slider, body.ed-on .rtcl-gallery img { border-radius: var(--ed-r); }

/* Vacantes (WP Job Manager) */
body.ed-on ul.job_listings { border: 0 !important; display: grid; gap: 10px; }
body.ed-on ul.job_listings li.job_listing a { background: var(--ed-card) !important; border: 1px solid var(--ed-line) !important; border-radius: var(--ed-r) !important; padding: 16px !important; }
body.ed-on ul.job_listings li.job_listing a .position h3 { font-family: var(--ed-serif) !important; color: var(--ed-ink) !important; font-size: 20px !important; }
body.ed-on .single_job_listing .job-listing-meta li { border-radius: 999px; }
body.ed-on .job_filters { background: var(--ed-sage) !important; border-radius: var(--ed-r) !important; }

/* Eventos (EventPrime) */
body.ed-on .ep-box-card-item, body.ed-on .ep-event-card, body.ed-on .em_event_item, body.ed-on .ep-card {
  background: var(--ed-card) !important; border: 1px solid var(--ed-line) !important; border-radius: var(--ed-r) !important; box-shadow: none !important;
}
body.ed-on .ep-event-title, body.ed-on .ep-box-card-title { font-family: var(--ed-serif) !important; color: var(--ed-ink) !important; }

/* Formularios públicos (WPForms, contacto) */
body.ed-on .wpforms-container .wpforms-field-label { font-weight: 600 !important; color: var(--ed-ink) !important; }
body.ed-on .wpforms-container { background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-r-l); padding: 20px !important; }

/* Migas y paginación existentes */
body.ed-on .page-numbers, body.ed-on .pagination a, body.ed-on .nav-links a { border-radius: 10px !important; }
body.ed-on .page-numbers.current { background: var(--ed-green) !important; color: #fff !important; }

/* ── Resultados de búsqueda ──────────────────────────────────── */
:is(#choco-home, body) .ed-results { padding: 26px 0 110px; }
:is(#choco-home, body) .ed-results__title { font: 700 clamp(30px, 5vw, 46px)/1.1 var(--ed-serif) !important; margin: 0 0 16px !important; }
:is(#choco-home, body) .ed-results__form { background: var(--ed-sage); border-radius: var(--ed-r-l); padding: 14px; margin-bottom: 16px; }
:is(#choco-home, body) .ed-results__lead { font-size: 18px; color: var(--ed-ink-2); margin: 6px 0 14px; }
:is(#choco-home, body) .ed-results__lead strong { color: var(--ed-ink); }
:is(#choco-home, body) .ed-chips, :is(#choco-home, body) .ed-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
:is(#choco-home, body) .ed-chip, :is(#choco-home, body) .ed-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ed-line-2);
  background: var(--ed-card); color: var(--ed-ink) !important; font-weight: 600; text-decoration: none !important; font-size: 15px; }
:is(#choco-home, body) .ed-filter span { font-weight: 600; color: var(--ed-ink-2); font-variant-numeric: tabular-nums; }
:is(#choco-home, body) .ed-filter.is-on { background: var(--ed-green); border-color: var(--ed-green); color: #fff !important; }
:is(#choco-home, body) .ed-filter.is-on span { color: #DCE9E3; }
:is(#choco-home, body) .ed-chip:hover, :is(#choco-home, body) .ed-filter:not(.is-on):hover { border-color: var(--ed-gold); }
:is(#choco-home, body) .ed-pinned { display: grid; gap: 10px; margin-bottom: 14px; }
:is(#choco-home, body) .ed-pin { display: grid; gap: 4px; padding: 18px 20px; background: var(--ed-sage); border: 1px solid rgba(40, 84, 72, .22); border-left: 4px solid var(--ed-gold); border-radius: var(--ed-r); text-decoration: none !important; color: var(--ed-ink) !important; }
:is(#choco-home, body) .ed-pin__k { font: 600 12px/1 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-green); }
:is(#choco-home, body) .ed-pin__t { font: 700 26px/1.15 var(--ed-serif); }
:is(#choco-home, body) .ed-pin__d { color: var(--ed-ink-2); }
:is(#choco-home, body) .ed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
:is(#choco-home, body) .ed-item { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-r); overflow: hidden; }
:is(#choco-home, body) .ed-item__img { display: block; aspect-ratio: 16 / 9; background: var(--ed-sage); }
:is(#choco-home, body) .ed-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#choco-home, body) .ed-item__body { padding: 14px 16px 16px; min-width: 0; }
:is(#choco-home, body) .ed-item__kicker { margin: 0 0 6px; font-size: 14px; color: var(--ed-ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
:is(#choco-home, body) .ed-type { font: 700 12px/1 var(--ed-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ed-green); background: var(--ed-sage); padding: 5px 8px; border-radius: 999px; }
:is(#choco-home, body) .ed-item--articulo .ed-type { background: #F3E9D6; color: #6E4F1E; }
:is(#choco-home, body) .ed-item--vacante .ed-type { background: #E3ECF3; color: #24506F; }
:is(#choco-home, body) .ed-item--evento .ed-type { background: #F1E4EC; color: #6B2F55; }
:is(#choco-home, body) .ed-badge { font: 700 12px/1 var(--ed-sans); padding: 5px 8px; border-radius: 999px; background: var(--ed-sage); color: var(--ed-green); }
:is(#choco-home, body) .ed-badge--off { background: #EDE6E2; color: #6A564D; }
:is(#choco-home, body) .ed-item__title { font: 700 21px/1.22 var(--ed-serif) !important; margin: 0 0 6px !important; }
:is(#choco-home, body) .ed-item__title a { color: var(--ed-ink) !important; text-decoration: none; }
:is(#choco-home, body) .ed-item__title a:hover { text-decoration: underline; text-decoration-color: var(--ed-gold); text-underline-offset: 3px; }
:is(#choco-home, body) .ed-item__meta { margin: 0 0 6px; font-weight: 600; color: var(--ed-ink); font-size: 15px; }
:is(#choco-home, body) .ed-item--articulo .ed-item__meta { color: var(--ed-green); font-size: 17px; }
:is(#choco-home, body) .ed-item__snip { margin: 0 0 8px; color: var(--ed-ink-2); font-size: 16px; line-height: 1.5; }
:is(#choco-home, body) .ed-item__snip mark { background: #F3E3BF; color: var(--ed-ink); padding: 0 2px; border-radius: 3px; }
:is(#choco-home, body) .ed-item .ed-link { font-size: 16px; }
@media (min-width: 640px) {
  :is(#choco-home, body) .ed-item { grid-template-columns: 180px 1fr; }
  :is(#choco-home, body) .ed-item__img { aspect-ratio: auto; min-height: 100%; }
  :is(#choco-home, body) .ed-item:not(:has(.ed-item__img)) { grid-template-columns: 1fr; }
}
:is(#choco-home, body) .ed-empty { background: var(--ed-card); border: 1px dashed var(--ed-line-2); border-radius: var(--ed-r); padding: 20px; }
:is(#choco-home, body) .ed-empty h2 { font-size: 24px !important; margin: 0 0 8px !important; }
:is(#choco-home, body) .ed-empty li { margin: 6px 0; }
:is(#choco-home, body) .ed-pager { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; color: var(--ed-ink-2); }

/* ── Pie de página ───────────────────────────────────────────── */
:is(#choco-home, body) .ed-footer { background: var(--ed-ink); color: #EFE6DA; margin-top: 40px; padding: 40px 0 22px; }
:is(#choco-home, body) .ed-footer a { color: #F6EFE4 !important; text-decoration: none; }
:is(#choco-home, body) .ed-footer a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: var(--ed-gold); }
:is(#choco-home, body) .ed-footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
:is(#choco-home, body) .ed-footer h3 { font: 700 18px/1.2 var(--ed-serif) !important; color: #fff !important; margin: 0 0 10px !important; padding-bottom: 8px; border-bottom: 1px solid rgba(187, 146, 81, .5); }
:is(#choco-home, body) .ed-footer nav a { display: block; padding: 6px 0; }
:is(#choco-home, body) .ed-footer p { color: #E4D8C8; margin: 10px 0 0; }
:is(#choco-home, body) .ed-brand--footer { color: #fff !important; }
:is(#choco-home, body) .ed-brand--footer img { width: 48px; height: 48px; background: var(--ed-bg); border-radius: 50%; padding: 2px; }
:is(#choco-home, body) .ed-brand--footer .ed-brand__name { font-size: 24px; }
:is(#choco-home, body) .ed-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 26px; padding-top: 16px; font-size: 14px; color: #D9CBB8; }
@media (min-width: 760px) { :is(#choco-home, body) .ed-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* El chat del Choco no tapa controles al final de la página */
body.ed-on .chb-wa { bottom: max(16px, env(safe-area-inset-bottom)); }
@media (max-width: 640px) { body.ed-on { padding-bottom: 84px; } }

/* La barra de vista previa */
body.ed-preview::before { content: "Vista previa"; position: fixed; left: 10px; bottom: 10px; z-index: 9995;
  background: var(--ed-gold); color: #2A1D18; font: 700 12px/1 var(--ed-sans); padding: 7px 10px; border-radius: 999px; box-shadow: var(--ed-shadow); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { :is(#choco-home, body) .ed-feature__img img, :is(#choco-home, body) .ed-strip__card, :is(#choco-home, body) .ed-link .ed-ico { transition: none !important; } }

:is(#choco-home, body) .ed-panel .ed-sform input[type=search] { font-size: 16px !important; padding-left: 42px !important; }

/* ── Colores escritos directo en las secciones (shortcodes del Choco) → paleta editorial ── */
body.ed-on [style*="color:#7D1A3A" i], body.ed-on [style*="color: #7D1A3A" i] { color: var(--ed-green) !important; }
body.ed-on [style*="background:#7D1A3A" i], body.ed-on [style*="background: #7D1A3A" i], body.ed-on [style*="background-color:#7D1A3A" i] { background: var(--ed-green) !important; color: #fff !important; border-color: var(--ed-green) !important; }
body.ed-on [style*="background:#FF8C00" i], body.ed-on [style*="background: #FF8C00" i] { background: var(--ed-gold) !important; color: #2A1D18 !important; }
body.ed-on [style*="color:#FF8C00" i] { color: var(--ed-gold-text) !important; }
body.ed-on [style*="background:#009688" i], body.ed-on [style*="background: #009688" i] { background: var(--ed-green) !important; color: #fff !important; }
body.ed-on [style*="#009688,#007a6e" i] { background: var(--ed-green) !important; }
body.ed-on [style*="color:#009688" i] { color: var(--ed-green) !important; }
body.ed-on [style*="background:#E5D3B3" i], body.ed-on [style*="background: #E5D3B3" i] { background: var(--ed-sage) !important; }
body.ed-on [style*="color:#7A6652" i] { color: var(--ed-ink-2) !important; }
body.ed-on [style*="color:#4B3F31" i] { color: var(--ed-ink) !important; }
body.ed-on [style*="border-radius:"] { border-radius: var(--ed-r-s); }
/* Tarjetas de las secciones (fondo blanco con borde) */
body.ed-on [style*="background:#fff" i][style*="border-radius" i], body.ed-on [style*="background:#FAF7F4" i] { background: var(--ed-card) !important; border-color: var(--ed-line) !important; }

/* Migas de pan */
body.ed-on .choco-breadcrumbs { font: 500 14px/1.4 var(--ed-sans) !important; color: var(--ed-ink-2) !important; max-width: 1240px; margin: 10px auto 0 !important; padding: 0 var(--ed-gutter) !important; }
body.ed-on .choco-breadcrumbs a { color: var(--ed-green) !important; }

/* Titulares con peso editorial */
body.ed-on h1, body.ed-on .entry-title, body.ed-on .page-title { font-weight: 700 !important; }
body.ed-on h2, body.ed-on h3 { font-weight: 700 !important; }
@media (max-width: 480px) { :is(#choco-home, body) .ed-sform input[type=search]::placeholder { font-size: 14.5px; } }

/* ── Portada: episodios de Kikeando (miniaturas reales de YouTube) ── */
body.ed-on #choco-home .kike-eps { display: grid; gap: 14px; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 640px) { body.ed-on #choco-home .kike-eps { grid-template-columns: repeat(2, 1fr); } }
body.ed-on #choco-home .kike-ep { display: grid; gap: 8px; text-decoration: none !important; color: var(--ed-ink) !important; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-r); overflow: hidden; padding-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
body.ed-on #choco-home .kike-ep:hover { border-color: var(--ed-gold); box-shadow: var(--ed-shadow); }
body.ed-on #choco-home .kike-ep__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
body.ed-on #choco-home .kike-ep__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.ed-on #choco-home .kike-ep__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 14px; background: var(--ed-green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
body.ed-on #choco-home .kike-ep__play svg { width: 26px; height: 26px; margin-left: 3px; }
body.ed-on #choco-home .kike-ep__t { font: 700 18px/1.25 var(--ed-serif); padding: 0 14px; }
body.ed-on #choco-home .kike-ep__d { font-size: 14px; color: var(--ed-ink-2); padding: 0 14px; }
body.ed-on #choco-home .kike .ep a { color: var(--ed-green) !important; font-weight: 700; }

/* Secciones oscuras de la portada (El Pozol, Comunidad): titulares claros */
body.ed-on #choco-home .pozol h1, body.ed-on #choco-home .pozol h2, body.ed-on #choco-home .pozol h3, body.ed-on #choco-home .pozol h4,
body.ed-on #choco-home .jalate h1, body.ed-on #choco-home .jalate h2, body.ed-on #choco-home .jalate h3, body.ed-on #choco-home .jalate h4,
body.ed-on #choco-home .pozol .elementor-heading-title, body.ed-on #choco-home .jalate .elementor-heading-title { color: #FBF6EC !important; }
body.ed-on #choco-home .jalate { background: var(--ed-ink) !important; }
