/* ==========================================================================
   El Briefing Pa · Design system v2
   Capa de diseño sobre style.css (plantilla) y site.css (módulos).
   Depende de tokens.css. Documentado en /design-system.

   1. Base y accesibilidad
   2. Header y navegación
   3. Tipografía editorial
   4. Componentes: marcador, botones, badges, chips
   5. Tarjetas (hero, listado, evento, relacionados)
   6. Artículo
   7. Sidebar y widgets
   8. Paginación y breadcrumbs
   9. Compartir (ShareThis)
   10. Footer
   11. Responsive
   ========================================================================== */

/* 1. Base y accesibilidad ------------------------------------------------ */
body {
    font-family: var(--eb-font-sans);
    color: var(--eb-navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--eb-accent-100); color: var(--eb-ink); }
a { transition: color var(--eb-dur) var(--eb-ease), background-color var(--eb-dur) var(--eb-ease); }
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--eb-focus);
    outline-offset: 2px;
    border-radius: 2px;
}
.eb-sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
img.bg { object-fit: cover; object-position: center; display: block; }
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* 2. Header y navegación ------------------------------------------------- */
.top-bar { background: var(--eb-navy); }
.topbar-social li a,
.footer-social li a {
    border-radius: var(--eb-radius);
    background: var(--eb-accent);
}
.topbar-social li a:hover,
.footer-social li a:hover { background: var(--eb-accent-600); }
.header-inner {
    border-bottom: 1px solid var(--eb-line);
    box-shadow: 0 6px 20px rgba(28, 36, 56, 0.05);
}
.nav-holder nav li a {
    font-size: var(--eb-fs-12);
    font-weight: 600;
    letter-spacing: var(--eb-tracking-caps);
    color: var(--eb-navy);
}
.nav-holder nav li a.act-link,
.nav-holder nav li a:hover { color: var(--eb-accent); }
.nav-holder nav li a.act-link:after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 0;
    height: 2px;
    background: var(--eb-accent);
}
.eb-nav-social { display: none !important; }
.main-menu .menusb .eb-nav-social { display: flex !important; gap: var(--eb-space-2); padding: var(--eb-space-4) 0 0; }
.main-menu .menusb .eb-nav-social a {
    width: var(--eb-touch);
    height: var(--eb-touch);
    line-height: var(--eb-touch);
    padding: 0;
    text-align: center;
    border-radius: var(--eb-radius);
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
}
.header-search-wrap .search::placeholder { color: var(--eb-meta); }

/* 3. Tipografía editorial ------------------------------------------------ */
.section-title {
    border-bottom: 1px solid var(--eb-line);
    padding-bottom: var(--eb-space-4);
    margin-bottom: var(--eb-space-8);
}
.section-title:before { height: 2px; width: 48px; background: var(--eb-accent); }
.section-title h2 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-25);
    font-weight: 700;
    line-height: var(--eb-lh-tight);
    color: var(--eb-navy);
}
.widget-title {
    font-family: var(--eb-font-sans);
    font-size: var(--eb-fs-14);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eb-tracking-caps);
    color: var(--eb-navy);
}
.widget-title:before { background: var(--eb-accent); }

/* Títulos de bloque y módulos: misma voz editorial en todo el sitio */
.photo-gallery-section h3,
.event-section-title,
.event-summary h3,
.ranking-title,
.performance-title,
.chart-title,
.enviar-nota-modal .modal-header h3,
.single-post-content_text .ranking-wrapper h2 {
    font-family: var(--eb-font-heading) !important;
    font-weight: 600 !important;
    color: var(--eb-navy);
}
.photo-gallery-section h3 { font-size: var(--eb-fs-20) !important; border-bottom: 1px solid var(--eb-line) !important; }
.event-section-title { font-size: var(--eb-fs-20) !important; }
.event-summary h3 { font-size: var(--eb-fs-20) !important; }
.ranking-title { font-size: var(--eb-fs-20) !important; }

/* Metadatos: mínimo 12px */
.post-date,
.list-post-content .post-date,
.grid-post-content .post-date,
.single-post-header .post-date,
.video-date,
.eb-credito {
    font-size: var(--eb-fs-12) !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--eb-meta);
}
.grid-post-media_title .video-date,
.grid-post-media_title .eb-credito { color: rgba(255, 255, 255, 0.85); }
.post-date i, .video-date i { color: var(--eb-accent); }
.grid-post-media_title .video-date i { color: #fff; opacity: .8; }

/* 4. Componentes --------------------------------------------------------- */
/* Marcador de categoría: texto por defecto, sólido solo sobre imagen */
.post-category-marker,
.list-post-content .post-category-marker,
.single-post-header .post-category-marker {
    background: transparent;
    color: var(--eb-accent);
    padding: 0;
    border-radius: 0;
    font-size: var(--eb-fs-12);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eb-tracking-caps);
    line-height: 1.4;
}
.list-post-content .post-category-marker:hover,
.single-post-header .post-category-marker:hover { background: transparent; color: var(--eb-accent-600); }
.grid-post-media_title .post-category-marker,
.list-post-media .post-category-marker,
.eb-on-image .post-category-marker {
    background: var(--eb-accent);
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--eb-radius);
    font-size: var(--eb-fs-12);
    letter-spacing: 0.04em;
}
.grid-post-item .post-category-marker:hover { background: var(--eb-accent-600); color: #fff; }

/* Botones */
.eb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--eb-space-2);
    min-height: var(--eb-touch);
    padding: 0 var(--eb-space-6);
    border: 1px solid transparent;
    border-radius: var(--eb-radius);
    font-family: var(--eb-font-sans);
    font-size: var(--eb-fs-14);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--eb-dur) var(--eb-ease), color var(--eb-dur) var(--eb-ease), border-color var(--eb-dur) var(--eb-ease), box-shadow var(--eb-dur) var(--eb-ease);
}
.eb-btn--primary { background: var(--eb-accent); color: #fff; }
.eb-btn--primary:hover { background: var(--eb-accent-600); color: #fff; }
.eb-btn--secondary { background: var(--eb-navy); color: #fff; }
.eb-btn--secondary:hover { background: var(--eb-navy-900); color: #fff; }
.eb-btn--ghost { background: transparent; color: var(--eb-navy); border-color: var(--eb-line-strong); }
.eb-btn--ghost:hover { border-color: var(--eb-navy); color: var(--eb-navy); }
.eb-btn--pill { border-radius: var(--eb-radius-pill); }
.eb-btn--sm { min-height: 36px; padding: 0 var(--eb-space-4); font-size: var(--eb-fs-12); }
.eb-btn--block { display: flex; width: 100%; }
.eb-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--eb-focus); }
.eb-btn[disabled], .eb-btn.is-disabled, .eb-btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badges */
.eb-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--eb-radius-pill);
    font-size: var(--eb-fs-12);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.eb-badge--navy { background: var(--eb-navy); color: #fff; }
.eb-badge--accent { background: var(--eb-accent); color: #fff; }
.eb-badge--soft { background: var(--eb-accent-050); color: var(--eb-accent-600); }
.eb-badge--neutral { background: var(--eb-gray-100); color: var(--eb-navy); }
.eb-badge--float { position: absolute; top: var(--eb-space-3); right: var(--eb-space-3); z-index: 10; box-shadow: var(--eb-shadow-1); }

/* 5. Tarjetas ------------------------------------------------------------ */
.grid-post-media,
.grid-post-media.gpm_sing,
.list-post-media { border-radius: var(--eb-radius); }
.grid-post-media.gpm_sing:before {
    background: linear-gradient(to bottom, rgba(21, 27, 43, 0) 35%, rgba(21, 27, 43, 0.88) 100%);
}
.grid-post-media .bg { transition: transform 900ms var(--eb-ease); }
.grid-post-media:hover .bg { transform: scale(1.04); }
.grid-post-media_title { padding: var(--eb-space-6) var(--eb-space-8) var(--eb-space-6); }
.grid-post-media_title h4 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-25);
    font-weight: 600;
    line-height: var(--eb-lh-tight);
    margin: var(--eb-space-1) 0 var(--eb-space-2);
}
.hero-hrid .grid-post-item .grid-post-media.gpm_sing.bold_gpi_half .grid-post-media_title { padding: var(--eb-space-4) var(--eb-space-4) var(--eb-space-3); }
.hero-hrid .grid-post-item .grid-post-media.gpm_sing.bold_gpi_half .grid-post-media_title h4,
.eb-card-hero--sm .grid-post-media_title h4 {
    font-size: var(--eb-fs-16);
    line-height: var(--eb-lh-snug);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-post-media_title .post-category-marker { margin-bottom: var(--eb-space-2); }

/* Tarjeta de listado */
.list-post { padding-bottom: var(--eb-space-8); margin-bottom: var(--eb-space-8); }
.list-post:before { background: var(--eb-accent); }
.list-post-media { height: 200px; }
.list-post-media a:after { background: var(--eb-accent); }
.list-post-content:before,
.single-post-header:before { display: none; }
.list-post-content h3 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-20);
    font-weight: 600;
    line-height: var(--eb-lh-snug);
    margin: var(--eb-space-1) 0 var(--eb-space-2);
}
.list-post-content h3 a { color: var(--eb-navy); }
.list-post-content h3 a:hover { color: var(--eb-accent); }
.list-post-content p {
    font-size: var(--eb-fs-14);
    line-height: 1.6;
    font-weight: 400;
    color: var(--eb-text-2);
}

/* Tarjeta de evento */
.eb-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eb-space-2) var(--eb-space-4);
    margin: var(--eb-space-3) 0;
    font-size: var(--eb-fs-14);
    font-weight: 500;
    color: var(--eb-text-2);
    text-align: left;
}
.eb-event-meta i { color: var(--eb-accent); margin-right: var(--eb-space-2); width: 14px; text-align: center; }

/* Relacionados / tendencias */
.eb-related { margin-top: var(--eb-space-12); padding-top: var(--eb-space-8); border-top: 1px solid var(--eb-line); clear: both; }
.eb-related_title {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-20);
    font-weight: 600;
    color: var(--eb-navy);
    text-align: left;
    margin-bottom: var(--eb-space-6);
}
.eb-related_item { margin-bottom: var(--eb-space-6); text-align: left; }
.eb-related_item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto !important;
    object-fit: cover;
    border-radius: var(--eb-radius);
    margin-bottom: var(--eb-space-3);
}
.eb-related_item h4 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-16);
    font-weight: 600;
    line-height: var(--eb-lh-snug);
    margin-bottom: var(--eb-space-2);
}
.eb-related_item h4 a { color: var(--eb-navy); }
.eb-related_item h4 a:hover { color: var(--eb-accent); }
.eb-related_item span { font-size: var(--eb-fs-12); color: var(--eb-meta); }

/* 6. Artículo ------------------------------------------------------------ */
.single-post-header { padding-bottom: var(--eb-space-6); border-bottom: 1px solid var(--eb-line); }
.single-post-header:after { height: 2px; width: 48px; background: var(--eb-accent); }
.single-post-header h1 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-31);
    font-weight: 700;
    line-height: var(--eb-lh-tight);
    color: var(--eb-navy);
    margin: var(--eb-space-2) 0 var(--eb-space-4);
}
.single-post-header .post-date { margin: 0; float: left; }
.eb-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--eb-radius);
    margin: var(--eb-space-6) 0;
}
.single-post-content_text > p,
.single-post-content_text > ul > li,
.single-post-content_text > ol > li,
.single-post-content_text > blockquote p {
    font-family: var(--eb-font-reading);
    font-size: var(--eb-fs-16);
    line-height: var(--eb-lh-body);
    font-weight: 400;
    color: var(--eb-ink);
    text-align: left;
}
.single-post-content_text > p,
.single-post-content_text > h2,
.single-post-content_text > h3,
.single-post-content_text > ul,
.single-post-content_text > ol,
.single-post-content_text > blockquote,
.eb-creditos,
.eb-fuente { max-width: var(--eb-measure); }
.single-post-content_text > p {
    padding: 0;
    margin: 0 0 1.1em;
}
.single-post-content_text > p a {
    color: var(--eb-accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.single-post-content_text > p a:hover { color: var(--eb-accent-600); }
.single-post-content_text > h2,
.single-post-content_text > h3 {
    font-family: var(--eb-font-heading);
    font-weight: 600;
    line-height: var(--eb-lh-snug);
    color: var(--eb-navy);
    text-align: left;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin: 1.6em 0 0.6em;
}
.single-post-content_text > h2 { font-size: var(--eb-fs-25); }
.single-post-content_text > h3 { font-size: var(--eb-fs-20); }
.single-post-content_text > ul,
.single-post-content_text > ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.single-post-content_text > ul { list-style: none; padding-left: 0; }
.single-post-content_text > ul > li {
    position: relative;
    margin: 0 0 0.6em;
    padding: 0 0 0 1.3em;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
.single-post-content_text > ul > li:hover { transform: none; box-shadow: none; }
.single-post-content_text > ul > li:before {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--eb-accent);
    transform: none;
}
.single-post-content_text > ul > li p,
.single-post-content_text > ol > li p { font: inherit; color: inherit; margin: 0; }
.single-post-content_text > ol > li { padding-left: 0.3em; margin-bottom: 0.6em; list-style: decimal; }
.single-post-content_text > ol > li::marker { color: var(--eb-accent); font-family: var(--eb-font-sans); font-weight: 600; font-size: 0.85em; }
.single-post-content_text > blockquote {
    border-left: 3px solid var(--eb-accent);
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 1.2em;
}
.single-post-content_text > blockquote p { font-style: italic; font-size: var(--eb-fs-20); line-height: 1.6; color: var(--eb-navy); }
.eb-creditos,
.eb-fuente {
    font-family: var(--eb-font-sans);
    font-size: var(--eb-fs-12);
    line-height: 1.7;
    color: var(--eb-meta);
}
.eb-creditos a, .eb-fuente a { color: var(--eb-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* 7. Sidebar y widgets --------------------------------------------------- */
.cat-wid-list li a { font-size: var(--eb-fs-14); color: var(--eb-navy); font-weight: 500; }
.cat-wid-list li a:hover { color: var(--eb-accent); }
.cat-wid-list li span {
    border-radius: var(--eb-radius-pill);
    font-size: var(--eb-fs-12);
    min-width: 32px;
    padding: 0 var(--eb-space-2);
    width: auto;
}
.event-widget-item { border-bottom-color: var(--eb-line); }
.evento-widget-media img { border-radius: var(--eb-radius); }
.evento-widget-date { background: rgba(28, 36, 56, 0.9); border-radius: var(--eb-radius); }
.evento-widget-content h4 { font-family: var(--eb-font-heading); font-size: var(--eb-fs-14); font-weight: 600; line-height: var(--eb-lh-snug); }
.evento-widget-category {
    background: var(--eb-gray-100) !important;
    color: var(--eb-navy) !important;
    border-radius: var(--eb-radius-pill) !important;
    font-size: 11px !important;
    letter-spacing: 0.04em;
}
.evento-widget-location { font-size: var(--eb-fs-12) !important; color: var(--eb-meta) !important; }
.eventos-ver-todos { /* migrado a .eb-btn; se mantiene por compatibilidad */
    border-radius: var(--eb-radius-pill) !important;
    background: var(--eb-navy) !important;
}
.eventos-ver-todos:hover { background: var(--eb-navy-900) !important; }

/* 8. Paginación y breadcrumbs ------------------------------------------- */
.pagination { border-radius: var(--eb-radius); overflow: hidden; }
.pagination a { font-size: var(--eb-fs-14); font-weight: 600; }
.pagination a:focus-visible { outline-offset: -3px; outline-color: #fff; }
.breadcrumbs-header_url a,
.breadcrumbs-header_url span { font-size: var(--eb-fs-12); letter-spacing: 0.04em; }
.breadcrumbs-header_url a { color: var(--eb-navy); }
.breadcrumbs-header_url a:hover { color: var(--eb-accent); }
.breadcrumbs-header_url span { color: var(--eb-meta); }

/* 9. Compartir (ShareThis) ---------------------------------------------- */
.eb-share { display: flex; align-items: center; gap: var(--eb-space-3); margin: 0 0 var(--eb-space-6); flex-wrap: wrap; }
.eb-share_label {
    font-size: var(--eb-fs-12);
    font-weight: 600;
    letter-spacing: var(--eb-tracking-caps);
    text-transform: uppercase;
    color: var(--eb-meta);
}
.eb-share #st-1.st-inline-share-buttons,
.eb-share .sharethis-inline-share-buttons { text-align: left !important; display: flex !important; flex-wrap: wrap; gap: var(--eb-space-2); }
.eb-share #st-1 .st-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: var(--eb-navy) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    top: 0 !important;
    transition: background-color var(--eb-dur) var(--eb-ease), transform var(--eb-dur) var(--eb-ease) !important;
}
.eb-share #st-1 .st-btn > img {
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    top: 0 !important;
    left: 0 !important;
}
.eb-share #st-1 .st-btn:hover { background: var(--eb-accent) !important; transform: translateY(-1px) !important; }
.eb-share #st-1 .st-btn .st-label { display: none !important; }

/* 10. Footer ------------------------------------------------------------- */
.main-footer { background: var(--eb-navy-900); }
.footer-bottom { background: var(--eb-navy-950); }
.footer-widget-title {
    font-size: var(--eb-fs-12);
    font-weight: 600;
    letter-spacing: var(--eb-tracking-caps);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}
.footer-widget-content p { color: rgba(255, 255, 255, 0.78); font-size: var(--eb-fs-14); line-height: 1.7; }
.footer-list li { font-size: var(--eb-fs-14); font-weight: 500; }
.footer-list li a { color: rgba(255, 255, 255, 0.72); }
.footer-list li a:hover { color: #fff; }
.copyright { color: rgba(255, 255, 255, 0.6); font-size: var(--eb-fs-12); }
.copyright span { color: rgba(255, 255, 255, 0.85); }
.to-top { border-radius: var(--eb-radius); }
.eb-footer-about--short { display: none; }
#mc_embed_signup h2 { font-family: var(--eb-font-heading) !important; font-weight: 600 !important; }
#mc_embed_signup input.email,
#mc_embed_signup input[type="email"] {
    border-radius: var(--eb-radius) !important;
    border: 1px solid transparent !important;
    min-height: var(--eb-touch);
}
#mc_embed_signup input[type="email"]:focus-visible { box-shadow: 0 0 0 3px var(--eb-accent-100); outline: none; }
#mc_embed_signup .button,
#mc-embedded-subscribe {
    background: var(--eb-accent) !important;
    border-radius: var(--eb-radius) !important;
    min-height: var(--eb-touch) !important;
    font-family: var(--eb-font-sans) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    transition: background-color var(--eb-dur) var(--eb-ease) !important;
}
#mc_embed_signup .button:hover,
#mc-embedded-subscribe:hover { background: var(--eb-accent-600) !important; }
#mc_embed_signup .button:focus-visible { box-shadow: 0 0 0 3px var(--eb-navy-900), 0 0 0 5px #fff !important; }

/* Portada: listado compacto sin título de sección ni resumen */
.eb-recents--home { padding-top: var(--eb-space-12); }
/* Tarjetas sutiles (listado compacto de portada) */
.eb-card-list--compact {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--eb-line);
    border-radius: var(--eb-radius);
    padding: 0;
    margin-bottom: var(--eb-space-4);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(28, 36, 56, 0.04);
    transition: box-shadow var(--eb-dur) var(--eb-ease), border-color var(--eb-dur) var(--eb-ease), transform var(--eb-dur) var(--eb-ease);
}
.eb-card-list--compact:before { display: none; }
/* Alternancia blanco / gris casi blanco para separar visualmente las notas */
.eb-card-list--compact:nth-child(even) { background: var(--eb-gray-050); }
.eb-card-list--compact:hover {
    border-color: var(--eb-line-strong);
    box-shadow: var(--eb-shadow-2);
    transform: translateY(-2px);
}
.eb-card-list--compact:focus-within { border-color: var(--eb-accent-100); box-shadow: 0 0 0 3px var(--eb-accent-050), var(--eb-shadow-1); }
.eb-card-list--compact .list-post-media {
    float: none;
    flex: 0 0 38%;
    width: 38%;
    height: auto;
    min-height: 180px;
    margin: 0;
    border-radius: 0;
}
.eb-card-list--compact .list-post-media a:before,
.eb-card-list--compact .list-post-media a:after { display: none; } /* sin el overlay de flecha de la plantilla */
.eb-card-list--compact .list-post-content {
    float: none;
    flex: 1 1 auto;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--eb-space-4) var(--eb-space-6);
}
.eb-card-list--compact .list-post-content h3 { margin: var(--eb-space-1) 0 var(--eb-space-2); }
.eb-card-list--compact .post-date { margin: 0 !important; }
/* Toda la tarjeta es clicable: el enlace del título se extiende; categoría y autor quedan encima */
.eb-card-list--compact .list-post-content,
.eb-card-list--compact .list-post-content h3,
.eb-card-list--compact .list-post-content h3 a { position: static; }
.eb-card-list--compact h3 a:after { content: ''; position: absolute; inset: 0; z-index: 1; }
.eb-card-list--compact h3 a:focus-visible { outline: none; }
.eb-card-list--compact .post-category-marker,
.eb-card-list--compact .eb-credito a { position: relative; z-index: 2; }
.eb-card-list--compact .bg { transition: transform 600ms var(--eb-ease); }
.eb-card-list--compact:hover .bg { transform: scale(1.03); }

/* Slideshow de portada (components/hero-slider) ------------------------ */
.eb-home-slider .ad-container { width: 100%; max-width: none; margin: var(--eb-space-4) 0 0; }
.eb-home-slider { padding: var(--eb-space-6) 0 0; }
.eb-slider {
    position: relative;
    border-radius: var(--eb-radius);
    overflow: hidden;
    background: var(--eb-navy-950);
    outline: none;
}
.eb-slider:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--eb-focus); }
.eb-slider_viewport { overflow: hidden; }
.eb-slider_track {
    display: flex;
    transition: transform 700ms var(--eb-ease);
    will-change: transform;
}
.eb-slider_slide {
    position: relative;
    flex: 0 0 100%;
    height: 650px;
    overflow: hidden;
}
.eb-slider_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s linear;
}
.eb-slider_slide.is-active .eb-slider_img { transform: scale(1); }
.eb-slider_slide:after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(21, 27, 43, 0.92) 0%, rgba(21, 27, 43, 0.55) 38%, rgba(21, 27, 43, 0) 70%),
        linear-gradient(to right, rgba(21, 27, 43, 0.45) 0%, rgba(21, 27, 43, 0) 55%);
    pointer-events: none;
}
.eb-slider_caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--eb-space-12) var(--eb-space-12) var(--eb-space-16);
    max-width: 860px;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--eb-ease) 200ms, transform 500ms var(--eb-ease) 200ms;
}
.eb-slider_slide.is-active .eb-slider_caption { opacity: 1; transform: none; }
.eb-slider_caption .post-category-marker { display: inline-block; float: none; margin-bottom: var(--eb-space-3); }
.eb-slider_title {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-39);
    font-weight: 700;
    line-height: var(--eb-lh-tight);
    color: #fff;
    margin: 0 0 var(--eb-space-3);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-slider_title a { color: #fff; }
.eb-slider_title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.eb-slider_meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eb-space-2) var(--eb-space-4); }
.eb-slider_meta .video-date,
.eb-slider_meta .eb-credito { color: rgba(255, 255, 255, 0.85) !important; float: none; margin: 0; }
.eb-slider_meta .eb-credito a { color: #fff; }
.eb-slider_meta .video-date i { color: #fff; opacity: .8; margin-right: 6px; }

.eb-slider_arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: var(--eb-touch);
    height: var(--eb-touch);
    margin-top: -22px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--eb-dur) var(--eb-ease), background-color var(--eb-dur) var(--eb-ease);
}
.eb-slider_arrow--prev { left: var(--eb-space-4); }
.eb-slider_arrow--next { right: var(--eb-space-4); }
.eb-slider:hover .eb-slider_arrow,
.eb-slider:focus-within .eb-slider_arrow { opacity: 1; }
.eb-slider_arrow:hover { background: var(--eb-accent); }
.eb-slider_arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }

.eb-slider_dots {
    position: absolute;
    left: var(--eb-space-12);
    bottom: var(--eb-space-6);
    z-index: 3;
    display: flex;
    gap: var(--eb-space-2);
}
.eb-slider_dot {
    width: 36px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.eb-slider_dot span {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}
.eb-slider_dot span:after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}
.eb-slider_dot.is-active span:after { transform: scaleX(1); }
.eb-slider.is-timing .eb-slider_dot.is-active span:after { animation: eb-slider-progress var(--eb-slider-interval, 6000ms) linear forwards; }
.eb-slider_dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes eb-slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.eb-slider.is-single .eb-slider_arrow,
.eb-slider.is-single .eb-slider_dots { display: none; }

/* Widget de próximos eventos en slideshow (components/events-slider) ---- */
.eb-mobile-events { display: none; }
.eb-events-mini { margin-top: var(--eb-space-6); padding: 0; float: none; width: 100%; }
.eb-events-mini_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--eb-space-2); }
.eb-events-mini_title {
    font-family: var(--eb-font-sans);
    font-size: var(--eb-fs-14);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eb-tracking-caps);
    color: var(--eb-navy);
    margin: 0;
    text-align: left;
}
.eb-events-mini_title:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eb-accent);
    margin-right: var(--eb-space-2);
    vertical-align: 1px;
}
.eb-slider--events { background: #fff; border: 1px solid var(--eb-line); }
.eb-slider--events .eb-slider_slide { height: auto; }
.eb-slider--events .eb-slider_slide:after { display: none; }
.eb-slider--events .eb-slider_dots { position: static; justify-content: center; padding: 0 0 var(--eb-space-3); }
.eb-slider--events .eb-slider_dot { width: 22px; }
.eb-slider--events .eb-slider_dot span { background: var(--eb-line-strong); }
.eb-slider--events .eb-slider_dot span:after { background: var(--eb-navy); }
.eb-event-slide { display: flex; gap: var(--eb-space-3); padding: var(--eb-space-3); color: var(--eb-navy); text-align: left; }
.eb-event-slide_media { position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: var(--eb-radius); overflow: hidden; background: var(--eb-gray-100); }
.eb-event-slide_media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-event-slide_date {
    position: absolute;
    left: 6px;
    top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 34px;
    padding: 3px 5px;
    border-radius: var(--eb-radius);
    background: rgba(28, 36, 56, 0.9);
    color: #fff;
    font-size: 10px;
    line-height: 1.1;
    text-transform: uppercase;
}
.eb-event-slide_date strong { font-size: 15px; font-weight: 700; }
.eb-event-slide_body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.eb-event-slide_cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eb-accent); }
.eb-event-slide_title {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-16);
    font-weight: 600;
    line-height: var(--eb-lh-snug);
    color: var(--eb-navy);
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-event-slide_meta { font-size: var(--eb-fs-12); color: var(--eb-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.eb-event-slide_meta i { color: var(--eb-accent); margin-right: 5px; }
.eb-event-slide_price { font-size: 11px; font-weight: 600; color: var(--eb-accent-600); background: var(--eb-accent-050); border-radius: var(--eb-radius-pill); padding: 2px 8px; }
.eb-event-slide_price--free { color: #fff; background: var(--eb-navy); }
.eb-events-mini .eb-btn { margin-top: var(--eb-space-3); }

/* 11. Responsive -------------------------------------------------------- */
@media only screen and (max-width: 1064px) {
    .eb-slider_slide { height: 550px; }
    .eb-slider_caption { padding: var(--eb-space-8) var(--eb-space-8) var(--eb-space-12); }
    .eb-slider_title { font-size: var(--eb-fs-31); }
    .eb-slider_dots { left: var(--eb-space-8); }
    .eb-recents--home { padding-top: var(--eb-space-6); }
}
@media only screen and (max-width: 768px) {
    /* Header compacto: sin top bar, redes dentro del menú */
    .top-bar { display: none; }
    #wrapper { padding-top: 50px; }
    .logo-holder { height: 34px; top: 8px; }

    .section-title h2 { font-size: var(--eb-fs-20); }
    .single-post-header h1 { font-size: var(--eb-fs-25); }
    .grid-post-media_title { padding: var(--eb-space-4); }
    .grid-post-media_title h4 { font-size: var(--eb-fs-20); }
    .eb-home-slider { padding-top: var(--eb-space-4); }
    .eb-mobile-events { display: block; }
    .eb-slider_slide { height: 368px; }
    .eb-slider_caption { padding: var(--eb-space-4) var(--eb-space-4) var(--eb-space-12); }
    .eb-slider_title { font-size: var(--eb-fs-20); -webkit-line-clamp: 3; }
    .eb-slider_dots { left: var(--eb-space-4); bottom: var(--eb-space-4); }
    .eb-slider_dot { width: 28px; }
    .eb-slider_arrow { display: none; } /* en táctil se desliza */
    .list-post-content h3 { font-size: 18px; }
    .single-post-content_text > p,
    .single-post-content_text > ul > li,
    .single-post-content_text > ol > li { font-size: var(--eb-fs-16); }
    .single-post-content_text > h2 { font-size: var(--eb-fs-20); }
    .single-post-content_text > h3 { font-size: 18px; }

    /* Áreas táctiles de 44px */
    .footer-social li a,
    .to-top { width: var(--eb-touch); height: var(--eb-touch); line-height: var(--eb-touch); font-size: 14px; }
    .pagination a { min-width: var(--eb-touch); }

    /* Footer resumido */
    .eb-footer-about--long { display: none; }
    .eb-footer-about--short { display: block; }
}
@media only screen and (max-width: 630px) {
    .list-post-media { height: auto; aspect-ratio: 16 / 9; }
    .eb-card-list--compact { flex-direction: column; }
    .eb-card-list--compact .list-post-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .eb-card-list--compact .list-post-content { padding: var(--eb-space-3) var(--eb-space-4) var(--eb-space-4); }
}

/* Página 404 ------------------------------------------------------------ */
.eb-404 { padding: var(--eb-space-16) 0; text-align: left; }
.eb-404 .container > h1 {
    font-family: var(--eb-font-heading);
    font-size: var(--eb-fs-31);
    font-weight: 700;
    font-weight: 600;
    line-height: var(--eb-lh-tight);
    color: var(--eb-navy);
    margin: var(--eb-space-2) 0 var(--eb-space-4);
    text-align: left;
}
.eb-404 .container > p { font-size: var(--eb-fs-16); line-height: 1.6; color: var(--eb-text-2); max-width: 56ch; text-align: left; }
.eb-404_code { font-size: var(--eb-fs-12); font-weight: 600; letter-spacing: var(--eb-tracking-caps); text-transform: uppercase; color: var(--eb-accent); }
.eb-404_actions { display: flex; flex-wrap: wrap; gap: var(--eb-space-3); margin: var(--eb-space-6) 0 var(--eb-space-12); }
.eb-404_list { max-width: 860px; }

/* La plantilla apuntaba a ../images/city-bg.png (ruta rota → 404 en cada página). Se anula para no pedirla. */
.pwh_bg { background: none !important; }
/* Si ShareThis no carga (bloqueadores, vista previa) no se muestra la etiqueta suelta */
.eb-share:not(:has(.st-btn)):not(:has(.ds-share-mock)) { display: none; }
