/*
 * Orbital - capa de diseno
 * Sustituye al bloque <style> que estaba incrustado en header.php.
 * Se carga despues de main.css y de los plugins (ver functions.php).
 *
 * Tokens
 *   --o-red        #d60207  acento accesible (texto blanco 5.9:1)
 *   --o-red-bright #fc222a  extremo claro de los degradados de marca
 *   --o-red-deep   #820b0c  extremo oscuro de los degradados de marca
 *   --o-ink        #14171c  texto principal
 *   --o-muted      #5a6270  texto secundario (6:1 sobre blanco)
 *   --o-line       #e6e8ec  bordes
 */

:root {
	--o-red: #d60207;
	--o-red-bright: #fc222a;
	--o-red-deep: #820b0c;
	--o-ink: #14171c;
	--o-muted: #5a6270;
	--o-line: #e6e8ec;
	--o-soft: #f5f6f8;
	--o-radius: 10px;
	--o-card-img: 200px;
	--o-gap: 30px;
	--o-gutter: 2.5rem;
	--o-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ---------- Accesibilidad ---------- */

/* main.css pone outline:0 en todo: se devuelve un foco visible al teclado. */
:focus-visible {
	outline: 3px solid var(--o-red);
	outline-offset: 3px;
	border-radius: 4px;
}

.site-footer :focus-visible,
.featured-item :focus-visible {
	outline-color: #fff;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: .75rem 1rem;
	background: #fff;
	color: var(--o-ink);
	font-weight: 700;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Tipografia ---------- */

::selection {
	background: var(--o-red);
	color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 20px;
}

.default-header .title,
.entry-item .entry-title,
.featured-item .entry-title,
.entry-content h2,
.entry-content h3 {
	font-family: var(--o-serif);
	text-wrap: balance;
}

.default-header .title {
	margin-top: 20px;
	font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -.01em;
}

/* Cuerpo del articulo: escala fluida y interlineado comodo. */
.test p,
.test ul,
.test ol,
.test li {
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
	line-height: 1.7;
}

.test li::marker {
	color: var(--o-red);
}

ol li, ul li {
	margin-bottom: 8px;
}

/* Los enlaces del texto no dependen solo del color. */
.test p a,
.test li a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.test p a:hover,
.test li a:hover {
	text-decoration-thickness: 2px;
}

/* Letra capital (la inserta ayudawordpress_letra_capital en functions.php). */
span.letracapital {
	float: left;
	font-family: var(--o-serif);
	font-weight: 700;
	font-size: 4.2em;
	line-height: .82;
	margin: .06em .14em 0 0;
	color: var(--o-red);
}

/* ---------- Cabecera y navegacion ---------- */

.site-header {
	border-bottom: none !important;
	font-weight: 700;
}

.site-header .container {
	display: flex;
	justify-content: space-around;
	width: 100%;
	padding: .35rem;
	margin: 0;
}

.center-navbar .site-navbar {
	margin-left: 0 !important;
	margin-right: 0;
}

.site-navbar ul li a,
.site-navbar .sub-menu li a {
	text-transform: capitalize;
}

.site-navbar .sub-menu li a {
	font-size: 18px;
}

.site-navbar .menu-item-has-children:after {
	border-color: var(--o-red-bright);
	top: 24px;
}

.site-navbar .sub-menu {
	border: none;
	z-index: 10000000;
}

.site-navbar .sub-menu li {
	width: 15rem;
	max-height: 56px;
}

.site-navbar .menu-item-has-children:hover > .sub-menu {
	box-shadow: 0 3px 30px rgb(0 0 0 / 15%);
}

.site-header ul li a:active,
.site-trigger:active {
	background-color: rgba(255, 255, 255, .26);
	border-radius: var(--o-radius);
}

.binduz-er-news-top-header-weather ul li a:active {
	background-color: rgba(0, 0, 0, .065);
	display: block;
	border-radius: var(--o-radius);
}

.site-nav-trigger span { top: 48%; }
.site-nav-trigger span:before { top: -12px; }
.site-nav-trigger span:after { top: -6px; }

.site-trigger {
	margin-left: 0 !important;
	width: 45px;
	height: 40px;
	align-items: center;
	justify-content: center;
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 1.5rem;
}

.header-bar .header-image {
	flex: 1 1 auto;
	min-width: 0;
	padding: 1.25rem 0;
	text-align: center;
}

.header-image img {
	max-width: 100%;
	height: auto;
}

.header-bar .btn-subscribe {
	width: auto;
	margin: 0;
	padding: 7px 30px;
	color: #000;
	font-size: 1.125rem;
	font-weight: 700;
	background-color: #fff;
	border: 2px solid var(--o-red-bright);
	border-radius: var(--o-radius);
	box-shadow: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.header-bar .btn-subscribe:hover {
	color: #fff;
	background-color: var(--o-red);
	border-color: var(--o-red);
}

.header-social { flex: 0 0 auto; }

.header-social-label {
	margin-bottom: 3px;
	padding: 0 14px;
	color: #000;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	background: var(--o-soft);
	border-radius: var(--o-radius);
}

.header-social-list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	white-space: nowrap;
}

.header-social-list li {
	display: inline-block;
	margin: 0;
}

.header-social-list img {
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 5px;
}

.main-menu-items {
	overflow: auto;
	white-space: nowrap;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.menu {
	margin-bottom: 0;
	line-height: 78px;
	text-align: center;
	padding-left: 0;
	background-image: url("../images/top-bar-bg.webp");
	background-size: contain;
	top: 0;
	left: 0;
}

.menu li {
	display: inline;
	list-style-type: none;
}

.menu li:last-child {
	display: none;
}

.menu li a {
	color: #000;
	background-color: #fff;
	padding: .5rem 1rem;
	margin: 0 8px;
	font-weight: 700;
	text-transform: capitalize;
	border-radius: 8px;
	transition: color .15s ease;
}

.menu li a:hover {
	color: var(--o-red);
}

@media (min-width: 1041px) {
	.site-navbar ul li a {
		padding: 1rem 1.1rem;
	}
}

@media (max-width: 1040px) {
	.site-navbar {
		display: none;
		top: 116px;
		right: 0;
		width: 100%;
		max-height: none;
		bottom: auto;
		position: absolute;
		border-radius: 0;
		box-shadow: 0 .5rem 1.875rem rgb(0 0 0 / 15%);
	}
	.site-navbar.active { display: block; }
	.site-navbar ul li a { font-size: 18px; }
}

/* ---------- Rejilla y tarjetas ---------- */

.flex.flex-fluid {
	--repeat: 3;
	display: grid;
	grid-template-columns: repeat(var(--repeat, auto-fit), minmax(168px, 1fr));
	grid-gap: var(--o-gap);
}

.banner.desktop {
	margin: 0;
	grid-column: 1 / -1;
}

.column-third { max-width: none; }

/* Tableta: 2 columnas en lugar de saltar de 3 a 1. */
@media (min-width: 769px) and (max-width: 1040px) {
	.flex.flex-fluid { --repeat: 2; }
}

.entry-item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--o-line);
	border-top: 0;
	border-radius: var(--o-radius);
}

.entry-item .entry-header .wp-post-image,
.entry-item img {
	display: block;
	width: 100%;
	height: var(--o-card-img);
	margin-bottom: 0;
	border: 0;
	object-fit: cover;
	border-radius: var(--o-radius) var(--o-radius) 0 0;
}

.entry-item .entry-header a {
	color: inherit;
	text-decoration: none;
}

.entry-item .entry-category {
	position: absolute;
	top: calc(var(--o-card-img) - 34px);
	left: 0;
	z-index: 1;
	float: none;
	background-color: var(--o-red);
	line-height: 34px;
	border-radius: 0 8px 0 0;
}

.entry-item .entry-category p,
.entry-item .entry-date p {
	margin: 0;
}

.entry-item .entry-category a {
	display: block;
	padding: 0 15px;
	color: #fff;
	font-weight: 700;
	font-size: .875rem;
	line-height: inherit;
	text-transform: none;
}

.entry-item .entry-title {
	margin: 0;
	padding: 20px 20px 10px;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 700;
	transition: color .15s ease;
}

.entry-item:hover .entry-title {
	color: var(--o-red);
}

.entry-item .entry-date {
	float: none;
	padding: 0 20px;
	font-size: .875rem;
}

.entry-item .entry-date p {
	color: var(--o-muted);
}

.entry-meta {
	padding: 12px 20px 0;
	margin: 0;
}

.entry-excerpt {
	margin-bottom: 0;
	font-size: 1rem;
	line-height: 1.55;
}

.entry-item p {
	font-size: 1rem;
}

/* "Leer mas" anclado abajo: antes era position:absolute con estilos inline. */
.post-readmore {
	margin-top: auto;
	padding: 16px 20px 20px;
}

.post-readmore .more-link {
	color: var(--o-red);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
}

.post-readmore .more-link:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

/* Destacados (portada) */
.featured-item { max-width: none; }
.featured-item:nth-child(3n+1) { padding-left: 0; }
.featured-item:nth-child(3n) { padding-right: 0; }
.featured-item a:after,
.featured-item img { border-radius: var(--o-radius); }

.featured-item .entry-title {
	padding: 0 1.5rem 10px;
	bottom: 51px;
	line-height: 35px;
}

.featured-date {
	position: absolute;
	bottom: 24px;
	z-index: 100;
	padding-left: 1.5rem;
	color: #fff;
}

.featured-date p { margin-bottom: 0; }

@media (max-width: 48rem) {
	.featured-item .featured-wrapper {
		min-height: 300px;
		max-height: 300px;
	}
}

/* ---------- Entrada individual ---------- */

.default-header {
	padding: 0 var(--o-gutter) 25px;
}

.default-header .container { padding: 0; }

.default-header .category a {
	display: inline-block;
	padding: 0 15px;
	background-color: #ffe7e9;
	color: var(--o-red);
	font-size: 1rem;
	font-weight: 700;
	line-height: 34px;
	border-radius: 6px;
}

.post-thumbnail { margin-bottom: 20px; }

.post-thumbnail img {
	object-fit: cover;
	border-radius: var(--o-radius);
}

.imagen1, .imagen2 {
	width: 100%;
	max-width: 100%;
	object-fit: cover;
}

.imagen1 { height: 305px; }
.imagen2 { height: 360px; }

.binduz-er-breadcrumb-box nav ol li.breadcrumb-item + .breadcrumb-item::before {
	content: ">";
	padding-right: 21px;
}

.binduz-er-breadcrumb-box .breadcrumb {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	font-size: .9375rem;
	line-height: 1.5;
}

.binduz-er-breadcrumb-box .breadcrumb-item {
	flex: 0 0 auto;
	font-size: inherit;
}

.binduz-er-breadcrumb-box .breadcrumb-item.active {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.binduz-er-social-share-tag { margin: 0 var(--o-gutter); }
.ssm { margin: 0 var(--o-gutter); }
.test { margin: 25px var(--o-gutter) 0; }
.news-search-area { padding-right: 20px; width: 29%; }

.google-auto-placed {
	margin-bottom: 25px;
	width: auto !important;
}

.ads2{background-image:url("data:image/svg+xml,%3Csvg width='64' height='45' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z' fill='%239C92AC' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E")}
/* Si AdSense marca el hueco como sin rellenar, se oculta el recuadro. */
.ads2:has(ins[data-ad-status="unfilled"]) { display: none !important; }

.optinbox_tpbuttons a { display: none; }

/* ---------- Paginacion ---------- */

.pagination {
	margin: 1.875rem -15px 0;
}

.pagination a,
.pagination span {
	width: 50px;
	height: 50px;
	padding: 0;
	line-height: 50px;
	font-size: 1.125rem;
	font-weight: 700;
	color: #000;
	background: var(--o-soft);
	border: none;
	border-radius: var(--o-radius);
}

.pagination a:hover { background: var(--o-line); }

.pagination .next,
.pagination .prev {
	width: auto;
	padding: 0 21px;
}

.pagination .current {
	background-color: var(--o-red);
	color: #fff;
}

/* ---------- Pie de pagina ---------- */

.site-footer {
	padding: 0;
	border: none;
	background: linear-gradient(90deg, var(--o-red-deep) 0, #e11d25 100%);
}

.site-footer .credits { display: none; }
.site-footer .widget-area { color: #fff; background-color: transparent; }
.site-footer .widget-area .widget { margin-bottom: 0; font-size: .875rem; }
.site-footer .widget-area ul li { display: inline-block; margin-left: 18px; }
.site-footer .widget-area ul li a { font-size: .875rem; color: #fff; }
.widget-area .widget ul { margin-bottom: 0; }
.footer-title { text-align: center; font-size: 28px; color: #fff; }
.copyright-area { float: left; }
.footer-items { float: right; line-height: normal; }

#custom_html-3 { padding: 0; }
#custom_html-4 { padding: 3rem 0 50px; }
#newsletterwidgetminimal-2 { padding-top: 0; }
#text-3 { border-top: 1px solid rgba(255, 255, 255, .2); padding: 1.25rem 0; }

.tnp-widget-minimal { max-width: 50%; margin-left: auto; margin-right: auto; }

.tnp-widget-minimal input.tnp-submit {
	position: absolute;
	right: 5px;
	top: 5px;
	bottom: 5px;
	width: auto;
	padding-left: 30px;
	padding-right: 30px;
	font-size: 18px;
	color: red;
	background-color: #000;
	border: 0;
	border-radius: var(--o-radius);
	cursor: pointer;
}

.tnp-widget-minimal input.tnp-email {
	padding: .8754rem .75rem .8754rem 20px !important;
	font-size: 18px !important;
	color: #000;
	border: none !important;
	border-radius: var(--o-radius) !important;
}

/* ---------- Utilidades de visibilidad ---------- */

@media (max-width: 40rem) { .xs-hide { display: none; } }
@media (min-width: 64.06rem) { .lg-hide { display: none; } }
@media (min-width: 40.06rem) and (max-width: 52rem) { .sm-hide { display: none; } }
@media (min-width: 52.06rem) and (max-width: 64rem) { .md-hide { display: none; } }

/* ---------- Movil (hasta 768px) ---------- */

@media screen and (max-width: 768px) {
	.news-search-area { width: 100%; }
	.binduz-er-social-share-tag,
	.ssm,
	.test { margin: 0; }
	.banner.desktop { padding: 0; }
	.binduz-er-news-top-header-weather { display: none; }

	.header-image { padding: 0; line-height: 60px; border: 0; }
	.site-trigger { display: flex; padding-right: 20px; }
	.menu li a { margin-left: 8px; margin-right: 8px; }
	.menu li:first-child a { margin-left: .75rem; }
	.menu li:nth-last-child(-n+2) a { margin-right: .75rem; }

	.default-header { padding: 1rem; padding-top: 0; }
	.default-header .title { font-size: clamp(1.75rem, 7vw, 1.95rem); }
	span.letracapital { font-size: 3.6em; }

	.flex.flex-fluid { --repeat: 1; padding: 1rem; padding-top: 0; }

	.tnp-widget-minimal { max-width: inherit; }
	.tnp-widget-minimal input.tnp-submit { position: static; width: 100%; margin-top: 1rem; }
	#newsletterwidgetminimal-2 { padding-left: .625rem; padding-right: .625rem; }

	.site-footer .widget-area { padding: 1rem; }
	.copyright-area { float: none; text-align: center; margin-bottom: 30px; }
	.footer-items { float: none; margin-left: 1.25rem; }
}

@media (min-width: 768px) { .follow { display: none; } }
@media (min-width: 48rem) { .home .featured-item { margin-top: 1rem; } }

/* ---------- Impresion ---------- */

@media print {
	.ads2, .adsbygoogle, .google-auto-placed, .site-navbar, .site-footer,
	.binduz-er-social-share-tag, .ssm, .pagination {
		display: none !important;
	}
	.entry-content p, .entry-content li { font-size: 12pt; line-height: 1.5; }
}
