:root {
    --red-primary: #f0050d;
    --red-dark: #991b1b;
    --red-deeper: #7f1d1d;
    --red-soft: #fef2f2;
    --red-border: #fecaca;
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-soft: #fffbeb;
    --gold-border: #fde68a;
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --line-200: #e2e8f0;
    --line-100: #f1f5f9;
    --bg-body: #f8fafc;
    --bg-admin: #f1f5f9;
    --white: #ffffff;
    --green-ok: #16a34a;
    --green-soft: #dcfce7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.16);
    --font-sans: "Inter", "Roboto", system-ui, -apple-system, sans-serif;
    --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --font-serif: "Merriweather", Georgia, serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--ink-900);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--red-primary);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
    color: var(--red-dark);
}

.ec-container,
.container-xxl {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.oa-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary) 0%, var(--red-primary) 35%, var(--gold-bright) 35%, var(--gold-bright) 65%, var(--red-primary) 65%, var(--red-primary) 100%);
}

.pub-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.pub-gov {
    background: #fffbeb;
    border-bottom: 1px solid var(--gold-border);
    font-size: 12.5px;
    color: var(--ink-800);
    padding: 5px 0;
}

.pub-gov .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 28px;
}

.pub-flag {
    display: inline-flex;
    width: 21px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}

.pub-flag i {
    flex: 1;
    background: #d91023;
}

.pub-flag i:nth-child(2) {
    background: #ffffff;
}

.pub-gov-t b {
    font-weight: 800;
    color: var(--red-dark);
}

.pub-gov-t .sep {
    color: var(--gold-primary);
    margin: 0 6px;
    font-weight: 900;
}

.pub-gov-r {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.pub-upd {
    color: var(--ink-700);
    font-weight: 600;
}

.pub-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--ink-900);
    background: var(--white);
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pub-quick {
    background: linear-gradient(90deg, #9c1b1b 0%, #9d1b1b 100%);
    color: var(--white);
    border: 0;
}

.pub-quick .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 10px;
}

.pub-quick-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}

.pub-quick-icons::-webkit-scrollbar {
    display: none;
}

.pub-quick-icons a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.15s ease;
}

.pub-quick-icons a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.pub-quick-icons a.active {
    background: var(--red-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(200, 30, 30, 0.4);
}

.pub-quick-r {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pub-account {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f172a !important;
    background: var(--gold-bright);
    border: 1px solid var(--gold-bright);
    border-radius: 999px;
    padding: 6px 15px;
    font-weight: 800;
    font-size: 12.5px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    transition: transform 0.15s ease, background 0.15s ease;
}

.pub-account:hover {
    background: #fde047;
    color: #000000 !important;
    transform: translateY(-1px);
}

.pub-main {
    background: var(--white);
    border-bottom: 3px solid var(--red-primary);
}

.pub-main .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.oa-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-900) !important;
    text-decoration: none;
    flex-shrink: 0;
}

.oa-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--red-soft);
    border: 1.5px solid var(--red-border);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.oa-brand-mark.has-logo {
    width: auto;
    min-width: 46px;
    max-width: 130px;
    padding: 3px 6px;
    background: var(--white);
}

.oa-brand-mark img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.oa-brand-name {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.08;
    color: var(--red-dark);
    letter-spacing: -0.3px;
}

.oa-brand-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-500);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.pub-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.pub-dh {
    display: none;
}

.pub-mi {
    position: relative;
}

.pub-ml {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-800) !important;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pub-ml > .bi:first-child {
    font-size: 14px;
    color: var(--red-primary);
}

.pub-ml .chev {
    font-size: 11px;
    color: var(--ink-500);
    transition: transform 0.2s ease;
}

.pub-ml:hover,
.pub-mi.open > .pub-ml {
    background: var(--red-soft);
    color: var(--red-primary) !important;
}

.pub-mi.open > .pub-ml .chev {
    transform: rotate(180deg);
}

.pub-ml.active {
    background: var(--red-primary);
    color: var(--white) !important;
    box-shadow: 0 3px 10px rgba(200, 30, 30, 0.25);
}

.pub-ml.active > .bi:first-child,
.pub-ml.active .chev {
    color: var(--white) !important;
}

.pub-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-200);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.18s ease;
    z-index: 1080;
}

.pub-sub.wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 600px;
}

.pub-mi.open > .pub-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pub-mi:last-child .pub-sub,
.pub-mi:nth-last-child(2) .pub-sub {
    left: auto;
    right: 0;
}

.pub-sub a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink-900);
    text-decoration: none;
    transition: background 0.15s ease;
}

.pub-sub a > i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    color: var(--red-primary);
    flex-shrink: 0;
    font-size: 17px;
}

.pub-sub a span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pub-sub a b {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-900);
}

.pub-sub a small {
    font-size: 11.5px;
    color: var(--ink-500);
    line-height: 1.3;
}

.pub-sub a:hover {
    background: var(--red-soft);
}

.pub-sub a:hover b {
    color: var(--red-primary);
}

.pub-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
    border: 1.5px solid var(--line-200);
    border-radius: 999px;
    background: var(--bg-body);
    padding: 9px 14px 9px 16px;
    color: var(--ink-500);
    font-size: 13.5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.pub-search span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-search kbd {
    font-size: 10.5px;
    background: var(--white);
    color: var(--ink-500);
    border: 1px solid var(--line-200);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 700;
}

.pub-search .bi {
    color: var(--red-primary);
    font-size: 15px;
}

.pub-search:hover {
    border-color: var(--red-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.1);
}

.pub-burger {
    display: none;
    margin-left: auto;
    background: var(--red-soft);
    border: 1px solid var(--red-border);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 20px;
    color: var(--red-primary);
    cursor: pointer;
}

.pub-backdrop {
    display: none;
}

.oa-cmd {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    padding: 8vh 16px 16px;
}

.oa-cmd.show {
    display: block;
}

.oa-cmd-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--gold-bright);
}

.oa-cmd-in {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-200);
}

.oa-cmd-in input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 16px;
    color: var(--ink-900);
}

.oa-cmd-res {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.oa-cmd-grp {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-500);
    font-weight: 800;
    padding: 8px 12px 6px;
}

.oa-cmd-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink-900);
    text-decoration: none;
}

.oa-cmd-item:hover {
    background: var(--red-soft);
    color: var(--red-primary);
}

.oa-cmd-item .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    flex-shrink: 0;
    font-size: 17px;
}

.ec-white-topics-bar {
    background: var(--white);
    border-bottom: 1px solid var(--line-200);
    padding: 8px 0;
}

.ec-white-topics-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.ec-live-red-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red-primary);
    font-weight: 800;
    font-size: 12px;
    background: var(--red-soft);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--red-border);
    white-space: nowrap;
    flex-shrink: 0;
}

.ec-live-red-tag i {
    font-size: 8px;
}

.ec-temas-label {
    font-weight: 800;
    font-size: 12.5px;
    color: var(--ink-700);
    white-space: nowrap;
    flex-shrink: 0;
}

.ec-topics-bar__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 8px;
    flex: 1;
    margin: 0;
    padding: 2px 0;
    list-style: none;
}

.ec-topics-bar__list::-webkit-scrollbar {
    display: none;
}

.ec-topics-bar__list li {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ec-topics-bar__list a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-700);
    background: var(--line-100);
    border: 1px solid var(--line-200);
    text-decoration: none;
}

.ec-topics-bar__list a:hover {
    background: var(--red-soft);
    color: var(--red-primary);
    border-color: var(--red-border);
}

.ec-temas-highlight {
    background: var(--gold-bright) !important;
    color: var(--ink-900) !important;
    border-color: var(--gold-primary) !important;
    font-weight: 800 !important;
}

.ec-topics-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-200);
    background: var(--white);
    color: var(--ink-700);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ec-topics-arrow:hover {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

.ec-breaking-banner {
    background: linear-gradient(90deg, #b91c1c 0%, #991b1b 100%) !important;
    color: var(--white) !important;
    padding: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.18);
}

.ec-breaking-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ec-breaking-title,
.ec-breaking-title a,
.ec-breaking-title a:link,
.ec-breaking-title a:visited {
    color: var(--white) !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0;
    text-decoration: none !important;
}

.ec-breaking-title a:hover {
    background: #ffffff !important;
    color: #991b1b !important;
    text-decoration: underline !important;
}

.ec-breaking-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.15);
    color: var(--white);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ec-main-content {
    padding-top: 24px;
    padding-bottom: 56px;
}

.ec-filter-banner {
    background: var(--white);
    border: 1px solid var(--red-border);
    border-left: 5px solid var(--red-primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}

.ec-tag-red {
    background: var(--red-soft);
    color: var(--red-primary);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12.5px;
}

.ec-btn-outline-sm {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--red-border);
    background: var(--red-soft);
    color: var(--red-primary);
    font-weight: 700;
    font-size: 13px;
}

.ec-formal-slider {
    position: relative;
    background: var(--ink-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-200);
}

.ec-formal-slide {
    display: none;
    grid-template-columns: 1.3fr 1fr;
    min-height: 380px;
}

.ec-formal-slide.active {
    display: grid;
}

.ec-formal-slide__media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #000;
}

.ec-formal-slide__media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 430px;
    object-fit: cover;
    display: block;
}

.ec-formal-slide__content {
    padding: 32px 36px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
}

.ec-formal-slide__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ec-formal-slide__pill {
    background: var(--gold-bright);
    color: var(--ink-900);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.ec-formal-slide__cat {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
}

.ec-formal-slide__title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
    margin: 0 0 14px;
}

.ec-formal-slide__title a {
    color: var(--white);
}

.ec-formal-slide__title a:hover {
    color: var(--gold-bright);
}

.ec-formal-slide__excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 22px;
}

.ec-formal-slide__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.ec-formal-slide__btn {
    background: var(--red-primary);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-formal-slide__btn:hover {
    background: var(--gold-bright);
    color: var(--ink-900) !important;
}

.ec-formal-slide__source {
    font-size: 12px;
    color: #94a3b8;
}

.ec-formal-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
}

.ec-formal-slider__nav:hover {
    background: var(--red-primary);
}

.ec-formal-slider__nav--prev { left: 14px; }
.ec-formal-slider__nav--next { right: 14px; }

.ec-formal-slider__dots {
    position: absolute;
    bottom: 14px;
    right: 28px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.ec-formal-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
}

.ec-formal-slider__dot.active {
    width: 24px;
    border-radius: 99px;
    background: var(--gold-bright);
}

.ec-hero-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 0.95fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 32px;
}

.ec-hero-lead {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ec-hero-lead__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--line-100);
}

.ec-hero-lead__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec-hero-lead__badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(153, 27, 27, 0.92);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-hero-lead__body {
    padding: 20px 22px;
}

.ec-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-500);
    margin-bottom: 8px;
}

.ec-cat-link {
    font-weight: 800;
    color: var(--red-primary);
    text-transform: uppercase;
}

.ec-hero-lead__title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.3;
    margin: 0 0 10px;
}

.ec-hero-lead__title a {
    color: var(--ink-900);
}

.ec-hero-lead__title a:hover {
    color: var(--red-primary);
}

.ec-hero-lead__summary {
    font-size: 14.5px;
    color: var(--ink-700);
    margin: 0 0 16px;
    line-height: 1.6;
}

.ec-hero-lead__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line-100);
}

.ec-read-more-btn {
    background: var(--red-soft);
    color: var(--red-primary);
    font-weight: 800;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-read-more-btn:hover {
    background: var(--red-primary);
    color: var(--white) !important;
}

.ec-reading-time {
    font-size: 12px;
    color: var(--ink-500);
}

.ec-sublead-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 22px 20px;
    background: var(--bg-body);
    border-top: 1px solid var(--line-200);
}

.ec-sublead-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--white);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-200);
}

.ec-sublead-item__cat {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--red-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ec-sublead-item__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.ec-sublead-item__title a {
    color: var(--ink-900);
}

.ec-sublead-item__thumb {
    width: 68px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ec-sublead-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-hero-middle {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ec-card-standard {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ec-card-standard__img-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ec-card-standard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-card-standard__dist {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.ec-card-standard__body {
    padding: 16px 18px;
}

.ec-card-standard__cat {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--red-primary);
    text-transform: uppercase;
    margin: 0 0 6px;
}

.ec-card-standard__title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ec-card-standard__title a {
    color: var(--ink-900);
}

.ec-card-standard__desc {
    font-size: 13.5px;
    color: var(--ink-500);
    margin: 0 0 12px;
}

.ec-card-standard__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-500);
}

.ec-link-red {
    font-weight: 800;
    color: var(--red-primary);
}

.ec-live-sidebar {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ec-live-sidebar__header {
    background: linear-gradient(90deg, var(--ink-900), var(--ink-800));
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ec-live-sidebar__title {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-live-sidebar__indicator {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ec-live-sidebar__list {
    max-height: 660px;
    overflow-y: auto;
    divide-y: 1px solid var(--line-100);
}

.ec-live-item {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-100);
    color: var(--ink-900);
    transition: background 0.15s ease;
}

.ec-live-item:hover {
    background: var(--red-soft);
}

.ec-live-item__time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--ink-500);
    margin-bottom: 4px;
}

.ec-live-item__tag {
    background: var(--line-100);
    color: var(--red-primary);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
}

.ec-live-item__headline {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0;
    color: var(--ink-900);
}

.ec-section-block {
    margin-bottom: 36px;
}

.ec-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--line-200);
}

.ec-section-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ec-section-pill {
    background: var(--red-primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ec-section-pill--dark {
    background: var(--ink-900);
}

.ec-section-title {
    font-family: var(--font-head);
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
}

.ec-section-sub {
    font-size: 12.5px;
    color: var(--ink-500);
    font-weight: 600;
}

.ec-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ec-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ec-news-card {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ec-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red-border);
}

.ec-news-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--line-100);
}

.ec-news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ec-news-card:hover .ec-news-card__img {
    transform: scale(1.03);
}

.ec-news-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(200, 30, 30, 0.92);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.ec-news-card__badge--dark {
    background: rgba(15, 23, 42, 0.88);
}

.ec-news-card__content {
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ec-news-card__kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 6px;
}

.ec-news-card__title {
    font-family: var(--font-head);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ec-news-card__title a {
    color: var(--ink-900);
}

.ec-news-card__title a:hover {
    color: var(--red-primary);
}

.ec-news-card__excerpt {
    font-size: 13.5px;
    color: var(--ink-500);
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-news-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-500);
}

.ec-news-card__btn {
    font-weight: 800;
    color: var(--red-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ec-photo-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.ec-photo-slide {
    position: relative;
    flex: 0 0 320px;
    height: 210px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

.ec-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-photo-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 65%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    color: var(--white);
}

.ec-photo-slide__badge {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--gold-bright);
    text-transform: uppercase;
}

.ec-photo-slide__title {
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--white);
}

.ec-gallery-controls {
    display: flex;
    gap: 8px;
}

.ec-gallery-btn {
    background: var(--white);
    border: 1px solid var(--line-200);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
}

.ec-gallery-btn:hover {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

.ec-district-search {
    border: 1.5px solid var(--line-200);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    min-width: 280px;
    outline: none;
}

.ec-district-search:focus {
    border-color: var(--red-primary);
}

.ec-districts-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ec-district-chip {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line-200);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-700);
}

.ec-district-chip:hover,
.ec-district-chip.active {
    background: var(--red-primary);
    color: var(--white) !important;
    border-color: var(--red-primary);
}

.ec-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(290px, 1fr);
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 44px;
    align-items: start;
}

.ec-article-main {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}

.ec-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 14px;
}

.ec-article-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ec-badge-priority {
    background: var(--red-primary);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.ec-badge-national {
    background: var(--ink-900);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.ec-badge-cat {
    background: var(--gold-soft);
    color: #92400e;
    border: 1px solid var(--gold-border);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.ec-badge-meta {
    font-size: 12px;
    color: var(--ink-500);
    font-weight: 600;
}

.ec-article-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink-900);
    margin: 0 0 14px;
}

.ec-article-Summary {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0 0 20px;
}

.ec-article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--line-200);
    border-bottom: 1px solid var(--line-200);
    margin-bottom: 22px;
}

.ec-article-byline__info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--ink-500);
}

.ec-article-byline__info strong {
    color: var(--ink-900);
    font-size: 14px;
}

.ec-article-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ec-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line-200);
    background: var(--white);
    color: var(--ink-800);
    cursor: pointer;
    text-decoration: none;
}

.ec-share-btn--fb { background: #1877f2; color: #fff !important; border-color: #1877f2; }
.ec-share-btn--wa { background: #25d366; color: #fff !important; border-color: #25d366; }
.ec-share-btn--tw { background: #0f1419; color: #fff !important; border-color: #0f1419; }
.ec-share-btn--tg { background: #0088cc; color: #fff !important; border-color: #0088cc; }
.ec-share-btn--in { background: #0a66c2; color: #fff !important; border-color: #0a66c2; }
.ec-share-btn--print { background: var(--red-primary); color: #fff !important; border-color: var(--red-primary); }

.ec-article-figure {
    margin: 0 0 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--line-100);
    border: 1px solid var(--line-200);
}

.ec-article-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.ec-article-caption {
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--ink-500);
    background: var(--bg-body);
}

.ec-article-keybox {
    background: var(--gold-soft);
    border-left: 4px solid var(--gold-primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 24px;
}

.ec-article-keybox ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--ink-800);
}

.ec-article-body p {
    font-family: var(--font-serif);
    font-size: 17.5px;
    line-height: 1.85;
    color: var(--ink-800);
    margin: 0 0 20px;
    text-align: justify;
}

.ec-article-source-box {
    margin-top: 28px;
    padding: 18px 22px;
    background: var(--bg-body);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-btn-source-ext,
.ec-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--ink-900);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 13px;
}

.ec-sidebar-box {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.ec-sidebar-box__title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--red-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red-primary);
}

.ec-most-read-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ec-most-read-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-100);
}

.ec-most-read-num {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 900;
    color: var(--red-primary);
    line-height: 1;
}

.ec-most-read-dist {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-500);
}

.ec-most-read-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.35;
}

.ec-sidebar-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ec-footer {
    background: var(--ink-900);
    color: #cbd5e1;
    padding-top: 44px;
    margin-top: 48px;
    border-top: 4px solid var(--red-primary);
}

.ec-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
}

.ec-footer__brand {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--white);
    margin: 0 0 10px;
}

.ec-footer__heading {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-bright);
    margin: 0 0 10px;
}

.ec-footer__desc,
.ec-footer__meta,
.ec-footer__districts {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 8px;
}

.ec-footer__bottom {
    background: #020617;
    padding: 16px 0;
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
}

.admin-body,
.adm-body {
    background: var(--bg-admin);
    color: var(--ink-900);
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 268px;
    background: var(--white);
    border-right: 1px solid var(--line-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
    transition: width 0.22s ease, transform 0.22s ease;
}

.admin-sidebar__top {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line-200);
    background: var(--white);
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-900);
    min-width: 0;
}

.admin-sidebar__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--red-soft);
    padding: 3px;
    border: 1px solid var(--red-border);
    flex-shrink: 0;
}

.admin-sidebar__title {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    color: var(--red-dark);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar__subtitle {
    display: block;
    font-size: 11px;
    color: var(--ink-500);
    font-weight: 600;
}

.admin-sidebar__toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line-200);
    background: var(--bg-body);
    color: var(--ink-700);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar__toggle:hover {
    background: var(--red-soft);
    color: var(--red-primary);
    border-color: var(--red-border);
}

.admin-sidebar__nav {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.admin-nav-group__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-800);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.admin-nav-group__btn:hover {
    background: var(--bg-body);
    color: var(--red-primary);
}

.admin-nav-group__btn.active {
    background: var(--red-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(200, 30, 30, 0.22);
}

.admin-nav-group__btn.active .bi-nav-icon,
.admin-nav-group__btn.active .submenu-arrow-img {
    filter: brightness(0) invert(1);
}

.bi-nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.admin-nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submenu-arrow-img {
    width: 12px;
    height: 12px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.admin-nav-group.open .submenu-arrow-img {
    transform: rotate(180deg);
}

.admin-submenu {
    display: none;
    margin: 4px 8px 6px 16px;
    padding: 8px;
    background: var(--bg-body);
    border: 1px solid var(--line-200);
    border-radius: 10px;
    flex-direction: column;
    gap: 3px;
}

.admin-nav-group.open .admin-submenu {
    display: flex;
}

.admin-submenu__item {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-submenu__item:hover,
.admin-submenu__item.active {
    background: var(--white);
    color: var(--red-primary);
    border-left-color: var(--red-primary);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

.admin-sidebar__bottom {
    padding: 12px 10px;
    border-top: 1px solid var(--line-200);
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-800);
    background: var(--white);
    border: 1px solid var(--line-200);
}

.admin-sidebar__link:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.admin-sidebar__link--exit {
    background: var(--red-soft);
    color: var(--red-primary);
    border-color: var(--red-border);
}

.admin-sidebar__link--exit:hover {
    background: var(--red-primary);
    color: var(--white) !important;
}

.admin-main {
    flex: 1;
    margin-left: 268px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.22s ease;
}

.admin-layout.sidebar-collapsed .admin-sidebar {
    width: 74px;
}

.admin-layout.sidebar-collapsed .admin-main {
    margin-left: 74px;
}

.admin-layout.sidebar-collapsed .admin-sidebar__brand,
.admin-layout.sidebar-collapsed .admin-nav-text,
.admin-layout.sidebar-collapsed .submenu-arrow-img,
.admin-layout.sidebar-collapsed .admin-submenu {
    display: none !important;
}

.admin-layout.sidebar-collapsed .admin-sidebar__top,
.admin-layout.sidebar-collapsed .admin-nav-group__btn,
.admin-layout.sidebar-collapsed .admin-sidebar__link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-flyout-modal {
    position: fixed;
    left: 78px;
    top: 80px;
    width: 250px;
    background: var(--white);
    border: 1px solid var(--line-200);
    border-top: 3px solid var(--red-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2200;
    display: none;
    overflow: hidden;
}

.sidebar-flyout-modal.open {
    display: block;
}

.sidebar-flyout-modal__header {
    background: var(--bg-body);
    color: var(--red-dark);
    font-size: 12.5px;
    font-weight: 800;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-200);
}

.sidebar-flyout-modal__body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-flyout-modal__body a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-800);
}

.sidebar-flyout-modal__body a:hover {
    background: var(--red-soft);
    color: var(--red-primary);
}

.adm-gov {
    background: var(--white);
    border-bottom: 1px solid var(--line-200);
    font-size: 12.5px;
    color: var(--ink-700);
}

.adm-flag {
    display: inline-flex;
    width: 20px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}

.adm-flag i { flex: 1; background: #d91023; }
.adm-flag i:nth-child(2) { background: #fff; }

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line-200);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-topbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-topbar__heading {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
}

.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--line-200);
    background: var(--white);
    color: var(--red-primary);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-live-clock {
    background: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-content {
    padding: 24px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.oa-card,
.panel-card,
.kpi-card {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.panel-card {
    padding: 22px;
    margin-bottom: 22px;
}

.panel-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line-200);
}

.panel-card__header h2 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
}

.oa-kpi,
.kpi-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.oa-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.oa-kpi .ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--white);
    flex-shrink: 0;
}

.oa-kpi .v,
.kpi-value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--ink-900);
    line-height: 1.1;
    display: block;
}

.oa-kpi .l,
.kpi-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-500);
}

.bg-g-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-g-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-g-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-g-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }

.harvest-schedule-card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-left: 5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.harvest-schedule-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.harvest-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--red-primary);
    letter-spacing: 0.5px;
}

.harvest-schedule-card h3 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink-900);
    margin: 3px 0 0;
}

.harvest-next-pill {
    background: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.harvest-slots-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}

.harvest-slot-item {
    background: var(--bg-body);
    border: 1px solid var(--line-200);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.harvest-slot-item.done {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.harvest-slot-item.next {
    background: var(--gold-soft);
    border-color: var(--gold-primary);
    color: #92400e;
}

.slot-time {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.slot-status {
    display: block;
    font-size: 10.5px;
    margin-top: 2px;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

.rooms-admin-grid,
.rentals-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

.room-admin-card,
.rental-live-card {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.room-admin-card__header,
.rental-live-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hab-badge {
    display: inline-block;
    background: var(--red-soft);
    color: var(--red-primary);
    border: 1px solid var(--red-border);
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.room-admin-card h3,
.rental-live-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--ink-900);
}

.room-admin-card__desc {
    font-size: 13px;
    color: var(--ink-500);
    margin: 0;
}

.room-admin-card__prices,
.rental-live-card__meta,
.rental-live-card__Access {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bg-body);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    border: 1px solid var(--line-200);
}

.room-photos-strip,
.hab-photos-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.room-photo-thumb {
    position: relative;
    width: 84px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line-200);
    flex-shrink: 0;
}

.room-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.del-photo-form {
    position: absolute;
    top: 3px;
    right: 3px;
}

.del-photo-form button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0;
    background: rgba(200, 30, 30, 0.9);
    color: #fff;
    font-size: 11px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.rental-progress-box {
    background: var(--bg-body);
    border: 1px solid var(--line-200);
    border-radius: 10px;
    padding: 12px;
}

.rental-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.progress-track,
.live-progress-track {
    height: 10px;
    background: var(--line-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill,
.live-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-ok), #22c55e);
    border-radius: 999px;
}

.countdown-live-box,
.live-countdown-banner {
    background: var(--white);
    border: 1px solid var(--line-200);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    color: var(--ink-800);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    background: var(--bg-body);
    color: var(--ink-500);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line-200);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-100);
    vertical-align: middle;
    color: var(--ink-800);
}

.admin-table tr:hover td {
    background: #fcfcfd;
}

.status-pill,
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--line-100);
    color: var(--ink-700);
}

.status-aprobado,
.status-disponible,
.status-activo {
    background: var(--green-soft);
    color: #166534;
}

.status-pendiente,
.status-alerta,
.status-ocupada {
    background: var(--gold-soft);
    color: #92400e;
}

.status-rechazado,
.status-cancelado {
    background: var(--red-soft);
    color: var(--red-dark);
}

.btn-primary-red {
    background: var(--red-primary);
    color: var(--white) !important;
    border: 1px solid var(--red-primary);
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline-red {
    background: var(--white);
    color: var(--red-primary) !important;
    border: 1px solid var(--red-border);
    padding: 8px 15px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-red:hover {
    background: var(--red-soft);
    border-color: var(--red-primary);
}

.btn-outline-xs {
    background: var(--white);
    color: var(--ink-800);
    border: 1px solid var(--line-200);
    padding: 5px 11px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-xs:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-soft);
}

.btn-danger-xs {
    background: var(--red-soft);
    color: var(--red-primary);
    border: 1px solid var(--red-border);
    padding: 5px 11px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.btn-danger-xs:hover {
    background: var(--red-primary);
    color: var(--white);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-800);
}

.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--line-200);
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink-900);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.1);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 2400;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    width: 100%;
    max-width: 560px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-200);
    margin: auto;
}

.modal-box.modal-lg {
    max-width: 820px;
}

.modal-header {
    background: var(--white);
    color: var(--ink-900);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-200);
    border-top: 4px solid var(--red-primary);
}

.modal-header h3 {
    font-family: var(--font-head);
    font-size: 16.5px;
    font-weight: 800;
    margin: 0;
    color: var(--ink-900);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--red-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line-200);
    background: var(--bg-body);
    color: var(--ink-700);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
}

.modal-close:hover {
    background: var(--red-soft);
    color: var(--red-primary);
}

.modal-body,
.modal-box > form {
    padding: 22px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 68px);
}

.modal-body > form {
    padding: 0;
    max-height: none;
    overflow: visible;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(900px 450px at 15% 0%, rgba(200, 30, 30, 0.12), transparent 60%), var(--bg-admin);
}

.auth-container {
    width: 100%;
    max-width: 430px;
}

.auth-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--line-200);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card__top-bar {
    height: 5px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold-bright));
}

.auth-card__header {
    padding: 28px 28px 16px;
    text-align: center;
}

.auth-logo-circle {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--red-soft);
    border: 1.5px solid var(--red-border);
    display: inline-grid;
    place-items: center;
    margin-bottom: 12px;
    padding: 8px;
}

.auth-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-badge-red {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red-soft);
    color: var(--red-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.auth-title {
    font-family: var(--font-head);
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink-900);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--ink-500);
    margin: 0;
}

.auth-form {
    padding: 16px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line-200);
    border-radius: 10px;
    font-size: 14px;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    background: var(--red-primary);
    color: var(--white);
    font-weight: 800;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    background: var(--red-dark);
}

.auth-quick-box {
    margin: 0 28px 20px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 10px;
    border: 1px solid var(--line-200);
    text-align: center;
}

.auth-quick-label {
    display: block;
    font-size: 11.5px;
    color: var(--ink-500);
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-quick-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-quick-btn {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-card__footer {
    padding: 14px 28px;
    background: var(--bg-body);
    border-top: 1px solid var(--line-200);
    text-align: center;
}

.auth-back-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-700);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tenant-header {
    background: linear-gradient(90deg, var(--red-dark), var(--red-primary));
    color: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.tenant-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tenant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 2px;
}

.bi-png-xs { width: 14px; height: 14px; object-fit: contain; vertical-align: middle; }
.bi-png-sm { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }

.crud-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3500;
    background: var(--ink-900);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gold-bright);
}

.btn-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    background: var(--red-primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-back-to-top.visible {
    display: inline-flex;
}

.ec-print-only-header {
    display: none;
}

@media (max-width: 1199.98px) {
    .pub-burger {
        display: inline-grid;
        place-items: center;
    }
    .pub-search {
        order: 3;
        width: 100%;
    }
    .pub-main .container-xxl {
        flex-wrap: wrap;
    }
    .pub-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(350px, 88vw);
        height: 100dvh;
        z-index: 2100;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 0 20px;
        overflow-y: auto;
        box-shadow: -16px 0 40px rgba(15, 23, 42, 0.25);
        transform: translateX(105%);
        transition: transform 0.25s ease;
    }
    .pub-menu.show {
        transform: translateX(0);
    }
    .pub-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 2090;
        opacity: 0;
        visibility: hidden;
        transition: 0.2s ease;
    }
    .pub-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
    .pub-dh {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid var(--line-200);
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 2;
    }
    .pub-dh button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid var(--line-200);
        background: var(--bg-body);
    }
    .pub-mi {
        border-bottom: 1px solid var(--line-100);
    }
    .pub-ml {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0;
        padding: 13px 18px;
    }
    .pub-ml .chev {
        margin-left: auto;
    }
    .pub-sub,
    .pub-sub.wide {
        position: static;
        display: none;
        width: auto;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: var(--bg-body);
        border-radius: 0;
        padding: 6px 12px 10px 24px;
    }
    .pub-mi.open > .pub-sub,
    .pub-mi.open > .pub-sub.wide {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ec-hero-grid {
        grid-template-columns: 1fr;
    }
    .ec-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ec-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ec-article-layout {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .harvest-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .admin-sidebar {
        transform: translateX(-105%);
        width: 268px !important;
    }
    .admin-layout.mobile-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-layout.mobile-sidebar-open .admin-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 990;
    }
    .admin-main,
    .admin-layout.sidebar-collapsed .admin-main {
        margin-left: 0 !important;
    }
    .admin-mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .pub-upd {
        display: none;
    }
    .ec-formal-slide {
        grid-template-columns: 1fr;
    }
    .ec-formal-slide__media img {
        min-height: 220px;
        max-height: 260px;
    }
    .ec-formal-slide__content {
        padding: 20px 18px 40px;
    }
    .ec-sublead-duo,
    .ec-grid-4,
    .ec-grid-3,
    .ec-footer__grid,
    .form-grid-2,
    .kpi-grid,
    .rooms-admin-grid,
    .rentals-live-grid {
        grid-template-columns: 1fr;
    }
    .ec-article-main {
        padding: 20px 18px;
    }
    .admin-content {
        padding: 16px;
    }
}

@media print {
    @page { margin: 14mm 16mm; }
    body { background: #fff !important; color: #000 !important; }
    .oa-stripe, .pub-header, .ec-white-topics-bar, .ec-article-sidebar, .ec-article-share, .ec-footer, .btn-back-to-top, .no-print {
        display: none !important;
    }
    .ec-print-only-header {
        display: block !important;
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 18px;
    }
    .ec-container, .ec-article-layout, .ec-article-main {
        display: block !important;
        width: 100% !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}


.ec-top-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: #0f172a !important;
    padding: 6px 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #d97706 !important;
}

.ec-top-bar a,
.ec-top-bar span,
.ec-top-bar strong,
.ec-top-bar__edition {
    color: #0f172a !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.ec-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ec-top-bar__left,
.ec-top-bar__right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ec-live-pill {
    background: #c81e1e;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ec-live-dot,
.ec-live-dot-red {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
}

.ec-header {
    background: #ffffff !important;
    color: var(--ink-900) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    position: sticky !important;
    top: 0;
    z-index: 1020 !important;
    border-bottom: 3px solid var(--red-primary);
}

.ec-header__main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 14px 20px !important;
    flex-wrap: wrap;
}

.ec-header__brand {
    display: flex;
    align-items: center;
}

.ec-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    color: var(--ink-900) !important;
}

.ec-logo-img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: var(--white) !important;
    padding: 3px !important;
    border: 1.5px solid var(--red-border);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.ec-logo-text {
    display: flex;
    flex-direction: column;
}

.ec-logo-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--red-primary);
    text-transform: uppercase;
}

.ec-logo-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 900;
    color: var(--ink-900) !important;
    line-height: 1.08;
}

.ec-logo-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-500);
    margin-top: 2px;
}

.ec-search-form {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 380px !important;
    max-width: 520px !important;
    background: var(--bg-body) !important;
    border: 1.5px solid var(--line-200) !important;
    border-radius: 999px !important;
    padding: 4px 6px 4px 16px !important;
    box-shadow: var(--shadow-xs) !important;
}

.ec-search-input {
    flex: 1;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    color: var(--ink-900) !important;
    padding: 6px 8px !important;
    min-width: 0;
}

.ec-search-btn {
    background: var(--red-primary) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-search-btn:hover {
    background: var(--red-dark) !important;
}

.ec-nav {
    background: var(--red-primary) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid var(--gold-bright) !important;
}

.ec-nav__inner {
    display: flex;
    align-items: center;
}

.ec-nav__list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    width: 100%;
}

.ec-nav__list::-webkit-scrollbar {
    display: none;
}

.ec-nav__list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.ec-nav__link,
.ec-nav__link:link,
.ec-nav__link:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 11px 14px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.ec-nav__link:hover,
.ec-nav__link:focus,
.ec-nav__link.active {
    background: var(--gold-bright) !important;
    color: #7f1d1d !important;
    font-weight: 800 !important;
}

.ec-topics-bar {
    background: var(--white);
    border-bottom: 1px solid var(--line-200);
    padding: 8px 0;
}

.ec-topics-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.ec-topics-bar__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--red-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.ec-topics-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-primary);
    display: inline-block;
}

.ec-mostread-strip {
    background: var(--white);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xs);
}

.ec-mostread-strip__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ec-mostread-strip__head h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.ec-mostread-strip__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ec-mostread-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--line-200);
    color: var(--ink-900);
}

.ec-mostread-card__num {
    font-size: 20px;
    font-weight: 900;
    color: var(--red-primary);
    line-height: 1;
}

.ec-mostread-card__kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-500);
}

.ec-mostread-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 3px 0 0;
    color: var(--ink-900);
}

.ec-special-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--ink-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}

.ec-special-feature__media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.ec-special-feature__content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ec-special-feature__tag {
    color: var(--gold-bright);
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ec-special-feature__title {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 12px;
}

.ec-special-feature__title a {
    color: var(--white);
}

.ec-special-feature__summary {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0 0 18px;
}

.ec-special-feature__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #94a3b8;
}

.ec-special-feature__btn {
    background: var(--red-primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .ec-mostread-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ec-special-feature {
        grid-template-columns: 1fr;
    }
}

.bi-pelota-futbol {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.14em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 3.3l2.8 1.95-.9 3.15h-3.8l-.9-3.15L11 5.3h2zM7.1 7.4L9.4 5.8l.85 3L8.4 11.4l-2.95-.55A7.94 7.94 0 0 1 7.1 7.4zm-2.85 6.85l2.75.5 1.65 2.75-1.4 2.45a8.03 8.03 0 0 1-3-5.7zm6.05 5.6l1.35-2.35h2.7l1.35 2.35a7.94 7.94 0 0 1-5.4 0zm6.9-.15l-1.4-2.45 1.65-2.75 2.75-.5a8.03 8.03 0 0 1-3 5.7zm1.35-7.4l-2.95.55-1.85-2.6.85-3 2.3 1.6c.8.95 1.38 2.13 1.65 3.45z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 3.3l2.8 1.95-.9 3.15h-3.8l-.9-3.15L11 5.3h2zM7.1 7.4L9.4 5.8l.85 3L8.4 11.4l-2.95-.55A7.94 7.94 0 0 1 7.1 7.4zm-2.85 6.85l2.75.5 1.65 2.75-1.4 2.45a8.03 8.03 0 0 1-3-5.7zm6.05 5.6l1.35-2.35h2.7l1.35 2.35a7.94 7.94 0 0 1-5.4 0zm6.9-.15l-1.4-2.45 1.65-2.75 2.75-.5a8.03 8.03 0 0 1-3 5.7zm1.35-7.4l-2.95.55-1.85-2.6.85-3 2.3 1.6c.8.95 1.38 2.13 1.65 3.45z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.pub-header {
    z-index: 2100 !important;
}

.pub-search {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1.5px solid var(--line-200) !important;
    background: var(--bg-body) !important;
    color: var(--red-primary) !important;
    flex-shrink: 0 !important;
    margin-left: 6px;
}

.pub-search .bi {
    font-size: 17px !important;
    color: var(--red-primary) !important;
    margin: 0 !important;
}

.pub-search:hover {
    background: var(--red-primary) !important;
    border-color: var(--red-primary) !important;
    color: #ffffff !important;
}

.pub-search:hover .bi {
    color: #ffffff !important;
}

.pub-ml--deporte > .bi-pelota-futbol {
    color: #15803d !important;
}





.ec-topic-deporte-green {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
    font-weight: 800 !important;
}

.ec-topic-deporte-green:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.pub-sub {
    top: calc(100% + 6px) !important;
    pointer-events: none;
    z-index: 2250 !important;
}

.pub-sub::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.pub-sub.wide {
    width: min(580px, 90vw) !important;
}

@media (min-width: 992px) {
    .pub-burger,
    .pub-backdrop,
    .pub-dh {
        display: none !important;
    }
    .pub-menu {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        flex-direction: row !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .pub-mi:hover > .pub-sub,
    .pub-mi:focus-within > .pub-sub,
    .pub-mi.open > .pub-sub {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .pub-mi:hover > .pub-ml,
    .pub-mi.open > .pub-ml {
        background: var(--red-soft);
        color: var(--red-primary) !important;
    }
    .pub-mi:hover > .pub-ml .chev,
    .pub-mi.open > .pub-ml .chev {
        transform: rotate(180deg);
    }
}

@media (max-width: 991.98px) {
    .pub-main .container-xxl {
        flex-wrap: nowrap !important;
        min-height: 60px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        gap: 8px !important;
    }
    .oa-brand {
        min-width: 0;
        flex: 1;
        gap: 9px !important;
    }
    .oa-brand-mark,
    .oa-brand-mark.has-logo {
        height: 38px !important;
        min-width: 38px !important;
    }
    .oa-brand-mark img {
        height: 32px !important;
    }
    .oa-brand-name {
        font-size: clamp(17px, 4.4vw, 22px) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .oa-brand-tag {
        display: none !important;
    }
    .pub-search {
        order: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        margin-left: auto !important;
    }
    .pub-burger {
        display: inline-grid !important;
        place-items: center !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: 0 !important;
        flex-shrink: 0;
    }
    .pub-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.55) !important;
        z-index: 2110 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .pub-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .pub-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(340px, 88vw) !important;
        height: 100dvh !important;
        z-index: 2120 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 0 28px !important;
        overflow-y: auto !important;
        box-shadow: -14px 0 38px rgba(15, 23, 42, 0.28) !important;
        transform: translateX(105%) !important;
        transition: transform 0.25s ease !important;
    }
    .pub-menu.show {
        transform: translateX(0) !important;
    }
    .pub-dh {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--line-200) !important;
        position: sticky !important;
        top: 0 !important;
        background: #ffffff !important;
        z-index: 5 !important;
    }
    .pub-mi {
        border-bottom: 1px solid var(--line-100) !important;
        width: 100% !important;
    }
    .pub-ml {
        width: 100% !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
        padding: 13px 16px !important;
        font-size: 14.5px !important;
    }
    .pub-ml .chev {
        margin-left: auto !important;
    }
    .pub-sub,
    .pub-sub.wide {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        border-radius: 0 !important;
        padding: 8px 12px 12px 20px !important;
    }
    .pub-sub::before {
        display: none !important;
    }
    .pub-mi.open > .pub-sub,
    .pub-mi.open > .pub-sub.wide {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .pub-gov .container-xxl {
        font-size: 11px !important;
        gap: 6px !important;
    }
    .pub-gov-t .sep {
        display: none !important;
    }
    .pub-quick .container-xxl {
        min-height: 38px !important;
        gap: 6px !important;
    }
    .pub-account {
        padding: 4px 10px !important;
        font-size: 11.5px !important;
    }
}

.ec-deporte-green-zone {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 2px solid #16a34a !important;
    border-radius: 18px !important;
    padding: 24px !important;
    margin-bottom: 36px !important;
    box-shadow: 0 12px 32px rgba(21, 128, 61, 0.1) !important;
}

.ec-deporte-header {
    border-bottom: 3px solid #15803d !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
}

.ec-deporte-pill {
    background: #15803d !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 5px 14px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3) !important;
}

.ec-deporte-title {
    color: #064e3b !important;
}

.ec-deporte-sub {
    color: #166534 !important;
    font-weight: 700 !important;
}

.ec-deporte-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b 0%, #14532d 55%, #166534 100%);
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.25);
    margin-bottom: 24px;
    border: 2px solid #22c55e;
}

.ec-deporte-slide {
    display: none;
    grid-template-columns: 1.25fr 1fr;
    min-height: 360px;
}

.ec-deporte-slide.active {
    display: grid;
}

.ec-deporte-slide__media {
    display: block;
    overflow: hidden;
    position: relative;
}

.ec-deporte-slide__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 430px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ec-deporte-slide__media:hover img {
    transform: scale(1.03);
}

.ec-deporte-slide__content {
    padding: 28px 34px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.ec-deporte-slide__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ec-deporte-slide__tag {
    background: #22c55e;
    color: #052e16;
    font-size: 11.5px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ec-deporte-slide__meta {
    font-size: 12px;
    font-weight: 700;
    color: #bbf7d0;
}

.ec-deporte-slide__title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 12px;
}

.ec-deporte-slide__title a {
    color: #ffffff !important;
    text-decoration: none;
}

.ec-deporte-slide__title a:hover {
    color: #86efac !important;
}

.ec-deporte-slide__excerpt {
    font-size: 14px;
    color: #dcfce7;
    line-height: 1.55;
    margin: 0 0 18px;
}

.ec-deporte-slide__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ec-deporte-slide__btn {
    background: #22c55e;
    color: #052e16 !important;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.ec-deporte-slide__btn:hover {
    background: #4ade80;
    transform: translateY(-1px);
}

.ec-deporte-slide__date {
    font-size: 12px;
    color: #86efac;
}

.ec-deporte-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #4ade80;
    background: rgba(6, 78, 59, 0.85);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
}

.ec-deporte-slider__nav--prev { left: 12px; }
.ec-deporte-slider__nav--next { right: 12px; }

.ec-deporte-slider__nav:hover {
    background: #22c55e;
    color: #052e16;
}

.ec-deporte-slider__dots {
    position: absolute;
    bottom: 12px;
    right: 24px;
    display: flex;
    gap: 7px;
    z-index: 5;
}

.ec-deporte-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ec-deporte-slider__dot.active {
    width: 26px;
    background: #22c55e;
}

.ec-news-card--deporte {
    border: 1.5px solid #86efac !important;
    background: #ffffff !important;
}

.ec-news-card--deporte:hover {
    border-color: #15803d !important;
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.16) !important;
}

.ec-news-card__badge--deporte {
    background: #15803d !important;
    color: #ffffff !important;
}

.ec-news-card__kicker--deporte {
    color: #15803d !important;
}

.ec-news-card__btn--deporte {
    color: #15803d !important;
    font-weight: 800 !important;
}

.ec-news-card__btn--deporte:hover {
    color: #064e3b !important;
}

.ec-filter-banner--green {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #064e3b !important;
}

.active-filter-pill {
    background: var(--red-primary) !important;
    color: #ffffff !important;
    border-color: var(--red-primary) !important;
}

.room-cover-preview {
    position: relative;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #0f172a;
}

.room-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.room-cover-preview:hover img {
    transform: scale(1.04);
}

.room-cover-preview__count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.room-cover-preview__status {
    position: absolute;
    top: 8px;
    right: 8px;
}

.room-photo-thumb {
    position: relative;
    width: 92px !important;
    height: 68px !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
}

.room-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.room-photo-thumb__actions {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2px;
}

.rp-btn {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.rp-btn--view:hover { background: #2563eb; }
.rp-btn--edit:hover { background: #d97706; }
.rp-btn--del:hover { background: #dc2626; }

.room-photo-add-tile {
    width: 74px;
    height: 68px;
    border-radius: 8px;
    border: 1.5px dashed #94a3b8;
    background: #f8fafc;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.room-photo-add-tile:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-soft);
}

@media (max-width: 767.98px) {
    .ec-deporte-green-zone {
        padding: 14px !important;
    }
    .ec-deporte-slide {
        grid-template-columns: 1fr;
    }
    .ec-deporte-slide__media img {
        min-height: 210px;
        max-height: 250px;
    }
    .ec-deporte-slide__content {
        padding: 18px 16px 40px;
    }
}

.adm-mi:last-child .adm-sub, .adm-mi:nth-last-child(2) .adm-sub { left: auto; right: 0; }


/* =========================================================================
   v13 · Panel Administrativo OApol (.adm-top-layout, .adm-header, .adm-mainnav, .adm-sub)
   ========================================================================= */
:root {
    --oa-red: #BF0909;
    --oa-red-700: #8F0707;
    --oa-red-50: #FDEDED;
    --oa-ink: #0F172A;
    --oa-ink-2: #334155;
    --oa-muted: #64748B;
    --oa-line: #E2E8F0;
    --oa-bg: #F6F7FB;
    --oa-card: #FFFFFF;
    --oa-radius: 14px;
    --oa-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --oa-shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
    --oa-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --oa-font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.pub-ml.active {
    background: var(--red-soft, #FDEDED) !important;
    color: var(--oa-red, #BF0909) !important;
    box-shadow: inset 0 -3px 0 var(--oa-red, #BF0909) !important;
    border-radius: 10px 10px 0 0 !important;
}
.pub-ml.active > .bi:first-child,
.pub-ml.active .chev {
    color: var(--oa-red, #BF0909) !important;
}

.adm-top-layout { background: #F3F4F6; min-height: 100vh; display: flex; flex-direction: column; }
.adm-wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.adm-header { position: sticky; top: 0; z-index: 1040; box-shadow: 0 2px 10px rgba(15, 23, 42, .08); background: #fff; }
.adm-gov { background: #fff; border-bottom: 1px solid #E5E7EB; font-size: .78rem; color: #374151; }
.adm-gov .adm-wrap { display: flex; align-items: center; gap: .6rem; min-height: 32px; flex-wrap: wrap; }
.adm-flag { display: inline-flex; width: 22px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }
.adm-flag i { flex: 1; background: #D91023; }
.adm-flag i:nth-child(2) { background: #fff; }
.adm-gov-t { font-weight: 600; }
.adm-gov-t .sep { color: #BF0909; margin: 0 .25rem; }
.adm-gov-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: #111827; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.adm-gov-clock b { font-weight: 700; color: #BF0909; }

.adm-quick { background: #0B0B0F; color: #fff; }
.adm-quick .adm-wrap { display: flex; align-items: stretch; justify-content: space-between; min-height: 46px; gap: .5rem; }
.adm-quick-icons { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.adm-quick-icons::-webkit-scrollbar { display: none; }
.adm-quick-icons a { display: grid; place-items: center; width: 50px; flex-shrink: 0; color: #9CA3AF; font-size: 1.22rem; transition: background .15s, color .15s; text-decoration: none; }
.adm-quick-icons a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.adm-quick-icons a.active { background: #BF0909; color: #fff; }
.adm-quick-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; padding: 4px 0; }
.adm-portal-link { display: inline-flex; align-items: center; gap: .4rem; color: #E5E7EB; font-size: .84rem; font-weight: 600; text-decoration: none; padding: .3rem .65rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); }
.adm-portal-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.adm-user { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 10px; padding: .32rem .75rem; font-weight: 600; font-size: .84rem; }
.adm-user .bi { font-size: 1.05rem; color: #FBBF24; }

.adm-mainnav { background: #EBEBEB; border-bottom: 1px solid #D1D5DB; }
.adm-mainnav .adm-wrap { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.adm-logo { display: flex; align-items: center; gap: .65rem; color: #111827; flex-shrink: 0; text-decoration: none; }
.adm-logo:hover { color: #111827; }
.adm-logo-mark { width: 42px; height: 42px; border-radius: 10px; background: #BF0909; color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 6px 14px rgba(191, 9, 9, .3); overflow: hidden; flex-shrink: 0; }
.adm-logo-mark.has-logo { background: transparent; box-shadow: none; width: 44px; min-width: 44px; max-width: 44px; height: 44px; border-radius: 10px; }
.adm-logo-mark.has-logo img { width: 44px !important; height: 44px !important; max-width: 44px !important; object-fit: contain; display: block; border-radius: 8px; }
.adm-logo-t { display: flex; flex-direction: column; line-height: 1.15; }
.adm-logo-t b { font-size: 1.08rem; font-family: var(--oa-font-head); font-weight: 800; color: #0F172A; }
.adm-logo-t small { font-size: .78rem; color: #4B5563; font-weight: 600; }

.adm-menu { display: flex; align-items: center; gap: .25rem; flex: 1; min-width: 0; justify-content: center; }
.adm-mi { position: relative; }
.adm-ml { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 0; padding: .55rem .8rem; border-radius: 10px; font-weight: 700; font-size: .92rem; color: #111827; white-space: nowrap; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.adm-ml > .bi:first-child { color: #BF0909; font-size: .98rem; }
.adm-ml .chev { font-size: .68rem; transition: transform .2s; color: #6B7280; }
.adm-ml:hover, .adm-mi.open > .adm-ml { background: #fff; color: #BF0909; box-shadow: 0 2px 6px rgba(15,23,42,.06); }
.adm-mi.open > .adm-ml .chev { transform: rotate(180deg); }
.adm-ml.active { background: #fff; color: #BF0909; box-shadow: inset 0 -3px 0 #BF0909; border-radius: 10px 10px 0 0; }
.adm-mbadge { background: #BF0909; color: #fff; border-radius: 99px; font-size: .66rem; font-weight: 800; padding: .08rem .42rem; line-height: 1.2; }

.adm-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); padding: .5rem; border: 1px solid #E5E7EB; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: .16s ease; z-index: 1080; }
.adm-mi.open > .adm-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
@media (min-width: 1100px) {
    .adm-mi:hover > .adm-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .adm-mi:hover > .adm-ml { background: #fff; color: #BF0909; }
    .adm-mi:hover > .adm-ml .chev { transform: rotate(180deg); }
}
.adm-mi:last-child .adm-sub, .adm-mi:nth-last-child(2) .adm-sub { left: auto; right: 0; }
.adm-sub a { display: flex; gap: .75rem; align-items: center; padding: .6rem .65rem; border-radius: 10px; color: #111827; text-decoration: none; transition: background .15s; }
.adm-sub a > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #FDEDED; color: #BF0909; flex-shrink: 0; font-size: 1.05rem; }
.adm-sub a span { display: flex; flex-direction: column; min-width: 0; }
.adm-sub a b { font-size: .88rem; font-weight: 700; color: #0F172A; }
.adm-sub a small { font-size: .74rem; color: #6B7280; line-height: 1.25; }
.adm-sub a:hover { background: #FEF2F2; }
.adm-sub a:hover b { color: #BF0909; }
.adm-sub a.active { background: #FDEDED; }
.adm-sub a.active b { color: #BF0909; }

.adm-search { position: relative; width: 280px; flex-shrink: 0; }
.adm-search input { width: 100%; border: 1px solid #D1D5DB; border-radius: 999px; background: #fff; padding: .62rem 2.5rem .62rem 1.1rem; font-size: .88rem; color: #0F172A; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.adm-search input:focus { outline: 2px solid rgba(191, 9, 9, .35); border-color: #BF0909; }
.adm-search > i { position: absolute; right: .95rem; top: 50%; transform: translateY(-50%); color: #BF0909; font-size: .98rem; pointer-events: none; }

.adm-burger { display: none; margin-left: auto; background: #fff; border: 1px solid #D1D5DB; border-radius: 10px; width: 42px; height: 42px; font-size: 1.35rem; color: #111827; cursor: pointer; }
.adm-pagebar { background: #fff; border-bottom: 1px solid #E5E7EB; }
.adm-pagebar .adm-wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; padding-top: .65rem; padding-bottom: .65rem; flex-wrap: wrap; }
.adm-pagebar h1 { font-size: 1.22rem; font-weight: 800; margin: 0; font-family: var(--oa-font-head); color: #0F172A; }
.adm-crumb { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .8rem; color: #6B7280; }
.adm-crumb a { color: #6B7280; text-decoration: none; }
.adm-crumb a:hover { color: #BF0909; }
.adm-crumb .bi-chevron-right { font-size: .62rem; }
.adm-crumb b { color: #111827; font-weight: 700; }
.adm-top-layout .adm-content { padding-top: 1.25rem; padding-bottom: 2.5rem; flex: 1; width: 100%; }
.adm-footer { background: #0B0B0F; color: #9CA3AF; font-size: .8rem; padding: 1rem 0; margin-top: auto; }

@media (max-width: 1279.98px) {
    .adm-search { width: 210px; }
    .adm-ml { padding: .5rem .6rem; font-size: .86rem; }
}
@media (max-width: 1099.98px) {
    .adm-mainnav .adm-wrap { flex-wrap: wrap; min-height: 62px; padding-top: .5rem; padding-bottom: .5rem; gap: .6rem; }
    .adm-burger { display: inline-grid; place-items: center; }
    .adm-search { order: 3; width: 100%; }
    .adm-menu { order: 4; width: 100%; flex-direction: column; align-items: stretch; display: none; background: #fff; border-radius: 14px; padding: .45rem; max-height: 72vh; overflow: auto; box-shadow: 0 12px 30px rgba(15,23,42,.14); }
    .adm-menu.show { display: flex; }
    .adm-ml { width: 100%; justify-content: flex-start; padding: .75rem .7rem; }
    .adm-ml .chev { margin-left: auto; }
    .adm-sub { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 .35rem .5rem; display: none; min-width: 0; background: #F9FAFB; border-radius: 10px; }
    .adm-mi.open > .adm-sub { display: block; }
    .adm-ml.active { box-shadow: inset 3px 0 0 #BF0909; border-radius: 10px; }
}
@media (max-width: 575.98px) {
    .adm-wrap { padding-left: .85rem; padding-right: .85rem; }
    .adm-logo-t small { display: none; }
    .adm-quick-icons a { width: 42px; }
    .adm-gov-clock .d { display: none; }
}


/* =========================================================================
   v14 · Topbar .pub-gov en blanco, Slider con Miniaturas, Galería HD y Footer con Imagen/Opacidad
   ========================================================================= */
.pub-gov {
    background: linear-gradient(90deg, #991b1b 0%, #c81e1e 48%, #d97706 100%) !important;
    border-bottom: 2px solid #f59e0b !important;
    color: #ffffff !important;
    padding: 6px 0 !important;
    font-size: 12.5px !important;
}
.pub-gov .container-xxl {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    min-height: 30px !important;
}
.pub-gov, .pub-gov span, .pub-gov b, .pub-gov strong, .pub-gov i, .pub-gov-t, .pub-gov-t b, .pub-upd, .pub-clock, .pub-clock strong {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.38);
}
.pub-gov-t .sep {
    color: #fde047 !important;
}
@media (max-width: 767.98px) {
    .pub-gov .container-xxl {
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
    }
    .pub-gov-r {
        margin-left: 0 !important;
        justify-content: center !important;
        width: 100%;
    }
}

.pub-search--universal {
    width: auto !important;
    min-width: 44px;
    padding: 8px 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
.pub-search--universal:hover {
    border-color: #bf0909 !important;
    color: #bf0909 !important;
}

.ec-slider-v14 {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
    margin-bottom: 26px;
}
.ec-slider-v14__progress {
    height: 4px;
    background: rgba(255,255,255,0.12);
    width: 100%;
}
.ec-slider-v14__progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fbbf24, #ef4444);
    transition: width 0.2s linear;
}
.ec-slider-v14__counter {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #fbbf24;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    z-index: 3;
}
.ec-slider-v14__gal-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(191, 9, 9, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ec-slider-v14__gal-btn:hover {
    background: #991b1b;
}
.ec-slider-v14__thumbs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #060b14;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ec-slider-v14__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: thin;
    padding-bottom: 2px;
}
.ec-slider-v14__thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 5px 8px;
    color: #cbd5e1;
    min-width: 185px;
    max-width: 210px;
    flex-shrink: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.ec-slider-v14__thumb img {
    width: 44px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.ec-slider-v14__thumb span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-slider-v14__thumb.active,
.ec-slider-v14__thumb:hover {
    background: rgba(191, 9, 9, 0.28);
    border-color: #fbbf24;
    color: #ffffff;
}
.ec-slider-v14__pause {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fbbf24;
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
}

.ec-card-gal-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.86);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2;
}
.ec-card-gal-pill:hover {
    background: #bf0909;
    color: #ffffff;
}

/* Nuevo Footer v14 con Imagen de Fondo y Transparencia Graduable */
.ec-footer-v14 {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e2e8f0;
    margin-top: 52px;
    border-top: 4px solid #bf0909;
}
.ec-footer-v14__overlay {
    width: 100%;
    padding-top: 48px;
    backdrop-filter: blur(2px);
}
.ec-footer-v14__top {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.1fr;
    gap: 32px;
    padding-bottom: 38px;
}
.ec-footer-v14__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 12px;
}
.ec-footer-v14__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.ec-footer-v14__kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fbbf24;
}
.ec-footer-v14__title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}
.ec-footer-v14__desc {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 10px;
}
.ec-footer-v14__sources {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    background: rgba(255,255,255,0.05);
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid #fbbf24;
    margin-bottom: 14px;
}
.ec-footer-v14__socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-footer-v14__socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    transition: all 0.15s ease;
}
.ec-footer-v14__socials a:hover {
    background: #bf0909;
    border-color: #fbbf24;
    color: #ffffff;
    transform: translateY(-2px);
}
.ec-footer-v14__heading {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.ec-footer-v14__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}
.ec-footer-v14__links a {
    color: #cbd5e1;
    font-size: 13.2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.15s;
}
.ec-footer-v14__links a:hover {
    color: #fbbf24;
}
.ec-footer-v14__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ec-footer-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: #f8fafc;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s;
}
.ec-footer-chip:hover {
    background: #bf0909;
    border-color: #fbbf24;
    color: #ffffff;
}
.ec-footer-v14__search {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.ec-footer-v14__search input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}
.ec-footer-v14__search input::placeholder {
    color: #cbd5e1;
}
.ec-footer-v14__search button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #bf0909;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}
.ec-footer-v14__contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 8px;
    line-height: 1.45;
}
.ec-footer-v14__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 6, 23, 0.65);
    padding: 16px 0;
    font-size: 12.5px;
    color: #94a3b8;
}
.ec-footer-v14__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.ec-footer-v14__bottom-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-footer-v14__bottom-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
}
.ec-footer-v14__bottom-links a:hover {
    color: #fbbf24;
}
@media (max-width: 991.98px) {
    .ec-footer-v14__top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575.98px) {
    .ec-footer-v14__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ec-footer-v14__bottom-inner {
        justify-content: center;
        text-align: center;
    }
}


/* =========================================================================
   v16 · Corrección .pub-clock alto contraste, Menú Público sin superposición,
   botones solo ícono (.pub-search y .pub-globe-btn) y Buscador Avanzado
   ========================================================================= */
.pub-gov .pub-clock,
.pub-clock {
    background: rgba(15, 23, 42, 0.62) !important;
    color: #ffffff !important;
    border: 1px solid rgba(253, 224, 71, 0.72) !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}
.pub-gov .pub-clock i,
.pub-clock i {
    color: #fde047 !important;
}
.pub-gov .pub-clock span,
.pub-gov .pub-clock strong,
.pub-clock span,
.pub-clock strong {
    color: #ffffff !important;
}

.pub-main .container-xxl {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 72px !important;
    flex-wrap: nowrap !important;
}

.oa-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    max-width: 265px !important;
    min-width: 0 !important;
    margin-right: 4px !important;
}
.oa-brand > div {
    min-width: 0 !important;
}
.oa-brand-name {
    font-size: clamp(19px, 1.75vw, 24px) !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
}
.oa-brand-tag {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: var(--ink-500) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 195px !important;
}

@media (min-width: 1100px) and (max-width: 1320px) {
    .oa-brand-tag {
        display: none !important;
    }
    .oa-brand {
        max-width: 220px !important;
    }
}

@media (min-width: 1100px) {
    .pub-burger,
    .pub-backdrop,
    .pub-dh {
        display: none !important;
    }
    .pub-menu {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 6px !important;
    }
    .pub-ml {
        padding: 8px 10px !important;
        font-size: 13.2px !important;
        white-space: nowrap !important;
        border-radius: 10px !important;
    }
}

@media (min-width: 1360px) {
    .pub-menu {
        gap: 5px !important;
    }
    .pub-ml {
        padding: 9px 13px !important;
        font-size: 14px !important;
    }
}

.pub-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.pub-search,
.pub-search--universal,
.pub-globe-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 11px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.16s ease !important;
}

.pub-search,
.pub-search--universal {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #bf0909 !important;
}
.pub-search i,
.pub-search--universal i {
    font-size: 17px !important;
    color: #bf0909 !important;
    margin: 0 !important;
}
.pub-search:hover,
.pub-search--universal:hover {
    background: #bf0909 !important;
    border-color: #bf0909 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(191, 9, 9, 0.25) !important;
}
.pub-search:hover i,
.pub-search--universal:hover i {
    color: #ffffff !important;
}

.pub-globe-btn {
    background: #bf0909 !important;
    border: 1.5px solid #991b1b !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(191, 9, 9, 0.24) !important;
}
.pub-globe-btn i {
    font-size: 17px !important;
    color: #ffffff !important;
    margin: 0 !important;
}
.pub-globe-btn:hover {
    background: #991b1b !important;
    border-color: #7f1d1d !important;
    color: #fde047 !important;
    transform: translateY(-1px) !important;
}
.pub-globe-btn:hover i {
    color: #fde047 !important;
}

@media (max-width: 1099.98px) {
    .pub-burger {
        display: inline-grid !important;
        place-items: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        margin: 0 !important;
        border-radius: 11px !important;
        flex-shrink: 0 !important;
    }
    .pub-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.55) !important;
        z-index: 2110 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .pub-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .pub-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(340px, 88vw) !important;
        height: 100dvh !important;
        z-index: 2120 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 0 28px !important;
        overflow-y: auto !important;
        box-shadow: -14px 0 38px rgba(15, 23, 42, 0.28) !important;
        transform: translateX(105%) !important;
        transition: transform 0.25s ease !important;
    }
    .pub-menu.show {
        transform: translateX(0) !important;
    }
    .pub-dh {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--line-200) !important;
        position: sticky !important;
        top: 0 !important;
        background: #ffffff !important;
        z-index: 5 !important;
    }
    .pub-mi {
        border-bottom: 1px solid var(--line-100) !important;
        width: 100% !important;
    }
    .pub-ml {
        width: 100% !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
        padding: 13px 16px !important;
        font-size: 14.5px !important;
    }
    .pub-ml .chev {
        margin-left: auto !important;
    }
    .pub-sub,
    .pub-sub.wide {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        border-radius: 0 !important;
        padding: 8px 12px 12px 20px !important;
    }
    .pub-mi.open > .pub-sub,
    .pub-mi.open > .pub-sub.wide {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
}

.oa-cmd-box {
    max-width: 820px !important;
}
.oa-cmd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}
.oa-cmd-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}
.oa-cmd-chip:hover,
.oa-cmd-chip.active {
    background: #bf0909;
    border-color: #bf0909;
    color: #ffffff;
}


/* =========================================================================
   v17 · Eliminación de .oa-stripe / .pub-gov / .pub-upd / .pub-clock y
   nuevo estilo .pub-quick (#9c1b1b -> #9d1b1b) sin bordes amarillos
   ========================================================================= */
.oa-stripe,
.pub-gov,
.pub-upd,
.pub-clock {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.pub-header {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.pub-quick {
    background: linear-gradient(90deg, #9c1b1b 0%, #9d1b1b 100%) !important;
    color: var(--white) !important;
    border: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.pub-quick .container-xxl {
    border: 0 !important;
}

.pub-quick-icons a {
    color: rgba(255, 255, 255, 0.9) !important;
    border: 0 !important;
}

.pub-quick-icons a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.pub-quick-icons a.active {
    background: rgba(0, 0, 0, 0.26) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* =========================================================================
   v18 · .pub-account y .ec-temas-highlight en Rojo (#f80000) con texto #fcfdff,
   eliminación de amarillo residual, Mapa Mundial Real Leaflet y
   Sección Azul de Programas Gratis y Oficiales (.ec-programas-blue-zone)
   ========================================================================= */
:root {
    --gold-primary: #f80000 !important;
    --gold-bright: #f80000 !important;
    --gold-soft: #fef2f2 !important;
    --gold-border: #fecaca !important;
}

.pub-account {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #fcfdff !important;
    background: #f80000 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 999px !important;
    padding: 6px 15px !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    box-shadow: 0 2px 10px rgba(248, 0, 0, 0.32) !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.pub-account:hover,
.pub-account:focus {
    background: #d00000 !important;
    color: #fcfdff !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    transform: translateY(-1px) !important;
}

.pub-account i,
.pub-account span {
    color: #fcfdff !important;
}

.ec-temas-highlight {
    background: #f80000 !important;
    color: #fcfdff !important;
    border-color: #f80000 !important;
    font-weight: 800 !important;
}

.ec-temas-highlight:hover,
.ec-temas-highlight:focus {
    background: #d00000 !important;
    color: #fcfdff !important;
    border-color: #d00000 !important;
}

.ec-temas-highlight i {
    color: #fcfdff !important;
}

.oa-cmd-box {
    border: 2px solid #f80000 !important;
}

.ec-formal-slide__pill,
.ec-slider-v14__counter,
.ec-card-gal-pill {
    background: #f80000 !important;
    color: #fcfdff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.ec-slider-v14__thumb.active,
.ec-slider-v14__thumb:hover {
    border-color: #f80000 !important;
}

.ec-slider-v14__pause,
.adm-user .bi,
.ec-footer-v14__kicker {
    color: #fcfdff !important;
}

.ec-footer-v14__sources {
    border-left-color: #f80000 !important;
}

/* Marcadores en vivo sobre el Mapa Mundial Real Leaflet */
.leaflet-custom-div-icon {
    background: transparent !important;
    border: 0 !important;
}
.leaflet-pin-live {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.leaflet-pin-live span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    z-index: 2;
}
.leaflet-pin-live--online span {
    background: #00c853;
    box-shadow: 0 0 10px #00e676;
}
.leaflet-pin-live--online::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.42);
    animation: pulseMarkerOnline 1.6s infinite ease-out;
}
.leaflet-pin-live--offline span {
    background: #d50000;
    box-shadow: 0 0 8px rgba(213, 0, 0, 0.65);
}
@keyframes pulseMarkerOnline {
    0% { transform: scale(0.75); opacity: 0.95; }
    100% { transform: scale(1.85); opacity: 0; }
}

/* Píldora y enlace de menú para Programas Oficiales (Azul) */
.pub-ml--programas > .bi-cloud-arrow-down-fill {
    color: #1d4ed8 !important;
}
.ec-topic-programas-blue {
    background: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd !important;
    font-weight: 800 !important;
}
.ec-topic-programas-blue:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

/* Sección Azul: Centro de Programas Gratis y Oficiales para Descargar */
.ec-programas-blue-zone {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 2px solid #2563eb !important;
    border-radius: 18px !important;
    padding: 24px !important;
    margin-bottom: 36px !important;
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.12) !important;
}
.ec-programas-header {
    border-bottom: 3px solid #1d4ed8 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.ec-programas-pill {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 5px 14px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28) !important;
}
.ec-programas-title {
    color: #1e3a8a !important;
    margin: 4px 0 0 !important;
}
.ec-programas-sync-btn {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 999px !important;
    padding: 7px 15px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
}
.ec-programas-sync-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}
.ec-programas-all-btn {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 7px 15px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.ec-programas-all-btn:hover {
    background: #172554 !important;
    color: #ffffff !important;
}
.ec-programas-search-panel {
    background: #ffffff !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.06) !important;
}
.ec-programas-search-row {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
}
.ec-programas-search-input-wrap {
    flex: 1 1 320px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
.ec-programas-search-input-wrap i {
    position: absolute !important;
    left: 14px !important;
    color: #1d4ed8 !important;
    font-size: 16px !important;
}
.ec-programas-search-input-wrap input {
    width: 100% !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 999px !important;
    padding: 10px 16px 10px 40px !important;
    font-size: 13.8px !important;
    color: #0f172a !important;
    outline: none !important;
}
.ec-programas-search-input-wrap input:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
.ec-programas-internet-btn {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}
.ec-programas-internet-btn:hover {
    background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 100%) !important;
}
.ec-programas-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}
.ec-prog-cat-chip {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    padding: 5px 13px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.ec-prog-cat-chip:hover,
.ec-prog-cat-chip.active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}
.ec-programas-status {
    margin-top: 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    border: 1px solid #93c5fd !important;
    color: #1e3a8a !important;
    font-size: 12.8px !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.ec-programas-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
@media (max-width: 991.98px) {
    .ec-programas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 639.98px) {
    .ec-programas-blue-zone {
        padding: 14px !important;
    }
    .ec-programas-grid {
        grid-template-columns: 1fr !important;
    }
}
.ec-prog-card {
    background: #ffffff !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 14px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease !important;
}
.ec-prog-card:hover {
    transform: translateY(-3px) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.15) !important;
}
.ec-prog-card__top {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}
.ec-prog-card__icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}
.ec-prog-card__title-wrap {
    flex: 1 !important;
    min-width: 0 !important;
}
.ec-prog-card__cat {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #2563eb !important;
    letter-spacing: 0.3px !important;
}
.ec-prog-card__title {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 2px 0 !important;
    line-height: 1.25 !important;
}
.ec-prog-card__dev {
    font-size: 11.5px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}
.ec-prog-card__dev i {
    color: #2563eb !important;
}
.ec-prog-card__ver {
    background: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd !important;
    border-radius: 999px !important;
    padding: 3px 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.ec-prog-card__desc {
    font-size: 12.8px !important;
    color: #334155 !important;
    line-height: 1.5 !important;
    margin: 0 0 12px !important;
}
.ec-prog-card__specs {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 11.5px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e2e8f0 !important;
}
.ec-prog-card__specs i {
    color: #1d4ed8 !important;
    margin-right: 4px !important;
}
.ec-prog-card__actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}
.ec-prog-btn-download {
    flex: 1 !important;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: background 0.15s ease !important;
}
.ec-prog-btn-download:hover {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}
.ec-prog-btn-web {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 8px 11px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.ec-prog-btn-web:hover {
    background: #dbeafe !important;
    color: #1e3a8a !important;
}


/* =========================================================================
   v19 · Corrección de Hover en .ec-breaking-title (alto contraste blanco/rojo
   para que destaque nítidamente sobre el cintillo rojo)
   ========================================================================= */
.ec-breaking-title,
.ec-breaking-title a,
.ec-breaking-title a:link,
.ec-breaking-title a:visited {
    color: #ffffff !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-decoration: none !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.ec-breaking-title:hover a,
.ec-breaking-title a:hover,
.ec-breaking-title a:focus,
.ec-breaking-title a:active {
    background: #ffffff !important;
    color: #991b1b !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px) !important;
}

.ec-formal-slide__title a:hover,
.ec-formal-slide__title a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

.ec-formal-slide__btn:hover,
.ec-formal-slide__btn:focus {
    background: #ffffff !important;
    color: #991b1b !important;
}


/* =========================================================================
   v21 · Rotador Automático en .ec-breaking-banner__inner, Botón Flotante de
   Subir (#btnBackToTop) al costado inferior derecho en todo el sistema y
   eliminación definitiva de .pub-globe-btn
   ========================================================================= */
.pub-globe-btn {
    display: none !important;
}

.ec-breaking-banner__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 36px !important;
}

.ec-breaking-rotator {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.ec-breaking-slide {
    animation: fadeBreakingSlide 0.35s ease;
}

@keyframes fadeBreakingSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ec-breaking-controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.ec-breaking-counter {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

.ec-breaking-nav {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(0, 0, 0, 0.18) !important;
    color: #ffffff !important;
    display: inline-grid !important;
    place-items: center !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.15s ease !important;
}

.ec-breaking-nav:hover {
    background: #ffffff !important;
    color: #991b1b !important;
    border-color: #ffffff !important;
}

@media (max-width: 575.98px) {
    .ec-breaking-counter {
        display: none !important;
    }
}

.btn-back-to-top,
#btnBackToTop {
    position: fixed !important;
    right: 22px !important;
    bottom: 24px !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #f80000 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    padding: 11px 18px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 26px rgba(185, 28, 28, 0.45) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.15s ease !important;
}

.btn-back-to-top.visible,
#btnBackToTop.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.btn-back-to-top:hover,
#btnBackToTop:hover {
    background: linear-gradient(135deg, #d00000 0%, #7f1d1d 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 30px rgba(153, 27, 27, 0.55) !important;
}

.btn-back-to-top i,
#btnBackToTop i,
.btn-back-to-top span,
#btnBackToTop span {
    color: #ffffff !important;
}


/* =========================================================================
   v22 · Slider uno por uno en .ec-breaking-banner__inner, reparación de
   #ecPortadaSlider (.ec-formal-slide), Galería en Modal HD y Tarjetas de
   Programas con Diseño Completo de Noticia y Descarga Ordenada
   ========================================================================= */
.ec-breaking-rotator .ec-breaking-slide,
.ec-breaking-title.ec-breaking-slide {
    display: none !important;
}

.ec-breaking-rotator .ec-breaking-slide.active,
.ec-breaking-title.ec-breaking-slide.active {
    display: block !important;
}

#ecPortadaSlider .ec-formal-slide {
    display: none !important;
}

#ecPortadaSlider .ec-formal-slide.active {
    display: grid !important;
}

.ec-article-gal-item:hover {
    transform: translateY(-3px);
    border-color: #f80000 !important;
    box-shadow: 0 10px 22px rgba(248, 0, 0, 0.18);
}

/* Tarjetas de Programas como Noticia Completa (.ec-prog-card--news) */
.ec-prog-card--news {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    border: 1.5px solid #93c5fd !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08) !important;
}

.ec-prog-card--news:hover {
    border-color: #1d4ed8 !important;
    box-shadow: 0 14px 32px rgba(29, 78, 216, 0.18) !important;
    transform: translateY(-4px) !important;
}

.ec-prog-card__media {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    background: #0f172a !important;
    overflow: hidden !important;
}

.ec-prog-card__cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.ec-prog-card--news:hover .ec-prog-card__cover-img {
    transform: scale(1.04) !important;
}

.ec-prog-card__badge-cat {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: rgba(29, 78, 216, 0.94) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

.ec-prog-card__badge-ver {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.45) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
}

.ec-prog-card__body {
    padding: 16px 18px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.ec-prog-card__kicker {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
    margin-bottom: 6px !important;
}

.ec-prog-card__news-title {
    font-family: var(--font-serif, Georgia, serif) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
}

.ec-prog-card__news-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.ec-prog-card__news-title a:hover {
    color: #1d4ed8 !important;
}

.ec-prog-card__specs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 9px 11px !important;
    margin-top: auto !important;
    margin-bottom: 14px !important;
}

.ec-prog-card__specs-grid small {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #64748b !important;
}

.ec-prog-card__specs-grid strong {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ec-prog-card__specs-grid strong i {
    color: #1d4ed8 !important;
}

.ec-prog-card__footer-ordered {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    gap: 8px !important;
    align-items: center !important;
}

.ec-prog-btn-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1.5px solid #bfdbfe !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    padding: 9px 10px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
}

.ec-prog-btn-info:hover {
    background: #dbeafe !important;
    color: #1e3a8a !important;
    border-color: #60a5fa !important;
}

@media (max-width: 991.98px) {
    .ec-prog-article-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================================
   v23 · Botones del Modal de Imágenes con Fondo Rojo e Icono Rojo Nítido +
   Menú Administrativo Compacto, Ordenado y Sin Desborde ni Superposición
   ========================================================================= */

/* 1. Botones del modal de imágenes y disparadores de galería:
      Fondo rojo institucional (#f80000 / #dc2626) + icono rojo (#dc2626) sobre
      cápsula blanca de alto contraste para que nunca salga blanco sobre blanco */
.modal-close,
.ec-modal-img-btn,
#modalGaleriaLightboxUniversal .modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f80000 0%, #b91c1c 100%) !important;
    border: 2px solid #fecaca !important;
    color: #ffffff !important;
    display: inline-grid !important;
    place-items: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(248, 0, 0, 0.32) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.modal-close i,
.ec-modal-img-btn i,
#modalGaleriaLightboxUniversal .modal-close i {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #dc2626 !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.modal-close:hover,
.ec-modal-img-btn:hover,
#modalGaleriaLightboxUniversal .modal-close:hover {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%) !important;
    border-color: #ffffff !important;
    transform: scale(1.06) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.48) !important;
}

.ec-lb-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 2px solid #fecaca !important;
    background: linear-gradient(135deg, #f80000 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    display: inline-grid !important;
    place-items: center !important;
    cursor: pointer !important;
    z-index: 6 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.16s ease, background 0.16s ease !important;
}

.ec-lb-nav-btn--prev { left: 14px !important; }
.ec-lb-nav-btn--next { right: 14px !important; }

.ec-lb-nav-btn i {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #dc2626 !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.ec-lb-nav-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%) !important;
    border-color: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.ec-modal-img-action-btn,
.ec-slider-v14__gal-btn,
.ec-card-gal-pill,
.ec-gallery-btn,
.ec-article-gal-badge {
    background: linear-gradient(135deg, #f80000 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.32) !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.ec-card-gal-pill,
.ec-article-gal-badge {
    padding: 4px 10px !important;
    font-size: 11px !important;
    gap: 5px !important;
}

.ec-article-gal-badge {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    z-index: 3 !important;
}

.ec-modal-img-action-btn i,
.ec-slider-v14__gal-btn i,
.ec-card-gal-pill i,
.ec-gallery-btn i,
.ec-article-gal-badge i {
    background: #ffffff !important;
    color: #dc2626 !important;
    width: 21px !important;
    height: 21px !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 11.5px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
}

.ec-modal-img-action-btn:hover,
.ec-slider-v14__gal-btn:hover,
.ec-card-gal-pill:hover,
.ec-gallery-btn:hover,
.ec-article-gal-item:hover .ec-article-gal-badge {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.45) !important;
}

/* 2. Menú Administrativo (.adm-header, .adm-gov, .adm-quick, .adm-mainnav, .adm-menu)
      Compacto, ordenado y sin ningún desborde ni superposición entre elementos */
.adm-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

.adm-gov {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 11.5px !important;
    color: #334155 !important;
    padding: 2px 0 !important;
}

.adm-gov .adm-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 26px !important;
    flex-wrap: nowrap !important;
}

.adm-gov-t {
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.adm-gov-clock {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    font-size: 11.5px !important;
}

.adm-quick {
    background: #0f172a !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.adm-quick .adm-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 38px !important;
    gap: 8px !important;
}

.adm-quick-icons {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.adm-quick-icons a {
    width: 36px !important;
    height: 34px !important;
    border-radius: 7px !important;
    font-size: 1rem !important;
    display: inline-grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
}

.adm-quick-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    padding: 3px 0 !important;
}

.adm-portal-link,
.adm-user {
    font-size: 11.8px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
}

.adm-mainnav {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: relative !important;
}

.adm-mainnav .adm-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 54px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    flex-wrap: nowrap !important;
}

.adm-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    max-width: 190px !important;
    min-width: 0 !important;
    text-decoration: none !important;
}

.adm-logo-mark,
.adm-logo-mark.has-logo {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.adm-logo-mark.has-logo img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    object-fit: contain !important;
}

.adm-logo-t {
    min-width: 0 !important;
    overflow: hidden !important;
}

.adm-logo-t b {
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.adm-logo-t small {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.adm-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    row-gap: 4px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 4px !important;
}

.adm-mi {
    position: relative !important;
    flex-shrink: 0 !important;
}

.adm-ml {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 12.4px !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.adm-ml > .bi:first-child {
    color: #bf0909 !important;
    font-size: 13px !important;
}

.adm-ml .chev {
    font-size: 10px !important;
    color: #64748b !important;
    margin-left: 1px !important;
}

.adm-mbadge {
    background: #bf0909 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    line-height: 1.2 !important;
}

.adm-ml:hover,
.adm-mi.open > .adm-ml,
.adm-ml.active {
    background: #fef2f2 !important;
    color: #bf0909 !important;
    border-color: #fca5a5 !important;
    box-shadow: inset 0 -2px 0 #bf0909 !important;
}

.adm-sub {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    width: 290px !important;
    min-width: 260px !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22) !important;
    padding: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease !important;
    z-index: 1150 !important;
}

.adm-sub::before {
    content: "" !important;
    position: absolute !important;
    top: -8px !important;
    left: 0 !important;
    right: 0 !important;
    height: 8px !important;
    background: transparent !important;
}

.adm-mi:last-child > .adm-sub,
.adm-mi:nth-last-child(2) > .adm-sub,
.adm-mi:nth-last-child(3) > .adm-sub {
    left: auto !important;
    right: 0 !important;
}

.adm-mi.open > .adm-sub {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

@media (min-width: 992px) {
    .adm-mi:hover > .adm-sub {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    /* Si el usuario está haciendo hover en el menú, ocultar cualquier otro submenú abierto por clic para que jamás se superpongan dos submenús */
    .adm-menu:hover .adm-mi.open:not(:hover) > .adm-sub {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.adm-sub a {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    color: #0f172a !important;
    text-decoration: none !important;
}

.adm-sub a > i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
}

.adm-sub a b {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}

.adm-sub a small {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.adm-search {
    position: relative !important;
    width: 195px !important;
    flex-shrink: 0 !important;
}

.adm-search input {
    width: 100% !important;
    height: 34px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    padding: 5px 30px 5px 12px !important;
    font-size: 12px !important;
    color: #0f172a !important;
}

.adm-search > i {
    right: 10px !important;
    font-size: 13px !important;
}

.adm-pagebar .adm-wrap {
    min-height: 46px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.adm-pagebar h1 {
    font-size: 1.05rem !important;
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .adm-logo-t small {
        display: none !important;
    }
    .adm-logo {
        max-width: 150px !important;
    }
    .adm-ml {
        padding: 5px 8px !important;
        font-size: 11.8px !important;
        gap: 4px !important;
    }
    .adm-search {
        width: 160px !important;
    }
}

@media (max-width: 991.98px) {
    .adm-mainnav .adm-wrap {
        flex-wrap: wrap !important;
        min-height: 52px !important;
        gap: 8px !important;
    }
    .adm-burger {
        display: inline-grid !important;
        place-items: center !important;
        width: 38px !important;
        height: 38px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .adm-search {
        order: 3 !important;
        width: 100% !important;
    }
    .adm-menu {
        order: 4 !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        display: none !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        padding: 8px !important;
        margin: 4px 0 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
    }
    .adm-menu.show {
        display: flex !important;
    }
    .adm-mi {
        width: 100% !important;
    }
    .adm-ml {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }
    .adm-ml .chev {
        margin-left: auto !important;
    }
    .adm-sub {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        border-left: 3px solid #bf0909 !important;
        border-radius: 0 8px 8px 0 !important;
        background: #f8fafc !important;
        padding: 4px 0 4px 8px !important;
        margin: 4px 0 6px !important;
        display: none !important;
    }
    .adm-mi.open > .adm-sub {
        display: block !important;
    }
}


/* =========================================================================
   v24 · Corrección de Desborde de Texto en Noticias, Botones de Modal con Un
   Solo Fondo (Sin Doble Fondo), Diseño Responsivo Móvil de Noticias y Subtítulo
   Editable bajo el Logo
   ========================================================================= */

/* 1. Un solo fondo limpio en los botones de todos los modales (galería y noticias):
      Se elimina cualquier segundo fondo/caja blanca dentro del icono <i> */
.modal-close,
.ec-modal-img-btn,
#modalGaleriaLightboxUniversal .modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    background: #dc2626 !important;
    border: 0 !important;
    outline: none !important;
    color: #ffffff !important;
    display: inline-grid !important;
    place-items: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28) !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.modal-close i,
.ec-modal-img-btn i,
#modalGaleriaLightboxUniversal .modal-close i,
.ec-lb-nav-btn i,
.ec-modal-img-action-btn i,
.ec-slider-v14__gal-btn i,
.ec-card-gal-pill i,
.ec-gallery-btn i,
.ec-article-gal-badge i,
#lbGaleriaTitulo i {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

#lbGaleriaTitulo i {
    color: #ef4444 !important;
    font-size: 18px !important;
}

.modal-close:hover,
.ec-modal-img-btn:hover,
#modalGaleriaLightboxUniversal .modal-close:hover,
.ec-lb-nav-btn:hover {
    background: #991b1b !important;
    color: #ffffff !important;
    border: 0 !important;
}

.ec-lb-nav-btn {
    border: 0 !important;
    background: #dc2626 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.ec-modal-img-action-btn,
.ec-slider-v14__gal-btn,
.ec-card-gal-pill,
.ec-gallery-btn,
.ec-article-gal-badge {
    background: #dc2626 !important;
    border: 0 !important;
    color: #ffffff !important;
}

/* 2. Contención estricta de texto y enlaces largos en todas las noticias para
      que jamás se salgan del contenedor blanco */
.ec-article-layout {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ec-article-layout > *,
.ec-article-main,
.ec-article-sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ec-article-main {
    overflow-x: hidden !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.ec-article-title,
.ec-article-Summary,
.ec-article-body,
.ec-article-body p,
.ec-article-keybox,
.ec-article-keybox ul,
.ec-article-keybox li,
.ec-article-caption,
.ec-article-source-box,
.ec-article-source-box p,
.ec-breadcrumb {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Botón de compartir en X con solo el icono centrado */
.ec-share-btn--tw {
    min-width: 34px !important;
    justify-content: center !important;
    padding: 6px 10px !important;
}

/* Subtítulo bajo el logo con ancho suficiente para leerse completo */
.oa-brand-tag {
    max-width: 280px !important;
}

/* 3. Adaptación Responsiva Completa para Celular y Tablet en cada Noticia (noticia.php) */
@media (max-width: 991.98px) {
    .ec-article-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-top: 14px !important;
        padding-bottom: 28px !important;
    }
    .ec-prog-article-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

@media (max-width: 767.98px) {
    .ec-container.ec-article-layout {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 22px !important;
    }
    .ec-article-main {
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }
    .ec-breadcrumb {
        flex-wrap: wrap !important;
        font-size: 11.5px !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }
    .ec-article-badges {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    .ec-badge-priority,
    .ec-badge-national,
    .ec-badge-cat {
        font-size: 10.5px !important;
        padding: 3px 9px !important;
    }
    .ec-article-title {
        font-size: clamp(20px, 5.6vw, 25px) !important;
        line-height: 1.26 !important;
        margin-bottom: 10px !important;
    }
    .ec-article-Summary {
        font-size: 14.5px !important;
        line-height: 1.52 !important;
        margin-bottom: 14px !important;
    }
    .ec-article-byline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 10px 0 !important;
        margin-bottom: 14px !important;
    }
    .ec-article-share {
        width: 100% !important;
        gap: 5px !important;
        justify-content: flex-start !important;
    }
    .ec-share-btn {
        padding: 5px 9px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
    }
    .ec-article-figure {
        margin: 0 0 16px !important;
        border-radius: 10px !important;
    }
    .ec-article-img {
        max-height: 240px !important;
    }
    .ec-article-caption {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }
    .ec-article-keybox {
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
    }
    .ec-article-keybox ul {
        font-size: 13px !important;
        padding-left: 16px !important;
    }
    .ec-article-body p {
        font-size: 15.5px !important;
        line-height: 1.72 !important;
        text-align: left !important;
        margin-bottom: 14px !important;
    }
    .ec-article-gallery-box {
        padding: 12px !important;
        margin: 16px 0 !important;
    }
    .ec-article-gallery-box > div:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .ec-article-gal-item img {
        height: 115px !important;
    }
    .ec-article-source-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 10px !important;
    }
    .ec-btn-source-ext,
    .ec-btn-back,
    .ec-read-more-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .ec-prog-article-view {
        padding: 14px !important;
    }
}


/* =========================================================================
   v26 · Eliminación de .ec-white-topics-bar y #bannerAlerta +
   Logo Solo Imagen Responsivo (PC y Celular) + Reorientación Perú y Mundo
   ========================================================================= */

/* Eliminación definitiva de la barra blanca de temas y el banner de alerta */
.ec-white-topics-bar,
#bannerAlerta,
.ec-breaking-banner {
    display: none !important;
}

/* Logo: Solo se muestra la imagen del logo en PC y celular */
.oa-brand.oa-brand--solo-logo {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 0 !important;
    text-decoration: none !important;
    max-width: 320px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

.oa-brand.oa-brand--solo-logo .oa-brand-img-only {
    display: block !important;
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

@media (max-width: 991.98px) {
    .oa-brand.oa-brand--solo-logo {
        max-width: 250px !important;
    }
    .oa-brand.oa-brand--solo-logo .oa-brand-img-only {
        max-height: 44px !important;
        max-width: 240px !important;
    }
}

@media (max-width: 575.98px) {
    .oa-brand.oa-brand--solo-logo {
        max-width: 200px !important;
    }
    .oa-brand.oa-brand--solo-logo .oa-brand-img-only {
        max-height: 38px !important;
        max-width: 190px !important;
    }
}

/* === V29 FIXES: COLOR PRINCIPAL #f0050d, LOGO EN ADMIN & FOOTER, TROFEO DEPORTES Y MENU SECCIONES 2 COLUMNAS === */
:root {
  --red-primary: #f0050d !important;
  --red-dark: #c8040b !important;
  --red-deeper: #9e0308 !important;
}

.bi-pelota-futbol::before {
  content: "\f5ea" !important;
  font-family: bootstrap-icons !important;
  font-style: normal !important;
  font-weight: normal !important;
  background: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  width: auto !important;
  height: auto !important;
}

/* Logo en el Admin (.adm-logo--solo-logo): imagen completa en PC y móvil */
.adm-logo.adm-logo--solo-logo {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 0 !important;
  text-decoration: none !important;
  max-width: 260px !important;
  flex-shrink: 0 !important;
}
.adm-logo.adm-logo--solo-logo .adm-logo-img-only {
  display: block !important;
  width: auto !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: 46px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}
@media (max-width: 575.98px) {
  .adm-logo.adm-logo--solo-logo {
    max-width: 190px !important;
  }
  .adm-logo.adm-logo--solo-logo .adm-logo-img-only {
    max-width: 180px !important;
    max-height: 38px !important;
  }
}

/* Logo en el Footer: se actualiza automáticamente igual que el header */
.ec-footer-v14__brand.ec-footer-v14__brand--solo-logo {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  text-decoration: none !important;
}
.ec-footer-v14__logo.ec-footer-v14__logo--solo {
  width: auto !important;
  max-width: min(280px, 84vw) !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

/* Menu público en fila horizontal y submenú Secciones en 2 columnas */
@media (min-width: 860px) {
  .pub-main .container-xxl {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }
  .pub-burger,
  .pub-dh {
    display: none !important;
  }
  .pub-menu {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  .pub-mi {
    position: relative !important;
    width: auto !important;
    border: 0 !important;
  }
  .pub-ml {
    width: auto !important;
    padding: 8px 12px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
  .pub-sub {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 2500 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    min-width: 300px !important;
    max-height: 72vh !important;
    overflow-y: auto !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-top: 3px solid var(--red-primary, #f0050d) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
  }
  .pub-sub.wide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: min(560px, 92vw) !important;
  }
  .pub-mi:hover > .pub-sub,
  .pub-mi:focus-within > .pub-sub,
  .pub-mi.open > .pub-sub,
  .pub-mi:hover > .pub-sub.wide,
  .pub-mi:focus-within > .pub-sub.wide,
  .pub-mi.open > .pub-sub.wide {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

@media (max-width: 859.98px) {
  .pub-mi.open > .pub-sub.wide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
  }
  .pub-sub.wide a small {
    display: none !important;
  }
}


/* Barra rápida administrativa: Fondo negro puro #000, iconos grises, pestaña activa en rojo */
.adm-quick {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.adm-quick-icons a {
  color: #94a3b8 !important;
}
.adm-quick-icons a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
.adm-quick-icons a.active {
  background: var(--red-primary, #f0050d) !important;
  background-color: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
}


/* === V32 FIXES: HOVER MENU LEGIBLE, AUTH-BADGE-RED TEXTO BLANCO, FOOTER 3 COLUMNAS RESPONSIVO === */
.auth-badge-red {
  background: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
}
.auth-badge-red * {
  color: #ffffff !important;
}

/* Hover en menú público: alto contraste, nunca desaparece */
.pub-ml:hover:not(.active) {
  background: #fff1f2 !important;
  color: var(--red-primary, #f0050d) !important;
  border-radius: 10px !important;
}
.pub-ml.active,
.pub-ml.active:hover,
.pub-mi.open > .pub-ml.active {
  background: var(--red-primary, #f0050d) !important;
  background-color: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}
.pub-ml.active *,
.pub-ml.active:hover *,
.pub-mi.open > .pub-ml.active * {
  color: #ffffff !important;
}

/* Footer limpio en 3 columnas distribuidas y 100% responsivo */
.ec-footer-v14__top {
  display: grid !important;
  grid-template-columns: 1.4fr 1.15fr 1.15fr !important;
  gap: 36px !important;
  padding-bottom: 34px !important;
}
.ec-footer-v14__col--brand .ec-footer-v14__desc {
  max-width: 480px;
  line-height: 1.6;
}
.ec-footer-v14__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ec-footer-v14__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1 !important;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.ec-footer-v14__links a:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}
.ec-footer-v14__links a i {
  color: var(--red-primary, #f0050d);
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .ec-footer-v14__top {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
  .ec-footer-v14__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ec-footer-v14__top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* === V35 CONSOLIDATED STYLES: UNIFORM MODALS, ICON-ONLY ADMIN SEARCH, RESPONSIVE MENU & FOOTER === */
:root {
  --red-primary: #f0050d;
  --red-dark: #c8040b;
  --red-deeper: #9e0308;
  --gold-primary: #ffc107;
  --gold-bright: #fbbf24;
}

/* 1. Uniform Modal System (Public & Admin) — Clean White Header, Dark Crisp Title, Red Close Button */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 2600;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex !important;
}
.modal-box {
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100%;
  max-width: 580px;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.25) !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0 !important;
  margin: auto;
}
.modal-box.modal-lg {
  max-width: 860px;
}
.modal-header {
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 16px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--red-primary, #f0050d) !important;
}
.modal-header h3 {
  font-family: var(--font-head, system-ui, sans-serif) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.3 !important;
}
.modal-header h3 i {
  color: var(--red-primary, #f0050d) !important;
}
.modal-close,
.modal-header .modal-close,
.ec-modal-img-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}
.modal-close i,
.modal-header .modal-close i,
.ec-modal-img-btn i {
  color: #ffffff !important;
}
.modal-close:hover,
.modal-header .modal-close:hover {
  opacity: 0.9 !important;
  transform: scale(1.03) !important;
}
.modal-body {
  padding: 20px 22px !important;
  overflow-y: auto !important;
  max-height: calc(92vh - 68px) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Lightbox Gallery classes inside uniform modal */
.ec-lb-stage {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-lb-img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.ec-lb-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: var(--red-primary, #f0050d);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
}
.ec-lb-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 4px 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.ec-lb-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ec-lb-subtitle {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

/* 2. Admin Search Icon Button & Live Search Modal Results */
.adm-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.adm-search-btn,
.pub-search {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: var(--red-primary, #f0050d) !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: all 0.15s ease !important;
}
.adm-search-btn:hover,
.pub-search:hover {
  background: #fff1f2 !important;
  border-color: var(--red-primary, #f0050d) !important;
  transform: translateY(-1px) !important;
}
.adm-live-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.adm-live-search-bar .form-control {
  flex: 1;
  min-width: 220px;
}
.adm-live-search-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.adm-live-search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}
.adm-live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.adm-live-search-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.adm-live-search-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.adm-live-search-item__thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.adm-live-search-item__info {
  min-width: 0;
  flex: 1;
}
.adm-live-search-item__title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-live-search-item__meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.adm-live-search-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 3. Admin Tab Panels & Quick Bar */
.admin-tab-panel {
  display: none !important;
}
.admin-tab-panel.active {
  display: block !important;
}
.adm-quick {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.adm-quick-icons a {
  color: #94a3b8 !important;
}
.adm-quick-icons a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
.adm-quick-icons a.active {
  background: var(--red-primary, #f0050d) !important;
  background-color: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
}
.adm-mi:last-child .adm-sub,
.adm-mi:nth-last-child(2) .adm-sub {
  left: auto !important;
  right: 0 !important;
}

/* 4. Dynamic Primary Color bindings via CSS variables */
.pub-main,
.adm-mainnav {
  border-bottom: 3px solid var(--red-primary, #f0050d) !important;
}
.pub-ml.active,
.pub-ml.active:hover,
.pub-mi.open > .pub-ml.active,
.adm-ml.active,
.btn-primary-red,
.ec-section-pill,
.ec-news-card__badge,
.ec-portada-badge,
.ec-live-dot,
.btn-back-to-top,
.auth-submit-btn,
.auth-badge-red {
  background: var(--red-primary, #f0050d) !important;
  background-color: var(--red-primary, #f0050d) !important;
  border-color: var(--red-primary, #f0050d) !important;
  color: #ffffff !important;
}
.pub-ml.active *,
.pub-ml.active:hover *,
.pub-mi.open > .pub-ml.active *,
.adm-ml.active *,
.auth-badge-red * {
  color: #ffffff !important;
}
.pub-ml:hover:not(.active) {
  background: #fff1f2 !important;
  color: var(--red-primary, #f0050d) !important;
  border-radius: 10px !important;
}
.pub-ml:not(.active) > .bi:first-child,
.pub-mi.open > .pub-ml:not(.active),
.pub-mi.open > .pub-ml:not(.active) > .bi:first-child,
.pub-mi.open > .pub-ml:not(.active) .chev,
.pub-ml:hover:not(.active) > .bi:first-child,
.pub-ml:hover:not(.active) .chev,
.pub-search .bi,
.pub-burger,
.pub-sub a > i,
.pub-sub a:hover b,
.ec-section-head__title i,
.ec-news-card__title a:hover,
.adm-ml:not(.active) > .bi:first-child,
.adm-ml:hover:not(.active),
.adm-mi.open > .adm-ml:not(.active),
.adm-sub a > i,
.text-danger {
  color: var(--red-primary, #f0050d) !important;
}
.pub-ml.active,
.pub-ml.active > .bi:first-child,
.pub-ml.active .bi,
.pub-ml.active .chev,
.pub-ml.active .text-danger,
.pub-ml.active .text-primary,
.pub-ml.active:hover,
.pub-ml.active:hover > .bi:first-child,
.pub-ml.active:hover .bi,
.pub-ml.active:hover .chev,
.pub-mi.open > .pub-ml.active,
.pub-mi.open > .pub-ml.active > .bi:first-child,
.pub-mi.open > .pub-ml.active .bi,
.pub-mi.open > .pub-ml.active .chev,
.adm-ml.active,
.adm-ml.active > .bi:first-child,
.adm-ml.active .bi,
.adm-ml.active .chev,
.adm-ml.active:hover > .bi:first-child,
.adm-ml.active:hover .chev {
  color: #ffffff !important;
}
.pub-sub,
.pub-sub.wide,
.adm-sub,
.ec-footer-v14,
.auth-card__top-bar {
  border-top-color: var(--red-primary, #f0050d) !important;
}
.ec-section-head {
  border-bottom-color: var(--red-primary, #f0050d) !important;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 10px;
  }
  .modal-header {
    padding: 14px 16px !important;
  }
  .modal-body {
    padding: 16px !important;
  }
  .adm-live-search-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .adm-live-search-item__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   V39: SHORTS NOTICIAS (SIN ESPACIOS EN NEGRO EN PC, AUTOPLAY MOVIL),
        CRUD TOAST AUTO-HIDE Y FORMULARIOS ALINEADOS DE ANUNCIOS / ADSENSE
   ========================================================================== */
@keyframes salcToastFadeOut {
    0%, 78% { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
    100% { opacity: 0; transform: translate(-50%, -16px); pointer-events: none; visibility: hidden; }
}

.crud-toast {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: salcToastFadeOut 3.8s ease forwards;
}

.crud-toast__close {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.crud-toast__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.pub-sub-item--youtube {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.08) 0%, rgba(240, 5, 13, 0.03) 100%);
    border-left: 3px solid #ff0000 !important;
}
.pub-sub-item--youtube:hover {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.16) 0%, rgba(240, 5, 13, 0.08) 100%) !important;
}

.ec-shorts-yt-section {
    background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 22px 0;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.ec-shorts-yt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ec-shorts-yt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-shorts-yt-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ff0000;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
    flex-shrink: 0;
}

.ec-shorts-yt-title {
    font-size: 1.18rem;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ec-shorts-yt-live-pill {
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 0, 0, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(255, 0, 0, 0.5);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.ec-shorts-yt-sub {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin: 3px 0 0;
}
.ec-shorts-yt-sub a {
    color: #f87171;
    font-weight: 700;
    text-decoration: none;
}
.ec-shorts-yt-sub a:hover {
    text-decoration: underline;
}

.ec-shorts-yt-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-shorts-yt-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
}

.ec-shorts-yt-search-inp {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 12px;
    font-size: 0.82rem;
    min-width: 210px;
    height: 100%;
    outline: none;
}
.ec-shorts-yt-search-inp::placeholder {
    color: #94a3b8;
}

.ec-shorts-yt-btn-live {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 0 13px;
    height: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ec-shorts-yt-btn-live:hover {
    background: #b91c1c;
}

.ec-shorts-yt-btn-random {
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    height: 38px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.ec-shorts-yt-btn-random:hover {
    background: #dc2626;
}

.ec-shorts-yt-channels-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ec-shorts-yt-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}
.ec-shorts-yt-filter-btn.active,
.ec-shorts-yt-filter-btn:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.ec-shorts-yt-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 18px;
    align-items: start;
}

.ec-shorts-yt-stage,
.ec-shorts-yt-player-card {
    background: #090d16;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
}

.ec-shorts-yt-player-frame,
.ec-shorts-yt-frame-wrap {
    position: relative;
    width: 100%;
    height: 470px;
    aspect-ratio: 9 / 16;
    background: #000000;
    overflow: hidden;
}
.ec-shorts-yt-player-frame iframe,
.ec-shorts-yt-frame-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}

.ec-shorts-yt-stage-meta,
.ec-shorts-yt-player-info {
    padding: 12px 14px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ec-shorts-yt-stage-channel,
.ec-shorts-yt-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f87171;
    margin-bottom: 4px;
}
.ec-shorts-yt-stage-title,
.ec-shorts-yt-player-info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-shorts-yt-stage-actions,
.ec-shorts-yt-player-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-shorts-yt-stage-btn {
    flex: 1;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ec-shorts-yt-stage-btn--outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.ec-shorts-yt-stage-btn--outline:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Grilla de tarjetas de Shorts sin espacios vacíos en negro */
.ec-shorts-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
    align-items: start;
    align-content: start;
    max-height: 590px;
    overflow-y: auto;
    padding-right: 4px;
}

.ec-short-card {
    position: relative;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    height: auto !important;
    align-self: start;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ec-short-card:hover,
.ec-short-card.active {
    transform: translateY(-3px);
    border-color: #ff0000;
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.28);
}

.ec-short-card__thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 15;
    background: #000000;
    overflow: hidden;
}
.ec-short-card__thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.25s ease;
}
.ec-short-card:hover .ec-short-card__thumb {
    transform: scale(1.05);
}

.ec-short-card__play-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    background: rgba(255, 0, 0, 0.92);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ec-short-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 28px 10px 10px;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0) 0%, rgba(9, 13, 22, 0.88) 45%, rgba(9, 13, 22, 0.98) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-short-card__channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    background: rgba(255, 0, 0, 0.22);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #fecaca;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-short-card__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Mobile-First Shorts Choice Overlay (Autoplay en Celulares) */
.ec-mobile-shorts-choice {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 99990;
    background: rgba(9, 13, 22, 0.98);
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 14px;
    color: #ffffff;
    box-sizing: border-box;
}
.ec-mobile-shorts-choice.open {
    display: flex !important;
}
.ec-mobile-shorts-choice__card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}
.ec-mobile-shorts-choice__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ec-mobile-shorts-choice__badge {
    background: #ff0000;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ec-mobile-shorts-choice__skip-top,
.ec-mobile-shorts-choice__skip {
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.ec-mobile-shorts-choice__player-wrap,
.ec-mobile-shorts-choice__player {
    flex: 1 1 auto;
    min-height: 280px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    position: relative;
}
.ec-mobile-shorts-choice__player-wrap iframe,
.ec-mobile-shorts-choice__player iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}
.ec-mobile-shorts-choice__sound-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(255, 0, 0, 0.92);
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.ec-mobile-shorts-choice__sound-btn.is-unmuted {
    background: rgba(21, 128, 61, 0.92);
}
.ec-mobile-shorts-choice__info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    flex-shrink: 0;
}
.ec-mobile-shorts-choice__info span {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f87171;
    display: block;
}
.ec-mobile-shorts-choice__info p,
.ec-mobile-shorts-choice__info h3 {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-mobile-shorts-choice__actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}
.ec-mobile-shorts-choice__btn-next {
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}
.ec-mobile-shorts-choice__btn-sound-alt {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}
.ec-mobile-shorts-choice__btn-skip {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
}

/* Formularios Alineados y Responsivos en Administración de Anuncios y Modales */
.adm-adsense-box {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}
.adm-adsense-box__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.adm-adsense-box__head h3 {
    font-size: 15.5px;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 4px;
}
.adm-adsense-box__head p {
    font-size: 12.5px;
    color: #166534;
    margin: 0;
}

.adm-adsense-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.adm-adsense-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.adm-adsense-field--full {
    grid-column: 1 / -1;
}
.adm-adsense-field > label {
    font-size: 12.5px;
    font-weight: 800;
    color: #14532d;
    margin: 0;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.adm-adsense-field .form-control {
    height: 42px;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
}
.adm-adsense-field textarea.form-control.adm-code-textarea,
textarea.form-control.adm-code-textarea {
    height: auto !important;
    min-height: 84px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 12px;
}
.adm-adsense-field > small {
    font-size: 11px;
    color: #15803d;
    line-height: 1.3;
}
.adm-adsense-check-box {
    height: 42px;
    background: #ffffff;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}
.adm-adsense-check-box input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
}
.adm-adsense-check-box label {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    cursor: pointer;
    line-height: 1.2;
}
.adm-adsense-submit-row {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.adm-ubicaciones-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 12px;
}
.adm-ubicacion-ad-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.adm-ubicacion-ad-card.is-active {
    border-color: #22c55e;
    background: #f0fdf4;
}

.adm-modal-aligned-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.adm-modal-aligned-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}
.adm-modal-aligned-grid .form-group.adm-grid-span-2 {
    grid-column: 1 / -1;
}
.adm-modal-aligned-grid .form-group > label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    min-height: 19px;
}
.adm-modal-aligned-grid .form-control {
    height: 42px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
}

.adm-modal-section-box {
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}
.adm-modal-section-box h4 {
    font-size: 13.5px;
    font-weight: 800;
    margin: 0 0 10px;
}
.adm-modal-section-box--green {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}
.adm-modal-section-box--green h4 {
    color: #14532d;
}
.adm-modal-section-box--blue {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
}
.adm-modal-section-box--blue h4 {
    color: #1e3a8a;
}

.adm-aligned-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.adm-aligned-bar .form-control {
    height: 42px;
    border-radius: 10px;
}

/* Espacios de Anuncios Publicitarios y Google AdSense (No afectan el diseño) */
.ec-ad-slot {
    margin: 14px auto;
    padding: 8px 12px 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.ec-ad-slot__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.ec-ad-slot__unit {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    max-width: 100%;
    overflow: hidden;
}
.ec-ad-slot__banner-link {
    display: inline-block;
    max-width: 100%;
}
.ec-ad-slot__banner-img {
    max-width: 100%;
    height: auto;
    max-height: 260px;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .ec-shorts-yt-layout {
        grid-template-columns: 1fr;
    }
    .ec-shorts-yt-stage,
    .ec-shorts-yt-player-card {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }
    .adm-adsense-form-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .adm-modal-aligned-grid {
        grid-template-columns: 1fr;
    }
    .ec-ad-slot--desktop-only {
        display: none !important;
    }
    .ec-shorts-yt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
@media (min-width: 768px) {
    .ec-ad-slot--mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   V40: AGRUPACIÓN ORDENADA EN MENÚ NOTICIAS (CATEGORÍAS Y FUENTES)
        Y CAPA TÁCTIL DE SWIPE VERTICAL EN CELULARES PARA SHORTS
   ========================================================================== */
.adm-sub--noticias-completo {
    min-width: 320px !important;
    max-height: 78vh;
    overflow-y: auto;
    padding: 8px !important;
}

.adm-sub__group-label {
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #dc2626;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    padding: 5px 10px;
    margin: 6px 4px 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.adm-sub__group-label:first-child {
    margin-top: 2px;
}

.ec-mobile-shorts-touch-layer {
    position: absolute;
    inset: 0 58px 48px 0;
    z-index: 4;
    background: transparent;
    touch-action: pan-x;
    cursor: pointer;
}

.ec-mobile-shorts-side-nav {
    position: absolute;
    right: 10px;
    bottom: 62px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.ec-mobile-shorts-side-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.ec-mobile-shorts-side-btn:active {
    transform: scale(0.92);
    background: #ff0000;
}
.ec-mobile-shorts-side-btn.is-sound-on {
    background: rgba(21, 128, 61, 0.92);
    border-color: #86efac;
}

.ec-mobile-shorts-swipe-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 64px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.35s ease;
}

@keyframes ecShortSwipeSlideIn {
    0% { opacity: 0.45; transform: translateY(26px); }
    100% { opacity: 1; transform: translateY(0); }
}
.ec-swipe-anim {
    animation: ecShortSwipeSlideIn 0.24s ease-out;
}

/* ==========================================================================
   V41: SHORTS BUSCAR EN VIVO 100% RESPONSIVO EN CELULAR +
        MENÚ PÚBLICO EN CELULAR ORDENADO, CON MÁRGENES Y SIN BORDES PEGADOS
   ========================================================================== */

/* 1. Buscador en Vivo de Shorts 100% Responsivo en PC, Tablet y Celular */
.ec-shorts-yt-section {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.ec-shorts-yt-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ec-shorts-yt-brand {
    flex: 1 1 280px !important;
    min-width: 0 !important;
}

.ec-shorts-yt-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    flex: 1 1 360px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ec-shorts-yt-search-wrap {
    display: flex !important;
    align-items: stretch !important;
    flex: 1 1 240px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ec-shorts-yt-search-inp {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 12px !important;
    font-size: 0.84rem !important;
    height: 100% !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ec-shorts-yt-btn-live {
    flex: 0 0 auto !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 14px !important;
    height: 100% !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.ec-shorts-yt-btn-random {
    flex: 0 0 auto !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Ajustes específicos para Celulares en Shorts Buscar en Vivo */
@media (max-width: 767.98px) {
    .ec-shorts-yt-section {
        padding: 14px 12px !important;
        margin: 14px 0 !important;
        border-radius: 14px !important;
    }

    .ec-shorts-yt-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }

    .ec-shorts-yt-brand {
        flex: none !important;
        width: 100% !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .ec-shorts-yt-logo-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.25rem !important;
        border-radius: 10px !important;
    }

    .ec-shorts-yt-title {
        font-size: 1.02rem !important;
        line-height: 1.25 !important;
        gap: 6px !important;
    }

    .ec-shorts-yt-sub {
        font-size: 0.77rem !important;
        line-height: 1.35 !important;
    }

    .ec-shorts-yt-controls {
        flex: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .ec-shorts-yt-search-wrap {
        flex: none !important;
        width: 100% !important;
        height: 42px !important;
        border-radius: 10px !important;
    }

    .ec-shorts-yt-search-inp {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 0.84rem !important;
        padding: 0 10px !important;
    }

    .ec-shorts-yt-btn-live {
        padding: 0 12px !important;
        font-size: 0.79rem !important;
    }

    .ec-shorts-yt-btn-random {
        width: 100% !important;
        height: 40px !important;
        justify-content: center !important;
        font-size: 0.83rem !important;
    }

    /* Barra de canales deslizable horizontalmente en celular sin desbordar */
    .ec-shorts-yt-channels-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 7px !important;
        padding-bottom: 6px !important;
        margin-bottom: 12px !important;
        scrollbar-width: none !important;
    }
    .ec-shorts-yt-channels-bar::-webkit-scrollbar {
        display: none !important;
    }
    .ec-shorts-yt-filter-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 0.76rem !important;
    }

    /* Buscador de Shorts en el Panel Admin también 100% responsivo en celular */
    .adm-aligned-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .adm-aligned-bar .form-control,
    .adm-aligned-bar select,
    .adm-aligned-bar button {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
}

/* 2. Menú Público en Celular y Tablet: Ordenado, con Márgenes Laterales y Sin Bordes Pegados */
@media (max-width: 991.98px) {
    /* Espaciado lateral limpio en la cabecera móvil */
    .pub-quick .container-xxl {
        padding-left: 14px !important;
        padding-right: 14px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .pub-quick-icons {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 2px 0 !important;
    }
    .pub-quick-icons::-webkit-scrollbar {
        display: none !important;
    }

    .pub-main .container-xxl {
        padding: 8px 14px !important;
        min-height: 62px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .pub-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        padding-right: 2px !important;
    }

    .pub-burger {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 11px !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: var(--red-primary, #f0050d) !important;
        display: inline-grid !important;
        place-items: center !important;
        font-size: 1.35rem !important;
        margin-left: 2px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
    }
}

@media (max-width: 859.98px) {
    /* Cajón lateral del menú público con márgenes internos limpios */
    .pub-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(345px, 90vw) !important;
        height: 100dvh !important;
        z-index: 2150 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 14px 28px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: -16px 0 42px rgba(15, 23, 42, 0.3) !important;
        transform: translateX(105%) !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        gap: 6px !important;
    }

    .pub-menu.show {
        transform: translateX(0) !important;
    }

    /* Cabecera superior del menú móvil bien separada */
    .pub-dh {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 -14px 8px !important;
        padding: 15px 18px !important;
        background: #0f172a !important;
        color: #ffffff !important;
        border-bottom: 2px solid var(--red-primary, #f0050d) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
    }

    .pub-dh b {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .pub-dh button {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        display: inline-grid !important;
        place-items: center !important;
        font-size: 0.95rem !important;
        cursor: pointer !important;
    }

    /* Cada ítem del menú con margen propio y bordes redondeados (nunca pegado al borde) */
    .pub-mi {
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        box-sizing: border-box !important;
    }

    .pub-ml {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 15px !important;
        font-size: 14.2px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        transition: all 0.18s ease !important;
    }

    .pub-ml > .bi:first-child {
        font-size: 1.05rem !important;
        width: 22px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    .pub-ml .chev {
        margin-left: auto !important;
        font-size: 0.82rem !important;
    }

    .pub-ml.active,
    .pub-ml.active:hover,
    .pub-mi.open > .pub-ml.active {
        background: var(--red-primary, #f0050d) !important;
        border-color: var(--red-primary, #f0050d) !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(240, 5, 13, 0.25) !important;
    }

    .pub-mi.open > .pub-ml:not(.active) {
        background: #fff1f2 !important;
        border-color: #fecdd3 !important;
        color: var(--red-primary, #f0050d) !important;
    }

    /* Submenús desplegables en móvil ordenados en tarjeta interna con sangría limpia */
    .pub-sub,
    .pub-sub.wide {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
        box-sizing: border-box !important;
        margin: 6px 0 4px !important;
        padding: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 3px solid var(--red-primary, #f0050d) !important;
        border-radius: 12px !important;
        box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .pub-mi.open > .pub-sub {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    /* Para los 23 distritos (.pub-sub.wide) en móvil: grilla limpia de 2 columnas con tarjetas separadas */
    .pub-mi.open > .pub-sub.wide {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .pub-sub a {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 9px 11px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.07) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .pub-sub.wide a {
        padding: 8px 9px !important;
        gap: 7px !important;
    }

    .pub-sub a > i {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0 !important;
    }

    .pub-sub.wide a > i {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.82rem !important;
    }

    .pub-sub a b {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .pub-sub.wide a b {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .pub-sub a small {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }
}

/* ==========================================================================
   V42: SECCIÓN PÚBLICA DE HISTORIAL Y HEMEROTECA (20 INICIALES -> 100 EN 100)
   ========================================================================== */
.ec-historial-publico-section {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top: 4px solid #0f172a;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ec-historial-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.ec-historial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-historial-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--red-primary, #f0050d);
    border-radius: 12px;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ec-historial-item:hover {
    background: #fffafa;
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.ec-historial-item__date {
    flex: 0 0 115px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px dashed #cbd5e1;
    padding-right: 12px;
}
.ec-historial-item__date strong {
    font-size: 12.5px;
    color: #0f172a;
}
.ec-historial-item__date small {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 700;
}

.ec-historial-item__main {
    flex: 1 1 auto;
    min-width: 0;
}

.ec-historial-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 3px;
}
.ec-historial-item__cat {
    font-weight: 800;
    color: var(--red-primary, #f0050d);
    text-transform: uppercase;
}
.ec-historial-item__dist {
    font-weight: 700;
    color: #0f172a;
}

.ec-historial-item__title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.35;
}
.ec-historial-item__title a {
    color: #0f172a;
    text-decoration: none;
}
.ec-historial-item__title a:hover {
    color: var(--red-primary, #f0050d);
    text-decoration: underline;
}

.ec-historial-item__desc {
    font-size: 12.5px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.ec-historial-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 767.98px) {
    .ec-historial-publico-section {
        padding: 14px 12px;
    }
    .ec-historial-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .ec-historial-item__date {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: 0;
        border-bottom: 1px dashed #e2e8f0;
        padding-right: 0;
        padding-bottom: 6px;
    }
    .ec-historial-item__action {
        width: 100%;
    }
    .ec-historial-item__action a {
        width: 100%;
        justify-content: center;
        display: inline-flex;
    }
    .ec-historial-footer button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   V44: INTERFAZ TIKTOK FULL-SCREEN VERTICAL SCROLL-SNAP EN CELULARES
   ========================================================================== */
.ec-tiktok-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99995 !important;
    background: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.ec-tiktok-overlay.open {
    display: block !important;
}

.ec-tiktok-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.ec-tiktok-topbar__tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.ec-tiktok-tab {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2.5px solid #ff0000;
    padding-bottom: 3px;
}

.ec-tiktok-counter {
    background: rgba(255, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.ec-tiktok-skip-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

/* Contenedor Scroll-Snap vertical idéntico a TikTok */
.ec-tiktok-feed {
    width: 100vw;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
}
.ec-tiktok-feed::-webkit-scrollbar {
    display: none;
}

.ec-tiktok-slide {
    position: relative;
    width: 100vw;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000000;
    overflow: hidden;
    user-select: none;
}

.ec-tiktok-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ec-tiktok-iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    pointer-events: none;
}

/* Escudo táctil que permite deslizar hacia abajo con el dedo sobre cualquier parte del video */
.ec-tiktok-gesture-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
    touch-action: pan-y;
    cursor: pointer;
}

/* Riel vertical derecho estilo TikTok */
.ec-tiktok-right-rail {
    position: absolute;
    right: 10px;
    bottom: 135px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ec-tiktok-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000 0%, #991b1b 100%);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    text-decoration: none;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.ec-tiktok-avatar__plus {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0000;
    background: #ffffff;
    border-radius: 50%;
    font-size: 0.95rem;
    line-height: 1;
}

.ec-tiktok-rail-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}
.ec-tiktok-rail-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}
.ec-tiktok-rail-btn.is-sound-active .ec-tiktok-rail-btn__icon {
    background: rgba(21, 128, 61, 0.9);
    border-color: #86efac;
}
.ec-tiktok-rail-btn small {
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Bloque inferior estilo TikTok con usuario, título y barra de audio */
.ec-tiktok-bottom-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 28px 70px 14px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.95) 100%);
    color: #ffffff;
    pointer-events: none;
}

.ec-tiktok-channel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ec-tiktok-handle {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.ec-tiktok-verified {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fca5a5;
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid rgba(255, 0, 0, 0.5);
    padding: 1px 7px;
    border-radius: 999px;
}

.ec-tiktok-caption {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.ec-tiktok-music-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-tiktok-bottom-skip-btn {
    pointer-events: auto;
    width: calc(100% + 56px);
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ec-tiktok-bottom-skip-btn:active {
    background: #ffffff;
    color: #0f172a;
}

/* ==========================================================================
   V46: PROTECCIÓN ANTI-DESBORDAMIENTO EN TARJETAS DE HISTORIAL Y META
   ========================================================================== */
.ec-historial-item {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.ec-historial-item__main {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.ec-historial-item__meta {
    max-width: 100% !important;
    overflow: hidden !important;
}
.ec-historial-item__src {
    max-width: 240px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    vertical-align: bottom !important;
}
.ec-historial-item__title,
.ec-historial-item__desc {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
