

/* ================ Layout ================ */

:root {
    /* Bases */
    --color-orange: #ff6c1c;
    --color-whatsapp: #25d366;
    --color-telegram: #24A1DE;

    /* Bases Grey */
    --color-grey-0: #ffffff;
    --color-grey-1: #fafafa;
    --color-grey-2: #f0f1f2;
    --color-grey-3: #e6e8eb;
    --color-grey-4: #cbd5e0; 
    --color-grey-5: #99a3aa;
    --color-grey-6: #77808b;
    --color-grey-7: #5a6066;
    --color-grey-8: #525659;
    --color-grey-9: #2d3748;
    --color-grey-10: #1a202c;

    /* Identidad Visual */
    --epg-primary: #ff7800;
    --epg-gradient: linear-gradient(135deg, #ff7800 0%, #ff9500 100%);
    --epg-live-dot: #ff0844;
    --epg-shadow: 4px 4px 25px 4px rgba(0,0,0,0.05);
    --epg-shadow-hover: 4px 4px 25px 4px rgba(0,0,0,0.19);
    --radius-pill: 20px;
    
    
    /* Superficies */
    --epg-card-bg: #ffffff;
    --epg-card-hover: #fafafa;
    --epg-onair-border: #ff7800;
    --epg-onair-glow: rgba(255, 120, 0, 0.4);

    /* Tipografías */
    --tipografia-titulos: 'Space Grotesk', sans-serif;
    --tipografia-parrafos: 'Inter Tight', sans-serif;
}
    

/* ================ Tamaño Fuentes ================ */

/* MOBILE (Base: menos de 768px) */

:root {
    --text-1: 0.7rem;     
    --text-2: 0.75rem;    
    --text-3: 0.875rem;   
    --text-4: 1rem;       
    --text-5: 1.1rem;     
    --text-6: 1.25rem;    
    --text-7: 1.4rem;
    --text-8: 1.6rem;     
    --text-9: 1.8rem;     
    --text-10: 2rem;      
    --text-11: 2.5rem;    
    --text-12: 3rem;      
}

/* TABLET / MEDIUM (768px a 991px) */

@media (min-width: 768px) {
    :root {
        --text-1: 0.75rem;
        --text-2: 0.8rem;
        --text-3: 0.9rem;
        --text-4: 1.05rem;
        --text-5: 1.15rem;
        --text-6: 1.35rem;
        --text-7: 1.6rem;
        --text-8: 1.9rem;
        --text-9: 2.4rem;
        --text-10: 2.8rem;
        --text-11: 3.5rem;
        --text-12: 4.5rem;
    }
}

/* DESKTOP (992px en adelante) */

@media (min-width: 992px) {
    :root {
        --text-1: 0.75rem;    /* 12px */
        --text-2: 0.875rem;   /* 14px */
        --text-3: 1rem;       /* 16px */
        --text-4: 1.125rem;   /* 18px */
        --text-5: 1.25rem;    /* 20px */
        --text-6: 1.5rem;     /* 24px */
        --text-7: 1.875rem;   /* 30px */
        --text-8: 2.25rem;    /* 36px */
        --text-9: 3rem;       /* 48px */
        --text-10: 3.75rem;   /* 60px */
        --text-11: 4.5rem;    /* 72px */
        --text-12: 6rem;      /* 96px */
    }
}

/* ================ Estilos base ================ */

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

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}

audio, canvas, video {
  display: inline-block;
}

body {
    font-family: var(--tipografia-parrafos);
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--color-grey-10);
    line-height: 1.5;
    background-color: var(--color-grey-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    font-style: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus,
p a:hover,
p a:focus {
    color: var(--color-grey-7);
    outline: none;
}

p {
    overflow-wrap: break-word;
    margin-bottom: 1em;
}

p a {
    color: var(--color-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

iframe {
    margin-bottom: 40px !important;
    max-width: 100%;
    border-radius: 0;
    display: block;
}

p iframe {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tipografia-titulos);
    color: var(--color-grey-10);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

::selection {
    background-color: var(--color-orange);
    color: var(--color-grey-0);
}

hr.s-b {
    border: 0;
    border-top: 2px solid var(--color-grey-4);
    opacity: 1;
    margin: 1rem 0;
}

.sticky-side {
    position: sticky;
    top: 120px;
    z-index: 10;
    width: 100%;
}

.site-main { 
    margin-bottom: 0 !important; 
    padding-bottom: 0 !important; 
}
.my-5 { 
    margin-bottom: 0 !important; 
    padding-bottom: 1rem; 
}

/* Image Global */
.card-img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
    border-radius: 7px;
}
.card-medium {
    display: block;
    width: 100%;
    height: 390px;
    max-height: 50vh;
    object-fit: cover;
    backface-visibility: hidden;
    object-position: center;
    border-radius: 7px;
}

/* ================ Utilidades ================ */



.row {
    overflow: visible;
}

/* Fondo publicitario con patrón sutil */
.bg-pub {
    background-color: var(--color-grey-4, #f5f5f5);
    background-image: repeating-linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
}

.bg-pub .ad-ldb {
    display: flex;
    justify-content: center;
    padding: 1em 0; 
}

/* REGLAS MÓVILES (Hasta 767px) */
.ad-sidebar-1 ins,
.ad-sidebar-2 ins,
.ad-in-content ins {
    display: block !important;
    width: 300px;
    min-height: 250px;
    margin: 15px auto;
}

.ad-header ins {
    display: block !important;
    width: 100%; 
    min-height: 50px;
    margin: 0 auto;
}

/* REGLAS PC (A partir de 768px) */
@media (min-width: 768px) {
    .ad-header ins {
        width: 980px;
        min-height: 250px;
    }

    .ad-sidebar-1 ins {
        width: 300px;
        min-height: 250px;
        margin: .2em 0; 
    }

    .ad-sidebar-2 ins {
        width: 300px;
        min-height: 600px;
        margin: .1em 0; 
    }

    .ad-in-content ins {
        width: 970px;
        min-height: 90px;
        margin: .1em 0; 
    }
}


/* ================ Navbars ================ */

/* Navbar principal */
.navbar-main {
    background-color: var(--color-grey-2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.11);
    position: relative;
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-main .main-logo {
    width: 350px;
    height: auto !important;
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    float: left;
}

.navbar-main .btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

.navbar-main .btn-menu {
    color: var(--color-orange);
    font-size: var(--text-9);
}

.navbar-main .nav-social {
    color: var(--color-grey-6);
    font-size: var(--text-6);
}

.navbar-main .nav-social .icon-rs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-main .nav-social .icon-rs a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Navbar */
@media only screen and (max-width: 768px) {
    .navbar-main .btn-search {
        color: var(--color-orange);
        font-size: 1.4em;
    }

    .navbar-main .main-logo {
        width: 220px;
        top: 20px;
    }
}

/* Menú principal */
.menu-bar {
    background: var(--color-base-white);
    text-transform: uppercase;
    font-family: var(--tipografia-principal);
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
}

.menu-bar ul {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.menu-bar a {
    text-decoration: none;
    color: var(--color-orange);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.menu-bar a:hover,
.menu-bar a:focus {
    color: var(--color-orange);
    outline: none;
}

.menu-bar a.active {
    color: var(--color-orange);
}

.menu-bar .nav-link {
    font-size: var(--text-2);
    font-weight: 600;
    padding-right: 18px !important;
    color: var(--color-grey-7);
}

.menu-bar li {
    position: relative;
}

.menu-bar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--color-grey-1);
    list-style: none;
    line-height: 0.9rem;
    border-radius: 5px;
    padding: 0.825rem 1.25rem;
    margin: 0;
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: 0.5s slideup;
}

.menu-bar li:hover > .dropdown-menu {
    display: block;
}

.menu-bar .dropdown-menu li {
    display: block;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.menu-bar .dropdown-menu li a {
    display: block;
    white-space: nowrap;
    color: var(--color-grey-6);
    padding: 0.45rem 0.5rem;
}

.menu-bar .dropdown-menu li a:hover,
.menu-bar .dropdown-menu li a:focus {
    color: var(--color-orange);
    outline: none;
}

.menu-bar li.active > a {
    border: 2px solid var(--color-grey-1);
    border-radius: 10px;
}

.menu-bar .dropdown-menu .dropdown-menu {
    display: none;
    top: 0;
    left: 100%;
}

.menu-bar .dropdown-menu li:hover > .dropdown-menu {
    display: block;
}

/* Animación dropdown */
@keyframes slideup {
    from {
        transform: translateY(10%);
        opacity: 0;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

/* Formulario de búsqueda en menú */
.menu-bar .search-form-menu .form-control {
    display: block;
    color: var(--color-grey-7);
    background-color: var(--color-grey-1);
    border-radius: 0.4em;
    padding: 1px 10px 1px;
    border: 1px solid var(--color-grey-4);
    text-transform: uppercase;
    width: 200px;
    font-size: 0.85em;
    font-family: var(--tipografia-principal);
}

.menu-bar .search-form-menu input:focus {
    border-color: var(--color-grey-3);
    box-shadow: none;
}

.menu-bar .search-form-menu input::placeholder {
    color: var(--color-grey-4) !important;
    text-transform: uppercase;
    font-size: 1em;
}

/* Menú móvil - offcanvas */
.menu-mob ul {
    padding: 0;
}

.menu-mob a {
    text-decoration: none;
    color: inherit;
}

.menu-mob li {
    padding: 12px 20px;
    font-weight: 600;
    font-size: var(--text-3);
    text-transform: uppercase;
    font-family: var(--tipografia-principal);
    border-bottom: 1px solid var(--color-grey-3);
    transition: background-color 0.3s;
    list-style: none;
}

.menu-mob li:hover {
    background-color: var(--color-grey-1);
}

.btn-close {
    font-size: 1em;
}

.btn-close:focus {
    box-shadow: none;
}

/* Redes sociales en menú móvil */
.canvas-social {
    color: var(--color-grey-6);
    font-size: var(--text-3);
}

.canvas-social .icon-rs {
    display: flex;
    justify-content: center;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.canvas-social .icon-rs a {
    text-decoration: none;
    color: inherit;
}

/* Offcanvas sidebar */
.offcanvas-header {
    box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, 0.17);
}

.offcanvas.offcanvas-start {
    width: 22%;
    flex-direction: column;
    overflow-y: auto;
}

/* Responsive menú móvil */
@media only screen and (max-width: 768px) {
    .menu-mob li {
        padding: 10px 15px;
        font-size: 0.9em;
        font-weight: 500;
        border-bottom: 2px solid var(--color-grey-3);
    }

    .offcanvas.offcanvas-start {
        width: 89%;
    }

    .menu-bar {
        display: none;
    }
}

/* ================ Homepage ================ */

.hp-vw .card-img {
    height: 270px;
    aspect-ratio: auto;
    margin-bottom: 12px;
    border-radius: 7px;
}

.hp-vw .t-m,
.hp-p .t-m {
    font-size: var(--text-10);
    font-weight: 500;
    color: var(--color-grey-6);
    text-transform: uppercase;
    letter-spacing: -1.2px;
}
.hp-p .t-aa, 
.hp-p .t-ab, 
.hp-p .t-ac {
    font-weight: initial;
    margin-top: 0;
    overflow-wrap: break-word;
}

.hp-p .t-aa {
    font-size: var(--text-8);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.hp-p .t-ab {
    font-size: var(--text-6);
    line-height: 1.14;
    letter-spacing: -1.2px;
}

.hp-p .t-ac {
    font-size: var(--text-4);
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.hp-vw .vw-pst {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.hp-vw .t-flex {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hp-vw .v-num {
    flex-shrink: 0;
    min-width: 35px;
    font-size: 60px;
    font-weight: 800;
    color: #ccc;
    line-height: 0.9;
    margin-top: 5px;
}

.hp-vw .tit-vw {
    flex-grow: 1;
    margin: 0;   
    font-size: var(--text-5);
    font-weight: initial;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.color-inherit {
    color: inherit;
}


/* ================ Single ================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.s-pst .meta {
    max-width: 970px;
    width: calc(100% - 40px);
    margin: 14px auto 0;
    font-size: var(--text-1);
}
.s-pst .autor, .s-pst .date {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 500;
}
.s-pst .date {
    font-weight: initial;
}
.s-pst .cat {
    display: inline-block;
    font-weight: 600;
    line-height: 1;
    background-color: #dadada;
    padding: 4px 7px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    vertical-align: baseline;
}
.s-pst h1 {
    font-size: var(--text-9);
    font-weight: initial;
    line-height: 1.1;
    padding-top: 5px;
    letter-spacing: -1.8px;
    max-width: 970px;
    width: calc(100% - 40px);
    margin: 24px auto 0;
}
.s-pst h2 {
    font-size: var(--text-8);
    font-weight: 600;
    margin-top: 50px;
    letter-spacing: -1.1px;
    line-height: 1.2;
    display: flex;
    grid-gap: 12px;
}
.s-pst .social {
    font-size: var(--text-6);
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 970px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}
.s-pst .social a {
    color: var(--color-grey-6);
    transition: opacity 0.3s;
}
.s-pst .social a:hover {
    opacity: 0.6;
}
.s-pst .img-portada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    border-radius: 5px;
    aspect-ratio: 16/9;
    -webkit-box-shadow: 0px 8px 16px -8px rgba(0, 0, 0, 0.30), 0px 13px 27px -5px rgba(50, 50, 93, 0.25);
    box-shadow: 0px 8px 16px -8px rgba(0, 0, 0, 0.30), 0px 13px 27px -5px rgba(50, 50, 93, 0.25);
}
.s-pst .img-portada img {
    width: 100% !important;
}
.s-pst .image-credit-wrapper {
    position: relative;
}
.s-pst .image-credit-wrapper .image-credit {
    position: absolute;
    right: 0px;
    bottom: 0px;
}
.s-pst .image-credit {
    background: rgba(0, 0, 0, .7);
    color: var(--color-grey-1);
    display: inline-block;
    font-size: var(--text-md);
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    position: absolute;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.s-pst figcaption {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}
.s-pst .post-content {
    margin: 35px 5em .5em 5em;
}
.s-pst .post-content p {
    line-height: 1.62em;
    font-size: var(--text-5);
    font-weight: 400;
    margin: 25px 0;
}
.s-pst .post-content strong {
    font-weight: 600;
}
.s-pst .post-content p a {
    color: var(--color-orange);
    border-bottom: 2px dotted var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}
.s-pst .post-content p a:hover,
.s-pst .post-content p a:focus {
    color: var(--color-orange);
    outline: none;
}
.s-pst .the-post-tags {
    margin: 35px 2em .5em 2em;
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
    font-weight: initial;
    text-transform: uppercase;
}
.s-pst .the-post-tags:last-child {
    margin-bottom: 20px;
    color: var(--color-grey-4);
}
.s-pst .the-post-tags a {
    background-color: var(--color-grey-3)!important;
    color: var(--color-grey-7) !important;
    display: inline-block;
    text-decoration: none !important;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 4px 12px;  
    font-size: var(--text-1);
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.5;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.s-pst .the-post-tags a:hover {
    background-color: var(--color-grey-4)!important;
    color: var(--color-grey-7) !important;
    transform: translateY(-2px);
}
.s-pst .the-post-tags a::before {
    content: '# ';
    color: var(--color-orange);
    font-weight: 600;
}
.s-pst .post-content ul {
    list-style: disc inside;
    margin-bottom: 2.74rem;
    padding-left: 0;
}

.s-pst .post-content ol {
    list-style: decimal inside;
    margin-bottom: 2.74rem;
    padding-left: 0.6rem;
}

.s-pst .post-content li {
    list-style: inherit;
    padding-left: 0.2rem;
    margin-bottom: 0.9rem;
    font-size: 1.23rem;
}
.s-pst .wp-element-caption {
    font-size: var(--text-3);
    font-weight: 500;
    padding-top: 5px;
    padding-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: var(--color-grey-3);
}
.s-pst .wp-block-image img {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.s-pst .embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 38px;
    padding-bottom: 62px;
}
.s-pst .embed-responsive .embed-responsive-item,
.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.s-pst .embed-responsive-16by9 {
    padding-bottom: 56.25%;
}
.s-pst .btn-whatsapp {
    background-color: var(--color-whatsapp);
    border-radius: 8px;
    margin: 3px;
    padding: 5px 10px 7px;
}
.s-pst .btn-telegram {
    background-color: var(--color-telegram);
    border-radius: 8px;
    margin: 3px;
    padding: 5px 10px 7px;
}
.s-pst .dest {
    display: flex;
    gap: 2px;
    background-color: transparent;
    align-items: center;
}
.s-pst .dest .img-wrap {
    width: 340px;
    min-width: 340px;
    height: 235px;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}
.s-pst .dest .img-wrap img {
    width: 100%;
    height: 100%;
    transition: none;
    filter: none;
}
.s-pst .dest .title {
    font-size: 1.5rem;
    line-height: 1.13;
    font-weight: initial;
    margin-top: 0;
    margin-bottom: 12px;
}
.s-pst .tit-aside {
    font-size: var(--text-4);
    font-weight: initial;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.s-pst .dest-md {
    display: flex;
    gap: 2px;
    background-color: transparent;
    align-items: center;
}
.s-pst .dest-md .img-wrap {
    width: 100px;
    min-width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}
.s-pst .dest-md .img-wrap img {
    width: 100%;
    height: 100%;
    transition: none;
    filter: none;
}
.s-pst .dest-md .title {
    font-size: var(--text-3);
    font-family: var(--tipografia-titulos);
    line-height: 1.15;
    font-weight: initial;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 12px;
}
.s-pst .related-news-block {
    margin-top: 30px;
    padding-top: 15px;
}

.s-pst .related-news-block .related-news-title {    
    font-size: var(--text-8);
    font-weight: 500;
    color: var(--color-grey-6);
    text-transform: uppercase;
    letter-spacing: -1.2px;
    position: relative;
    margin-bottom: 20px;
}

.s-pst .related-news-block .title-bar-separator {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 50%; 
    transform: translateY(-50%); 
    width: 8px;
    height: 100%;
    background-color: var(--color-orange);
    max-height: 28px;
    border-radius: 4px;
}

.s-pst .related-news-block .latest-news-list.styled-list-orange {
    list-style: none;
    padding-left: 0;
}

.s-pst .related-news-block .latest-news-list.styled-list-orange li {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.1;
    padding-left: 1.5em;
    position: relative;
}

.s-pst .related-news-block .latest-news-list.styled-list-orange li::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f105";
    position: absolute;
    left: 0;
    top: 50%; 
    transform: translateY(-50%); 
    font-size: var(--text-4);
    color: var(--color-orange);
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
}

.s-pst .related-news-block .latest-news-list.styled-list-orange li a {
    color: var(--color-text);
    text-decoration: none; 
    font-size: var(--text-3);
    font-weight: initial;
    line-height: 1.3;
}

.s-pst .related-news-block .latest-news-list.styled-list-orange li a:hover {
    color: var(--color-grey-5);
    text-decoration: none; 
}
@media only screen and (max-width: 768px){
    .s-pst h1 {
        font-size: var(--text-10);
        line-height: 1.1;
        padding-top: 5px;
        letter-spacing: -1.5px;
    }
    .s-pst h2 {
        font-size: var(--text-8);
        font-weight: 600;
        margin-top: 30px;
        letter-spacing: -1.1px;
        line-height: 1.2;
        display: flex;
        grid-gap: 12px;
    }
    .s-pst .social {
        font-size: var(--text-7);
        gap: 25px;
    }
    .s-pst .image-credit {
        font-size: var(--text-3);
        font-weight: 500;
        padding: 3px 10px;
        position: absolute;
    }
    .s-pst .post-content {
        margin: 0;
    }
    .s-pst .post-content p {
        font-size: var(--text-5);
    }
    .s-pst .the-post-tags {
        margin: 0;
        display: flex;
        margin-top: 32px;
    }
    .s-pst .the-post-tags a {
        font-size: var(--text-3);
        letter-spacing: .03em;
        line-height: 1.5;
    }
    .s-pst .wp-element-caption {
        font-size: var(--text-3);
        font-weight: 500;
        padding-top: 5px;
        padding-bottom: 5px;
        text-transform: uppercase;
        text-align: center;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        background-color: var(--color-grey-3);
    }
    .s-pst .wp-block-image img {
        box-sizing: border-box;
        height: auto;
        max-width: 100%;
        vertical-align: bottom;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    .s-pst .embed-responsive {
        position: relative;
        display: block;
        height: 0;
        padding: 0;
        overflow: hidden;
        margin-top: 38px;
        padding-bottom: 62px;
    }
    .s-pst .embed-responsive .embed-responsive-item,
    .embed-responsive iframe {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    .s-pst .embed-responsive-16by9 {
        padding-bottom: 56.25%;
    }
    .s-pst .tit-aside {
        font-size: var(--text-7);
        font-weight: initial;
        letter-spacing: 1.3px;
        text-transform: uppercase;
    }
    .s-pst .dest-md {
        display: flex;
        gap: 2px;
        background-color: transparent;
        align-items: center;
    }
    .s-pst .dest-md .img-wrap {
        min-width: 153px;
        height: 100px;
    }
    .s-pst .dest-md .title {
        font-size: var(--text-5);
        margin-bottom: 12px;
    }
    .s-pst .related-news-block .related-news-title {    
        font-size: var(--text-10);
        font-weight: 600;
    }
    .s-pst .related-news-block .latest-news-list.styled-list-orange li::before {
        font-size: var(--text-6);
        width: auto;
        height: auto;
    }

    .s-pst .related-news-block .latest-news-list.styled-list-orange li a {
        color: var(--color-text);
        text-decoration: none; 
        font-size: var(--text-4);
        font-weight: initial;
        line-height: 1.37;
    }
}


/* ================ Pages ================ */

.pg .pg-tit {
    font-size: var(--text-9);
    font-weight: 600;
    color: var(--color-grey-8);
    margin-bottom: -3px;
    text-transform: uppercase;
}

.pg h2 {
    font-size: var(--text-8);
    font-weight: 600;
    margin-top: 50px;
    letter-spacing: -1.1px;
    line-height: 1.2;
    display: flex;
    gap: 12px;
}

.pg .img-portada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: 16/9;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.3), 0 13px 27px -5px rgba(50, 50, 93, 0.25);
}
.pg .img-portada img {
    width: 100% !important;
}
.pg .image-credit-wrapper {
        position: relative;
    }
.pg .image-credit {
    background: rgba(0, 0, 0, .7);
    color: var(--color-grey-1);
    display: inline-block;
    font-size: var(--text-md);
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    position: absolute;
    right: 0;
    bottom: 0;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.pg .post-content {
    margin: 35px 5em .5em 5em;
}
.pg .post-content p {
    line-height: 1.62em;
    font-size: var(--text-5);
    font-weight: 400;
    margin: 25px 0;
}
.pg .post-content strong {
    font-weight: 600;
}
.pg .post-content p a {
    color: var(--color-orange);
    border-bottom: 2px dotted var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}
.pg .post-content p a:hover,
.pg .post-content p a:focus {
    color: var(--color-orange);
    outline: none;
}
.pg .post-content ul {
    list-style: disc inside;
    margin-bottom: 2.74rem;
    padding-left: 0;
}
.pg .post-content ol {
    list-style: decimal inside;
    margin-bottom: 2.74rem;
    padding-left: 0.6rem;
}
.pg .post-content li {
    list-style: inherit;
    padding-left: 0.2rem;
    margin-bottom: 0.9rem;
    font-size: 1.23rem;
}
.pg .tit-aside {
    font-size: var(--text-4);
    font-weight: initial;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.pg .dest-md {
    display: flex;
    gap: 2px;
    background-color: transparent;
    align-items: center;
}
.pg .dest-md .img-wrap {
    width: 100px;
    min-width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}
.pg .dest-md .img-wrap img {
    width: 100%;
    height: 100%;
    transition: none;
    filter: none;
}
.pg .dest-md .title {
    font-size: var(--text-3);
    font-family: var(--tipografia-titulos);
    line-height: 1.15;
    font-weight: initial;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 12px;
}
@media only screen and (max-width: 768px) {
    .pg .post-content {
        margin: 35px 1em .5em 1em;
    }
}


/* ================ Archives & Search ================ */

.arch .arch-tit {
    font-size: var(--text-9);
    font-weight: 600;
    color: var(--color-grey-8);
    margin-bottom: -3px;
    text-transform: uppercase;
}
.arch .search-tit {
    font-size: var(--text-8);
    font-weight: 600;
    color: var(--color-grey-8);
    margin-bottom: -3px;
    text-transform: uppercase;
}
.arch-sub {
    font-size: var(--text-3);
    font-weight: 500;
    color: var(--color-grey-6);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.arch .card-post {
    display: flex;
    align-items: center;
    background-color: transparent;
}
.arch .card-post .card-img-custom {
    width: 350px;
    min-width: 350px;
    height: 230px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 5px;
    object-fit: cover;
}
.arch .t-a, 
.arch .t-b, 
.arch .t-c {
    font-weight: initial;
    margin-top: 0;
    overflow-wrap: break-word;
}

.arch .t-a {
    font-size: var(--text-8);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.arch .t-b {
    font-size: var(--text-5);
    line-height: 1.14;
    margin-bottom: 5px;
    letter-spacing: -1.2px;
}

.arch .t-c {
    font-size: var(--text-6);
    line-height: 1.1;
    letter-spacing: -0.9px;
}

.arch .card-post .fecha {
    font-size: 1em;
}


@media (max-width: 759px) {
    .arch .card-post .card-img-custom {
        width: 155px;
        min-width: 155px;
        height: 140px;
        margin-right: 15px;
    }
    .arch .arch-tit {
        font-size: var(--text-11);
        margin-bottom: 3px;
        text-transform: uppercase;
    }
    .arch-sub {
        font-size: var(--text-3);
        font-weight: 500;
        color: var(--color-grey-6);
        letter-spacing: 2px;
        text-transform: uppercase;
    }
    .arch .search-tit {
        font-size: var(--text-9);
    }
    .arch .t-a, .arch .t-b {
        font-size: var(--text-8);
        letter-spacing: -1.2px;
    }
    .arch .t-c {
        font-size: var(--text-6);
        line-height: 1.1;
        letter-spacing: -0.9px;
    }
    .arch .card-post .fecha {
        font-size: .9em;
    }
}



/* ================ Cartelera ================ */

/* Logos */

.cartelera .logo-list {
    margin: 0 120px;
}

.cartelera .logo-list .channels {
    width: 67px;
    padding: 4px 8px;
    margin: 0 5px 8px 0;
    background-color: var(--color-grey-2);
    border: 2px solid var(--color-grey-4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cartelera .logo-list .channels:hover {
    transform: scale(1.08);
}

.cartelera .custom-btn {
    background-color: #ff8800; 
    border: none;
}

.cartelera .custom-btn:hover {
    background-color: #e67a00;
    color: white;
}

/* header canal */

.epg-header-section {
    text-align: center;
    margin-bottom: 30px;
}

.epg-header-section .ch-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.epg-header-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--epg-text-primary);
    margin-bottom: 20px;
}

/* Badges señales centrado */

.cart-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: var(--epg-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.3);
}

/* Disclamer */


/* Disclaimer amarillo */
.epg-disclaimer-yellow {
    position: relative;
    background: linear-gradient(135deg, #f9a825 0%, #f57f17 100%);
    border-left: 4px solid #e65100;
    border-radius: 12px;
    padding: 8px 20px;
    margin: 21px 0 -20px;
    box-shadow: 0 4px 12px rgba(249, 168, 37, 0.3);
    overflow: hidden;
}

.epg-disclaimer-yellow-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.epg-disclaimer-yellow-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.epg-disclaimer-yellow-text {
    flex: 1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.epg-disclaimer-yellow-badge {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .epg-disclaimer-yellow {
        padding: 14px 16px;
        margin: 16px 0;
    }
    
    .epg-disclaimer-yellow-content {
        gap: 10px;
    }
    
    .epg-disclaimer-yellow-text {
        font-size: 13px;
    }
    
    .epg-disclaimer-yellow-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .epg-disclaimer-yellow-badge {
        display: none;
    }
}

/* Base */

.cartelera .cartelera-linea {
    display: flex;
    margin: 20px 0 30px;
    padding: 20px;
    background: var(--epg-card-bg);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--epg-shadow);
    position: relative;
}

.cartelera .cartelera-linea:hover {
    background: var(--epg-card-hover);
    box-shadow: var(--epg-shadow-hover);
    transform: translateY(-2px);
}

/* Clase especial para programa al aire */
.cartelera .cartelera-linea.current-on-air {
    background: #ffffff;
    border: 3px solid #ff7800;
    box-shadow: 0 4px 20px rgba(255, 120, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
}

.cartelera .cartelera-linea.current-on-air::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 120, 0, 0.08) 0%, rgba(255, 149, 0, 0.04) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

/* Imagen del programa */
.cartelera .cartelera-linea .picture16x9 { 
    width: 390px;
    height: 260px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Badge base */
.cartelera .badge-live-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* AL AIRE - Naranja degradado */
.cartelera .badge-live-overlay.air-tag {
    background: linear-gradient(135deg, #ff7800 0%, #ff5500 100%);
    padding: 4px 12px;
}

/* EN VIVO - Rojo degradado */
.cartelera .badge-live-overlay.live-tag {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Texto del badge */
.cartelera .badge-live-overlay span {
    font-size: var(--text-2);
    font-weight: 700;
    padding-top: 1px;
    text-transform: uppercase;
    color: #fff;
}

/* Punto animado (solo para EN VIVO) */
.cartelera .dot-live {
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background-color: #fff;
    animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Contenido */

.cartelera .cartelera-linea .capaPrograma {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cartelera .cartelera-programa h2 {
    font-size: var(--text-6);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: -1px;
    color: var(--epg-text-primary);
}

.cartelera .cartelera-episodio {
    font-size: var(--text-1);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-grey-5);
    letter-spacing: 2px;
    margin-bottom: 7px;
}

/* Timeline */

.cartelera .timeline-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

.cartelera .time-label {
    font-size: var(--text-5);
    font-weight: 500;
    white-space: nowrap;
    color: var(--epg-text-primary);
}

.cartelera .duration-bar-container {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 10px;
    overflow: hidden;
}

.cartelera .progress-fill {
    height: 100%;
    background: var(--epg-gradient);
    width: var(--progress, 0%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Metadata */

.cartelera .meta-data {
    font-size: var(--text-2);
    font-weight: 500;
    color: var(--color-grey-5);
    margin: 6px 0 12px;
    display: flex;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-items: center;
    gap: 8px;
}

.cartelera .meta-data::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--epg-primary);
}

.cartelera .actions {
    margin-top: auto;
}

.cartelera .btn-info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px;
    border: 1.5px solid var(--color-grey-4);
    border-radius: 10px;
    font-size: var(--text-3);
    font-weight: 700;
    color: var(--color-grey-6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cartelera .btn-info-link:hover {
    background: var(--epg-gradient);
    border-color: transparent;
    color: #fff;
    transform: scale(1.05);
}

.cartelera .btn-info-link .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    background: currentColor;
    color: var(--epg-card-bg);
}

/* Sinopsis */

.cartelera .cartelera-sinopsis {
    display: none;
    font-size: var(--text-2);
    color: var(--color-grey-9);
    line-height: 1.4;
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .cartelera .cartelera-sinopsis {
        display: block;
    }
}

/* Tabs */

.js-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto 30px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.js-tab {
    padding: 8px 30px;
    font-size: var(--text-4);
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border: none !important;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.5s ease;
    position: relative;
    overflow: hidden;
    will-change: color;
    letter-spacing: 0.5px;
}

.js-tab:hover:not(.js-tab--active) {
    color: #666;
    background: rgba(255, 120, 0, 0.08);
}

.js-tab--active {
    background: var(--epg-gradient);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Efecto de ondas al hacer clic */
.js-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.js-tab:active::before {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0.3s;
}

/* Fecha entrada */

.epg-date-bar {
    margin: 55px 0 20px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 120, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.epg-date-bar .date-content {
    background: linear-gradient(135deg, 
        #ff7800 0%, 
        #ff6b00 25%, 
        #ff5500 50%, 
        #e63946 75%, 
        #d63384 90%, 
        #c72c7a 100%
    );
    padding: 8px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.epg-date-bar .date-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

.epg-date-bar .date-full {
    font-size: var(--text-5);
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Estados */

.epg-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

/* Estados */

.epg-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

/* Spinner */

.epg-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 120, 0, 0.15);
    border-top-color: #ff7800;
    border-radius: 50%;
    animation: epg-spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.2);
}

@keyframes epg-spin {
    to {
        transform: rotate(360deg);
    }
}


.epg-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7800 0%, #ff9500 100%);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 120, 0, 0.25);
    animation: epg-pulse 2s ease-in-out infinite;
}

@keyframes epg-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.epg-empty-message {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.epg-empty-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #888;
    text-align: center;
}

.epg-update-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--epg-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.epg-update-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    .epg-header-section h1 {
        font-size: 24px;
    }

    .epg-header-section .ch-logo {
        max-width: 140px;
    }

    .cart-bar {
        gap: 8px;
    }

    .cart-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .cartelera .cartelera-linea {
        padding: 15px;
        margin: 15px 0;
    }

    .cartelera .cartelera-linea .picture16x9 {
        width: 145px;
        height: 120px;
        margin-right: 12px;
    }

    .cartelera .cartelera-programa h2 {
        font-size: var(--text-6);
        line-height: 1.1;
        padding-top: 3px;
        margin-bottom: 3px;
    }

    .cartelera .cartelera-episodio {
        font-size: var(--text-1);
        margin-bottom: 4px;
    }

    .cartelera .time-label {
        font-size: var(--text-4);
    }

    .cartelera .meta-data {
        font-size: var(--text-3);
        margin-top: -2px;
    }

    .cartelera .btn-info-link {
        padding: 2px 10px;
        font-size: 12px;
    }

    /* Tabs mobile */
    .js-tabs {
        gap: 8px;
        padding: 5px;
    }
    
    .js-tab {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Barra de fecha mobile */
    .epg-date-bar {
        margin: 20px 0 15px;
    }

    .epg-date-bar .date-content {
        padding: 15px 20px;
    }

    .epg-date-bar .date-full {
        font-size: 18px;
    }

    /* Estados mobile */
    .epg-state-container {
        padding: 40px 20px;
        min-height: 250px;
    }

    .epg-loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }

    .epg-empty-icon {
        width: 65px;
        height: 65px;
        font-size: 38px;
        margin-bottom: 15px;
    }

    .epg-empty-message {
        font-size: 18px;
    }

    .epg-empty-subtitle {
        font-size: 14px;
    }

    .epg-update-indicator {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Estilos originales para cartelera */
    .cartelera .logo-list {
        margin: 0;
        padding: 10px 0 13px;
    }
    .cartelera .logo-list .channels {
        width: 12px;
        padding: 7px 4px;
        margin: 8px 3px 0 0;
        background-color: var(--color-secundario);
        transition: all 0.3s ease;
    }
    .logo-list .channels:hover {
        transform: none;
    }
    
    /* Grid de canales en modal */
    .modal-body .logo-list {
        display: grid;
        grid-template-columns: repeat(9, 1fr);
        gap: 10px;
        margin-bottom: 1.5rem;
        padding: 0;
        max-height: 65vh;
        overflow-y: auto;
        padding-right: 8px;
    }
    
    /* Scrollbar personalizado */
    .modal-body .logo-list::-webkit-scrollbar {
        width: 8px;
    }
    
    .modal-body .logo-list::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 10px;
    }
    
    .modal-body .logo-list::-webkit-scrollbar-thumb {
        background: #d0d0d0;
        border-radius: 10px;
    }
    
    .modal-body .logo-list::-webkit-scrollbar-thumb:hover {
        background: #b0b0b0;
    }
    
    /* Items de canal (enlaces) */
    .modal-body .logo-list > a {
        aspect-ratio: 1;
        background: #fff;
        border: 2px solid #e5e5e5;
        border-radius: 10px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        text-decoration: none;
    }
    
    .modal-body .logo-list > a:hover {
        border-color: #ccc;
        transform: scale(1.05);
    }
    
    /* Imágenes dentro de enlaces */
    .modal-body .logo-list > a img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    /* Canal actual (img sin enlace) */
    .modal-body .logo-list > img.channels {
        aspect-ratio: 1;
        background: #fff;
        border: 2px solid #e5e5e5;
        border-radius: 10px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        margin: 0;
        opacity: 0.4;
        filter: grayscale(0.5);
        cursor: default;
        object-fit: contain;
    }
    
    /* No hover en canal actual */
    .modal-body .logo-list > img.channels:hover {
        border-color: #e5e5e5;
        transform: none;
    }
    
    /* Centrar último elemento si está solo */
    .modal-body .logo-list > *:last-child:nth-child(9n+1) {
        grid-column: 5;
    }
    
    /* Modal */
    #ChannelModal .modal-dialog {
        max-width: 600px;
    }
    
    #ChannelModal .modal-content {
        border-radius: 20px;
        border: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    
    #ChannelModal .modal-header {
        border-bottom: 1px solid #eee;
        padding: 1rem 1.5rem;
    }
    
    #ChannelModal .modal-body {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    /* Botón cerrar */
    .btn-close-modal {
        background: #ffc107;
        border: none;
        border-radius: 25px;
        color: #fff;
        font-weight: 600;
        padding: 0.65rem 2.5rem;
        text-transform: uppercase;
        font-size: 0.9rem;
    }
    
    .btn-close-modal:hover {
        background: #ffb300;
        color: #fff;
    }
}

@media (max-width: 576px) {
    .modal-body .logo-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .modal-body .logo-list > *:last-child:nth-child(5n+1) {
        grid-column: 3;
    }
    
    #ChannelModal .modal-dialog {
        max-width: 500px;
    }
}


/* ================ Not Found ================ */


.nofound {
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.nofound h1 {
    font-size: var(--font-15);
    color: var(--color-grey-6);
}
.nofound p {
    font-size: var(--font-3);
}
.nofound .flex-bars {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.nofound .bars {
    width: 55px;
    height: 10px;
}
.nofound .bars:nth-child(7n-6) {
    background-color: #bebebe;
}
.nofound .bars:nth-child(7n-5) {
    background-color: #bbbe00;
}
.nofound .bars:nth-child(7n-4) {
    background-color: #00bebc;
}
.nofound .bars:nth-child(7n-3) {
    background-color: #00bd01;
}
.nofound .bars:nth-child(7n-2) {
    background-color: #dd01c5;
}
.nofound .bars:nth-child(7n-1) {
    background-color: #dc0000;
}
.nofound .bars:nth-child(7n) {
    background-color: #0000c0;
}

@media only screen and (max-width: 768px) {
    .nofound h1 {
        font-size: 8em;
    }
    .nofound p {
        font-size: 1.3em;
    }
    .nofound .bars {
        width: 39px;
        height: 12px;
    }
}

/* ================ Footers ================ */

.ft {
    padding: 60px 20px 40px;
    text-align: center;
}

.ft .foot-logo {
    max-width: 270px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.ft .foot-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-bottom: 40px;
}

.ft .foot-nav a {
    text-decoration: none;
    color: var(--color-grey-6);
    font-size: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    transition: color 0.3s ease;
}

.ft .social {
    font-size: var(--text-7);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.ft .social a {
    color: var(--color-grey-7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.ft .social a:hover {
    opacity: 0.6;
    transform: translateY(-3px);
}

.ft .aviso {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: var(--text-3);
    line-height: 1.5;
    color: var(--color-grey-6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ft .copy {
    font-size: var(--text-2);
    color: var(--color-grey-9);
    letter-spacing: 2px;
}

@media only screen and (max-width: 768px) {
    .ft {
        padding: 40px 15px 30px;
    }
    .ft .foot-nav {
        gap: 15px;
    }
    .ft .aviso {
        font-size: var(--text-2);
        line-height: 1.5;
    }
    .ft .foot-logo {
        max-width: 210px;
        width: 100%;
    }
}


/* ================ Componentes Reutilizables ================ */

/* PaginaciÃ³n */

.pagination-buttons-nav .pagination {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.pagination-buttons-nav .nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.pagination-buttons-nav .nav-previous:only-child {
    margin-right: auto;
}
.pagination-buttons-nav .nav-next:only-child {
    margin-left: auto;
}
.pagination-btn {
    font-size: var(--text-1);
    font-weight: initial;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 5px;
    border: 2px solid var(--color-grey-6);
    color: var(--color-grey-6);
    margin: 3px 2px;
    padding: 5px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: normal;
    background-color: transparent;
    white-space: nowrap;
}
.pagination-btn:hover,
.pagination-btn:focus {
    background-color: var(--color-grey-5);
    color: var(--color-grey-1);
    border-color: var(--color-grey-5);
    text-decoration: none;
}
.pagination-btn-active {
    background-color: var(--color-grey-6);
    border-color: var(--color-grey-6);
    color: var(--color-base-white) !important;
}
.pagination .page-item {
    margin: 0;
    padding: 0;
}
.pagination .page-link {
    border: none;
    padding: 0;
    background-color: transparent;
}
.pagination-arrow-left::before {
    content: "\2190";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}
.pagination-arrow-right::after {
    content: "\2192";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

@media only screen and (max-width: 768px) {
    .pagination-btn {
        font-size: var(--text-3);
        font-weight: initial;
    }
}
