/* Widget meteorológico propio con datos y alertas de AEMET */
.ndr-home-card-weather-wrap {
	justify-content: flex-start;
	align-items: stretch;
	padding: 16px;
}
.ndr-weather-widget {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
}
.ndr-weather-today {
	background: linear-gradient(135deg, #3a507c 0%, #24375c 100%);
	color: #ffffff;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 6px 16px rgba(36, 55, 92, 0.18);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ndr-weather-today-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.ndr-weather-today-badge {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #f8fafc;
}
.ndr-weather-today-cond {
	font-size: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.ndr-weather-today-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}
.ndr-weather-today-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}
.ndr-weather-today-temps {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.ndr-weather-temp-max,
.ndr-weather-temp-min {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1;
}
.ndr-weather-temp-max .ndr-weather-temp-val {
	font-size: 38px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.02em;
}
.ndr-weather-temp-min .ndr-weather-temp-val {
	font-size: 26px;
	font-weight: 600;
	color: #cbd5e1;
}
.ndr-weather-temp-lbl {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 3px;
}
.ndr-weather-temp-sep {
	font-size: 24px;
	color: rgba(255, 255, 255, 0.35);
	font-weight: 300;
	align-self: center;
	margin-bottom: 12px;
}
.ndr-weather-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.ndr-weather-metric {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 8px 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2px;
}
.ndr-weather-metric-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.78);
}
.ndr-weather-metric-value {
	font-size: 12.5px;
	font-weight: 700;
	color: #ffffff;
	white-space: nowrap;
}

/* Alertas meteorológicas AEMET (.ndr-weather-alerts) */
.ndr-weather-alerts {
	border-radius: 8px;
	border: 1px solid #dce5f5;
	background: #f8fafd;
	overflow: hidden;
}
.ndr-weather-alerts.is-level-none {
	background: #f0fdf4;
	border-color: #bbf7d0;
}
.ndr-weather-alerts.is-level-yellow {
	background: #fefce8;
	border-color: #fde047;
}
.ndr-weather-alerts.is-level-orange {
	background: #fff7ed;
	border-color: #fdba74;
}
.ndr-weather-alerts.is-level-red {
	background: #fef2f2;
	border-color: #fca5a5;
}
summary.ndr-weather-alerts-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: #1e293b;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
summary.ndr-weather-alerts-summary::-webkit-details-marker,
summary.ndr-weather-alerts-summary::marker {
	content: '';
	display: none;
}
.ndr-weather-alert-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #22c55e;
}
.is-level-yellow .ndr-weather-alert-dot {
	background: #eab308;
	box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22);
}
.is-level-orange .ndr-weather-alert-dot {
	background: #f97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}
.is-level-red .ndr-weather-alert-dot {
	background: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}
.ndr-weather-alert-text {
	flex: 1 1 auto;
	min-width: 0;
}
.ndr-weather-alert-chevron {
	font-size: 12px;
	color: #64748b;
	transition: transform 0.2s ease;
}
.ndr-weather-alerts[open] .ndr-weather-alert-chevron {
	transform: rotate(180deg);
}
.ndr-weather-alerts-body {
	padding: 8px 12px 10px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 12px;
	color: #334155;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
ul.ndr-weather-alerts-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
li.ndr-weather-alert-item {
	margin: 0 !important;
	padding: 7px 9px !important;
	background: rgba(255, 255, 255, 0.78);
	border-left: 3px solid #eab308;
	border-radius: 4px;
	list-style: none !important;
}
li.ndr-weather-alert-item.is-level-orange {
	border-left-color: #f97316;
}
li.ndr-weather-alert-item.is-level-red {
	border-left-color: #dc2626;
}
.ndr-weather-alert-item strong {
	display: block;
	font-size: 12px;
	color: #0f172a;
	margin-bottom: 2px;
}
.ndr-weather-alert-item p,
.ndr-weather-alert-empty {
	margin: 0 !important;
	font-size: 11.5px;
	line-height: 1.35;
	color: #475569;
}
a.ndr-weather-alert-more {
	font-size: 11.5px;
	font-weight: 700;
	color: #3a507c !important;
	text-decoration: none !important;
	align-self: flex-start;
}
a.ndr-weather-alert-more:hover {
	text-decoration: underline !important;
}

/* Previsión próximos días */
.ndr-weather-forecast {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}
.ndr-weather-forecast-heading {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	padding-left: 2px;
}
ul.ndr-weather-forecast-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
li.ndr-weather-forecast-item {
	margin: 0 !important;
	padding: 9px 10px !important;
	background: #f8fafd;
	border: 1px solid #e6edf7;
	border-radius: 8px;
	display: grid;
	grid-template-columns: 52px 32px 1fr auto;
	align-items: center;
	gap: 10px;
	list-style: none !important;
}
.ndr-weather-f-day {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.ndr-weather-f-day strong {
	font-size: 13.5px;
	color: #1e293b;
}
.ndr-weather-f-day span {
	font-size: 11.5px;
	color: #64748b;
}
.ndr-weather-f-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
.ndr-weather-f-desc {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.ndr-weather-f-desc span {
	font-size: 13px;
	color: #334155;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ndr-weather-f-rain {
	font-size: 11px;
	color: #2563eb;
	font-weight: 600;
}
.ndr-weather-f-temps {
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 3px;
}
.ndr-weather-f-temps .is-min {
	color: #64748b;
	font-weight: 600;
}
.ndr-weather-f-temps .is-sep {
	color: #cbd5e1;
	font-weight: 400;
}
.ndr-weather-f-temps .is-max {
	color: #1e293b;
}
.ndr-weather-footer {
	padding-top: 6px;
	border-top: 1px solid #e6edf7;
	text-align: center;
}
a.ndr-weather-link {
	font-size: 12.5px;
	font-weight: 600;
	color: #3a507c !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.2s ease;
}
a.ndr-weather-link:hover,
a.ndr-weather-link:focus-visible {
	color: #1e2d4d !important;
	text-decoration: underline !important;
}
.ndr-weather-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	padding: 24px 12px;
	color: #475569;
	font-size: 14px;
	flex: 1 1 auto;
}
@media (max-width: 420px) {
	.ndr-weather-metrics {
		grid-template-columns: 1fr 1fr;
	}
	.ndr-weather-metric:last-child {
		grid-column: span 2;
	}
}


/* Tarjeta de Facebook al 100% en escritorio con esquinas coincidentes */
.ndr-home-card-facebook .ndr-home-card-body.ndr-home-card-embed,
.ndr-home-card-facebook .fb-page,
.ndr-home-card-facebook .fb-page > span,
.ndr-home-card-facebook .fb-page iframe {
	border-radius: 8px !important;
	overflow: hidden !important;
}
@media (min-width: 961px) {
	.ndr-home-card-facebook .ndr-home-card-body.ndr-home-card-embed {
		padding: 0 !important;
		align-items: stretch;
		justify-content: stretch;
	}
	.ndr-home-card-facebook .fb-page,
	.ndr-home-card-facebook .fb-page > span,
	.ndr-home-card-facebook .fb-page iframe {
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
		display: block !important;
	}
}
