/* Comunicados: portada con foto, filtro lateral por nivel, destacado y vista Listado / Tarjetas. */
.com-hero, .com-section, .com-hero :not(i), .com-section :not(i) { font-family: var(--com-font, "Poppins", sans-serif); }
.com-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; color: #fff; background: #0f2442 center / cover no-repeat; }
.com-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 58, .93) 0%, rgba(13, 31, 58, .72) 45%, rgba(13, 31, 58, .28) 100%); }
.com-hero__inner { position: relative; padding-top: 70px; padding-bottom: 54px; }
.com-crumb { display: flex; gap: 10px; font-size: 13px; margin-bottom: 22px; color: rgba(255, 255, 255, .85); }
.com-crumb a { color: #fff; text-decoration: none; }
.com-eyebrow { color: var(--com-primary); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.com-hero h1 { color: #fff; font-size: clamp(40px, 5.5vw, 62px); font-weight: 800; line-height: 1.05; margin: 6px 0 10px; letter-spacing: 0; }
.com-hero p { color: #dbe4f2; font-size: 17px; max-width: 560px; margin: 0; }
.com-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.com-stats div { border-left: 3px solid var(--com-primary); padding-left: 12px; }
.com-stats b { display: block; font-size: 24px; line-height: 1; color: #fff; }
.com-stats span { font-size: 12px; color: #c9d3e3; }

.com-section { background: #f4f6fa; padding: 48px 0 80px; }
.com-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.com-side { background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; overflow: hidden; position: sticky; top: 110px; box-shadow: 0 12px 32px rgba(0, 0, 0, .04); }
.com-side h2 { margin: 0; padding: 18px 20px; font-size: 17px; font-weight: 700; color: #1b1300; background: linear-gradient(90deg, var(--com-primary), var(--com-secondary)); }
.com-search { position: relative; padding: 14px 16px; border-bottom: 1px solid #eef1f5; }
.com-search i { position: absolute; left: 29px; top: 50%; transform: translateY(-50%); color: #99a1b0; font-size: 13px; }
.com-search input { width: 100%; border: 1px solid #e1e5ec; border-radius: 10px; padding: 10px 12px 10px 34px; font-size: 14px; background: #f8fafc; }
.com-levels { padding: 6px 0; }
.com-level { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 14px; color: #4a5262; text-decoration: none; }
.com-level:hover { background: #fafbfd; color: #1d2433; }
.com-level i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.com-level em { margin-left: auto; font-style: normal; font-size: 12px; background: #f1f3f7; border-radius: 20px; padding: 2px 9px; color: #6a7282; }
.com-level.active { background: #fff6e2; color: #1d2433; font-weight: 700; }
.com-level.active em { background: var(--com-primary); color: #1b1300; }

.com-featured { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; background: #123a6b; color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 28px; box-shadow: 0 18px 40px rgba(18, 58, 107, .25); }
.com-featured__pin { width: 54px; height: 54px; border-radius: 14px; background: var(--com-primary); color: #1b1300; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.com-featured small { color: var(--com-primary); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.com-featured h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.com-featured p { margin: 0; color: #c9d6ea; font-size: 14px; }
.com-featured__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--com-primary); color: #1b1300 !important; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 11px 20px; white-space: nowrap; text-decoration: none; }

.com-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.com-viewbar > span { font-size: 14px; color: #6a7282; }
.com-toggle { display: inline-flex; background: #fff; border: 1px solid #e1e6ee; border-radius: 12px; padding: 4px; gap: 4px; }
.com-toggle button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #1d2433; }
.com-toggle button[aria-pressed="true"] { background: #123a6b; color: #fff; }

.com-month { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a8394; }
.com-month::after { content: ""; flex: 1; height: 1px; background: #e1e6ee; }
.com-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.com-items .com-month { grid-column: 1 / -1; }

/* Vista Listado */
.com-item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; padding: 16px 20px 16px 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.com-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.com-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 35, 65, .08); }
.com-date { text-align: center; border-radius: 12px; background: #f5f7fb; padding: 10px 0; }
.com-date b { display: block; font-size: 26px; line-height: 1; color: #1d2433; }
.com-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #7a8394; }
.com-date em, .com-date__level { display: none; }
.com-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c); }
.com-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.com-new { display: inline-block; background: #E53935; color: #fff; font-size: 10px; font-weight: 700; border-radius: 20px; padding: 2px 8px; margin-left: 8px; letter-spacing: .05em; text-transform: uppercase; }
.com-body h4 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; color: #1d2433; line-height: 1.3; }
.com-body p { margin: 0; font-size: 14px; color: #6a7282; }
.com-dl { display: flex; align-items: center; gap: 10px; border: 1px solid #e1e6ee; border-radius: 12px; padding: 9px 14px; font-size: 13px; color: #1d2433; font-weight: 600; text-decoration: none; white-space: nowrap; }
.com-dl:hover { border-color: var(--c); color: #1d2433; }
.com-dl__icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.com-dl small { display: block; color: #8a93a3; font-weight: 400; font-size: 11px; }
.com-dl.is-disabled { color: #94a3b8; background: #f1f4f8; }

/* Vista Tarjetas */
.com-items.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.com-items.is-cards .com-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.com-items.is-cards .com-item::before { display: none; }
.com-items.is-cards .com-date { display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 0; background: var(--c); padding: 16px 18px; }
.com-items.is-cards .com-date b { color: #fff; font-size: 30px; }
.com-items.is-cards .com-date span { color: rgba(255, 255, 255, .9); }
.com-items.is-cards .com-date em { display: inline; font-style: normal; }
.com-items.is-cards .com-date .com-date__level { display: inline-block; margin-left: auto; background: rgba(255, 255, 255, .18); border-radius: 20px; padding: 4px 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.com-items.is-cards .com-body { flex: 1; padding: 16px 18px; }
.com-items.is-cards .com-tag { display: none; }
.com-items.is-cards .com-new { margin: 0 0 8px; }
.com-items.is-cards .com-dl { margin: 0 18px 16px; justify-content: flex-start; }

.com-empty { border: 1px dashed #ccd7e5; border-radius: 18px; padding: 42px 22px; background: #fff; text-align: center; color: #64748b; }
.com-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.com-page { min-width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #dbe4ef; color: #26344f; font-weight: 800; text-decoration: none; }
.com-page.active { background: var(--com-primary); border-color: var(--com-primary); color: #1b1300; }

@media (max-width: 991px) {
    .com-grid { grid-template-columns: minmax(0, 1fr); }
    .com-side { position: static; }
    .com-levels { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
    .com-level { border: 1px solid #e6eaf0; border-radius: 999px; padding: 7px 12px; }
}
@media (max-width: 767px) {
    .com-hero { min-height: 300px; }
    .com-featured { grid-template-columns: minmax(0, 1fr); }
    .com-featured__pin { display: none; }
    .com-item { grid-template-columns: 60px minmax(0, 1fr); }
    .com-item .com-dl { grid-column: 1 / -1; }
    .com-items.is-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Pantallas grandes: usar mas ancho (antes quedaba mucho espacio vacio a los costados). */
@media (min-width: 1200px) {
    .com-hero .container, .com-section .container { max-width: min(1560px, calc(100% - 80px)); }
    .com-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
}
@media (min-width: 1500px) {
    .com-items.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
