/* custom-weather-composer — hoja unificada 2c990e010c84 */

/* ---- cwcomposer.css ---- */


/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
	--color-primary:        #0f4c81;
	--color-primary-mid:    #5a8fc2;
	--color-primary-bg:     #e8f2fb;
	--color-primary-hover:  #d4e7f7;
	--color-warm:           #ef9f27;
	--color-warm-bg:        #faeeda;
	--color-temp-max:       #c0422a;
	--color-temp-min:       #185fa5;
	--color-text:           #111111;
	--color-text-muted:     #666666;
	--color-border:         #e5e8ec;
	--color-bg:             #e8f4fd;
	--color-bg-soft:        #f0f7fc;
	--color-white:          #ffffff;
	--color-navy:           #0b1f33;
	--color-navy-2:         #14304d;
	--color-navy-line:      #2a4a6b;
	--color-on-navy-muted:  #b6c6d8;
	--color-link:           #1257c9;
	--radius-sm:            8px;
	--radius-md:            12px;
	--radius-lg:            16px;
	--radius-xl:            24px;
	--max-width:            1200px;
	--px:                   24px;
	--ff-head:              'DM Serif Display', Georgia, serif;
	--ff-body:              'DM Sans', system-ui, sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
.cw-page-wrapper {
	font-family: var(--ff-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
#breadcrumblist {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 10px var(--px);
	margin: 0 auto;
	max-width: var(--max-width);
	font-size: 14px;
	color: var(--color-text);
	font-family: var(--ff-body);
}

#breadcrumblist li {
	display: flex;
	align-items: center;
	gap: 4px;
}

#breadcrumblist a {
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.15s;
}

#breadcrumblist a:hover {
	color: var(--color-text);
}

#breadcrumblist li + li::before {
	content: '/';
	color: var(--color-border);
	margin-right: 4px;
}

/* ==========================================================================
   ARCHIVE — STATES & CITIES
   ========================================================================== */
#cweather-archive {
	width: 100%;
	margin: 0;
	padding: 20px 0 40px;
	font-family: var(--ff-body);
	box-sizing: border-box;
}

#cweather-archive .section-title,
#cweather-archive #list-cities,
#cweather-archive #list-states,
#cweather-archive #list-cities-wrap {
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#cweather-archive .section-title {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 28px 32px;
	margin-bottom: 16px;
	margin-left: auto;
	margin-right: auto;
	max-width: calc(var(--max-width) - 48px);
}

#cweather-archive #list-cities,
#cweather-archive #list-states {
	max-width: calc(var(--max-width) - 48px);
	margin-left: auto;
	margin-right: auto;
}

#cweather-archive .section-title h2 {
	font-family: var(--ff-head);
	font-size: 26px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 12px;
}

#cweather-archive .section-title p {
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text-muted);
	margin: 0 0 8px;
}

#cweather-archive #list-cities,
#cweather-archive #list-states {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

#cweather-archive #list-states,
#cweather-archive #list-cities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px auto;
}

#cweather-archive #list-states .state {
	width: calc((100% / 5) - 8px);
}

#cweather-archive #list-cities .city {
	width: calc((100% / 4) - 8px);
}

#cweather-archive #list-states .state a,
#cweather-archive #list-cities .city a {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 13px;
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

#cweather-archive #list-states .state a:hover,
#cweather-archive #list-cities .city a:hover {
	background: var(--color-primary-bg);
	color: var(--color-primary);
}

@media screen and (max-width: 992px) {
	#cweather-archive #list-cities .city { width: calc((100% / 3) - 8px); }
}

@media screen and (max-width: 600px) {
	#cweather-archive #list-states .state { width: calc((100% / 2) - 8px); }
	#cweather-archive #list-cities .city  { width: calc((100% / 2) - 8px); }
}


/* Menu desplegable */

#cweather-states-menu{
max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 20px 10px 20px;
}

#cweather-states-menu .section-title h2{
	color: #fff;
    font-size: 24px;
    line-height: 1.2em;
}

#cweather-states-menu .states{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 30px 0;
}

#cweather-states-menu .states .state {
    width: calc((100% / 4) - 10px);
    float: left;
    margin: 0;
    padding: 0;
}
	
#cweather-states-menu .states .state a {
    font-size: 14px;
    width: 100%;
    float: left;
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.1);
    margin: 0;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
}

#cweather-states-menu .states .state a:hover{
	background-color: rgba(255,255,255,0.25);
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
}



/* ==========================================================================
   HOURS DETAIL (cweather-single)
   ========================================================================== */
#cweather-single.hours .pronostic .day .details .hours,
#cweather-single.details .pronostic .day .details .hours {
	display: flex;
	width: 100%;
	padding: 14px 20px;
	text-align: center;
}

#cweather-single.hours .pronostic .day .details .hours .col,
#cweather-single.details .pronostic .day .details .hours .col {
	width: calc(100% / 7);
	font-size: 12px;
	color: var(--color-text-muted);
}

#cweather-single.hours .pronostic .day .details .hours .col span,
#cweather-single.details .pronostic .day .details .hours .col span {
	display: block;
	margin: 8px 0 0;
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
}


/* ---- main-cities.css ---- */
/* main-cities.css */

#cweather-main-cities {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 20px var(--px);
	font-family: var(--ff-body);
}

#cweather-main-cities #list-cities {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 24px 0;
}

#cweather-main-cities #list-cities .state {
	width: calc((100% / 4) - 10px);
	background: var(--color-white);
	border: 0.5px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 100px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

#cweather-main-cities #list-cities .state:hover {
	border-color: var(--color-primary-mid);
}

#cweather-main-cities #list-cities .state img {
	width: 28px;
	height: auto;
	display: block;
}

#cweather-main-cities #list-cities .state a {
	font-size: 13px;
	width: 100%;
	display: block;
	padding: 14px 16px;
	background: transparent;
	border-radius: var(--radius-lg);
	color: var(--color-text);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	height: 100%;
}

#cweather-main-cities #list-cities .state a:hover {
	background: var(--color-primary-bg);
	color: var(--color-primary);
}

#cweather-main-cities #list-cities .state .data {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

#cweather-main-cities #list-cities .city {
	width: calc((100% / 5) - 10px);
}

#cweather-main-cities #list-cities .city a {
	display: block;
	font-size: 13px;
	width: 100%;
	padding: 10px 14px;
	background: var(--color-primary-bg);
	border-radius: var(--radius-md);
	color: var(--color-primary);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

#cweather-main-cities #list-cities .city a:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

@media screen and (max-width: 992px) {
	#cweather-main-cities #list-cities .state {
		width: calc((100% / 3) - 10px);
	}
}

@media screen and (max-width: 600px) {
	#cweather-main-cities #list-cities .state,
	#cweather-main-cities #list-cities .city {
		width: calc((100% / 2) - 10px);
	}
}


/* ---- list-states.css ---- */
/* list-states.css */

/* Shared wrapper: shortcode uses #cweather-states, templates use #cweather-archive */
#cweather-states,
#cweather-archive {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 20px var(--px);
	font-family: var(--ff-body);
}

#cweather-states #list-states,
#cweather-archive #list-states {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 24px 0;
}

#cweather-states #list-cities,
#cweather-archive #list-cities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 16px 0 0;
}

#cweather-states #list-states .state,
#cweather-archive #list-states .state {
	width: calc((100% / 4) - 8px);
}

#cweather-states #list-states .state a,
#cweather-states #list-cities .city a,
#cweather-archive #list-states .state a,
#cweather-archive #list-cities .city a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	width: 100%;
	padding: 10px 14px;
	background: var(--color-primary);
	border-radius: var(--radius-md);
	color: var(--color-white);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	border: 0.5px solid transparent;
}

#cweather-states #list-states .state a:hover,
#cweather-states #list-cities .city a:hover,
#cweather-archive #list-states .state a:hover,
#cweather-archive #list-cities .city a:hover {
	background: var(--color-primary-bg);
	color: var(--color-primary);
}

#cweather-states #list-cities .city,
#cweather-archive #list-cities .city {
	width: calc((100% / 4) - 8px);
}

/* =============================================
   SECCIONES DE LISTADO (principales / otras)
   ============================================= */
.cw-list-section {
	max-width: calc(var(--max-width, 1200px) - 48px);
	margin: 0 auto;
}

.cw-list-heading {
	font-family: var(--ff-head, Georgia, serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text, #111);
	margin: 24px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-primary-bg, #e8f2fb);
}

.cw-list-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.cw-list-grid .city {
	width: calc((100% / 4) - 8px);
}

.cw-list-grid .city a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	width: 100%;
	padding: 10px 14px;
	background: var(--color-primary);
	border-radius: var(--radius-md);
	color: var(--color-white);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	border: 0.5px solid transparent;
}

.cw-list-grid .city a:hover {
	background: var(--color-primary-bg);
	color: var(--color-primary);
}

/* City meta (población, altitud) */
.city-name {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
}

.city-meta {
	display: flex;
	gap: 10px;
	font-size: 10px;
	font-weight: 400;
	opacity: 0.7;
	line-height: 1;
}

.city-meta i {
	font-size: 9px;
	margin-right: 3px;
}

/* =============================================
   BUSCADOR / FILTRO
   ============================================= */
.cw-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 auto 0;
	padding: 14px 20px;
	max-width: calc(var(--max-width, 1200px) - 48px);
	box-sizing: border-box;
	background: var(--color-white, #fff);
	border-radius: var(--radius-xl, 24px);
}

.cw-filter-search {
	position: relative;
	flex: 1;
	max-width: 420px;
}

.cw-filter-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-primary, #0f4c81);
	font-size: 14px;
	pointer-events: none;
}

.cw-filter-input {
	width: 100%;
	padding: 11px 16px 11px 42px;
	font-size: 14px;
	border: 1.5px solid var(--color-border, #e5e8ec);
	border-radius: 50px;
	background: var(--color-bg-soft, #f0f7fc);
	color: var(--color-text, #111);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: var(--ff-body, inherit);
}

.cw-filter-input:focus {
	border-color: var(--color-primary, #0f4c81);
	box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
	background: #fff;
}

.cw-filter-input::placeholder {
	color: var(--color-text-muted, #999);
	font-size: 13px;
}

.cw-filter-count {
	font-size: 14px;
	color: var(--color-text-muted, #666);
	white-space: nowrap;
	font-weight: 400;
}

.cw-filter-count span {
	font-weight: 700;
	color: var(--color-primary, #0f4c81);
	font-size: 20px;
}

/* No results */
.cw-no-results {
	text-align: center;
	padding: 40px 16px;
	color: var(--color-text-muted, #888);
	font-size: 14px;
	max-width: calc(var(--max-width, 1200px) - 48px);
	margin-left: auto;
	margin-right: auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 992px) {
	#cweather-states #list-states .state,
	#cweather-archive #list-states .state {
		width: calc((100% / 3) - 8px);
	}
	#cweather-states #list-cities .city,
	#cweather-archive #list-cities .city,
	.cw-list-grid .city {
		width: calc((100% / 3) - 8px);
	}
}

@media screen and (max-width: 600px) {
	#cweather-states #list-states .state,
	#cweather-states #list-cities .city,
	#cweather-archive #list-states .state,
	#cweather-archive #list-cities .city,
	.cw-list-grid .city {
		width: calc((100% / 2) - 8px);
	}
	
	.cw-filter-bar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px;
		gap: 10px;
	}
	
	.cw-filter-search {
		max-width: 100%;
	}
	
	.cw-filter-count {
		text-align: center;
	}
}


/* ---- section-intro.css ---- */
/* section-intro.css */

.section.intro {
	width: 100%;
	max-width: var(--max-width);
	margin: 20px auto;
	padding: 0 var(--px);
	font-family: var(--ff-body);
}

.section.intro .intro-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 28px 32px;
}

.section.intro h1 {
	font-family: var(--ff-head);
	font-size: 28px;
	font-weight: 400;
	color: var(--color-text);
	line-height: 1.25;
	margin-bottom: 14px;
}

.section.intro .faq-editorial {
	margin: 20px 0 24px;
}

.section.intro .faq-editorial p {
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text-muted);
	margin-bottom: 12px;
}

.section.intro .description {
	margin: 10px 0 0;
}

.section.intro .description h2 {
	font-family: var(--ff-head);
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 12px;
	color: var(--color-text);
}

.section.intro .description p {
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text-muted);
}

/* ── Bloques dentro del intro (condiciones + gráfico) ── */
.cw-intro-block {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 0.5px solid var(--color-border);
}

.cw-intro-block h2 {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0 0 16px;
	font-family: var(--ff-body);
}

/* ── Secciones AQI y Astronomia independientes ── */
.section.section-aqi,
.section.section-astro {
	width: 100%;
	max-width: var(--max-width);
	padding: 0 var(--px);
	margin: 20px auto;
}

.section-aqi-inner,
.section-astro-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

.section-aqi-inner h2,
.section-astro-inner h2 {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 20px;
}


/* ---- section-current.css ---- */
/* section-current.css — resumen del tiempo actual (rediseño 2026-11) */

.section.current {
	width: 100%;
	max-width: var(--max-width);
	margin: 16px auto 0;
	padding: 0 var(--px);
	font-family: var(--ff-body);
	box-sizing: border-box;
}

.section.current .cw-now {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--color-white);
	border-radius: 28px;
	overflow: hidden;
}

/* ── Panel izquierdo (oscuro) ── */
.section.current .cw-now__main {
	position: relative;
	overflow: hidden;
	background: var(--color-navy);
	color: #fff;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.section.current .cw-now__bg {
	position: absolute;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
	width: 250px;
	height: 250px;
	color: #fff;
	opacity: 0.16;
	pointer-events: none;
}

.section.current .cw-now__main > *:not(.cw-now__bg) {
	position: relative;
	margin: 0;
}

.section.current .cw-now__place {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.section.current .cw-now__city {
	font-family: var(--ff-head);
	font-size: 46px;
	line-height: 1.05;
}

.section.current .cw-now__temp {
	font-family: var(--ff-head);
	font-size: 148px;
	line-height: 0.95;
}

.section.current .cw-now__range {
	display: flex;
	gap: 28px;
}

.section.current .cw-now__range-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.section.current .cw-now__range-item + .cw-now__range-item {
	padding-left: 28px;
	border-left: 1px solid var(--color-navy-line);
}

.section.current .cw-now__range-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-on-navy-muted);
}

.section.current .cw-now__range-value {
	font-family: var(--ff-head);
	font-size: 34px;
	line-height: 1;
	color: #fff;
}

.section.current .cw-now__time {
	font-size: 13px;
	color: #fff;
}

/* ── Panel derecho: seis datos ── */
.section.current .cw-now__stats {
	padding: 28px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-content: center;
}

.section.current .cw-stat {
	background: var(--color-bg);
	border-radius: 16px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.section.current .cw-stat__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--color-navy);
}

.section.current .cw-stat__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #33475c;
}

.section.current .cw-stat__icon {
	display: flex;
}

.section.current .cw-stat__value {
	font-family: var(--ff-head);
	font-size: 38px;
	line-height: 1;
	color: var(--color-text);
}

.section.current .cw-stat__unit {
	font-family: var(--ff-body);
	font-size: 13px;
	color: #33475c;
}

.section.current .cw-stat__bar {
	height: 6px;
	border-radius: 3px;
	background: #c9dff5;
	overflow: hidden;
}

.section.current .cw-stat__bar span {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: #1565c0;
}

.section.current .cw-stat__caption {
	font-size: 13px;
	color: #33475c;
}

.section.current .cw-stat.cw-stat-empty {
	background: transparent;
	border: 1.5px dashed var(--color-border);
	opacity: 0.6;
}

/* ── Responsive ── */
@media screen and (max-width: 900px) {
	.section.current .cw-now {
		grid-template-columns: 1fr;
	}
	.section.current .cw-now__temp {
		font-size: 112px;
	}
	.section.current .cw-now__bg {
		width: 180px;
		height: 180px;
	}
}

@media screen and (max-width: 600px) {
	.section.current {
		padding: 0 12px;
	}
	.section.current .cw-now__main {
		padding: 28px 24px;
	}
	.section.current .cw-now__city {
		font-size: 34px;
	}
	.section.current .cw-now__temp {
		font-size: 88px;
	}
	.section.current .cw-now__bg {
		width: 130px;
		height: 130px;
		right: 16px;
	}
	.section.current .cw-now__stats {
		padding: 16px;
		gap: 10px;
	}
	.section.current .cw-stat {
		padding: 14px;
	}
	.section.current .cw-stat__value {
		font-size: 30px;
	}
}


/* ---- section-faqs.css ---- */
/* section-faqs.css */

.section.faqs {
	width: 100%;
	max-width: var(--max-width);
	padding: 0 var(--px);
	margin: 20px auto;
	font-family: var(--ff-body);
}

.section.faqs .faqs-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

.section.faqs .section-header {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	margin-bottom: 18px;
	color: var(--color-text);
}

.section.faqs .section-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.section.faqs .question-wrap {
	border-radius: 0; /* nov 2026: la línea inferior recta, sin curvas en los extremos */
	background: var(--color-white);
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.section.faqs .question-wrap:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.section.faqs .question-wrap .question {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	margin-bottom: 12px;
	color: var(--color-text);
}

.section.faqs .question-wrap .answer {
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--color-text-muted);
	max-width: 780px;
}

@media screen and (max-width: 600px) {
	.section.faqs .faqs-inner {
		padding: 16px 16px;
	}
	.section.faqs .question-wrap .question {
		font-size: 15px;
	}
	.section.faqs .question-wrap .answer {
		font-size: 14px;
	}
}


/* ---- section-noticias.css ---- */
/* section-noticias.css */

#ultimas-noticias {
	max-width: var(--max-width);
	width: 100%;
	margin: 20px auto;
	padding: 0 var(--px);
	font-family: var(--ff-body);
}

#ultimas-noticias .noticias-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

#ultimas-noticias .section-header {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 18px;
}

#ultimas-noticias .container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 14px;
	align-items: start;
}

/* ── Noticia item ── */
#ultimas-noticias .noticia {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s;
}

#ultimas-noticias .noticia:hover {
	border-color: #c0cbda;
}

#ultimas-noticias .noticia-thumb {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	background: var(--color-primary-bg);
}

#ultimas-noticias .col-md-4 .noticia-thumb {
	height: 100px;
}

#ultimas-noticias .noticia-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#ultimas-noticias .noticia .category {
	display: inline-block;
	background: var(--color-primary-bg);
	color: var(--color-primary);
	padding: 3px 10px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 20px;
	max-width: fit-content;
}

#ultimas-noticias .noticia .title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-text);
	text-decoration: none;
}

#ultimas-noticias .col-md-4 .noticia .title {
	font-size: 13px;
}

#ultimas-noticias .noticia .title a {
	color: var(--color-text);
	text-decoration: none;
}

#ultimas-noticias .noticia .title a:hover {
	color: var(--color-primary);
}

/* ── Legacy col helpers ── */
#ultimas-noticias .col-md-12 {
	width: 100%;
}

#ultimas-noticias .col-md-4 {
	/* handled by grid */
}

@media screen and (max-width: 768px) {
	#ultimas-noticias .container {
		grid-template-columns: 1fr 1fr;
	}
	#ultimas-noticias .col-md-12 {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 500px) {
	#ultimas-noticias .container {
		grid-template-columns: 1fr;
	}
}


/* ---- section-related.css ---- */
/* section-related.css */

.section.related {
	width: 100%;
	max-width: var(--max-width);
	margin: 20px auto;
	padding: 0 var(--px);
	font-family: var(--ff-body);
}

.section.related .related-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

.section.related h3 {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 16px;
}

/* Grid contenedor */
.section.related .near {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* <a> directo generado por get_near_cities() */
.section.related .near > a {
	width: calc(25% - 6px);
	text-decoration: none;
	box-sizing: border-box;
}

/* <div class="item"> dentro del <a> */
.section.related .near > a > .item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 13px 15px;
	font-size: 15px;
	font-weight: 500;
	background: var(--color-bg);
	border-radius: var(--radius-md);
	color: var(--color-text);
	border: 0.5px solid transparent;
	transition: background 0.15s, border-color 0.15s;
	height: 100%;
	min-height: 58px;
}

.section.related .near > a:hover > .item {
	background: var(--color-primary-bg);
	border-color: #b8d4ef;
}

/* Distancia */
.section.related .near .distance {
	display: block;
	font-size: 11px;
	color: var(--color-text-muted);
	font-weight: 400;
	margin-top: 5px;
	letter-spacing: 0.02em;
}

.section.related .near .distance i {
	margin-right: 4px;
	font-size: 10px;
}

@media screen and (max-width: 900px) {
	.section.related .near > a { width: calc(33.33% - 6px); }
}

@media screen and (max-width: 600px) {
	.section.related .near > a { width: calc(50% - 6px); }
}


/* ---- section-pronostic-resume.css ---- */
/* section-pronostic-resume.css */

#cweather-single .main .section.pronostic-resume {
	width: 100%;
	max-width: var(--max-width);
	padding: 0 var(--px);
	margin: 20px auto;
	font-family: var(--ff-body);
}

#cweather-single .main .section.pronostic-resume .pronostic-resume-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

#cweather-single .main .section.pronostic-resume h2 {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 20px;
}

/* ── Resume pills / summary bar ── */
#cweather-single .main .section.pronostic-resume .resume {
	display: flex;
	font-weight: 500;
	font-size: 13px;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	padding: 0 0 16px;
	border-bottom: 0.5px solid var(--color-border);
	margin-bottom: 20px;
}

#cweather-single .main .section.pronostic-resume .resume .more:hover {
	cursor: pointer;
}

/* ── Details container ── */
#cweather-single .main .section.pronostic-resume .details {
	width: 100%;
}

/* ── Sub-section label ── */
#cweather-single .main .section.pronostic-resume .details .content .sub-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--color-text-muted);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin: 20px 0 10px;
}

#cweather-single .main .section.pronostic-resume .details .content .sub-label:first-child {
	margin-top: 0;
}

/* ── Row (card block) ── */
#cweather-single .main .section.pronostic-resume .details .content .row {
    width: 100%;
    padding: 20px 0;
}

#cweather-single .main .section.pronostic-resume .details .content h2 {
	font-family: var(--ff-head);
	font-size: 16px;
	font-weight: 400;
	margin: 0 0 14px;
	color: var(--color-text);
}

/* ── Stats grid — 2 columnas ── */
.cw-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	width: 100%;
	margin-top: 0;
}

.cw-stat-card {
	background: transparent;
	border-radius: 0;
	padding: 14px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-bottom: 0.5px solid var(--color-border);
}

.cw-grid .cw-stat-card:nth-child(odd) {
	padding-right: 24px;
	border-right: 0.5px solid var(--color-border);
}

.cw-grid .cw-stat-card:nth-child(even) {
	padding-left: 24px;
}

.cw-grid .cw-stat-card:nth-last-child(-n+2) {
	border-bottom: none;
}

.cw-stat-card-header {
	display: none;
}

.cw-card-icon {
	display: none;
}

.cw-card-label {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.3;
	margin: 0;
}

.cw-card-value {
	font-size: 22px;
	font-weight: 500;
	color: var(--color-text);
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 3px;
	margin: 0;
}

.cw-card-value.temp-max { color: var(--color-temp-max); }
.cw-card-value.temp-min { color: var(--color-temp-min); }

.cw-card-unit {
	font-size: 13px;
	font-weight: 400;
	color: var(--color-text-muted);
}


/* ── Sección row: sin fondo, solo separador ── */
#cweather-single .main .section.pronostic-resume .details .content .row {
	padding-top: 0;
}

#cweather-single .main .section.pronostic-resume .details .content .row + .row {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 0.5px solid var(--color-border);
}

#cweather-single .main .section.pronostic-resume .details .content h2 {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0 0 16px;
	font-family: var(--ff-body);
}

/* Icon color variants */
.cw-i-orange { background: #FAECE7; color: #D85A30; }
.cw-i-blue   { background: var(--color-primary-bg); color: var(--color-primary); }
.cw-i-green  { background: #EAF3DE; color: #3B6D11; }
.cw-i-teal   { background: #E1F5EE; color: #0F6E56; }
.cw-i-gray   { background: #F1EFE8; color: #5F5E5A; }
.cw-i-amber  { background: var(--color-warm-bg); color: #BA7517; }

/* ── AQI grid ── */
.aqi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin-top: 12px;
	width: 100%;
}

.aqi-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aqi-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.aqi-icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: #E1F5EE;
	color: #0F6E56;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aqi-title {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	margin: 0;
	line-height: 1.3;
}

.aqi-subtitle {
	font-size: 11px;
	color: var(--color-text-muted);
	margin: 0;
}

.aqi-value-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	width: 100%;
	flex-wrap: wrap;
}

.aqi-num {
	font-family: var(--ff-head);
	font-size: 26px;
	font-weight: 400;
	color: var(--color-text);
	line-height: 1;
}

.aqi-unit {
	font-size: 12px;
	color: var(--color-text-muted);
}

.aqi-badge {
	display: inline-block;
	font-size: 10px;
	padding: 2px 9px;
	border-radius: 99px;
	font-weight: 500;
}

.aqi-bar-wrap {
	background: var(--color-border);
	border-radius: 99px;
	height: 5px;
	overflow: hidden;
}

.aqi-bar {
	height: 100%;
	border-radius: 99px;
}

.aqi-level-1 .aqi-bar { background: #639922; }
.aqi-level-1 .aqi-badge { background: #EAF3DE; color: #3B6D11; }
.aqi-level-2 .aqi-bar { background: #EF9F27; }
.aqi-level-2 .aqi-badge { background: var(--color-warm-bg); color: #854F0B; }
.aqi-level-3 .aqi-bar { background: #D85A30; }
.aqi-level-3 .aqi-badge { background: #FAECE7; color: #993C1D; }
.aqi-level-4 .aqi-bar { background: #E24B4A; }
.aqi-level-4 .aqi-badge { background: #FCEBEB; color: #A32D2D; }
.aqi-level-5 .aqi-bar { background: #7F77DD; }
.aqi-level-5 .aqi-badge { background: #EEEDFE; color: #3C3489; }
.aqi-level-6 .aqi-bar { background: #9f7684; }
.aqi-level-6 .aqi-badge { background: #FBEAF0; color: #72243E; }

/* ── Astro grid ── */
.astro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0;
	width: 100%;
	margin-top: 0;
}

.astro-card {
	background: transparent;
	border-radius: 0;
	padding: 14px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-bottom: 0.5px solid var(--color-border);
}

.astro-grid .astro-card:nth-last-child(-n+3) {
	border-bottom: none;
}

.astro-card-header { display: none; }
.astro-icon { display: none; }
.astro-icon-sun { display: none; }
.astro-icon-moon { display: none; }

.astro-label {
	font-size: 12px;
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.3;
}

.astro-value {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text);
	margin: 0;
	line-height: 1;
	font-family: var(--ff-body);
}

.astro-value-sm {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	margin: 0;
	line-height: 1.3;
	font-family: var(--ff-body);
}

/* ── Legacy layout helpers ── */
#cweather-single .main .section.pronostic-resume .details .content .text {
	width: 60%;
}

#cweather-single .main .section.pronostic-resume .details .content .detail {
	width: 40%;
	font-size: 13px;
	color: var(--color-text-muted);
}

#cweather-single .main .section.pronostic-resume .details .content .text h3 {
	font-weight: 500;
	font-size: 13px;
	margin: 0;
	font-family: var(--ff-body);
}

#cweather-single .main .related .item a {
	color: var(--color-text);
	font-weight: 500;
	font-size: 13px;
}

#cweather-single .main .section.pronostic-resume .details .content .row .astro {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0;
}

#cweather-single .main .section.pronostic-resume .details .content .row .astro div.item {
	width: calc(33% - 8px);
}

#cweather-single .main .section.pronostic-resume .day .air-quality {
	width: 100%;
}

#cweather-single .main .section.pronostic-resume .day .air-quality .air-quality-wrapper {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

#cweather-single .main .section.pronostic-resume .day .air-quality .air-quality-wrapper .air-quality-details {
	max-width: 350px;
	width: 100%;
	text-align: center;
}

/* ── AQI widget (circular) ── */
.ui-widgets {
	position: relative;
	width: 8rem;
	height: 8rem;
	border-radius: 99px;
	border: 1rem solid var(--color-border);
	margin: 0 auto;
	display: block;
}

.ui-widgets .ui-values {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 22px;
	text-align: center;
}

.ui-widgets.level-1 { border-right-color: #639922; }
.ui-widgets.level-2 { border-right-color: #EF9F27; border-bottom-color: #EF9F27; }
.ui-widgets.level-3 { border-right-color: #D85A30; border-bottom-color: #D85A30; }
.ui-widgets.level-4 { border-right-color: #E24B4A; border-bottom-color: #E24B4A; border-left-color: #E24B4A; }
.ui-widgets.level-5 { border-color: #7F77DD; }
.ui-widgets.level-6 { border-color: #9f7684; }

/* ── AQI cuadrícula unida ── */
.aqi-grid2 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.aqi2-card {
	background: var(--color-white);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aqi2-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aqi2-icon {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aqi2-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	line-height: 1.2;
	margin: 0;
}

.aqi2-desc {
	font-size: 11px;
	color: var(--color-text-muted);
	line-height: 1.3;
	margin: 0;
}

.aqi2-val-row {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.aqi2-num {
	font-size: 20px;
	font-weight: 500;
	color: var(--color-text);
	line-height: 1;
}

.aqi2-unit {
	font-size: 11px;
	color: var(--color-text-muted);
}

.aqi2-badge {
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 99px;
	margin-left: 2px;
}

.aqi2-bar-track {
	height: 3px;
	border-radius: 99px;
	background: var(--color-border);
	overflow: hidden;
}

.aqi2-bar-fill { height: 100%; border-radius: 99px; }

.aqi2-l1 .aqi2-icon  { background: #EAF3DE; color: #3B6D11; }
.aqi2-l1 .aqi2-badge { background: #EAF3DE; color: #27500A; }
.aqi2-l1 .aqi2-bar-fill { background: #639922; }

.aqi2-l2 .aqi2-icon  { background: #FAEEDA; color: #854F0B; }
.aqi2-l2 .aqi2-badge { background: #FAEEDA; color: #633806; }
.aqi2-l2 .aqi2-bar-fill { background: #EF9F27; }

.aqi2-l3 .aqi2-icon  { background: #FAECE7; color: #993C1D; }
.aqi2-l3 .aqi2-badge { background: #FAECE7; color: #712B13; }
.aqi2-l3 .aqi2-bar-fill { background: #D85A30; }

.aqi2-l4 .aqi2-icon  { background: #FCEBEB; color: #A32D2D; }
.aqi2-l4 .aqi2-badge { background: #FCEBEB; color: #791F1F; }
.aqi2-l4 .aqi2-bar-fill { background: #E24B4A; }

.aqi2-l5 .aqi2-icon  { background: #EEEDFE; color: #3C3489; }
.aqi2-l5 .aqi2-badge { background: #EEEDFE; color: #26215C; }
.aqi2-l5 .aqi2-bar-fill { background: #7F77DD; }

.aqi2-l6 .aqi2-icon  { background: #FBEAF0; color: #72243E; }
.aqi2-l6 .aqi2-badge { background: #FBEAF0; color: #4B1528; }
.aqi2-l6 .aqi2-bar-fill { background: #D4537E; }

@media screen and (max-width: 600px) {
	.aqi-grid2 { grid-template-columns: repeat(2, 1fr); }
}
.cw-hourly-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.cw-leg-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: var(--color-text-muted);
}

.cw-leg-sq {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
}

.cw-leg-rain {
	background: rgba(24,95,165,0.25);
	border: 0.5px solid rgba(24,95,165,0.45);
}

.cw-leg-wind {
	background: none;
	border: 1.5px dashed #888780;
}

.cw-hourly-chart-wrap {
	position: relative;
	width: 100%;
	height: 180px;
}

.cw-hourly-chart-xlabels {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--color-text-muted);
	margin-top: 4px;
	padding: 0 2px;
}

@media screen and (max-width: 600px) {
	.cw-grid { grid-template-columns: 1fr 1fr; }
	.aqi-grid { grid-template-columns: 1fr; }
	.astro-grid { grid-template-columns: 1fr 1fr; }

	#cweather-single .main .section.pronostic-resume .details .content .row .astro div.item,
	#cweather-single .main .section.pronostic-resume .details .content .row .air-quality,
	#cweather-single .main .section.pronostic-resume .details .content .row .air-quality .detail {
		width: 100%;
	}
}


/* ---- section-pronostic-hours.css ---- */
/* section-pronostic-hours.css */

#cweather-single .main .section.pronostic-hours {
	width: 100%;
	max-width: var(--max-width);
	padding: 0 var(--px);
	margin: 20px auto;
	font-family: var(--ff-body);
}

#cweather-single .main .section.pronostic-hours .pronostic-hours-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

#cweather-single .main .section.pronostic-hours h2 {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 18px;
}

/* ── Override estilos globales del tema ── */
.cw-hours-table td,
.cw-hours-table th {
	border: none !important;
}

.cw-hours-table tbody tr:nth-child(odd) td,
.cw-hours-table tbody tr:nth-child(odd) th {
	background: none !important;
}

/* ── Tabla ── */
.hours-details {
	width: 100%;
	border: none;
	padding: 0;
}

.cw-hours-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

.cw-hours-table thead tr {
	border-bottom: 0.5px solid var(--color-border);
}

.cw-hours-table th {
	font-size: 10px;
	font-weight: 500;
	color: var(--color-text-muted);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 0 16px 10px;
	text-align: left;
	border: none;
	background: none;
}

.cw-hours-table tbody tr {
	border-bottom: 0.5px solid var(--color-border);
	background: none !important;
	transition: background 0.12s;
}

.cw-hours-table tbody tr:last-child {
	border-bottom: none;
}

.cw-hours-table tbody tr:hover {
	background: var(--color-bg) !important;
}

.cw-hours-table td {
	padding: 10px 16px;
	vertical-align: middle;
	font-size: 13px;
	color: var(--color-text-muted);
	border: none;
	background: none;
}

/* Hora */
.cwh-time {
	font-weight: 500;
	color: var(--color-text) !important;
	white-space: nowrap;
}

/* Icono */
.cwh-icon img {
	width: 30px;
	height: 30px;
	display: block;
}

/* Temperatura */
.cwh-temp {
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--color-temp-max) !important;
	font-variant-numeric: tabular-nums;
}

/* Lluvia pill */
.cwh-rain-pill {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 99px;
	background: var(--color-primary-bg);
	color: var(--color-primary);
	font-size: 11px;
	font-weight: 500;
}

.cwh-no-rain {
	color: var(--color-border);
	font-size: 13px;
}

/* Unidades pequeñas */
.cwh-unit {
	font-size: 11px;
	color: var(--color-text-muted);
	font-weight: 400;
}

/* Flecha dirección */
.cwh-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
	#cweather-single .main .section.pronostic-hours .pronostic-hours-inner {
		padding: 16px 12px;
	}
	.cw-hours-table th:nth-child(5),
	.cw-hours-table td:nth-child(5) {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	.cw-hours-table th:nth-child(6),
	.cw-hours-table td:nth-child(6) {
		display: none;
	}
}


/* ---- section-pronostic-days.css ---- */
/* section-pronostic-days.css */

#cweather-days {
	width: 100%;
	margin: 0 auto;
	float: none;
	display: flex;
	padding: 20px 0;
	font-family: var(--ff-body);
}

#cweather-days .main {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ── Section wrapper ── */
#cweather-days .section.pronostic-days {
	width: 100%;
	max-width: var(--max-width);
	margin: 20px auto;
	padding: 0 var(--px);
}

#cweather-days .section.pronostic-days .pronostic-days-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

#cweather-days .section.pronostic-days h2 {
	font-family: var(--ff-head);
	font-size: 22px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 18px;
}

/* ── Column header row ── */
.pronostic-days .days-col-header {
	display: grid;
	grid-template-columns: 70px 38px 1fr 100px 90px 80px;
	gap: 10px;
	padding: 6px 14px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	font-weight: 500;
}

/* ── Day row ── */
.pronostic-days .day-row {
	display: grid;
	grid-template-columns: 70px 38px 1fr 100px 90px 80px;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--color-white);
	border-radius: var(--radius-md);
	margin-bottom: 3px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
	cursor: pointer;
}

.pronostic-days .day-row:hover {
	background: var(--color-bg);
}

.pronostic-days .day-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
}

.pronostic-days .day-sub {
	font-size: 11px;
	color: var(--color-text-muted);
	margin-top: 2px;
}

.pronostic-days .day-icon img {
	width: 36px;
	height: 36px;
	display: block;
}

/* ── Temperature bar ── */
.pronostic-days .temp-bar-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pronostic-days .temp-min {
	font-size: 13px;
	color: var(--color-text-muted);
	min-width: 28px;
	text-align: right;
}

.pronostic-days .temp-max {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	min-width: 28px;
}

/* Barra más fina y elegante */
.pronostic-days .bar-track {
	flex: 1;
	height: 3px;
	background: var(--color-border);
	border-radius: 2px;
	position: relative;
	overflow: hidden;
}

.pronostic-days .bar-fill {
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--color-temp-min), var(--color-warm));
	position: absolute;
}

/* ── Rain pill ── */
.pronostic-days .rain-pill {
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 20px;
	background: var(--color-bg);
	color: var(--color-text-muted);
	text-align: center;
	white-space: nowrap;
	font-weight: 500;
}

.pronostic-days .rain-has {
	background: var(--color-primary-bg);
	color: var(--color-primary);
}

/* ── Wind info ── */
.pronostic-days .wind-info {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.4;
}

.pronostic-days .wind-speed {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
}

/* ── Detail link ── */
.pronostic-days .detail-link {
	font-size: 12px;
	color: var(--color-primary);
	text-decoration: none;
	white-space: nowrap;
	font-weight: 600;
}

.pronostic-days .detail-link:hover {
	text-decoration: underline;
}

/* ── Details expanded ── */
#cweather-days .section.pronostic-days .day .details {
	display: block;
	width: 100%;
}

#cweather-days .section.pronostic-days .day .hours-details {
	display: inline-block;
	width: 100%;
	margin: 0;
}

#cweather-days .section.pronostic-days .day .hours-details .heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--color-primary);
	font-size: 11px;
	padding: 12px 20px;
	font-weight: 500;
	color: var(--color-white);
	border-radius: var(--radius-md);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#cweather-days .section.pronostic-days .day .hours-details .heading .col {
	width: calc(100% / 7);
}

#cweather-days .section.pronostic-days .day .hours-details .hourly {
	display: flex;
	flex-direction: column;
}

#cweather-days .section.pronostic-days .day .hours-details .hourly .data {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 9px 20px;
	font-size: 13px;
	border-bottom: 0.5px solid var(--color-border);
}

#cweather-days .section.pronostic-days .day .hours-details .hourly .data:last-child {
	border-bottom: none;
}

#cweather-days .section.pronostic-days .day .hours-details .hourly .data:hover {
	background: var(--color-bg);
}

#cweather-days .section.pronostic-days .day .hours-details .hourly .data .col {
	width: calc(100% / 7);
}

#cweather-days .section.pronostic-days .day .hours-details .hourly .data img {
	width: 36px;
	height: auto;
}

#cweather-days .related .item a {
	color: var(--color-text);
	font-weight: 500;
	font-size: 13px;
}

/* ── Tablet ── */
@media screen and (max-width: 768px) {

	#cweather-days .section.pronostic-days .pronostic-days-inner {
		padding: 16px 16px;
	}

	.pronostic-days .days-col-header,
	.pronostic-days .day-row {
		grid-template-columns: 60px 34px 1fr 85px 80px;
	}

	/* Ocultar columna de viento en tablet, mantener link */
	.pronostic-days .days-col-header > div:nth-child(5),
	.pronostic-days .wind-info {
		display: none;
	}
}

/* ── Mobile ── */
@media screen and (max-width: 480px) {

	#cweather-days .section.pronostic-days .pronostic-days-inner {
		padding: 14px 12px;
	}

	/* En mobile: día | icono | barra temp | lluvia | link */
	.pronostic-days .days-col-header,
	.pronostic-days .day-row {
		grid-template-columns: 52px 30px 1fr 70px 50px;
	}

	/* Ocultar viento en mobile */
	.pronostic-days .days-col-header > div:nth-child(5),
	.pronostic-days .wind-info {
		display: none;
	}

	/* Mostrar siempre el link en mobile */
	.pronostic-days .detail-link {
		display: block;
		font-size: 11px;
		text-align: center;
		padding: 4px 6px;
		background: var(--color-primary-bg);
		border-radius: var(--radius-sm);
		color: var(--color-primary);
	}

	.pronostic-days .day-label {
		font-size: 13px;
	}

	.pronostic-days .day-sub {
		font-size: 10px;
	}

	.pronostic-days .rain-pill {
		font-size: 10px;
		padding: 4px 6px;
	}

	.pronostic-days .temp-min,
	.pronostic-days .temp-max {
		font-size: 12px;
		min-width: 20px;
	}

	#cweather-days .section.pronostic-days .day .details .content .row .astro div.item,
	#cweather-days .section.pronostic-days .day .details .content .row > div {
		width: 50%;
	}
}


/* ---- section-top-menu.css ---- */
/* section-top-menu.css — tira de días (rediseño 2026-11) */

.cw-days {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--ff-body);
}

.cw-days__track {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	padding: 4px 0 8px;
}

.cw-day {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 6px;
	border-radius: 14px;
	color: var(--color-text);
	text-decoration: none;
	transition: background 0.15s;
}

.cw-day:hover {
	background: var(--color-bg-soft);
	color: var(--color-text);
}

.cw-day.is-active {
	background: var(--color-primary-bg);
}

.cw-day__name {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.cw-day.is-active .cw-day__name {
	font-weight: 700;
}

.cw-day__icon {
	display: block;
	width: 48px;
	height: 48px;
}

.cw-day__temps {
	display: flex;
	align-items: stretch;
}

.cw-day__t {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0 8px;
}

.cw-day__t + .cw-day__t {
	border-left: 1px solid var(--color-border);
}

.cw-day__t b {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cw-day__t--max b {
	color: var(--color-temp-max);
}

.cw-day__t--min b {
	color: var(--color-temp-min);
}

.cw-day__t small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

@media screen and (max-width: 760px) {
	.cw-days__track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.cw-day {
		padding: 10px 4px;
	}
	.cw-day__icon {
		width: 40px;
		height: 40px;
	}
	.cw-day__t {
		padding: 0 6px;
	}
	.cw-day__t b {
		font-size: 16px;
	}
}


/* ---- section-middle-menu.css ---- */
/* ============================================================
   Section: Middle Menu (slider de días)
   ============================================================ */

#slider-menu {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto 20px;
	padding: 0 var(--px);
	font-family: var(--ff-body);
	overflow: hidden;
}

#slider-menu h3 {
	font-family: var(--ff-head);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 16px;
}

#slider-menu .content {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 4px 0 16px;
}

#slider-menu .content a {
	text-decoration: none;
	color: var(--color-text);
	flex: 1;
	min-width: 160px;
	max-width: 200px;
}

#slider-menu .content .day-box {
	cursor: pointer;
	border-radius: var(--radius-md);
	background: var(--color-white);
	border: 0.5px solid var(--color-border);
	text-align: center;
	padding: 20px 16px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

#slider-menu .content a:hover .day-box,
#slider-menu .content a.active .day-box {
	background: var(--color-primary-bg);
	border-color: #b8d4ef;
	box-shadow: 0 2px 8px rgba(15, 76, 129, 0.08);
}

#slider-menu .content .day-box .date {
	font-size: 11px;
	font-weight: 600;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

#slider-menu .content .day-box .icon img {
	width: 52px;
	height: 52px;
	margin: 0 auto;
}

#slider-menu .content .day-box .max {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-temp-max);
}

#slider-menu .content .day-box .min {
	font-size: 14px;
	color: var(--color-temp-min);
}

#slider-menu .content .day-box .percent-rain {
	font-size: 11px;
	color: var(--color-text-muted);
	margin-top: 4px;
}

@media screen and (max-width: 768px) {
	#slider-menu .content a {
		min-width: 130px;
	}
}


/* ---- section-climate-summary.css ---- */
/* section-climate-summary.css */

.section.climate-summary {
	width: 100%;
	max-width: var(--max-width);
	margin: 20px auto;
	padding: 0 var(--px);
	font-family: var(--ff-body);
}

.section.climate-summary .climate-summary-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
}

.section.climate-summary h2 {
	font-family: var(--ff-head);
	font-size: 22px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 14px;
}

.section.climate-summary > .climate-summary-inner > p {
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text-muted);
	margin: 0 0 24px;
}

/* ── Stats grid ── */
.climate-stats-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.climate-stat {
	background: var(--color-bg-soft);
	border-radius: var(--radius-md);
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.climate-stat-icon {
	font-size: 22px;
	line-height: 1;
}

.climate-stat-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-text-muted);
	font-weight: 500;
}

.climate-stat-value {
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
	line-height: 1;
}

/* ── Responsive ── */
@media screen and (max-width: 992px) {
	.climate-stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 600px) {
	.section.climate-summary .climate-summary-inner {
		padding: 16px 16px;
	}

	.climate-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.section.climate-summary h2 {
		font-size: 18px;
	}
}

/* ── Gráfico 14 días ── */
.cw-days-chart-block {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 0.5px solid var(--color-border);
}


/* ---- section-weather-tips.css ---- */
/* section-weather-tips.css */

/* ── Contenedor lateral fijo ── */
.weather-tips-sticky {
	position: fixed;
	top: 120px;
	right: 0;
	width: 260px;
	z-index: 999;
	font-family: var(--ff-body);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.weather-tips-sticky.hidden {
	transform: translateX(110%);
	opacity: 0;
	pointer-events: none;
}

.weather-tips-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl) 0 0 var(--radius-xl);
	padding: 20px 20px 20px 22px;
	box-shadow: -4px 4px 20px rgba(0,0,0,0.10);
	position: relative;
}

/* ── Botón cerrar ── */
.weather-tips-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: var(--color-text-muted);
	line-height: 1;
	padding: 2px 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.weather-tips-close:hover {
	color: var(--color-primary);
	background: var(--color-primary-hover);
}

/* ── Contenido ── */
.weather-tips-inner h2 {
	font-family: var(--ff-head);
	font-size: 17px;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0 0 10px;
	line-height: 1.35;
	padding-right: 18px;
}

.weather-tips-inner p {
    font-size: 14px;
    line-height: 1.5em;
	color: var(--color-text);
	margin: 0;
}

/* ── Ocultar en móvil ── */
@media screen and (max-width: 1024px) {
	.weather-tips-sticky {
		display: none;
	}
}

/* SEO nov 2026: el título del consejo ya no es un H2 (era un encabezado con emoji en la ficha) */
.weather-tips-inner .weather-tips-title {
	font-family: var(--ff-head);
	font-size: 17px;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0 0 10px;
	line-height: 1.35;
	padding-right: 18px;
}


/* ---- section-weather-alerts.css ---- */
/* section-weather-alerts.css */

.weather-alerts-sticky {
	position: fixed;
	top: 120px;
	right: 0;
	width: 270px;
	z-index: 999;
	font-family: var(--ff-body);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.weather-alerts-sticky.hidden {
	transform: translateX(110%);
	opacity: 0;
	pointer-events: none;
}

.weather-alerts-inner {
	background: var(--color-white);
	border-radius: var(--radius-xl) 0 0 var(--radius-xl);
	padding: 20px 20px 20px 22px;
	box-shadow: -4px 4px 20px rgba(0,0,0,0.10);
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
}

.weather-alerts-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: var(--color-text-muted);
	line-height: 1;
	padding: 2px 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.weather-alerts-close:hover {
	color: var(--color-primary);
	background: var(--color-primary-hover);
}

.weather-alerts-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--color-warm);
	color: var(--color-white);
	font-size: 11px;
	font-weight: 500;
	margin-bottom: 8px;
}

.weather-alerts-inner h2 {
	font-family: var(--ff-head);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 12px;
	padding-right: 18px;
}

.wal-item {
	border-radius: var(--radius-md);
	padding: 10px 12px;
	margin-bottom: 8px;
}

.wal-item:last-child { margin-bottom: 0; }

.wal-event {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 4px;
}

.wal-area {
	font-size: 11px;
	line-height: 1.3;
	margin: 0 0 4px;
}

.wal-dates {
	font-size: 10px;
	margin: 0 0 6px;
	opacity: .8;
}

.wal-desc {
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
}

.alert-minor    { background: #F1EFE8; }
.alert-minor    .wal-event,
.alert-minor    .wal-area,
.alert-minor    .wal-dates,
.alert-minor    .wal-desc  { color: #444441; }

.alert-moderate { background: #FAEEDA; }
.alert-moderate .wal-event,
.alert-moderate .wal-area,
.alert-moderate .wal-dates,
.alert-moderate .wal-desc  { color: #633806; }

.alert-severe   { background: #FAECE7; }
.alert-severe   .wal-event,
.alert-severe   .wal-area,
.alert-severe   .wal-dates,
.alert-severe   .wal-desc  { color: #712B13; }

.alert-extreme  { background: #FCEBEB; }
.alert-extreme  .wal-event,
.alert-extreme  .wal-area,
.alert-extreme  .wal-dates,
.alert-extreme  .wal-desc  { color: #791F1F; }

/* Nov 2026: letra más grande y color = nivel del aviso (amarillo, naranja, rojo), con barra lateral clara */
.weather-alerts-sticky { width: 310px; }
.weather-alerts-inner h2 { font-size: 18px; }
.wal-item { border-left: 5px solid #9AA5B1; padding: 12px 14px; }
.wal-event { font-size: 14px; font-weight: 600; }
.wal-area  { font-size: 13px; }
.wal-dates { font-size: 12px; }
.wal-desc  { font-size: 14px; line-height: 1.45; }
.alert-moderate { background: #FFF6D1; border-left-color: #F2C200; }
.alert-moderate .wal-event, .alert-moderate .wal-area, .alert-moderate .wal-dates, .alert-moderate .wal-desc { color: #5A4500; }
.alert-severe   { background: #FFE8D1; border-left-color: #F07C00; }
.alert-severe   .wal-event, .alert-severe .wal-area, .alert-severe .wal-dates, .alert-severe .wal-desc { color: #6B3300; }
.alert-extreme  { background: #FDE2E2; border-left-color: #D62828; }
.alert-extreme  .wal-event, .alert-extreme .wal-area, .alert-extreme .wal-dates, .alert-extreme .wal-desc { color: #7A1414; }

/* Nov 2026 (opción A): sin barra lateral; etiqueta del nivel, cabecera con contador y leyenda */
.weather-alerts-sticky { width: 330px; }
.weather-alerts-inner { padding: 20px 20px 18px 22px; }
.weather-alerts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-right: 20px; }
.weather-alerts-head h2 { margin: 0; font-size: 20px; }
.weather-alerts-badge { width: 26px; height: 26px; margin: 0; font-size: 13px; font-weight: 700; color: #fff; }
.weather-alerts-badge.alert-moderate { background: #E0B000; }
.weather-alerts-badge.alert-severe   { background: #F07C00; }
.weather-alerts-badge.alert-extreme  { background: #D62828; }
.wal-item { border-left: 0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.wal-event { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.wal-level { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.alert-moderate .wal-level { background: #F2C200; color: #3D2E00; }
.alert-severe   .wal-level { background: #F07C00; }
.alert-extreme  .wal-level { background: #D62828; }
.wal-area  { font-size: 13px; margin: 0 0 2px; }
.wal-dates { font-size: 12px; margin: 0 0 6px; }
.wal-desc  { font-size: 14px; line-height: 1.45; }
.wal-legend { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #E5E8EC; font-size: 12px; color: #3D4F61; }
.wal-legend span { display: inline-flex; align-items: center; gap: 6px; background: none; }
.wal-legend i { width: 10px; height: 10px; border-radius: 50%; }
.wal-legend .alert-moderate i { background: #F2C200; }
.wal-legend .alert-severe i   { background: #F07C00; }
.wal-legend .alert-extreme i  { background: #D62828; }

/* Nov 2026 (opción B): franja desplegable bajo el título, solo en móvil y tablet */
.cw-walm { display: none; }
@media screen and (max-width: 1024px) {
	.weather-alerts-sticky { display: none; }
	.cw-walm { display: block; margin: 0 0 20px; border-radius: 14px; overflow: hidden; font-family: var(--ff-body); background: #fff; border: 1px solid #E5E8EC; }
	.cw-walm summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
	.cw-walm summary::-webkit-details-marker { display: none; }
	.cw-walm.alert-moderate summary { background: #FFF6D1; color: #5A4500; }
	.cw-walm.alert-severe summary   { background: #FFE8D1; color: #6B3300; }
	.cw-walm.alert-extreme summary  { background: #FDE2E2; color: #7A1414; }
	.cw-walm.alert-minor summary    { background: #F1EFE8; color: #444441; }
	.cw-walm__ico { font-size: 20px; line-height: 1; }
	.cw-walm__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.cw-walm__txt b { font-size: 15px; }
	.cw-walm__txt small { font-size: 13px; line-height: 1.35; }
	.cw-walm__more { font-size: 13px; font-weight: 700; white-space: nowrap; }
	.cw-walm__more::after { content: ' ▾'; }
	.cw-walm[open] .cw-walm__more::after { content: ' ▴'; }
	.cw-walm__list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
	.cw-walm__list .wal-item { margin: 0; }
}


/* ---- section-info.css ---- */
/* section-info.css — City info page + sub-tabs styles */

/* Sub-tabs (14 días / Por horas / Información) */
.cw-sub-tabs {
	display: flex;
	gap: 6px;
	margin: 10px 0 16px;
	flex-wrap: wrap;
}

.cw-sub-tab {
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-primary, #0f4c81);
	background: var(--color-primary-bg, #e8f2fb);
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.cw-sub-tab:hover {
	background: var(--color-primary-hover, #d4e7f7);
}

.cw-sub-tab.active {
	background: var(--color-primary, #0f4c81);
	color: var(--color-white, #fff);
}

/* Tab switcher buttons */
.cw-tab-switcher {
	display: flex;
	gap: 4px;
	max-width: calc(var(--max-width, 1200px) - 48px);
	margin: 0 auto 8px;
	background: var(--color-white, #fff);
	border-radius: 50px;
	padding: 4px;
	width: fit-content;
}

.cw-tab-btn {
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--ff-body, inherit);
	color: var(--color-text-muted, #666);
	background: transparent;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.cw-tab-btn:hover {
	color: var(--color-primary, #0f4c81);
}

.cw-tab-btn.active {
	background: var(--color-primary, #0f4c81);
	color: var(--color-white, #fff);
}

/* Tab panels — collapsed uses max-height for SEO (content stays in DOM & readable) */
.cw-tab-panel {
	transition: max-height 0.3s ease, opacity 0.3s ease;
	max-height: 5000px;
	opacity: 1;
	overflow: visible;
}

.cw-tab-collapsed {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

.cw-info-hero {
	margin: 20px 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.cw-info-hero img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	display: block;
}

.cw-info-hero-caption {
	font-size: 12px;
	color: var(--color-text-muted);
	padding: 8px 0 0;
	text-align: right;
}

.cw-info-desc {
	margin: 16px 0 24px;
}

.cw-info-desc p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-text);
}

/* Info cards grid */
.cw-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 24px 0;
}

.cw-info-card {
	background: var(--color-bg-soft);
	border-radius: var(--radius-md);
	padding: 20px 16px;
	text-align: center;
}

.cw-info-card-icon {
	font-size: 20px;
	color: var(--color-primary);
	margin-bottom: 8px;
}

.cw-info-card-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-muted);
	margin: 0 0 6px;
	font-weight: 500;
}

.cw-info-card-value {
	font-family: var(--ff-head);
	font-size: 28px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0;
	line-height: 1.2;
}

.cw-info-card-value-sm {
	font-size: 16px;
	font-family: var(--ff-body);
	font-weight: 600;
}

.cw-info-card-sub {
	font-size: 11px;
	color: var(--color-text-muted);
	margin: 4px 0 0;
}

/* Links */
.cw-info-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 24px 0 8px;
}

.cw-info-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-primary);
	background: var(--color-primary-bg);
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.15s;
}

.cw-info-link:hover {
	background: var(--color-primary-hover);
}

.cw-info-link-muted {
	color: var(--color-text-muted);
	background: var(--color-bg-soft);
}

/* Subtitle */
.cw-info-subtitle {
	font-size: 15px;
	color: var(--color-text-muted);
	font-style: italic;
	margin: 0 0 16px;
}

/* Wikipedia article */
.cw-info-article {
	margin: 28px 0 16px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

/* Population history chart */
.cw-info-pop-chart {
	margin: 24px 0 8px;
}

.cw-info-pop-chart h3 {
	font-family: var(--ff-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 12px;
}

.cw-info-article h2 {
	font-family: var(--ff-head);
	font-size: 22px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 16px;
}

.cw-info-article h3 {
	font-family: var(--ff-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
	margin: 20px 0 8px;
}

.cw-info-article p {
	font-size: 14px;
	line-height: 1.8;
	color: var(--color-text);
	margin: 0 0 12px;
}

@media screen and (max-width: 768px) {
	.cw-info-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.cw-info-hero img {
		max-height: 250px;
	}
}

@media screen and (max-width: 480px) {
	.cw-info-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	
	.cw-info-card-value {
		font-size: 22px;
	}
}


/* ---- redesign.css ---- */
/* ==========================================================================
   redesign.css — piezas compartidas del rediseño 2026-11
   (panel unificado, encabezados SEO, tramos, tabla horaria, astronomía,
   cercanos, navegación entre días). Se carga después del resto de CSS del plugin.
   ========================================================================== */

/* ── Encabezados ── */
.cw-h1 {
	font-family: var(--ff-head);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.15;
	color: var(--color-text);
	margin: 0;
}

.cw-h2 {
	font-family: var(--ff-head);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.25;
	color: var(--color-text);
	margin: 0 0 16px;
}

.cw-h3 {
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	color: var(--color-text);
	margin: 0 0 8px;
}

/* parte larga del encabezado (SEO) en gris, sin peso visual */
.cw-h-soft {
	font-family: var(--ff-body);
	font-size: 0.72em;
	font-weight: 400;
	color: var(--color-text-muted);
}

.cw-lead {
	font-size: 18px;
	line-height: 1.6;
	color: #24384d;
	margin: 8px 0 0;
}

.cw-desc,
.cw-note {
	font-size: 14px;
	line-height: 1.7;
	color: var(--color-text-muted);
	margin: 8px 0 0;
}

/* ── Panel unificado (fondo blanco, bloques separados por línea) ── */
.cw-panel {
	width: 100%;
	max-width: var(--max-width);
	margin: 24px auto 0;
	padding: 0 var(--px);
	box-sizing: border-box;
	font-family: var(--ff-body);
}

.cw-panel > * {
	box-sizing: border-box;
}

.cw-panel__block {
	background: var(--color-white);
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cw-panel__block:first-child {
	border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.cw-panel__block:last-child {
	border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.cw-panel__block + .cw-panel__block {
	border-top: 1px solid var(--color-border);
}

.cw-panel__split {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 64px;
	align-items: stretch;
}

.cw-panel__chart {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cw-panel__chart .cw-hourly-chart-wrap {
	position: relative;
	flex: 1;
	min-height: 260px;
}

.cw-hourly-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--color-text-muted);
	margin-bottom: 12px;
}

.cw-hourly-chart-legend .cw-leg-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cw-hourly-chart-legend .cw-leg-sq {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	display: inline-block;
}

.cw-hourly-chart-legend .cw-leg-rain { background: rgba(24, 95, 165, 0.35); }
.cw-hourly-chart-legend .cw-leg-wind { border: 1.5px dashed #8a96a3; }

/* Tramos del día */
.cw-segments {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cw-segment {
	display: grid;
	grid-template-columns: 1fr auto 56px;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-border);
}

.cw-segment:last-child { border-bottom: 0; }

.cw-segment.is-peak {
	background: var(--color-primary-bg);
	margin: 0 -12px;
	padding: 12px;
	border-radius: 10px;
}

.cw-segment__name strong { font-weight: 600; }
.cw-segment__name small { margin-left: 6px; font-size: 13px; color: var(--color-text-muted); }
.cw-segment__name em { display: block; font-style: normal; font-size: 14px; color: var(--color-text-muted); }
.cw-segment__temp { font-weight: 600; text-align: right; }
.cw-segment__rain { color: var(--color-temp-min); text-align: right; font-weight: 500; }

/* ── Tabla por horas ── */
.cw-table-scroll {
	overflow-x: auto;
}

.cw-hours-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.cw-hours-table th,
.cw-hours-table td {
	padding: 8px 10px !important;
	text-align: left;
	vertical-align: middle;
	border: 0 !important;
	background: none !important;
}

.cw-hours-table thead th {
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-muted);
	text-transform: none;
	letter-spacing: 0;
}

.cw-hours-table tbody tr {
	border-top: 1px solid var(--color-border);
}

.cw-hours-table tbody th {
	font-weight: 600;
	white-space: nowrap;
}

.cw-hours-table .num {
	text-align: right;
}

.cw-hours-table .cwh-state {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #24384d;
}

.cw-hours-table .cwh-state img {
	width: 32px;
	height: 32px;
	flex: none;
}

.cw-hours-table .cwh-temp { font-weight: 600; }
.cw-hours-table .cwh-unit { color: var(--color-text-muted); font-size: 13px; }
.cw-hours-table .cwh-pressure { color: var(--color-text-muted); white-space: nowrap; }

.cw-hours-table .cwh-rain-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 99px;
	background: var(--color-primary-bg);
	color: var(--color-temp-min);
	font-size: 13px;
	font-weight: 600;
}

.cw-hours-table .cwh-no-rain { color: var(--color-text-muted); }

.cwh-wind__in {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	white-space: nowrap;
}

.cwh-arrow {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	color: var(--color-navy);
}

.cwh-dir {
	width: 36px;
	text-align: left;
	color: var(--color-text-muted);
	font-size: 13px;
}

/* ── Dos columnas: calidad del aire + astronomía ── */
.cw-two {
	width: 100%;
	max-width: var(--max-width);
	margin: 24px auto 0;
	padding: 0 var(--px);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.cw-two > .section {
	max-width: none;
	margin: 0;
	padding: 0;
}

.cw-two .section-aqi-inner,
.cw-two .section-astro-inner {
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.cw-two .aqi-grid2 { flex: 1; }

.cw-two .section-aqi-inner h2,
.cw-two .section-astro-inner h2 {
	font-size: 22px;
	margin: 0 0 16px;
}

.cw-astro {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cw-astro li {
	flex: 1;
	min-height: 52px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border);
}

.cw-astro li:last-child { border-bottom: 0; }

.cw-astro__label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text-muted);
}

.cw-astro__label svg { color: var(--color-navy); flex: none; }
.cw-astro__value { font-weight: 600; }

/* ── FAQ: preguntas como H3 ── */
.section.faqs h3.question {
	font-family: var(--ff-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 6px;
	color: var(--color-text);
}

/* ── Municipios cercanos ── */
.section.related h2 {
	font-family: var(--ff-head);
	font-size: 22px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 16px;
}

/* ── Día anterior / siguiente ── */
.cw-daynav {
	width: 100%;
	max-width: var(--max-width);
	margin: 24px auto 0;
	padding: 16px var(--px) 0;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--color-border);
	font-family: var(--ff-body);
}

.cw-daynav a {
	display: flex;
	flex-direction: column;
	min-height: 48px;
	justify-content: center;
	text-decoration: none;
	color: var(--color-link);
}

.cw-daynav__next { align-items: flex-end; text-align: right; }
.cw-daynav small { font-size: 13px; color: var(--color-text-muted); }
.cw-daynav span { font-weight: 600; }

/* ── Responsive ── */
@media screen and (max-width: 900px) {
	.cw-panel__split,
	.cw-two {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media screen and (max-width: 600px) {
	.cw-panel,
	.cw-two,
	.cw-daynav {
		padding-left: 12px;
		padding-right: 12px;
	}
	.cw-panel__block {
		padding: 22px 18px;
	}
	.cw-h1 { font-size: 28px; }
	.cw-h2 { font-size: 21px; }
	.cw-lead { font-size: 16px; }
	.cw-hours-table { font-size: 14px; }
	.cw-hours-table .cwh-state span,
	.cw-hours-table .cwh-pressure,
	.cw-hours-table thead th:nth-child(5) { display: none; }
	.cwh-dir { display: none; }
}


/* ==========================================================================
   Ciudad (cweather-days.php)
   ========================================================================== */

/* Pestañas Resumen / Información: a la derecha, subrayadas */
#cweather-days .cw-tab-switcher {
	width: auto;
	max-width: calc(var(--max-width) - 48px);
	margin: 8px auto 12px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	justify-content: flex-end;
	gap: 28px;
	border-bottom: 1px solid var(--color-border);
}

#cweather-days .cw-tab-btn {
	min-height: 44px;
	padding: 0 2px;
	margin-bottom: -1px;
	border-radius: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--color-text-muted);
	font-size: 15px;
	font-weight: 500;
}

#cweather-days .cw-tab-btn.active {
	background: transparent;
	color: var(--color-text);
	font-weight: 700;
	border-bottom-color: var(--color-navy);
}

/* Próximas horas */
.cw-next-hours {
	margin: 24px 0 8px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
}

.cw-next-hours__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(8, minmax(72px, 1fr));
	gap: 8px;
	overflow-x: auto;
}

.cw-next-hours__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 6px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	text-align: center;
}

.cw-next-hours__item.is-now {
	background: var(--color-primary-bg);
	border-color: transparent;
}

.cw-next-hours__time { font-size: 13px; color: var(--color-text-muted); }
.cw-next-hours__item strong { font-family: var(--ff-head); font-weight: 400; font-size: 22px; }
.cw-next-hours__rain { font-size: 12px; color: var(--color-temp-min); font-weight: 600; }

/* 14 días: evita el desbordamiento lateral en móvil */
#cweather-days .section.pronostic-days .pronostic-days-inner {
	overflow: hidden;
}

@media screen and (max-width: 480px) {
	.pronostic-days .days-col-header {
		display: none;
	}
	.cw-next-hours__list {
		grid-template-columns: repeat(8, 72px);
	}
}


/* ==========================================================================
   Estado / provincia (cweather-state.php)
   ========================================================================== */

#cweather-archive .cw-state-head .cw-h1 {
	font-size: 40px;
	margin: 0 0 8px;
}

#cweather-archive .cw-state-head .cw-lead {
	margin: 0 0 12px;
}

#cweather-archive .cw-list-heading.cw-h2 {
	font-size: 24px;
	margin: 0 0 16px;
}

@media screen and (max-width: 600px) {
	#cweather-archive .cw-state-head .cw-h1 { font-size: 30px; }
}


/* ==========================================================================
   Mapas SVG (estado / provincia y portada)
   ========================================================================== */

.cw-map {
	font-family: var(--ff-body);
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: 24px 28px;
	margin: 0 0 28px;
	box-sizing: border-box;
}

.cw-map--country {
	padding: 0;
	margin: 16px 0 0;
	background: transparent;
}

.cw-map__title { margin-bottom: 12px; }

.cw-map__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.cw-map__group {
	display: inline-flex;
	padding: 3px;
	border-radius: 10px;
	background: var(--color-primary-bg);
}

.cw-map__group button {
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--color-text);
	font: 500 14px var(--ff-body);
	cursor: pointer;
}

.cw-map__group button[aria-pressed="true"] {
	background: var(--color-navy);
	color: #fff;
}

.cw-map__stage { position: relative; }

.cw-map__svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
}

.cw-map__svg path {
	stroke: #ffffff;
	stroke-width: 0.8;
	stroke-linejoin: round;
	transition: opacity .12s;
}

.cw-map--country .cw-map__svg path[data-g] { stroke-width: 0.25; stroke-opacity: .5; }
.cw-map__svg path.is-empty { fill: #e6ebf0; }
.cw-map__svg a:hover path,
.cw-map__svg .is-hover { opacity: .78; }
.cw-map__svg a:focus-visible path { stroke: var(--color-navy); stroke-width: 2; }

.cw-map__dot {
	stroke: #ffffff;
	stroke-width: 2;
}

.cw-map__svg a:hover .cw-map__dot { stroke: var(--color-navy); }

.cw-map__info {
	margin: 8px 0 0;
	min-height: 22px;
	font-size: 14px;
	color: var(--color-text-muted);
}

.cw-map__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 10px;
	font-size: 13px;
	color: var(--color-text-muted);
}

.cw-map__legend-title { font-weight: 600; color: var(--color-text); }
.cw-map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cw-map__legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

@media screen and (max-width: 600px) {
	.cw-map { padding: 18px 14px; }
	.cw-map__group button { padding: 0 10px; font-size: 13px; }
}

/* Buscador de poblaciones del estado: hueco para la lupa */
#cweather-archive .cw-filter-input { padding-left: 36px !important; min-width: 260px; }

/* Día: calidad del aire sin desbordar en móvil */
.cw-two > .section { min-width: 0; }
@media screen and (max-width: 600px) {
	.cw-two .aqi-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.cw-two .aqi2-card { min-width: 0; }
}

/* Mapa del estado: columna lateral (municipio seleccionado + ranking) */
.cw-map.has-side .cw-map__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.cw-map__side { display: flex; flex-direction: column; gap: 16px; }

.cw-map__sel {
	background: var(--color-navy);
	color: #fff;
	border-radius: 18px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cw-map__sel-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-on-navy-muted); }
.cw-map__sel-name { display: block; font-family: var(--ff-head); font-size: 24px; line-height: 1.2; }
.cw-map__sel-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.cw-map__sel-val { font-family: var(--ff-head); font-size: 56px; line-height: 1; }
.cw-map__sel-sub { color: #d5dfea; font-size: 15px; }

.cw-map__sel-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border-radius: 10px;
	background: #fff;
	color: var(--color-navy) !important;
	font-weight: 600;
	text-decoration: none;
}

.cw-map__rank {
	border: 1px solid var(--color-border);
	border-radius: 18px;
	padding: 12px;
}

.cw-map__rank-title { margin: 4px 10px 8px; font-weight: 600; color: var(--color-text); }
.cw-map__rank-list { list-style: none; margin: 0; padding: 0; max-height: 470px; overflow-y: auto; }

.cw-map__rank-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 10px;
	border-radius: 10px;
	color: var(--color-text);
	text-decoration: none;
}

.cw-map__rank-list a:hover { background: var(--color-primary-bg); }
.cw-map__sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cw-map__rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-map__rank-list b { font-weight: 600; white-space: nowrap; }

@media screen and (max-width: 900px) {
	.cw-map.has-side .cw-map__layout { grid-template-columns: 1fr; }
	.cw-map__rank-list { max-height: 320px; }
}

/* Estado: poblaciones principales (tarjetas blancas) y resto en columnas */
#cweather-archive .cw-cities-block { margin-top: 48px; }

.cw-list-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 20px;
}

#cweather-archive .cw-list-head .cw-list-heading { margin: 0; }
.cw-list-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.cw-list-filter,
.cw-list-sort {
	height: 48px;
	padding: 0 14px;
	border: 1px solid #8fa5bd;
	border-radius: 10px;
	font: 400 16px var(--ff-body);
	color: var(--color-text);
	background: #fff;
	box-sizing: border-box;
}

.cw-list-filter { width: 280px; max-width: 100%; }

.cw-cards4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.cw-city-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	color: var(--color-text) !important;
	text-decoration: none !important;
	transition: border-color .15s;
}

.cw-city-card:hover { border-color: #9fb3c8; }
.cw-city-card[hidden], .cw-others .city[hidden] { display: none; }
.cw-city-card__name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.cw-city-card__meta { font-size: 14px; color: var(--color-text-muted); }
.cw-city-card__cta { font-weight: 600; font-size: 15px; color: var(--color-link); }

.cw-others {
	margin-top: 48px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 20px;
}

#cweather-archive .cw-others .cw-list-heading { margin: 0 0 16px; }
.cw-others__cols { column-count: 3; column-gap: 32px; line-height: 2.3; }
.cw-others__cols a { display: block; color: var(--color-link); text-decoration: none; break-inside: avoid; }
.cw-others__cols a:hover { text-decoration: underline; }
.cw-no-results { margin-top: 24px; color: var(--color-text-muted); }

@media screen and (max-width: 900px) {
	.cw-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cw-others__cols { column-count: 2; }
}

@media screen and (max-width: 600px) {
	.cw-list-tools, .cw-list-filter { width: 100%; }
	.cw-list-sort { width: 100%; }
	.cw-cards4 { gap: 10px; }
	.cw-city-card { padding: 14px; }
	.cw-others { padding: 20px; }
	.cw-others__cols { column-count: 2; column-gap: 16px; line-height: 2.1; } /* Nov 2026: 2 por fila también en móvil */
	.cw-others__cols a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
}
@media screen and (min-width: 601px) {
	.cw-list-tools { flex-wrap: nowrap; }
	.cw-list-sort { width: auto !important; }
	.cw-list-filter { width: 280px !important; }
}
.cw-desc--strong { color: var(--color-text); font-weight: 600; }

/* Estado: otras poblaciones plegables + clima y vecinos (2026-11) */
#cweather-archive .cw-others .cw-list-heading { border: 0; padding: 0; }
.cw-others.is-collapsed:not(.is-filtering) .is-more { display: none; }
.cw-others.is-filtering .cw-others__more { display: none; }
.cw-others__more {
	margin-top: 16px;
	min-height: 48px;
	padding: 0 18px;
	background: #fff !important;
	color: var(--color-link) !important;
	border: 1px solid #8fa5bd !important;
	border-radius: 10px !important;
	font: 600 16px var(--ff-body) !important;
	cursor: pointer;
}
.cw-others__more:hover { border-color: var(--color-link) !important; }
.cw-state-about { display: grid; grid-template-columns: 1fr; gap: 16px 32px; margin-top: 48px; }
.cw-state-about.has-neighbors { grid-template-columns: 2fr 1fr; }
#cweather-archive .cw-state-about h2 { margin: 0 0 12px; border: 0; padding: 0; }
.cw-state-about__text p { margin: 0; font-size: 17px; line-height: 1.7; color: #24384d; }
.cw-state-about__near { display: flex; flex-direction: column; gap: 12px; }
.cw-near-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	font-weight: 600;
	color: var(--color-text) !important;
	text-decoration: none !important;
}
.cw-near-link:hover { border-color: #9fb3c8; }
.cw-near-link span { color: var(--color-link); }
@media screen and (max-width: 900px) {
	.cw-state-about.has-neighbors { grid-template-columns: 1fr; }
}

/* Mapa: valores sobre cada zona */
.cw-map__labels text {
	font-family: var(--ff-body, Inter, sans-serif);
	font-weight: 700;
	fill: #0b1f33;
	stroke: rgba(255,255,255,.85);
	stroke-width: 3px;
	paint-order: stroke;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}

/* Ciudad: 14 días + columna lateral (aviso, sol y luna, cercanos) (2026-11) */
#cweather-days .cw-gmain {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
	width: 100%;
	max-width: var(--max-width);
	margin: 20px auto;
	padding: 0 var(--px);
	box-sizing: border-box;
}
#cweather-days .cw-gmain .section.pronostic-days { margin: 0; padding: 0; max-width: none; }
.cw-side { display: flex; flex-direction: column; gap: 16px; }
.cw-side h2 { margin: 0 0 6px !important; font: 600 17px var(--ff-body) !important; color: var(--color-text); border: 0 !important; padding: 0 !important; }
.cw-side__note { background: #fff4d6; border: 1px solid #b45309; border-radius: 16px; padding: 18px; }
.cw-side__note h2 { color: #7a3a05 !important; }
.cw-side__note p { margin: 0; font-size: 15px; line-height: 1.5; color: #3d2a0a; }
.cw-side__card { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 18px; }
.cw-side__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.cw-side__row span { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.cw-side__row svg { width: 18px; height: 18px; color: var(--color-text); }
.cw-side__near .near { display: flex; flex-direction: column; }
.cw-side__near .near > a { text-decoration: none !important; color: var(--color-link); }
.cw-side__near .near > a:nth-child(n+9) { display: none; }
.cw-side__near .item { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid #eef2f6; }
.cw-side__near .near > a:first-child .item { border-top: 0; }
.cw-side__near .near > a:hover .item { text-decoration: underline; }
.cw-side__near .distance { color: var(--color-text-muted); font-size: 14px; text-decoration: none; }
@media screen and (max-width: 900px) {
	#cweather-days .cw-gmain { grid-template-columns: 1fr; }
}

/* Ciudad: resumen climático (6 datos + gráfico máx/mín) (2026-11) */
.cw-gres { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; margin-top: 16px; }
.cw-sum-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cw-sum-tile { background: #f3f7fb; border-radius: 12px; padding: 14px; }
.cw-sum-tile span { display: block; font-size: 13px; color: var(--color-text-muted); }
.cw-sum-tile strong { display: block; font-family: var(--ff-head); font-weight: 400; font-size: 24px; color: var(--color-text); }
.cw-sum-chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cw-sum-chart svg { width: 100%; height: auto; display: block; font-family: var(--ff-body); }
.cw-sum-legend { display: flex; gap: 16px; font-size: 14px; color: var(--color-text-muted); }
.cw-sum-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cw-sum-legend i { display: inline-block; width: 18px; }
.cw-sum-legend i.is-max { height: 3px; background: #b45309; }
.cw-sum-legend i.is-min { border-top: 3px dashed #1257c9; }
@media screen and (max-width: 900px) {
	.cw-gres { grid-template-columns: 1fr; }
}

/* Ciudad: revisión general (2026-11) */
#breadcrumblist { width: 100%; box-sizing: border-box; justify-content: flex-start; }
#cweather-days .cw-tab-switcher { justify-content: flex-start; }
#cweather-days .weather-tips-sticky { display: none !important; }
.cw-next-hours__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.cw-next-hours__head .cw-h2 { margin-bottom: 12px; }
.cw-next-hours__all { font-weight: 600; color: var(--color-link); text-decoration: none; white-space: nowrap; }
.cw-next-hours__all:hover { text-decoration: underline; }

/* Municipios cercanos (día / horas / información) en tarjetas (2026-11) */
.cw-near-block { width: 100%; max-width: var(--max-width); margin: 24px auto 0; padding: 0 var(--px); box-sizing: border-box; }
.cw-near-block .cw-h2 { margin: 0 0 16px; }
.cw-near-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cw-near-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; text-decoration: none !important; color: var(--color-link); }
.cw-near-card span { font-weight: 600; }
.cw-near-card small { font-size: 14px; color: var(--color-text-muted); white-space: nowrap; }
.cw-near-card:hover { border-color: #9fb3c8; }
@media screen and (max-width: 900px) { .cw-near-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 600px) { .cw-near-grid { grid-template-columns: 1fr; } }

/* Día concreto: panel resumen del día (2026-11) */
.cw-now__temp-tag { font-family: var(--ff-body); font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b6c6d8; margin-left: 10px; vertical-align: super; }

/* Por horas en móvil: rejilla 4×2 sin scroll lateral (2026-11) */
@media screen and (max-width: 900px) {
	.cw-next-hours__list { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; overflow: visible; }
}

/* Ciudad: intro sin tarjeta blanca, pestañas a la derecha, fila del día clicable entera */
#cweather-days .cw-tab-switcher { justify-content: flex-end; }
#cweather-days #cw-tab-resumen.intro-inner { background: transparent; padding: 8px 0 0; border-radius: 0; box-shadow: none; }
#cweather-days #cw-tab-resumen .cw-next-hours { background: #fff; border: 1px solid #D9E3EE; border-radius: 20px; padding: 24px; margin-top: 28px; }
#cweather-days .day-row { position: relative; cursor: pointer; }
#cweather-days .day-row .detail-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 760px) { #cweather-days #cw-tab-resumen .cw-next-hours { padding: 16px; } }

/* Provincia/estado: cabecera alineada a la izquierda y sin tarjeta, como el mockup (2026-11) */
#cweather-archive .section-title.cw-state-head { background: transparent; padding: 8px 0 0; margin-bottom: 20px; width: 100%; max-width: calc(var(--max-width) - 48px); align-self: stretch; text-align: left; box-sizing: border-box; }
#cweather-archive .cw-state-head .cw-h1 { font-size: 52px; line-height: 1.08; margin: 0 0 10px; }
#cweather-archive .cw-state-head .cw-lead { font-size: 19px; line-height: 1.5; color: #4A5A6B; max-width: 680px; margin: 0; }
@media screen and (max-width: 600px) { #cweather-archive .cw-state-head .cw-h1 { font-size: 34px; } #cweather-archive .cw-state-head .cw-lead { font-size: 17px; } }

/* Mapa de provincia: zoom (+ / − / ver todo), arrastre y pellizco (2026-11) */
.cw-map--state .cw-map__svg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cw-map--state.is-zoomed .cw-map__svg { touch-action: none; cursor: grab; }
.cw-map--state.is-zoomed .cw-map__svg:active { cursor: grabbing; }
.cw-map--state .cw-map__svg path { vector-effect: non-scaling-stroke; stroke-width: 1; }
.cw-map--state .cw-map__dot { vector-effect: non-scaling-stroke; }
.cw-map__zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.cw-map__zoom button { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid #D9E3EE; background: #fff; color: #0b1f33; font: 600 22px/1 var(--ff-body, Inter, sans-serif); box-shadow: 0 2px 8px rgba(11,31,51,.10); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cw-map__zoom button:hover, .cw-map__zoom button:focus { background: #EAF1F9; color: #0b1f33; }
.cw-map__zoom button:disabled { opacity: .4; cursor: default; background: #fff; }
.cw-map__zoom button[hidden] { display: none; }

/* Por horas: slider horizontal con flechas (24 h) (2026-11) */
.cw-next-hours__slider { position: relative; }
.cw-next-hours__list,
.cw-next-hours .cw-next-hours__list { display: flex !important; gap: 10px; overflow-x: auto !important; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
.cw-next-hours__list::-webkit-scrollbar { display: none; }
.cw-next-hours__item { flex: 0 0 calc((100% - 70px) / 8); min-width: 0; scroll-snap-align: start; box-sizing: border-box; }
@media screen and (max-width: 900px) { .cw-next-hours__item { flex-basis: calc((100% - 40px) / 4.6); } }
.cw-sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid #D9E3EE; background: #fff; color: #0b1f33; font: 400 26px/1 var(--ff-body, Inter, sans-serif); box-shadow: 0 2px 10px rgba(11,31,51,.14); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cw-sl-btn:hover, .cw-sl-btn:focus { background: #EAF1F9; color: #0b1f33; }
.cw-sl-prev { left: -16px; }
.cw-sl-next { right: -16px; }
.cw-sl-btn[hidden] { display: none; }
@media (hover: none) { .cw-sl-btn { display: none; } }

/* Mapa de provincia/estado: tres tarjetas independientes como en el mockup (mapa · municipio · ranking) (2026-11) */
.cw-map--state.has-side { background: transparent; padding: 0; border-radius: 0; }
.cw-map--state.has-side .cw-map__main { background: #fff; border: 1px solid #D9E3EE; border-radius: 20px; padding: 24px; box-sizing: border-box; min-width: 0; }
.cw-map--state.has-side .cw-map__rank { background: #fff; border-color: #D9E3EE; border-radius: 20px; }
.cw-map--state.has-side .cw-map__layout { gap: 20px; }
@media screen and (max-width: 600px) { .cw-map--state.has-side .cw-map__main { padding: 16px; } }

/* Nov 2026 (opción A): mapa, municipio seleccionado y ranking en un único bloque blanco */
.cw-map--state.has-side { background: #fff; border: 1px solid #D9E3EE; border-radius: 20px; padding: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(11,31,51,.05); }
.cw-map--state.has-side .cw-map__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 20px 24px; border-bottom: 1px solid #EEF2F6; }
.cw-map--state.has-side .cw-map__head .cw-map__title { margin: 0; flex: 1 1 320px; }
.cw-map--state.has-side .cw-map__head .cw-map__bar { margin: 0; gap: 10px; justify-content: flex-end; }
.cw-map--state.has-side .cw-map__layout { gap: 0; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: stretch; }
.cw-map--state.has-side .cw-map__main { background: transparent; border: 0; border-right: 1px solid #EEF2F6; border-radius: 0; padding: 20px 24px 24px; }
.cw-map--state.has-side .cw-map__side { padding: 20px 22px; gap: 18px; min-width: 0; }
.cw-map--state.has-side .cw-map__sel { background: transparent; color: var(--color-text, #0b1f33); border-radius: 0; padding: 0 0 18px; border-bottom: 1px solid #EEF2F6; gap: 10px; }
.cw-map--state.has-side .cw-map__sel-label { color: #0f4c81; }
.cw-map--state.has-side .cw-map__sel-sub { color: #5b6b7b; }
.cw-map--state.has-side .cw-map__sel-cta { background: #0b1f33; color: #fff !important; }
.cw-map--state.has-side .cw-map__sel-cta:hover { background: #16365a; }
.cw-map--state.has-side .cw-map__rank { background: transparent; border: 0; border-radius: 0; padding: 0; }
.cw-map--state.has-side .cw-map__rank-title { margin: 0 0 8px; }
.cw-map--state.has-side .cw-map__rank-list { overflow-x: hidden; }
.cw-map--state.has-side .cw-map__rank-list a { padding: 0 8px; }
@media screen and (max-width: 900px) {
	.cw-map--state.has-side .cw-map__layout { grid-template-columns: minmax(0, 1fr); }
	.cw-map--state.has-side .cw-map__main { border-right: 0; border-bottom: 1px solid #EEF2F6; }
}
@media screen and (max-width: 600px) {
	.cw-map--state.has-side .cw-map__head { padding: 16px; }
	.cw-map--state.has-side .cw-map__head .cw-map__bar { justify-content: space-between; width: 100%; }
	.cw-map--state.has-side .cw-map__side { padding: 16px; }
}

/* Nov 2026: el mapa de la portada (país) usa el mismo bloque que el de la provincia */
.cw-map--country.has-side { background: #fff; padding: 0; margin: 0; overflow: hidden; }
.cw-map--country.has-side .cw-map__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 20px 24px; border-bottom: 1px solid #EEF2F6; }
.cw-map--country.has-side .cw-map__head .cw-map__title { margin: 0; flex: 1 1 320px; }
.cw-map--country.has-side .cw-map__head .cw-map__bar { margin: 0; gap: 10px; justify-content: flex-end; }
.cw-map--country.has-side .cw-map__layout { gap: 0; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: stretch; }
.cw-map--country.has-side .cw-map__main { background: transparent; border: 0; border-right: 1px solid #EEF2F6; border-radius: 0; padding: 20px 24px 24px; min-width: 0; }
.cw-map--country.has-side .cw-map__side { padding: 20px 22px; gap: 18px; min-width: 0; }
.cw-map--country.has-side .cw-map__sel { background: transparent; color: var(--color-text, #0b1f33); border-radius: 0; padding: 0 0 18px; border-bottom: 1px solid #EEF2F6; gap: 10px; }
.cw-map--country.has-side .cw-map__sel-label { color: #0f4c81; }
.cw-map--country.has-side .cw-map__sel-sub { color: #5b6b7b; }
.cw-map--country.has-side .cw-map__sel-cta { background: #0b1f33; color: #fff !important; }
.cw-map--country.has-side .cw-map__sel-cta:hover { background: #16365a; }
.cw-map--country.has-side .cw-map__rank { background: transparent; border: 0; border-radius: 0; padding: 0; }
.cw-map--country.has-side .cw-map__rank-title { margin: 0 0 8px; }
.cw-map--country.has-side .cw-map__rank-list { max-height: none; overflow: visible; }
.cw-map--country.has-side .cw-map__rank-list a { padding: 0 8px; }
@media screen and (max-width: 900px) {
	.cw-map--country.has-side .cw-map__layout { grid-template-columns: minmax(0, 1fr); }
	.cw-map--country.has-side .cw-map__main { border-right: 0; border-bottom: 1px solid #EEF2F6; }
}
@media screen and (max-width: 600px) {
	.cw-map--country.has-side .cw-map__head { padding: 16px; }
	.cw-map--country.has-side .cw-map__head .cw-map__bar { justify-content: space-between; width: 100%; }
	.cw-map--country.has-side .cw-map__side { padding: 16px; }
}

/* Breadcrumb de fichas (ciudad, día, horas, info) alineado con el de provincia/estado (2026-11) */
#cweather-days #breadcrumblist,
#cweather-single #breadcrumblist { max-width: calc(var(--max-width) - 48px); margin-left: auto; margin-right: auto; }
#cweather-single #breadcrumblist { margin-top: 20px; }

/* Ciudad: entradilla como el mockup (texto oscuro, sin gris pequeño) (2026-11) */
#cweather-days #cw-tab-resumen h1 { font-size: 38px; line-height: 1.1; margin: 0 0 14px; }
#cweather-days .cw-city-intro { max-width: 820px; margin: 0; }
#cweather-days .cw-city-intro p { font-size: 16px; line-height: 1.65; color: #24384D; margin: 0 0 12px; }
#cweather-days .cw-city-intro p.cw-city-lead { font-size: 18px; line-height: 1.6; }
@media screen and (max-width: 600px) { #cweather-days #cw-tab-resumen h1 { font-size: 30px; } #cweather-days .cw-city-intro p.cw-city-lead { font-size: 17px; } }

/* Ciudad: Resumen climático como el mockup (tarjeta con borde, título con «en X» suave, sin párrafo) (2026-11) */
#cweather-days .section.climate-summary .climate-summary-inner { background: #fff; border: 1px solid #D9E3EE; border-radius: 20px; padding: 24px; box-shadow: none; }
#cweather-days .section.climate-summary .climate-summary-inner > h2 { font-size: 22px; line-height: 1.25; margin: 0 0 16px; }
#cweather-days .cw-sum-tiles > div, #cweather-days .cw-sum-tile { background: #F3F7FB; border-radius: 12px; }

/* Ciudad: columna lateral como el mockup (2026-11) */
.cw-side__note--info { background: #EAF1F9; border-color: #8FA5BD; }
.cw-side__note--info h2 { color: #0B1F33 !important; }
.cw-side__note--info p { color: #24384D; }
.cw-side__card, .cw-side__note { border-radius: 16px; padding: 18px; }
.cw-side__card { border-color: #D9E3EE; }
.cw-side__near .near > a { color: var(--color-text) !important; }
.cw-side__near .near > a:nth-child(n+6) { display: none; }
.cw-side__near .item { border-top: 0; }
.cw-side__near .near > a:hover .item { text-decoration: none; color: var(--color-link); }

/* Mapa del país (home): mismo zoom que el de provincia (2026-11) */
.cw-map--country .cw-map__svg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cw-map--country.is-zoomed .cw-map__svg { touch-action: none; cursor: grab; }
.cw-map--country.is-zoomed .cw-map__svg:active { cursor: grabbing; }
.cw-map--country .cw-map__svg path { vector-effect: non-scaling-stroke; }

/* Ciudad: pestañas con la línea solo bajo las pestañas (como el mockup) y flecha del slider sin borde rosa del tema (2026-11) */
#cweather-days .cw-tab-switcher { width: fit-content; margin-left: auto; gap: 28px; border-bottom: 1px solid #D9E3EE; }
#cweather-days .cw-tab-switcher .cw-tab-btn { min-height: 44px; padding: 0 2px; margin-bottom: -1px; }
#cweather-days .cw-city-intro p.cw-city-lead { margin: 0; }
.cw-next-hours .cw-sl-btn { border: 1px solid #D9E3EE; color: #0b1f33; background: #fff; }
.cw-next-hours .cw-sl-btn:hover, .cw-next-hours .cw-sl-btn:focus { border-color: #D9E3EE; background: #EAF1F9; color: #0b1f33; }
#cweather-days .cw-tab-switcher { margin-right: calc((100% - min(100%, var(--max-width) - 48px)) / 2); }

/* Ciudad: resumen en texto seguido con negritas y nota de actualización a la derecha (2026-11) */
#cweather-days .cw-city-intro { max-width: 760px; }
#cweather-days .cw-city-intro p { font-size: 17px; line-height: 1.7; color: #2a2a2a; margin: 0 0 18px; }
#cweather-days .cw-city-intro p.cw-tx-lead { font-size: 18px; color: #1a1a1a; }
#cweather-days .cw-city-intro p strong { font-weight: 600; color: #111111; }
#cweather-days .cw-city-intro p.cw-tx-upd { font-size: 13px; line-height: 1.4; color: #555555; text-align: right; margin: 0; }
@media screen and (max-width: 600px) { #cweather-days .cw-city-intro p { font-size: 16px; } #cweather-days .cw-city-intro p.cw-tx-lead { font-size: 17px; } }

/* Provincia, portada y página de día: mismo estilo de texto que la ficha (entradilla + negritas) (2026-11) */
.cw-day-text p { font-size: 17px; line-height: 1.7; color: #2a2a2a; margin: 0 0 16px; max-width: 900px; }
.cw-day-text p.cw-tx-lead { font-size: 18px; color: #1a1a1a; }
.cw-day-text p strong { font-weight: 600; color: #111111; }
.cw-region-text p { font-size: 17px; line-height: 1.7; color: #2a2a2a; margin: 0 0 16px; max-width: 900px; }
.cw-region-text p.cw-tx-lead { font-size: 18px; color: #1a1a1a; }
.cw-region-text p strong { font-weight: 600; color: #111111; }
@media screen and (max-width: 600px) { .cw-region-text p { font-size: 16px; } .cw-region-text p.cw-tx-lead { font-size: 17px; } }

/* Día: entradilla única, oscura, como el mockup (2026-11) */
.cw-day-page .cw-day-lead { font-size: 18px; line-height: 1.6; color: #24384D; max-width: 820px; margin: 8px 0 0; }

/* SEO nov 2026: paginación del listado de poblaciones de cada estado/provincia */
.cw-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 4px; font-size: 15px; }
.cw-pager a, .cw-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; text-decoration: none; }
.cw-pager a { background: #fff; color: var(--color-text, #111); border: 1px solid var(--color-border, #e5e8ec); }
.cw-pager a:hover, .cw-pager a:focus { border-color: #0b1f33; color: #0b1f33; }
.cw-pager .is-current { background: #0b1f33; color: #fff; font-weight: 600; }
.cw-pager__gap { min-width: 20px !important; padding: 0 !important; color: var(--color-text-muted, #666); }
.cw-pager__prev, .cw-pager__next { font-weight: 500; }
.cw-list-tools--solo { margin: 0 0 14px; }

/* Nov 2026: «El tiempo en tu web» — página de widgets y banners */
.cw-tw { display: flex; flex-direction: column; gap: 48px; font-family: var(--ff-body, 'DM Sans', sans-serif); color: #0b1f33; }
.cw-tw iframe { border: 0; max-width: 100%; display: block; }
/* Cabecera (opción A): banda oscura a todo el ancho, H1, buscador y web de ejemplo */
html:has(.cw-tw__hero) { overflow-x: clip; }
.cw-tw__hero { margin: 0 calc(50% - 50vw); background: linear-gradient(160deg, #16365a 0%, #0b1f33 70%); color: #fff; }
.cw-tw__heroin { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; box-sizing: border-box; }
.cw-tw__crumbs { font-size: 13px; color: #b6c6d8; }
.cw-tw__crumbs a { color: #b6c6d8 !important; text-decoration: none; }
.cw-tw__crumbs a:hover { color: #fff !important; }
.cw-tw__crumbs span[aria-hidden] { opacity: .6; margin: 0 4px; }
.cw-tw__herogrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 40px; }
.cw-tw__kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ef9f27; }
.cw-tw__h1 { margin: 0 0 16px; font-family: var(--ff-head, 'DM Serif Display', serif); font-weight: 400; font-size: 54px; line-height: 1.05; color: #fff; }
.cw-tw__lead { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: #c9d6e3; max-width: 540px; }
.cw-tw__hsearch { display: flex; gap: 8px; margin: 0 0 14px; max-width: 540px; }
.cw-tw__hsearch input { flex: 1; min-width: 0; height: 54px; border-radius: 12px; border: 1px solid #cfdbe7; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ef9f27' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 0 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") no-repeat 14px 50% !important; padding: 0 14px 0 42px !important; font: inherit; font-size: 16px; color: #0b1f33; box-sizing: border-box; }
.cw-tw__hsearch input:focus { outline: 3px solid rgba(239,159,39,.55); outline-offset: 1px; }
.cw-tw__hsearch .cw-tw__btn { min-height: 54px; padding: 0 22px; white-space: nowrap; font-weight: 700 !important; font-size: 16px; }
.cw-tw__crumbs a, .cw-tw__note a { text-decoration: none !important; }
.cw-tw__note { margin: 0; font-size: 13px; line-height: 1.5; color: #9fb2c6; }
.cw-tw__note a { color: #ef9f27 !important; font-weight: 600; }
/* Web de ejemplo con el widget dentro */
.cw-tw__browser { width: 100%; max-width: 540px; justify-self: end; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); color: #0b1f33; }
.cw-tw__bbar { height: 34px; background: #eef2f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.cw-tw__bbar i { width: 10px; height: 10px; border-radius: 50%; background: #f26b5b; }
.cw-tw__bbar i:nth-child(2) { background: #f6c344; }
.cw-tw__bbar i:nth-child(3) { background: #5ac46a; }
.cw-tw__bbar span { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #fff; font-size: 11px; color: #7a8a99; display: flex; align-items: center; padding: 0 10px; }
.cw-tw__bhead { height: 50px; background: #f6efe3; border-bottom: 1px solid #eadfcb; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.cw-tw__blogo { width: 26px; height: 26px; border-radius: 50%; background: #8fa77a; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cw-tw__bhead b { font-family: var(--ff-head, 'DM Serif Display', serif); font-weight: 400; font-size: 17px; color: #5a4630; white-space: nowrap; }
.cw-tw__bnav { margin-left: auto; font-size: 11px; color: #8a7458; white-space: nowrap; }
.cw-tw__bbtn { height: 26px; border-radius: 7px; background: #5a4630; color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; padding: 0 10px; }
.cw-tw__bbody { display: flex; gap: 18px; padding: 18px; }
.cw-tw__bmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cw-tw__bimg { height: 130px; border-radius: 10px; background: linear-gradient(135deg, #c9b38f, #8fa77a); }
.cw-tw__bmain i { height: 9px; border-radius: 5px; background: #efebe4; }
.cw-tw__bmain i:nth-of-type(1) { width: 70%; background: #e6e1d8; }
.cw-tw__bmain i:nth-of-type(4) { width: 60%; }
.cw-tw__bside { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cw-tw__bwidget { width: 250px; height: 250px; border-radius: 14px; outline: 2px dashed #ef9f27; outline-offset: 5px; overflow: hidden; }
.cw-tw__bwidget iframe { pointer-events: none; }
.cw-tw__btag { font-size: 12px; font-weight: 700; color: #ef9f27; }
.cw-tw__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cw-tw__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none !important; border: 0; cursor: pointer; font-family: inherit; }
.cw-tw__btn--sun { background: #ef9f27 !important; color: #0b1f33 !important; }
.cw-tw__btn--sun:hover { background: #f5b301 !important; }
.cw-tw__btn--ghost { background: #fff; color: #0b1f33 !important; border: 1px solid #cfdbe7; }
.cw-tw__btn--navy { background: #0b1f33; color: #fff !important; font-weight: 600; }
.cw-tw__btn--navy:hover { background: #16365a; }
.cw-tw__formats h2, .cw-tw__config h2 { font-family: var(--ff-head, 'DM Serif Display', serif); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.cw-tw__formats > p { margin: 0 0 20px; color: #3d4f61; }
/* Los 5 formatos en una sola card con pestañas */
.cw-tw__fbox { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #fff; border: 1px solid #e5e8ec; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(11,31,51,.06); }
.cw-tw__ftabs { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #f6f9fc; border-right: 1px solid #e5e8ec; }
.cw-tw .cw-tw__ftab { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; text-align: left; padding: 12px 14px !important; border-radius: 12px; border: 0 !important; background: transparent !important; color: #0b1f33 !important; font: inherit; font-weight: 400 !important; cursor: pointer; box-shadow: none !important; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.cw-tw .cw-tw__ftab:hover { background: #eaf1f8 !important; }
.cw-tw .cw-tw__ftab[aria-selected="true"] { background: #0b1f33 !important; color: #fff !important; }
.cw-tw .cw-tw__ftab:focus-visible { outline: 3px solid rgba(239,159,39,.6); outline-offset: 1px; }
.cw-tw__ftab b { display: block; font-size: 15px; font-weight: 600; }
.cw-tw__ftab small { display: block; font-size: 12px; color: #5b6b7b; }
.cw-tw__ftab[aria-selected="true"] small { color: #b6c6d8; }
.cw-tw__fico { flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.cw-tw__fico i { display: block; border: 2px solid currentColor; border-radius: 3px; opacity: .55; box-sizing: border-box; }
.cw-tw__ftab[aria-selected="true"] .cw-tw__fico i { border-color: #ef9f27; opacity: 1; }
.cw-tw__fpanels, .cw-tw__fpanel { min-width: 0; }
.cw-tw__fpanel { display: flex; flex-direction: column; height: 100%; }
.cw-tw__fpanel[hidden] { display: none; }
.cw-tw__ptitle b { font-weight: 700; color: #0b1f33; }
.cw-tw__load { font-style: normal; font-weight: 500; color: #F07C00; margin-left: 4px; }
.cw-tw__stage { position: relative; }
.cw-tw__stage iframe { transition: opacity .2s; }
.cw-tw__stage.is-loading iframe { opacity: .35; }
.cw-tw__stage.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #cfdbe7; border-top-color: #ef9f27; border-radius: 50%; animation: cwtwspin .8s linear infinite; }
@keyframes cwtwspin { to { transform: rotate(360deg); } }
.cw-tw__fstage { flex: 1; min-height: 480px; display: flex; align-items: center; justify-content: center; padding: 28px; background: #f6f9fc; box-sizing: border-box; }
.cw-tw__fstage iframe { flex: 0 0 auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(11,31,51,.18); }
.cw-tw__finfo { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 1px solid #e5e8ec; }
.cw-tw__finfo h3 { margin: 0; font-size: 18px; font-weight: 600; }
.cw-tw__finfo h3 span { font-size: 13px; font-weight: 400; color: #5b6b7b; margin-left: 6px; }
.cw-tw__finfo p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #3d4f61; }
.cw-tw__finfo .cw-tw__btn { flex: 0 0 auto; white-space: nowrap; }
.cw-tw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.cw-tw__card, .cw-tw__prev, .cw-tw__form, .cw-tw__preview, .cw-tw__stage, .cw-tw__intro { min-width: 0; }
.cw-tw__stage iframe { flex: 0 0 auto; }
.cw-tw__card { background: #fff; border: 1px solid #e5e8ec; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cw-tw__card p { margin: 0; font-size: 14px; line-height: 1.55; color: #3d4f61; }
.cw-tw__card .cw-tw__btn { align-self: flex-start; min-height: 44px; font-size: 14px; }
.cw-tw__prev { border-radius: 12px; background: #e8f2fb; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; min-height: 180px; }
.cw-tw__prev--v { min-height: 470px; background: #f2f6fa; }
.cw-tw__prev--m { background: #f2f6fa; }
.cw-tw__prev--b iframe { transform: scale(.44); transform-origin: center; flex: 0 0 auto; max-width: none; }
.cw-tw__prev--h iframe { transform: scale(.68); transform-origin: center; flex: 0 0 auto; max-width: none; }
.cw-tw__prev--h, .cw-tw__prev--b { min-height: 150px; }
.cw-tw__prev--c { min-height: 280px; }
.cw-tw__cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cw-tw__cardhead h3 { margin: 0; font-size: 18px; font-weight: 600; }
.cw-tw__cardhead span { font-size: 13px; color: #5b6b7b; white-space: nowrap; }
.cw-tw__config { background: #fff; border-radius: 20px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; scroll-margin-top: 90px; }
.cw-tw__form { display: flex; flex-direction: column; gap: 18px; }
.cw-tw__field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.cw-tw__field label, .cw-tw__field legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.cw-tw__field input { min-height: 46px; border: 1px solid #cfdbe7 !important; border-radius: 10px !important; padding: 0 14px !important; font: 400 15px var(--ff-body, sans-serif); }
.cw-tw__results { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid #e5e8ec; border-radius: 12px; box-shadow: 0 16px 40px rgba(11,31,51,.14); }
.cw-tw__results button { width: 100%; text-align: left; border: 0; background: transparent; color: #0b1f33; padding: 9px 10px; border-radius: 8px; font: 500 15px var(--ff-body, sans-serif); cursor: pointer; }
.cw-tw__results button:hover, .cw-tw__results button:focus { background: #eef3f8; color: #0b1f33; }
.cw-tw__results button span { color: #5b6b7b; font-weight: 400; font-size: 13px; }
.cw-tw__results .is-empty { padding: 9px 10px; color: #5b6b7b; font-size: 14px; }
.cw-tw__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-tw__opts button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #cfdbe7; background: #fff; color: #0b1f33; font: 500 14px var(--ff-body, sans-serif); cursor: pointer; }
.cw-tw__opts button:hover, .cw-tw__opts button:focus { background: #eef3f8; color: #0b1f33; }
.cw-tw__opts button.is-on, .cw-tw__opts button.is-on:hover { background: #0b1f33; border-color: #0b1f33; color: #fff; font-weight: 600; }
.cw-tw__field textarea { border: 1px solid #e5e8ec; background: #f6f8fb; border-radius: 10px; padding: 10px 12px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #0b1f33; resize: vertical; }
.cw-tw__form > .cw-tw__btn { align-self: flex-start; }
.cw-tw__preview { display: flex; flex-direction: column; gap: 12px; }
.cw-tw__preview > span { font-size: 14px; font-weight: 600; }
.cw-tw__stage { flex: 1; min-height: 280px; border-radius: 14px; background: #f2f6fa; border: 1px dashed #cfdbe7; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.cw-tw__preview p { margin: 0; font-size: 13px; color: #5b6b7b; }
.cw-tw__faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cw-tw__faq > div { background: #fff; border-radius: 16px; padding: 22px; }
.cw-tw__faq h3 { margin: 0 0 6px; font-size: 16px; }
.cw-tw__faq p { margin: 0; font-size: 14px; line-height: 1.55; color: #3d4f61; }
@media (max-width: 900px) {
	.cw-tw__herogrid, .cw-tw__config { grid-template-columns: minmax(0, 1fr); }
	.cw-tw__herogrid { gap: 32px; margin-top: 28px; }
	.cw-tw__browser { justify-self: start; }
	.cw-tw__h1 { font-size: 44px; }
	.cw-tw__config { padding: 20px; }
	.cw-tw__grid { grid-template-columns: minmax(0, 1fr); }
	.cw-tw__fbox { grid-template-columns: minmax(0, 1fr); }
	.cw-tw__ftabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e5e8ec; padding: 10px; scrollbar-width: none; }
	.cw-tw__ftabs::-webkit-scrollbar { display: none; }
	.cw-tw .cw-tw__ftab { flex: 0 0 auto; width: auto; padding: 8px 12px !important; gap: 8px; }
	.cw-tw__fico { flex-basis: 26px; height: 26px; }
	.cw-tw__fstage { min-height: 0; padding: 20px 16px; }
}
@media (max-width: 600px) {
	.cw-tw { gap: 32px; }
	.cw-tw__formats h2, .cw-tw__config h2 { font-size: 28px; }
	.cw-tw__card { padding: 16px; }
	.cw-tw__prev { padding: 8px; }
	.cw-tw__prev--h { min-height: 120px; }
	.cw-tw__prev--h iframe { transform: scale(.58); margin: -32px -98px; }
	.cw-tw__prev--b { min-height: 70px; }
	.cw-tw__prev--b iframe { transform: scale(.38); margin: -28px -226px; }
	.cw-tw__prev--v { min-height: 450px; }
	.cw-tw__stage { padding: 10px; min-height: 180px; justify-content: flex-start; }
	.cw-tw__opts button { flex: 1 1 auto; }
	.cw-tw__config { padding: 16px; border-radius: 16px; }
	.cw-tw__ctas .cw-tw__btn { flex: 1 1 auto; }
	.cw-tw__heroin { padding: 20px 16px 40px; }
	.cw-tw__herogrid { margin-top: 24px; gap: 28px; }
	.cw-tw__h1 { font-size: 34px; line-height: 1.08; }
	.cw-tw__lead { font-size: 16px; }
	.cw-tw__hsearch { flex-direction: column; }
	.cw-tw__hsearch .cw-tw__btn { width: 100%; }
	.cw-tw__hsearch input { flex: 0 0 54px; width: 100%; }
	.cw-tw__finfo { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.cw-tw__finfo .cw-tw__btn { width: 100%; }
	.cw-tw__ftab small { display: none; }
	.cw-tw__bnav, .cw-tw__bmain { display: none; }
	.cw-tw__bbtn { margin-left: auto; }
	.cw-tw__bbody { justify-content: center; padding: 18px 12px; }
}

/* Portada en móvil: el mapa del país desbordaba 10 px la columna */
.cw-home .cw-regions__main, .cw-home .cw-regions__list { min-width: 0; }
.cw-home .cw-map--country { max-width: 100%; }

/* Banners hacia «El tiempo en tu web» */
.cw-twb { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; border-radius: 18px; padding: 24px 28px; margin: 28px auto; max-width: 1100px; width: calc(100% - 32px); box-sizing: border-box; font-family: var(--ff-body, 'DM Sans', sans-serif); }
.cw-twb p { margin: 0; }
.cw-twb--city { background: linear-gradient(135deg, #0b1f33 0%, #16365a 100%); color: #fff; }
.cw-twb--block { background: #fff; color: #0b1f33; }
.cw-twb__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.cw-twb__kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ef9f27; }
.cw-twb__title { font-family: var(--ff-head, 'DM Serif Display', serif); font-size: 28px; line-height: 1.15; color: #fff; }
.cw-twb__title--dark { color: #0b1f33; font-size: 30px; }
.cw-twb__sub { font-size: 15px; color: #b6c6d8; }
.cw-twb__sub--dark { color: #3d4f61; }
.cw-twb__mock { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 16px; }
.cw-twb__mname { font-weight: 600; font-size: 14px; }
.cw-twb__mtemp { display: inline-flex; align-items: center; gap: 4px; font-size: 30px; font-weight: 500; }
.cw-twb__mdays { display: inline-flex; gap: 6px; }
.cw-twb__mdays > span { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.08); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.cw-twb__mdays em { font-style: normal; color: #b6c6d8; }
.cw-twb__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: #ef9f27; color: #0b1f33 !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.cw-twb__btn:hover { background: #f5b301; }
.cw-twb__btn--navy { background: #0b1f33; color: #fff !important; font-weight: 600; }
.cw-twb__btn--navy:hover { background: #16365a; }
.cw-twb-side { display: flex; flex-direction: column; gap: 8px; }
.cw-twb-side p { margin: 0; }
.cw-twb-side__k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0f4c81; }
.cw-twb-side__t { font-family: var(--ff-head, 'DM Serif Display', serif); font-size: 22px; line-height: 1.2; color: #0b1f33; }
.cw-twb-side__s { font-size: 14px; color: #5b6b7b; }
.cw-twb-side .cw-twb__btn { margin-top: 6px; min-height: 44px; }
/* Nov 2026: en provincia/estado el banner ocupa el 100 % del contenido, como el resto de bloques */
#cweather-archive .cw-twb { width: 100%; max-width: none; margin: 40px 0; }
@media (max-width: 700px) { .cw-twb { padding: 20px; } .cw-twb__mock { display: none; } .cw-twb__btn { width: 100%; } }

/* Nov 2026: con columna lateral, minileyenda bajo el mapa a todo el ancho: título arriba y franjas de 2 en 2 por columna */
@media screen and (min-width: 901px) {
	.cw-map.has-side .cw-map__legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-auto-flow: column; justify-items: start; gap: 8px 16px; width: 100%; box-sizing: border-box; margin-top: 16px; padding: 14px 18px; background: #f6f9fc; border: 1px solid #EEF2F6; border-radius: 12px; font-size: 13px; }
	.cw-map.has-side .cw-map__legend-title { grid-row: 1; grid-column: 1 / -1; }
	.cw-map.has-side .cw-map__legend-title { margin-bottom: 3px; font-size: 13px; }
	.cw-map.has-side .cw-map__legend i { width: 16px; height: 12px; border-radius: 3px; }
}

