/* Fix SOLO para imágenes de las tarjetas - Mantiene el diseño masonry original */

/* Contenedor de imagen con altura fija */
.blog-masonry .hentry .featured-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-masonry .hentry .featured-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-masonry .hentry .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

/* Hover effect */
.blog-masonry .hentry:hover .featured-image img {
    transform: scale(1.05);
}

/* Ajuste responsive */
@media (max-width: 768px) {
    .blog-masonry .hentry .featured-image {
        height: 180px;
    }
}

/* Imagen por defecto cuando no hay imagen */
.featured-image.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image.no-image:before {
    content: "📷";
    font-size: 48px;
    opacity: 0.3;
}

/* Slider fix */
.post-slider .post-thumbnail {
    background-size: cover !important;
    background-position: center center !important;
}

/* Arreglos para el widget de trending posts - Imágenes uniformes */
.tptn_posts img {
    width: 76px !important;
    height: 76px !important;
    object-fit: cover !important;
    border-radius: 4px;
    display: block;
}

/* Widget de Spotify responsivo */
.widget_text iframe[src*="spotify"] {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: block;
    margin-bottom: 0;
}

.widget_text iframe[src*="spotify"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Ajustar contenedor del widget Spotify */
.widget_text:has(iframe[src*="spotify"]) {
    margin-bottom: 0;
}

.widget_text:has(iframe[src*="spotify"]) .textwidget {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Sobrescribir limitación de altura de iframe en widget-area */
.widget-area iframe[data-testid="embed-iframe"] {
    max-height: none !important;
    height: 420px !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive para Spotify */
@media (max-width: 768px) {
    .widget-area iframe[data-testid="embed-iframe"] {
        height: 350px !important;
    }
}

/* Restaurar altura original del header en slider posts para que coincida con original */
.post-slider .post-thumbnail .entry-header {
    padding: 24% 21% 0 !important; /* Valor original restaurado */
}

/* En pantallas pequeñas, ajustar proporcionalmente */
@media (max-width: 768px) {
    .post-slider .post-thumbnail .entry-header {
        padding: 20% 15% 0 !important;
    }
}

/* Removido - duplicado abajo con mejor especificidad */

/* Asegurar que las imágenes cubran correctamente */
.post-slider .post-thumbnail[style*="background-image"] {
    min-height: 200px;
}

/* Estilos específicos para el slider con 3 items como el original */
.post-slider.owl-carousel .post-thumbnail {
    position: relative;
    width: 100%;
    background-position: center center !important;
    background-size: cover !important;
    background-color: #ECE4D3;
    padding-top: 56.25% !important; /* 16:9 ratio como original */
}

/* Responsive para 3 items */
@media (max-width: 600px) {
    .post-slider.owl-carousel .post-thumbnail {
        padding-top: 65% !important;
    }
}

@media (min-width: 601px) and (max-width: 991px) {
    .post-slider.owl-carousel .post-thumbnail {
        padding-top: 60% !important;
    }
}

@media (min-width: 992px) {
    .post-slider.owl-carousel .post-thumbnail {
        padding-top: 56.25% !important;
    }
}

/* Fix para paginación - reforzar estilo original */
.pagination.navigation .current,
.pagination.navigation .current:hover,
.pagination.navigation .current:focus,
.pagination.navigation .current:active,
.pagination.navigation .current:visited {
    border-color: #AB977A !important;
    color: #AB977A !important;
    cursor: default !important;
    background: transparent !important;
    text-decoration: none !important;
}

