/**
 * Estilos CSS para las páginas de región y país con el nuevo diseño
 *
 * @package WP_Regiones_Plugin
 */

/* Contenedor principal */
.wp-regiones-container,
.wp-paises-container {
    margin: 0 auto;
    color: #000;
}

/* Encabezado de la región/país */
.wp-regiones-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.wp-regiones-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    display: inline-block;
}

/* Estilos específicos para cada región */
.region-internacionales .wp-regiones-title {
    color: #0056b3;
    border-bottom: 4px solid #0056b3;
}

.region-caribe .wp-regiones-title {
    color: #00a0d2;
    border-bottom: 4px solid #00a0d2;
}

.region-cono-sur .wp-regiones-title {
    color: #46b450;
    border-bottom: 4px solid #46b450;
}

.region-andinos .wp-regiones-title {
    color: #dc3232;
    border-bottom: 4px solid #dc3232;
}

.region-centro-norte .wp-regiones-title {
    color: #f56e28;
    border-bottom: 4px solid #f56e28;
}

/* Estilos específicos para cada país */
.pais-venezuela .wp-regiones-title {
    color: #ef3340;
    border-bottom: 4px solid #ef3340;
}

.pais-eeuu .wp-regiones-title {
    color: #002868;
    border-bottom: 4px solid #002868;
}

.pais-mexico .wp-regiones-title {
    color: #006847;
    border-bottom: 4px solid #006847;
}

.wp-regiones-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Espacios publicitarios */
.wp-regiones-ad {
    width: 100%;
    margin: 1.5rem 0;
    text-align: center;
}

.wp-regiones-ad-placeholder {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 1rem;
    color: #666;
}

.wp-regiones-ad-hook {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Sección principal con noticia destacada */
.wp-regiones-main-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wp-regiones-destacada {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: 600;
}

.wp-regiones-destacada-inner {
    display: grid;
    grid-template-columns: 2fr;
    gap: 0;
    height: 100%;
}

.wp-regiones-destacada-thumbnail {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.wp-regiones-destacada-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-regiones-destacada-label {
    position: absolute;
    top: 1rem;
    left: 0;
    background-color: #dc3232;
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Estilos específicos para las etiquetas destacadas de cada país */
.pais-venezuela .wp-regiones-destacada-label {
    background-color: #ef3340;
}

.pais-eeuu .wp-regiones-destacada-label {
    background-color: #002868;
}

.pais-mexico .wp-regiones-destacada-label {
    background-color: #006847;
}

.wp-regiones-destacada-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    height: fit-content;
    background: hsla(40 6% 10.8% / 0.80);
    width: 100%;
}

.wp-regiones-destacada-title {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.wp-regiones-destacada-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-regiones-destacada-title a:hover {
    color: #0056b3;
}
.contenedor-cartoon-qr{
    display: flex;
    flex-direction: row;
    padding-top: 2rem;
    gap: 15px;
    width: 100%;
}
.contenedor-cartoon-qr > .cartoon{
    border: none;
    width: 60%;
}
.contenedor-cartoon-qr > .telegram-qr{
    height: 500px;
    width: 40%;
}
/* Estilos específicos para los enlaces hover de cada país */
.pais-venezuela .wp-regiones-destacada-title a:hover,
.pais-venezuela .wp-regiones-secundaria-title a:hover,
.pais-venezuela .wp-regiones-listado-item-title a:hover,
.pais-venezuela .wp-regiones-mas-leidas-title a:hover {
    color: #ef3340;
}

.pais-eeuu .wp-regiones-destacada-title a:hover,
.pais-eeuu .wp-regiones-secundaria-title a:hover,
.pais-eeuu .wp-regiones-listado-item-title a:hover,
.pais-eeuu .wp-regiones-mas-leidas-title a:hover {
    color: #002868;
}

.pais-mexico .wp-regiones-destacada-title a:hover,
.pais-mexico .wp-regiones-secundaria-title a:hover,
.pais-mexico .wp-regiones-listado-item-title a:hover,
.pais-mexico .wp-regiones-mas-leidas-title a:hover {
    color: #006847;
}

.wp-regiones-destacada-excerpt {
    color: white;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.wp-regiones-destacada-meta {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1rem;
}

.wp-regiones-post-author,
.wp-regiones-post-date {
    display: inline-block;
    margin-right: 1rem;
}

.wp-regiones-destacada-readmore {
    margin-top: auto;
}

.wp-regiones-button {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wp-regiones-button:hover {
    background-color: #003d82;
    color: #fff;
}

/* Estilos específicos para los botones de cada país */
.pais-venezuela .wp-regiones-button {
    background-color: #ef3340;
}

.pais-venezuela .wp-regiones-button:hover {
    background-color: #c62828;
}

.pais-eeuu .wp-regiones-button {
    background-color: #002868;
}

.pais-eeuu .wp-regiones-button:hover {
    background-color: #001a4d;
}

.pais-mexico .wp-regiones-button {
    background-color: #006847;
}

.pais-mexico .wp-regiones-button:hover {
    background-color: #004d33;
}

/* Sección de títulos */
.wp-regiones-section-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Sección de noticias secundarias */
.wp-regiones-secundarias-section {
    margin-bottom: 2rem;
}

.wp-regiones-secundarias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.wp-regiones-secundaria {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-regiones-secundaria-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wp-regiones-secundaria-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Proporción 16:9 */
}

.wp-regiones-secundaria-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-regiones-secundaria-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

/* Estilos específicos para las etiquetas secundarias de cada país */
.pais-venezuela .wp-regiones-secundaria-label {
    background-color: rgba(239, 51, 64, 0.8);
}

.pais-eeuu .wp-regiones-secundaria-label {
    background-color: rgba(0, 40, 104, 0.8);
}

.pais-mexico .wp-regiones-secundaria-label {
    background-color: rgba(0, 104, 71, 0.8);
}

.wp-regiones-secundaria-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wp-regiones-secundaria-category {
    margin-bottom: 0.5rem;
}

.wp-regiones-secundaria-category a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    text-decoration: none;
}

.wp-regiones-secundaria-title {
    font-size: 1.3rem;
    margin: 0 0 0.8rem;
    line-height: 1.3;
    font-weight: 900;
}

.wp-regiones-secundaria-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-regiones-secundaria-title a:hover {
    color: #0056b3;
}

.wp-regiones-secundaria-excerpt {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.wp-regiones-secundaria-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.wp-regiones-secundaria-readmore {
    margin-top: auto;
}

/* Columnas de contenido */
.wp-regiones-content-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Columna principal con listado */
.wp-regiones-main-column {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-regiones-listado-title {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.wp-regiones-listado-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-regiones-listado-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.wp-regiones-listado-item:last-child {
    border-bottom: none;
}

.wp-regiones-listado-item-inner {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 4rem;
    width: 100%;
}

/* Estilos corregidos para las imágenes en la sección de listado */
.wp-regiones-listado-thumbnail {
    width: 140px;
    height: 80px;
    overflow: hidden;
    position: relative;
    display: block;
}

.wp-regiones-listado-thumbnail img,
.wp-regiones-listado-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Estilo para cuando no hay imagen */
.wp-regiones-listado-thumbnail-default {
    background-color: #f0f0f0;
}

.wp-regiones-listado-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.wp-regiones-listado-content {
    display: flex;
    flex-direction: column;
}

.wp-regiones-listado-category {
    margin-bottom: 0.3rem;
}

.wp-regiones-listado-category a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    text-decoration: none;
}

.wp-regiones-listado-item-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.wp-regiones-listado-section{
    width: 1000px;
}
.wp-regiones-listado-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-regiones-listado-item-title a:hover {
    color: #0056b3;
}

.wp-regiones-listado-meta {
    font-size: 0.8rem;
    color: #666;
}
.feed-tiktok-region{
    margin-top: 2rem;
    padding-top: 2rem;
    padding-right: 1rem;
    padding-left: 1rem;
    background-color: rgba(21, 23, 41);
    color: white;
}
#tiktok-feed-feed-1{
    padding-bottom: 2rem;
}

/* Barra lateral */
.wp-regiones-sidebar {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.wp-regiones-sidebar > .cartoon{
    display: flex;
    justify-content: center;
    border: none;
    box-shadow: none;
}
.wp-regiones-sidebar > .cartoon > img{
    width: 300px;
    border: 1px solid #000;
}
.wp-regiones-sidebar-title {
    font-size: 1.3rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Sección de más leídas */
.wp-regiones-mas-leidas {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-regiones-mas-leidas-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wp-regiones-mas-leidas-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.wp-regiones-mas-leidas-number {
    background-color: #0056b3;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Estilos específicos para los números de más leídas de cada país */
.pais-venezuela .wp-regiones-mas-leidas-number {
    background-color: #ef3340;
}

.pais-eeuu .wp-regiones-mas-leidas-number {
    background-color: #002868;
}

.pais-mexico .wp-regiones-mas-leidas-number {
    background-color: #006847;
}

.wp-regiones-mas-leidas-content {
    flex-grow: 1;
}

.wp-regiones-mas-leidas-title {
    font-size: 1rem;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.wp-regiones-mas-leidas-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-regiones-mas-leidas-title a:hover {
    color: #0056b3;
}

.wp-regiones-mas-leidas-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Sección de temas populares */
.wp-regiones-temas-populares {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-regiones-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wp-regiones-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-regiones-tag:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Estilos específicos para los tags hover de cada país */
.pais-venezuela .wp-regiones-tag:hover {
    background-color: #ef3340;
}

.pais-eeuu .wp-regiones-tag:hover {
    background-color: #002868;
}

.pais-mexico .wp-regiones-tag:hover {
    background-color: #006847;
}

/* Mensaje de no posts */
.wp-regiones-no-posts {
    text-align: center;
    padding: 2rem 0;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .wp-regiones-destacada-inner {
        grid-template-columns: 1fr;
    }
    
    .wp-regiones-destacada-thumbnail {
        padding-top: 56.25%; /* Proporción 16:9 */
        height: auto;
    }
    
    .wp-regiones-destacada-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .wp-regiones-content-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wp-regiones-secundarias-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-regiones-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .wp-regiones-listado-item-inner {
        grid-template-columns: 1fr;
    }
    
    .wp-regiones-listado-thumbnail {
        width: 100%;
        height: 150px;
        margin-bottom: 0.5rem;
    }
    
    .wp-regiones-container,
    .wp-paises-container {
        padding: 0.5rem;
    }
}

/* CONTENEDOR PRINCIPAL DE DESTACADAS */
.destacadas-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* DESTACADA PRINCIPAL */
.destacada-principal {
    background: white;
    width: 66.6%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.destacada-principal .destacada-inner {
    display: flex;
    flex-direction: column;
    position: relative;
}

.destacada-principal .destacada-thumbnail {
    height: 100%;
    position: relative;
}

.destacada-principal .destacada-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destacada-principal .destacada-content {
    padding: 25px;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: 800;
}

.destacada-principal .destacada-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.destacada-principal .destacada-excerpt {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

/* CONTENEDOR DE DESTACADAS SECUNDARIAS */
.destacadas-secundarias {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 20px;
    width: 33.3%;
}

/* DESTACADAS SECUNDARIAS (2 y 3) */
.destacada-secundaria {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.destacada-secundaria .destacada-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    position: relative;
}

.destacada-secundaria .destacada-thumbnail {
    height: 320px;
    position: relative;
}

.destacada-secundaria .destacada-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destacada-secundaria .destacada-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: 800;
}

.destacada-secundaria .destacada-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.destacada-secundaria .destacada-meta {
    margin-top: auto;
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .destacada-principal .destacada-thumbnail {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .destacadas-secundarias {
        grid-template-columns: 1fr;
    }
    
    .destacada-principal .destacada-thumbnail {
        height: 300px;
    }
    
    .destacada-principal .destacada-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .destacada-principal .destacada-thumbnail {
        height: 250px;
    }
    
    .destacada-principal .destacada-title {
        font-size: 1.3rem;
    }
}