/*
Theme Name: Difama Core
Theme URI: https://difamaccion.com/
Description: Tema hijo de Hello Elementor con header propio de Difama y menú móvil independiente de Elementor.
Author: Difama
Author URI: https://difamaccion.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: difama-core
*/

/* Tipografia global: unifica texto, titulos y controles en todo el sitio */
:root {
	--difama-font-family: "Metrophobic", Arial, Helvetica, sans-serif;
	--difama-link-red: #e10600;
	--difama-link-red-hover: #ff3b30;
	--e-global-typography-primary-font-family: "Metrophobic";
	--e-global-typography-secondary-font-family: "Metrophobic";
	--e-global-typography-text-font-family: "Metrophobic";
	--e-global-typography-accent-font-family: "Metrophobic";
}

html,
body,
button,
input,
select,
textarea,
.site-main,
.site-footer,
.site-header,
.elementor-page,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-button .elementor-button,
.elementor-button,
.entry-title,
.entry-content,
.elementor-post__title,
.elementor-post__excerpt,
.post-grid-title,
.post-grid-excerpt,
.wp-block-button__link,
.wpforms-container,
.iron-audioplayer,
.srp_player_boxed,
.difama-site-header,
.difama-mobile-panel,
.difama-albums-card,
.difama-albums-card *:not(i):not(svg):not(path):not([class*="icon"]):not([class*="sricon"]) {
	font-family: var(--difama-font-family) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6 {
	font-family: var(--difama-font-family) !important;
	font-weight: 400;
}

/* Enlaces de contenido: rojo consistente en lugar de rosado */
.entry-content a,
.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a,
.elementor-location-single .elementor-widget-text-editor a,
.elementor-location-archive .elementor-widget-text-editor a,
.elementor p a,
.elementor li a,
.elementor blockquote a {
	color: var(--difama-link-red) !important;
	text-decoration-color: var(--difama-link-red) !important;
}

.entry-content a:visited,
.elementor-widget-text-editor a:visited,
.elementor-widget-theme-post-content a:visited,
.elementor p a:visited,
.elementor li a:visited,
.elementor blockquote a:visited {
	color: var(--difama-link-red) !important;
}

.entry-content a:hover,
.entry-content a:focus,
.elementor-widget-text-editor a:hover,
.elementor-widget-text-editor a:focus,
.elementor-widget-theme-post-content a:hover,
.elementor-widget-theme-post-content a:focus,
.elementor p a:hover,
.elementor p a:focus,
.elementor li a:hover,
.elementor li a:focus,
.elementor blockquote a:hover,
.elementor blockquote a:focus {
	color: var(--difama-link-red-hover) !important;
	text-decoration-color: var(--difama-link-red-hover) !important;
}

/* Inicio: evita que las imágenes de notas se vean gigantes al cargar */
/* Aplica a todos los widgets de posts/elementos con miniaturas */
.elementor-post__thumbnail,
.elementor-widget-posts .elementor-post__thumbnail,
.difama-post-thumb,
.e-loop-item .elementor-post__thumbnail,
.post-grid-thumbnail {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden !important;
}

.elementor-post__thumbnail img,
.elementor-widget-posts .elementor-post__thumbnail img,
.difama-post-thumb img,
.e-loop-item .elementor-post__thumbnail img,
.post-grid-thumbnail img,
.elementor-widget-theme-post-featured-image img,
.elementor-widget-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 100% !important;
}

.elementor-9 .elementor-element.elementor-element-21c213d .difama-post-thumb {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.elementor-9 .elementor-element.elementor-element-21c213d .difama-post-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Blog: fuerza que las miniaturas del grid escalen proporcionalmente */
.elementor-widget-elementor-blog-posts .post-grid-thumbnail a {
    display: block;
}

.elementor-widget-elementor-blog-posts .post-grid-thumbnail img,
.elementor-widget-elementor-blog-posts .post-grid-thumbnail .wp-post-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
}

/* Musica / Videos: fuerza tracklist legible en el reproductor Sonaar */
body.page-id-499 {
	--srp-global-tracklist-color: #ffffff;
}

body.page-id-499 .iron-audioplayer .playlist .audio-track,
body.page-id-499 .iron-audioplayer .playlist .track-number,
body.page-id-499 .iron-audioplayer .playlist .track-title,
body.page-id-499 .iron-audioplayer .playlist .current .audio-track,
body.page-id-499 .iron-audioplayer .playlist .current .track-number,
body.page-id-499 .iron-audioplayer .tracklist-item-time,
body.page-id-499 .iron-audioplayer .playlist .sr-playlist-item,
body.page-id-499 .iron-audioplayer .playlist .sr-playlist-item * {
	color: #ffffff !important;
}
