/* El clima en Ramona (datos de Open-Meteo): franja de arriba y página. */

/* ---------- Franja de arriba ---------- */
.clima-franja {
	display: flex;
	justify-content: flex-end;
	padding-top: 6px;
	padding-bottom: 2px;
}
.clima-franja a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 12px 3px 6px;
	border-radius: 20px;
	font-size: 15px;
	color: #555;
	text-decoration: none;
	transition: background-color .2s;
}
.clima-franja a:hover,
.clima-franja a:focus {
	background-color: #f1f5f2;
	color: #222;
	text-decoration: none;
}
.clima-franja-icono {
	width: 30px;
	height: 30px;
	flex: none;
}
.clima-franja strong {
	font-size: 18px;
	color: #222;
}
.clima-franja-extremos {
	color: #888;
}
.clima-franja-mas {
	color: #00a039;
	font-weight: bold;
}
@media (max-width: 575px) {
	.clima-franja { justify-content: center; }
	.clima-franja-extremos { display: none; }
}

/* ---------- Página ---------- */
.clima {
	max-width: 900px;
	margin: 0 auto;
	text-align: left;
	color: #333;
}
.clima svg { display: block; }

.clima-ahora {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	padding: 26px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #eaf4ff 0%, #f3faf5 100%);
}
.clima-ahora-icono {
	width: 130px;
	height: 130px;
	flex: none;
}
.clima-ahora-temp {
	font-family: Dosis, sans-serif;
	font-size: 72px;
	line-height: 1;
	color: #1d2a36;
}
.clima-ahora-temp span {
	font-size: 30px;
	vertical-align: top;
	margin-left: 2px;
}
.clima-ahora-desc {
	font-size: 22px;
	margin-top: 4px;
}
.clima-ahora-st {
	color: #666;
	margin-top: 2px;
}
.clima-ahora-extremos {
	margin-top: 8px;
	font-weight: bold;
}
.clima-ahora-extremos span:first-child { color: #d9534f; margin-right: 14px; }
.clima-ahora-extremos span:last-child { color: #2f7fd1; }

.clima-datos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 18px;
}
.clima-dato {
	padding: 14px 16px;
	border: 1px solid #e6eaee;
	border-radius: 12px;
	background: #fff;
}
.clima-dato-titulo {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.clima-simbolo {
	width: 20px;
	height: 20px;
	flex: none;
	color: #00a039;
}
.clima-dato-valor {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
	font-family: Dosis, sans-serif;
	font-size: 28px;
	line-height: 1.1;
	color: #1d2a36;
}
.clima-dato-valor small {
	font-size: 16px;
	color: #777;
	margin: 0 4px;
}
.clima-dato-detalle {
	margin-top: 4px;
	font-size: 14px;
	color: #666;
}
.clima-flecha {
	width: 24px;
	height: 24px;
	color: #2f7fd1;
	margin-right: 4px;
}
.clima-uv {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
}
.clima-uv-bajo { background: #3a9d4a; }
.clima-uv-moderado { background: #e0b100; color: #222; }
.clima-uv-alto { background: #f08a24; }
.clima-uv-muy-alto { background: #d9372b; }
.clima-uv-extremo { background: #8e44ad; }

.clima-titulo {
	margin: 40px 0 18px;
	font-family: Dosis, sans-serif;
	font-size: 24px;
	font-weight: normal;
	text-align: center;
	text-transform: uppercase;
	color: #202020;
}
.clima-titulo::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 12px auto 0;
	border-radius: 2px;
	background-color: #00b840;
}

.clima-icono {
	width: 46px;
	height: 46px;
	margin: 4px auto;
}
.clima-prob {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-size: 14px;
	color: #999;
}
.clima-prob .clima-simbolo {
	width: 16px;
	height: 16px;
	color: inherit;
}
.clima-prob-alta {
	color: #2f7fd1;
	font-weight: bold;
}

/* Próximas horas: tira que se desliza de costado */
.clima-horas {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}
.clima-hora {
	flex: 1 0 60px;
	padding: 10px 4px;
	border-radius: 10px;
	background: #f6f8fa;
	text-align: center;
}
.clima-hora:first-child { background: #eaf4ff; }
.clima-hora-nombre {
	font-size: 14px;
	color: #666;
}
.clima-hora-temp {
	font-family: Dosis, sans-serif;
	font-size: 20px;
	color: #1d2a36;
}

/* Próximos días */
.clima-dias {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}
.clima-dia {
	padding: 12px 6px;
	border: 1px solid #e6eaee;
	border-radius: 12px;
	text-align: center;
	background: #fff;
}
.clima-dia:first-child {
	border-color: #b9dcc4;
	background: #f3faf5;
}
.clima-dia-nombre {
	font-weight: bold;
	color: #333;
}
.clima-dia .clima-icono {
	width: 52px;
	height: 52px;
}
.clima-dia-desc {
	min-height: 36px;
	font-size: 13px;
	line-height: 1.3;
	color: #666;
}
.clima-dia-temps {
	margin: 4px 0;
	font-family: Dosis, sans-serif;
	font-size: 20px;
}
.clima-dia-temps strong { color: #d9534f; font-weight: normal; }
.clima-dia-temps span { color: #2f7fd1; }

@media (max-width: 767px) {
	.clima-dias {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.clima-dia {
		display: grid;
		grid-template-columns: 70px 44px 1fr auto 56px;
		align-items: center;
		gap: 8px;
		padding: 6px 12px;
		text-align: left;
	}
	.clima-dia .clima-icono {
		width: 40px;
		height: 40px;
		margin: 0;
	}
	.clima-dia-desc { min-height: 0; }
	.clima-dia-temps { margin: 0; }
	.clima-dia .clima-prob { justify-content: flex-end; }
}

/* Lluvia de los últimos días */
.clima-lluvia-total {
	text-align: center;
	margin-bottom: 14px;
	font-size: 17px;
}
.clima-barras {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	max-width: 620px;
	margin: 0 auto;
}
.clima-barra { text-align: center; }
.clima-barra-valor {
	font-size: 14px;
	color: #2f7fd1;
	font-weight: bold;
}
.clima-barra-caja {
	position: relative;
	height: 120px;
	margin: 4px auto;
	border-bottom: 2px solid #c9d3dc;
}
.clima-barra-relleno {
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 0;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, #5aa5ea 0%, #2f7fd1 100%);
}
.clima-barra-dia {
	font-size: 13px;
	color: #666;
}

.clima-nota {
	margin-top: 6px;
	text-align: center;
	font-size: 13px;
	color: #999;
}
.clima-fuente {
	margin-top: 40px;
	padding-top: 14px;
	border-top: 1px solid #e6eaee;
	text-align: center;
	font-size: 14px;
	color: #888;
}
.clima-sin-datos {
	text-align: center;
	color: #666;
}

@media (max-width: 575px) {
	.clima-ahora {
		gap: 14px;
		padding: 18px 12px;
	}
	.clima-ahora-icono {
		width: 90px;
		height: 90px;
	}
	.clima-ahora-temp { font-size: 56px; }
	.clima-ahora-desc { font-size: 19px; }
	.clima-datos {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.clima-dato { padding: 12px; }
	.clima-dato-titulo {
		font-size: 12px;
		letter-spacing: 0;
	}
	.clima-dato-valor { font-size: 24px; }
	.clima-barras { gap: 6px; }
}
