/* Ajustes para que The7 12 + dt-the7-core 2.7 se vean como The7 4.2.2 en produccion. Cada bloque corrige una diferencia medida
 * (tools/6-linea-base/visual: capture.mjs + compare.mjs contra la replica en PHP 7.1). */

/* Carrusel de recetas de la portada */
.home .carousel-home.blog-carousel-shortcode .post-entry-content { padding: 0 2% !important; }
.home .carousel-home.blog-carousel-shortcode .entry-title { font-weight: 500 !important; }

/* Cabecera movil: fondo con imagen, sin sombra, relleno en .masthead (7.1) */
.masthead.masthead-mobile-header:not(.mixed-header) { background-image: url("../../../uploads/2019/06/GG-EL-ALMIREZ.jpg"); background-size: auto; background-position: 50% 50%; background-repeat: no-repeat; box-shadow: none; padding: 0 20px; }
.masthead.masthead-mobile-header .mobile-header-bar { padding: 0 !important; }
.masthead.masthead-mobile-header .mobile-navigation { margin: 0 0 0 auto !important; }
.masthead.masthead-mobile-header .dt-mobile-menu-icon { margin-left: 10px !important; padding: 11px 8px !important; border-radius: 4px !important; }

/* Titulo de pagina: bloque, relleno 0 20px, migas pegadas a la izquierda (7.1) */
@media (max-width: 992px) {
	.page-title { display: block; }
	.page-title .wf-wrap { display: block; padding: 18px 20px 24px; }
	.page-title .breadcrumbs { padding: 0; }
}
@media (max-width: 600px) {
	.page-title h1, .page-title .breadcrumbs, .page-title .breadcrumbs li { text-align: center; }
}
.masthead.masthead-mobile-header .mobile-branding { flex: 1 1 auto; }
@media (min-width: 601px) {
	.masthead.masthead-mobile-header .dt-mobile-menu-icon { margin-left: 34px !important; }
}

/* Menu movil desplegado (7.1): relleno de enlaces */
.mobile-main-nav > li > a { padding: 16px 30px 16px 0; }

/* Titulo de pagina en escritorio (7.1): bloque, migas en linea */
@media (min-width: 993px) {
	body .page-title { display: block; }
	body .page-title .wf-wrap { display: block; padding: 15px 50px 15px; }
	body .page-title h1 { margin: 5px 0 0; }
	body .page-title .breadcrumbs { display: inline-block; padding: 0; }
}

/* Buscador de recetas (mini-search): caja de 39px de alto como en 7.1 */
.mini-search a.submit.mini-icon-off { display: block !important; }
.mini-search a.submit.mini-icon-off span { margin-left: 0; }

/* Iconos .fa: produccion usaba Font Awesome 4.7 (css/font-awesome-4.7.min.css + fonts/, copia de The7 4.2.2); The7 12 usa FA5/6 con otros codigos. */
#footer .textwidget a i.fa { color: #fff; }
body .fa::before { font-family: FontAwesome4 !important; font-weight: 400 !important; }

/* Pagina con barra lateral derecha (7.1): contenedor de 1200px con margen -25px, columnas 70/30 y relleno en lugar de hueco de rejilla */
@media (min-width: 993px) {
	.sidebar-right .wf-container-main { margin: 0 -25px; gap: 0 !important; grid-template-columns: 70% 30%; }
	.sidebar-right .wf-container-main > #content { padding: 0 50px 0 25px; }
	.sidebar-right .wf-container-main > #sidebar { padding: 0 25px 0 50px; }
}

/* Widget de categorias del lateral (7.1) */
.sidebar .widget_presscore-blog-categories { margin-bottom: -10px; }
.sidebar .custom-categories { padding-bottom: 10px; }
.sidebar .custom-categories .item-name { color: #3b3f4a; }

/* Widget de ultimas entradas del lateral (7.1) */
.sidebar .widget_presscore-blog-posts { margin-bottom: -10px; }
.sidebar .recent-posts { padding-bottom: 5px; }
#sidebar .recent-posts .alignleft { margin: 5px 20px 5px 0; }

/* WPBakery 8 pinta el extracto como <p style=..><p>texto</p></p>: el navegador deja un <p> vacio delante que desplaza el texto 10 px (WPBakery 5 no lo hacia) */
.vc_gitem-post-data-source-post_excerpt > p:empty { display: none; }

/* Carrusel de entradas: el enlace del titulo era inline-block en The7 4 */
.owl-carousel .post-entry-content .entry-title a { display: inline-block; }
/* Pie: menu con flecha (The7 4: padding derecho 15px, flecha 13x13 a 6,5px, sin :after), iconos sociales con FA4 y margen de los textos */
.footer .custom-menu.show-arrow a { padding-right: 15px; }
.footer .custom-menu.show-arrow a:before { top: 6.5px; width: 13px; height: 13px; }
.footer .custom-menu.show-arrow a:after { display: none; }
.footer i.fa { font-family: FontAwesome4 !important; font-weight: 400 !important; }
.footer .textwidget { margin-bottom: 10px; }
.footer .custom-menu.show-arrow { padding-bottom: 10px; }
.list-items li { padding-bottom: 1px; }

/* Barra inferior del pie en movil: The7 4 apilaba los dos bloques a todo el ancho (display block); The7 12 usa flex centrado */
@media (max-width: 778px) {
	div.wf-container-bottom { display: block !important; padding-top: 15px; padding-bottom: 15px; }
	div.wf-container-bottom > .wf-float-right { margin-top: 5px !important; }
}
#content .entry-content ul li:before { font-family: FontAwesome4; }
.single-post .page-title-head h1.entry-title { font-family: 'Aleo', serif !important; font-weight: 700 !important; }
.single-share-box .share-buttons a { display: block; width: 50px; height: 30px; min-width: 50px; min-height: 30px; margin: 0 4px 0 0; border: 1px solid; font: normal normal normal 14px/30px FontAwesome4; text-decoration: none; text-align: center; }
.single-share-box .share-buttons a.facebook { border-color: rgba(76,105,199,.3); color: #4c69c7; }
.single-share-box .share-buttons a.facebook:hover { border-color: #4c69c7; }
.single-share-box .share-buttons a.facebook:before { content: "\f09a"; }
.single-share-box .share-buttons a.twitter { border-color: rgba(42,190,235,.3); font-size: 15px; color: #2abeeb; }
.single-share-box .share-buttons a.twitter:hover { border-color: #2abeeb; }
.single-share-box .share-buttons a.twitter:before { content: "\f099"; }
.single-share-box .share-buttons a.google { border-color: rgba(230,66,53,.3); color: #e64235; }
.single-share-box .share-buttons a.google:hover { border-color: #e64235; }
.single-share-box .share-buttons a.google:before { content: "\f0d5"; }
.single-share-box .share-buttons a.pinterest { border-color: rgba(207,40,52,.3); font-size: 15px; color: #cf2834; }
.single-share-box .share-buttons a.pinterest:hover { border-color: #cf2834; }
.single-share-box .share-buttons a.pinterest:before { content: "\f0d2"; }
.single-share-box .share-buttons a.linkedin { border-color: rgba(0,123,199,.3); color: #007bc7; }
.single-share-box .share-buttons a.linkedin:hover { border-color: #007bc7; }
.single-share-box .share-buttons a.linkedin:before { content: "\f0e1"; }
img.preload-me.aspect, img.preload-me.owl-lazy-load { aspect-ratio: auto !important; }
@media (min-width: 779px) {
  .layout-list article.no-img .blog-content { width: 70% !important; }
}
/* Paginador como en The7 4: numeros en negrita y flechas FontAwesome de 14 px */
.paginator { padding-bottom: 0; }
.paginator:not(.paginator-more-button) a.page-numbers { font-weight: 700; }
.paginator:not(.paginator-more-button) .nav-prev,
.paginator:not(.paginator-more-button) a.nav-next { padding: 0; font: 700 0/14px Poppins, Helvetica, Arial, Verdana, sans-serif; width: 14px; height: 14px; }
.paginator:not(.paginator-more-button) .nav-prev:before,
.paginator:not(.paginator-more-button) a.nav-next:before { display: inline-block; font: normal 14px/14px FontAwesome4; }
.paginator:not(.paginator-more-button) .nav-prev:before { content: "\f177"; }
.paginator:not(.paginator-more-button) a.nav-next:before { content: "\f178"; }
/* Resultados de busqueda: mismos margenes del listado que en The7 4 y el span del titulo hereda la fuente */
.page-title h1 span { font-family: inherit; font-weight: inherit; }
@media (min-width: 1051px) {
  .search-results .wf-container-main { margin: 0 -25px; }
  .search-results #content { padding: 0 25px; }
  .search-results #content .wf-container.with-ajax { margin: 0 -25px; }
}
/* Carrusel de la portada en movil/tableta: sin relleno lateral (en produccion la regla !important no llegaba a aplicarse) */
@media only screen and (max-width: 900px) {
  .home .carousel-home.blog-carousel-shortcode .post-entry-content { padding-left: 0 !important; padding-right: 0 !important; }
}
.carousel-home img.preload-me.owl-lazy-load { aspect-ratio: 4 / 3 !important; }
/* Cabecera fija (phantom): en produccion el JS de The7 4 le daba z-index 9399; con 102 la tapa el contenido de la portada */
#phantom { z-index: 9399; }
/* La cabecera fija de produccion no muestra el buscador (widget-box oculto) y el menu queda alineado a la derecha */
#phantom .widget-box { display: none; }
/* Banner de cookies: Cookie Compliance 3.x usa la fuente del sistema; el Cookie Notice 1.x original heredaba la fuente del tema */
#cookie-notice, #cookie-notice .cn-text-container, #cookie-notice .cn-button { font-family: Poppins, Helvetica, Arial, Verdana, sans-serif; }
#cookie-notice .cn-button { line-height: 16px !important; height: auto; margin: 0 0 0 10px !important; }
@media (max-width: 900px) { #cookie-notice .cn-button { margin: 0 5px !important; } }
/* Boton flotante del menu movil: 60x60 con esquinas de 2px como en produccion (The7 12 lo hace de 38x38 con 4px) */
.floating-mobile-menu-icon .dt-mobile-menu-icon.floating-btn { width: 44px !important; height: 44px !important; padding: 8px !important; border-radius: 2px !important; margin: 0 !important; box-sizing: content-box; }
/* Menu movil abierto como en The7 4 (panel 330px con relleno 30px, items de 52px, cierre pegado a la esquina y buscador centrado) */
@media (max-width: 778px) {
  .dt-close-mobile-menu-icon { top: 0; right: 0; margin: 0; }
  .dt-mobile-header .mobile-header-scrollbar-wrap { width: 100% !important; max-width: none !important; height: 100%; padding: 30px 30px 0; box-sizing: border-box; display: flex; flex-direction: column; position: relative; }
  .dt-mobile-header .mobile-main-nav { padding-bottom: 30px; flex: 10 1 auto; }
  .dt-mobile-header .mobile-main-nav > li > a { padding: 16px 30px 16px 0; }
  .dt-mobile-header .mobile-mini-widgets-in-menu { position: absolute; top: 30px; left: 30px; width: 270px; height: calc(100% + 50px); padding: 0 0 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; box-sizing: border-box; pointer-events: none; }
  .dt-mobile-header .mobile-mini-widgets-in-menu > * { pointer-events: auto; }
  .mobile-mini-widgets-in-menu .submit span { margin: 0 !important; }
}
/* Capa tras el menu movil: blanca translucida como en produccion (The7 12 la pone oscura) */
.mobile-sticky-header-overlay { background-color: rgba(255, 255, 255, 0.3) !important; }
/* Flechas del carrusel de la portada: glifo FontAwesome 4 sin el circulo rojo que The7 12 dibuja detras */
.home .carousel-home .owl-nav .owl-prev:before,
.home .carousel-home .owl-nav .owl-next:before { font-family: FontAwesome4 !important; background: none !important; width: auto; height: auto; border-radius: 0; }
.home .carousel-home .owl-nav .owl-prev,
.home .carousel-home .owl-nav .owl-next { left: 0 !important; right: -24px !important; top: 0 !important; width: 24px !important; height: 26px !important; transform: none !important; margin: 0 !important; }
.home .carousel-home .owl-nav .owl-prev:before { left: auto !important; right: 35px; }
/* Buscador desplegable como en The7 4: caja roja translucida de 220x50 con el texto en blanco y sin lupa */
.masthead .mini-search .popup-search-wrap { top: 36px; left: -17.39px; right: auto; width: 220px; height: 50px; padding: 0; background: rgba(153, 0, 0, 0.9); box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); box-sizing: border-box; border-radius: 0; }
.masthead .mini-search .popup-search-wrap .searchform-s { width: 100%; height: 50px; line-height: 20px; padding: 7px 15px !important; font: 300 16px/20px Poppins, Helvetica, Arial, Verdana, sans-serif; color: #fff; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.masthead .mini-search .popup-search-wrap .searchform-s::placeholder { color: rgb(184, 188, 190) !important; opacity: 1 !important; }
.masthead .mini-search .popup-search-wrap .search-icon { display: none; }
/* Barra lateral de las entradas: linea divisoria de 1px (en produccion) y fechas de "Recientes" en 14px */
@media (min-width: 991px) {
  aside#sidebar.sidebar { border-left: 1px solid rgba(173, 176, 182, 0.3); }
}
.widget_presscore-blog-posts .recent-posts time { display: block; font-size: 14px; line-height: 20px; height: 20px; margin: 3px 0 3px; }
.widget_presscore-blog-posts .recent-posts > li { padding: 15px 0 0; }
.widget_presscore-blog-posts .recent-posts > li:first-child { padding-top: 0; }
