:root {
	--ministerio-green: #0f8f4d;
	--ministerio-green-dark: #0a6b3a;
	--ministerio-cyan: #3ab3c8;
	--ministerio-bg: #f3f6f4;
	--ministerio-surface: #ffffff;
	--ministerio-text: #24313a;
	--ministerio-muted: #5f6b73;
	--ministerio-border: #dce4df;
	--ministerio-shadow: 0 16px 40px rgba(12, 28, 20, 0.08);
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ministerio-text);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.topNav-cemca {
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: none;
}

.topNav {
	width: 100%;
	background: #fff;
}

.topNav-image {
	display: block;
	width: 100%;
	max-width: 1142px;
	min-width: 750px;
	padding: 1em 1.2em;
	object-fit: cover;
}

#divNav {
	background-color: var(--ministerio-green);
	min-height: 3.6em;
	border-bottom: 3px solid #008e46;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

#divNav .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.5);
	padding: 4px 10px;
}

#divNav .navbar-toggler:focus {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

#divNav .nav-link.menu-link {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 10px 1rem;
}

.divNav-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	height: 100%;
	flex-wrap: wrap;
}


.menu-link,
.menu-link:hover,
.menu-link:focus,
.menu-link:active {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #fff;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding: 0 1rem;
	background: transparent;
	box-shadow: none;
}

.menu-link:hover {
	border-bottom-color: #fff;
	transition: 400ms;
}

.menu-link.active {
	border-bottom-color: #fff;
	color: #fff;
}

.menu-link2 {
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.menu-link2 .dropdown-toggle,
.menu-link2 .dropdown-toggle:hover,
.menu-link2 .dropdown-toggle:focus,
.menu-link2 .dropdown-toggle:active {
	border: 0;
	background: transparent;
	color: #fff !important;
	padding: 0 1rem;
	height: 100%;
	box-shadow: none;
}

.padre {
	font-family: "Encode Sans", sans-serif !important;
	font-size: 1rem;
	font-weight: 400;
}

.lineaInf {
	border: 0;
	border-radius: 0;
	border-bottom: 3px solid var(--ministerio-green);
}

.fondoGris {
	background: #f5f5f5;
}

.shadow {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hijos {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.45rem 0.9rem;
	color: #666 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.hijos:hover {
	background: rgba(58, 179, 200, 0.08);
	color: #222 !important;
}

.max-w {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dropdown-menu {
	font-size: 14px;
	min-width: 200px;
}

.dropdown-menu a {
	border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
	border-bottom: 0;
}

.dropdown-item:focus,
.dropdown-item:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

.divNav-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.main-shell-cemca {
	flex: 1;
	padding: 0;
}

.container-shell {
	max-width: none;
	margin: 0;
	width: 100%;
	height: 100%;
}

.cemca-page-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	padding: 4px 2px 8px;
}

.cemca-stations-shell {
	display: grid;
	gap: 14px;
	margin-top: 12px;
}

.cemca-panel-wide,
.cemca-detail-shell-wide,
.cemca-map-frame-wide {
	width: 100%;
}

.cemca-panel-text-tight {
	margin-top: 6px;
}

.cemca-panels-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cemca-page-shell {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: calc(100vh - 215px);
	min-height: calc(100vh - 215px);
	position: relative;
}

/* Loading overlay */
.cemca-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	z-index: 2200;
	display: grid;
	place-items: center;
	gap: 24px;
	flex-direction: column;
	padding: 20px;
	box-shadow: none;
}
.cemca-loading-inner {
	text-align: center;
	max-width: 420px;
	transform: translateY(-55px);
}
.cemca-loading-logo {
	display: block;
	margin: 0 auto 12px;
	max-width: 320px;
	height: auto;
}
.cemca-loading-spinner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 6px solid rgba(0,0,0,0.06);
	border-top-color: var(--ministerio-cyan);
	animation: cemca-spin 1s linear infinite;
	margin: 8px auto;
}
@keyframes cemca-spin { to { transform: rotate(360deg); } }
.cemca-loading-text {
	color: var(--ministerio-muted);
	font-size: 1rem;
	margin-top: 8px;
}

/* Small loading box used inside detail cards */
.cemca-loading-box {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: transparent;
	border: 1px dashed #e6eef0;
	color: var(--ministerio-muted);
	font-size: 0.95rem;
}
.cemca-small-spinner {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: conic-gradient(var(--ministerio-cyan) 0deg 90deg, rgba(0,0,0,0.06) 90deg 360deg);
	mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black calc(100% - 7px));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black calc(100% - 7px));
	animation: cemca-spin 1s linear infinite;
}


.cemca-workspace {
	position: relative;
	display: block;
	height: 100%;
	min-height: 0;
}

.cemca-sidebar-left {
	position: sticky;
	top: 12px;
}

.cemca-main-center {
	min-width: 0;
	height: 100%;
}

.cemca-map-stage {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: #edf3ef;
	isolation: isolate;
}

.cemca-catalog {
	position: absolute;
	left: 12px;
	top: 12px;
	width: min(414px, calc(100% - 24px));
	height: calc(100% - 24px);
	z-index: 1000;
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.cemca-catalog-panels {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.cemca-map-zoom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: flex-start;
	flex: 0 0 46px;
	padding-top: 2px;
}

.cemca-map-zoom-btn {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	border: 1px solid #d9e4dd;
	background: #fff;
	color: #173321;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(12, 28, 20, 0.08);
	cursor: pointer;
}

.cemca-map-zoom-btn:hover {
	background: #f7faf8;
}

.cemca-catalog .cemca-panel {
	border-radius: 12px;
	box-shadow: 0 8px 26px rgba(12, 28, 20, 0.12);
	padding: 14px;
    padding-right: 5px;
	min-height: 0;
}

.cemca-catalog-list {
	flex: 1 1 auto;
	min-height: 0;
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Prevent scrolling inside these panels from propagating to the page */
.cemca-catalog-list .cemca-station-list,
.cemca-drawer-body {
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.cemca-catalog-list .cemca-station-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
	align-content: start;
	grid-auto-rows: max-content;
}

.cemca-catalog-list .cemca-station-list li {
	display: block;
	padding: 0;
	border-bottom: 0;
	margin-bottom: 0;
}

.cemca-drawer {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	width: min(430px, calc(100% - 24px));
	height: calc(100% - 24px);
	overflow: hidden;
	z-index: 1100;
	background: var(--ministerio-surface);
	border: 1px solid var(--ministerio-border);
	border-radius: 20px;
	box-shadow: var(--ministerio-shadow);
	padding: 18px;
	min-width: 0;
	flex-direction: column;
}

.cemca-drawer.is-open {
	display: flex;
}

.cemca-drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.cemca-drawer-close {
	border: none;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	color: var(--ministerio-muted);
	cursor: pointer;
	padding: 0 4px;
}

.cemca-chip-block {
	display: inline-flex;
	margin-bottom: 12px;
}

.cemca-drawer-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	padding: 10px 12px;
	background: #f3f5f6;
	border: 1px solid #e5e9ea;
	border-radius: 14px;
	margin-bottom: 14px;
	overflow: hidden;
    justify-content: center;
	align-items: center;
	min-height: 66px;
}

.cemca-drawer-tab {
	border: none;
	background: transparent;
	color: #7d8790;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0;
	position: relative;
}

.cemca-drawer-tab.is-active {
	background: #ffffff;
	color: var(--ministerio-green);
	box-shadow: 0 4px 14px rgba(12, 28, 20, 0.12);
}

.cemca-drawer-tab i {
	font-size: 1.05rem;
	line-height: 1;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 1em;
	height: 1em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cemca-drawer-tab.is-active i {
	color: var(--ministerio-green);
}

.cemca-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cemca-drawer-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 2px;
	padding-bottom: 12px;
}

.cemca-tab-pane {
	display: none;
	flex: 1 1 auto;
	align-content: start;
	gap: 14px;
	min-height: 0;
}

.cemca-tab-pane.is-active {
	display: grid;
}

#tab-meteo.cemca-tab-pane.is-active {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
}

#tab-info.cemca-tab-pane.is-active {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

#tab-meteo.cemca-tab-pane.is-active > *:not(.cemca-tab-overlay) {
	width: 100%;
	position: static;
}

.cemca-tab-pane .cemca-panel {
	padding: 16px;
	box-shadow: none;
	border-radius: 16px;
}

.cemca-tab-title {
	margin: 0;
	font-size: 1.02rem;
	text-align: center;
	color: #2d3436;
	font-weight: 700;
}

.cemca-tab-pane .cemca-panel-soft {
	background: #fbfcfb;
	border: 1px solid #e1e8e3;
	box-shadow: none;
}

.cemca-tab-pane .cemca-summary-grid,
.cemca-tab-pane .cemca-meteo-grid,
.cemca-tab-pane .cemca-info-stack {
	min-height: 0;
}

.cemca-tab-pane .cemca-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.cemca-tab-pane .cemca-summary-card,
.cemca-tab-pane .cemca-meteo-card,
.cemca-tab-pane .cemca-info-card {
	border-radius: 14px;
	border: 1px solid #dfe7e2;
	box-shadow: 0 2px 8px rgba(12, 28, 20, 0.04);
	background: #ffffff;
}

.cemca-tab-pane .cemca-summary-card {
	min-height: 108px;
	padding: 14px 14px 16px;
}

.cemca-tab-pane .cemca-summary-card strong {
	font-size: 1rem;
	line-height: 1.25;
}

.cemca-tab-pane .cemca-summary-card span,
.cemca-tab-pane .cemca-info-card span,
.cemca-tab-pane .cemca-meteo-card span {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: #6e7a81;
}

.cemca-tab-pane .cemca-info-stack,
.cemca-tab-pane .cemca-image-stack,
.cemca-tab-pane .cemca-meteo-grid {
	display: grid;
	gap: 30px;
}

.cemca-tab-pane .cemca-meteo-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 18px;
	position: static;
	flex: 0 0 auto;
}

.cemca-tab-pane .cemca-info-card,
.cemca-tab-pane .cemca-meteo-card {
	padding: 14px 15px;
}

.cemca-tab-pane .cemca-meteo-card {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 6px;
}

.cemca-tab-pane .cemca-meteo-card i {
	font-size: 1.2rem;
	color: #00aec3;
}

.cemca-tab-pane .cemca-image-main {
	max-height: 180px;
}

.cemca-tab-pane .cemca-panel-text {
	font-size: 0.92rem;
	margin-top: 4px;
}

.cemca-tab-pane .cemca-empty-state {
	margin-top: 0;
}

.cemca-ica-gauge-shell {
	display: grid;
	place-items: center;
	gap: 8px;
	padding-top: 6px;
}

.cemca-ica-gauge {
	width: min(240px, 100%);
	height: auto;
}

.cemca-ica-gauge-track {
	fill: none;
	stroke: #e6eaeb;
	stroke-width: 26;
	stroke-linecap: butt;
}

.cemca-ica-gauge-range {
	fill: none;
	stroke-width: 26;
	stroke-linecap: butt;
}

.cemca-ica-gauge-range.is-good { stroke: #2ecc71; }
.cemca-ica-gauge-range.is-moderate { stroke: #f1c40f; }
.cemca-ica-gauge-range.is-sensitive { stroke: #f39c12; }
.cemca-ica-gauge-range.is-unhealthy { stroke: #e74c3c; }
.cemca-ica-gauge-range.is-very { stroke: #9b59b6; }
.cemca-ica-gauge-range.is-hazardous { stroke: #7e0023; }

.cemca-ica-gauge-needle {
	transform-box: view-box;
	transform-origin: 50% 80%;
	transition: transform 0.35s ease;
	color: #17181b;
}

.cemca-ica-gauge-needle line {
	stroke: currentColor;
	stroke-width: 6;
	stroke-linecap: round;
}

.cemca-ica-gauge-needle circle:first-of-type {
	fill: currentColor;
}

.cemca-ica-gauge-needle circle:last-of-type {
	fill: #ffffff;
}

.cemca-ica-readout {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-weight: 800;
	color: #1f2d3d;
}

.cemca-ica-readout span {
	font-size: 2rem;
	line-height: 1;
}

.cemca-ica-readout strong {
	font-size: 2rem;
	line-height: 1;
	color: #e6b800;
}

.cemca-recommendation-card {
	background: #f5f7f8;
	border-left: 5px solid #e6b800;
	border-radius: 12px;
	padding: 16px 18px;
	margin-top: 6px;
}

.cemca-recommendation-card h4 {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 800;
	color: #e6b800;
}

.cemca-recommendation-card p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: #24313a;
}

.cemca-historico-block {
	padding-top: 6px;
	border-top: 1px solid #e7ece9;
}

.cemca-historico-block h3 {
	margin: 0;
	text-align: center;
	font-size: 1.5rem;
	color: #1f2d3d;
}

.cemca-historico-updated {
	margin: 6px 0 12px;
	text-align: center;
	font-size: 0.95rem;
	color: #5f6b73;
}

.cemca-historico-list {
	display: grid;
	gap: 16px;
}

.cemca-historico-item {
	padding-top: 10px;
	border-top: 1px solid #eef2ef;
}

.cemca-historico-item h4 {
	margin: 0 0 8px;
	text-align: center;
	font-size: 0.92rem;
	color: #3d4b53;
	font-weight: 800;
}

.cemca-historico-canvas-shell,
.cemca-meteo-canvas-shell {
	height: 170px;
	position: relative;
}

.cemca-meteo-report {
	background: #cfe5ea;
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 700;
	color: #1e4b57;
	margin-bottom: 8px;
}

.cemca-meteo-charts {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 12px;
	position: static;
	flex: 0 0 auto;
}

.cemca-meteo-chart-item {
	padding-top: 12px;
	border-top: 1px solid #e7ece9;
}

.cemca-meteo-chart-item h4 {
	margin: 0 0 8px;
	font-size: 1rem;
	color: #1f2d3d;
	font-weight: 800;
}

.cemca-meteo-wind {
	margin-top: 12px;
	position: static;
	flex: 0 0 auto;
}

.cemca-daily-item,
.cemca-annual-item {
	padding-top: 10px;
	border-top: 1px solid #eef2ef;
}

.cemca-chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.cemca-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.cemca-status-badge.is-danger {
	background: #ffeaea;
	color: #d63031;
	border: 1px solid #fab1a0;
}

.cemca-status-badge.is-success {
	background: #e3f9e5;
	color: #27ae60;
	border: 1px solid #b7ebbe;
}

.cemca-status-badge.is-muted,
.cemca-status-badge.is-info {
	background: #f1f2f6;
	color: #636e72;
	border: 1px solid #dfe6e9;
}

.cemca-daily-item h4,
.cemca-annual-item h4 {
	margin: 0 0 8px;
	text-align: center;
	font-size: 0.92rem;
	color: #3d4b53;
	font-weight: 800;
}

.cemca-annual-controls {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
}

.cemca-meteo-wind-chart {
	height: 400px;
	min-height: 400px;
	position: relative;
	overflow: visible;
}

.cemca-info-section {
	display: grid;
	gap: 10px;
}

.cemca-info-section h4 {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	color: #00a7c2;
	border-bottom: 2px solid #00a7c2;
	padding-bottom: 6px;
}

.cemca-admin-hero {
	background: #f6fafb;
	border: 1px solid #d5e8ee;
	border-radius: 12px;
	padding: 12px 14px;
	display: grid;
	gap: 10px;
}

.cemca-admin-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cemca-admin-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e3edf0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 6px;
}

.cemca-admin-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.cemca-admin-hero strong {
	font-size: 1.2rem;
	line-height: 1.2;
	color: #1f2d3d;
}

.cemca-admin-hero p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #3f4e56;
}

.cemca-admin-link {
	justify-self: start;
	background: #08a7bf;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	border-radius: 999px;
	padding: 8px 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cemca-period-shell {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: center;
	background: #f1f2f6;
	border-radius: 10px;
	padding: 12px;
}

.cemca-period-shell label,
.cemca-monthly-controls label {
	font-weight: 700;
	color: #2d3436;
	font-size: 0.96rem;
}

.cemca-daily-content {
	margin-top: 10px;
}

.cemca-monthly-filter {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: center;
	margin-bottom: 14px;
}

.cemca-monthly-filter.is-contaminant {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.cemca-contaminant-buttons {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	width: 100%;
}

.cemca-contaminant-btn {
	border: 1px solid #dfe6e9;
	background: #ffffff;
	color: #2d3436;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 0 0 auto;
}

.cemca-contaminant-btn:hover {
	border-color: #0984e3;
	color: #0984e3;
}

.cemca-contaminant-btn.is-active {
	background: #0984e3;
	border-color: #0984e3;
	color: #ffffff;
}

.cemca-monthly-card {
	background: #ffffff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	min-height: 300px;
}

.cemca-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
	gap: 20px;
	align-items: stretch;
}

.cemca-hero-status {
	display: block;
	font-size: 1rem;
	color: var(--ministerio-green-dark);
	margin-top: 8px;
}

.cemca-eyebrow {
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ministerio-green-dark);
}

.cemca-title {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	line-height: 1.05;
	color: #173321;
}

.cemca-lead {
	margin: 12px 0 0;
	max-width: 62ch;
	color: var(--ministerio-muted);
	line-height: 1.65;
}

.cemca-hero-card,
.cemca-panel,
.cemca-map-frame {
	background: var(--ministerio-surface);
	border: 1px solid var(--ministerio-border);
	border-radius: 20px;
	box-shadow: var(--ministerio-shadow);
}

.cemca-hero-card {
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	border-left: 6px solid var(--ministerio-green);
}

.cemca-hero-label,
.cemca-map-kicker {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--ministerio-muted);
}

.cemca-hero-status {
	font-size: 1.05rem;
	color: var(--ministerio-green-dark);
}

.cemca-hero-meta {
	color: var(--ministerio-muted);
	font-size: 0.92rem;
}

.cemca-grid {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.cemca-sidebar {
	display: grid;
	gap: 16px;
}

.cemca-panel {
	padding: 18px;
}

.cemca-panel h2,
.cemca-panel h3,
.cemca-map-head h2 {
	margin: 0;
	color: #173321;
}

.cemca-panel-text {
	color: var(--ministerio-muted);
	line-height: 1.55;
}

.cemca-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cemca-counter {
	min-width: 44px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: #edf7f1;
	color: var(--ministerio-green-dark);
	display: grid;
	place-items: center;
}

.cemca-action {
	width: 100%;
	margin-top: 14px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--ministerio-green-dark), var(--ministerio-green));
	color: white;
	font-weight: 700;
	padding: 12px 14px;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(15, 143, 77, 0.18);
}

.cemca-panel-soft {
	background: #fafcfb;
}

.cemca-search-shell {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: #f2f4f5;
	border: 1px solid #edf1ee;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	margin-bottom: 12px;
    margin-right: 10px;
}

.cemca-search-shell i {
	color: var(--ministerio-cyan);
	font-size: 1rem;
	flex: 0 0 auto;
}

.cemca-search,
.cemca-select {
	width: 100%;
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
	font-size: 0.95rem;
	outline: none;
	box-shadow: none;
	transition: none;
}

.cemca-search:focus,
.cemca-select:focus {
	box-shadow: none;
}

.cemca-selected-mini {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.cemca-badge {
	padding: 6px 10px;
	border-radius: 999px;
	background: #edf7f1;
	color: var(--ministerio-green-dark);
	font-weight: 700;
	font-size: 0.8rem;
	white-space: nowrap;
}

.cemca-station-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	overflow: auto;
	padding-right: 4px;
}

.cemca-station-list li {
	padding: 0;
	border-bottom: 0;
	margin-bottom: 0;
}

.cemca-party-title {
	margin: 2px 0 0;
	padding: 6px 10px;
	border-radius: 10px;
	background: #f3f7f4;
	color: #173321;
	font-weight: 700;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.cemca-station-card {
	width: 100%;
	text-align: left;
	border: 1px solid #dfe8e2;
	background: #fff;
	border-left: 5px solid var(--ministerio-green);
	border-radius: 12px;
	padding: 10px 12px;
	box-shadow: 0 4px 12px rgba(12, 28, 20, 0.04);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cemca-station-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(12, 28, 20, 0.06);
}

.cemca-station-card.is-active {
	border-color: rgba(15, 143, 77, 0.4);
	background: #f8fcf9;
}

.cemca-station-marker {
	display: grid;
	place-items: center;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 6px 16px rgba(12, 28, 20, 0.22);
	transform: translate(-50%, -50%);
	color: #fff;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cemca-station-marker.is-compact {
	width: 18px;
	height: 18px;
}

.cemca-station-marker.is-expanded {
	width: 34px;
	height: 34px;
}

.cemca-station-marker.is-expanded.is-active {
	transform: translate(-50%, -50%) scale(1.12);
	box-shadow: 0 8px 20px rgba(12, 28, 20, 0.28);
}

.cemca-station-marker-label {
	display: block;
	font-size: 0.88rem;
	line-height: 1;
}

.cemca-station-marker.is-compact .cemca-station-marker-label {
	display: none;
}

.cemca-station-card-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
}

.cemca-station-card-top > div {
	min-width: 0;
}

.cemca-station-card-title {
	margin: 0;
	font-weight: 700;
	color: #173321;
	font-size: 0.97rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.cemca-station-card-sub {
	margin: 2px 0 0;
	font-size: 0.8rem;
	color: var(--ministerio-muted);
}

.cemca-popup.leaflet-popup {
	margin-bottom: 6px;
}

.cemca-popup .leaflet-popup-content-wrapper {
	border-radius: 18px;
	box-shadow: 0 16px 34px rgba(12, 28, 20, 0.18);
	border: 1px solid rgba(15, 143, 77, 0.12);
	padding: 0;
}

.cemca-popup .leaflet-popup-content {
	margin: 0;
	width: auto !important;
	min-width: 250px;
	max-width: 280px;
	font-family: Arial, Helvetica, sans-serif;
}

.cemca-popup .leaflet-popup-tip {
	box-shadow: 0 10px 20px rgba(12, 28, 20, 0.12);
	border: 1px solid rgba(15, 143, 77, 0.12);
}

.cemca-popup-card {
	padding: 12px 14px 10px;
	background: #ffffff;
	border-radius: 18px;
	position: relative;
}

.cemca-popup-head {
	display: grid;
	place-items: center;
	margin-bottom: 10px;
	padding: 0;
	position: relative;
	height: 22px;
}

.cemca-popup-title {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	display: block;
	width: calc(100% - 42px);
	font-size: 1.02rem;
	line-height: 1.1;
	color: #173321;
	text-align: center;
}

.cemca-popup-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 10px;
	padding: 8px 12px;
	font-weight: 800;
	font-size: 0.95rem;
	margin-bottom: 12px;
	white-space: nowrap;
}

.cemca-popup-metrics {
	display: grid;
	gap: 8px;
}

.cemca-popup-metric {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 2px 0;
}

.cemca-popup-metric-icon {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	color: #173321;
	opacity: 0.88;
}

.cemca-popup-metric-body {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
}

.cemca-popup-metric-body span {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ministerio-muted);
	white-space: nowrap;
}

.cemca-popup-metric-body strong {
	font-size: 0.96rem;
	font-weight: 700;
	color: #24313a;
	white-space: nowrap;
}

.cemca-popup .leaflet-popup-close-button {
	top: 6px !important;
	right: 6px !important;
	color: #8a948f;
	font-size: 1.3rem;
	font-weight: 300;
	padding: 0;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
}

.cemca-popup .leaflet-popup-close-button:hover {
	color: #173321;
	background: transparent !important;
}

.cemca-detail-shell {
	margin-top: 0;
	display: grid;
	gap: 18px;
}

.cemca-detail-shell-wide {
	padding-top: 6px;
}

.cemca-detail-head,
.cemca-section-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cemca-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.cemca-summary-card,
.cemca-meteo-card,
.cemca-info-card,
.cemca-chart-card {
	background: var(--ministerio-surface);
	border: 1px solid var(--ministerio-border);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 6px 18px rgba(12, 28, 20, 0.04);
}

.cemca-summary-card span,
.cemca-info-card span,
.cemca-meteo-card span {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ministerio-muted);
	font-weight: 700;
}

.cemca-summary-card strong,
.cemca-info-card strong,
.cemca-meteo-card strong {
	display: block;
	margin-top: 6px;
	font-size: 1rem;
	color: #173321;
}

.cemca-two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}


.cemca-image-stack {
	position: relative;
	overflow: visible;
	margin-bottom: 12px;
	height: var(--cemca-gallery-stack-height, 300px);
	min-height: var(--cemca-gallery-stack-height, 300px);
	max-height: var(--cemca-gallery-stack-height, 300px);
}

.cemca-gallery {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
	position: relative;
	height: auto;
}

.cemca-gallery-title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	color: #00a7c2;
	border-bottom: 2px solid #00a7c2;
	padding-bottom: 6px;
}

.cemca-gallery-frame {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f0f2f3;
	border: 1px solid #dce4df;
	height: auto;
}

.cemca-gallery-image {
	position: relative;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: none;
}

.cemca-gallery-image.is-active {
	display: block;
}

.cemca-gallery-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.cemca-gallery-btn.is-prev {
	left: 10px;
}

.cemca-gallery-btn.is-next {
	right: 10px;
}

.cemca-gallery-counter {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.cemca-image-main {
	width: 100%;
	border-radius: 14px;
	max-height: 220px;
	object-fit: cover;
	border: 1px solid #dce4df;
}

.cemca-thumb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cemca-thumb-row img {
	width: 86px;
	height: 58px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #dce4df;
	cursor: pointer;
}

.cemca-section-group {
	display: grid;
	gap: 12px;
}

.cemca-section-group canvas {
	width: 100% !important;
	min-height: 300px;
}

.cemca-panel-soft canvas[data-cemca-historico],
.cemca-panel-soft canvas[data-cemca-monthly] {
	max-height: 320px;
}

.cemca-map-placeholder .leaflet-container {
	height: 100%;
	min-height: 0;
}

.cemca-meteo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.cemca-meteo-card.wind {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: center;
}

.cemca-meteo-card.wind i {
	font-size: 1.4rem;
	color: var(--ministerio-green);
}

.cemca-empty-state {
	margin-top: 12px;
	padding: 14px;
	border-radius: 12px;
	border: 1px dashed #c9d6cf;
	color: var(--ministerio-muted);
	text-align: center;
	background: #fafcfb;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.cemca-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 0.92rem;
}

.cemca-table th,
.cemca-table td {
	border: 1px solid #e4ebe6;
	padding: 9px 10px;
	text-align: center;
}

.cemca-table th {
	background: #f4f8f5;
}

.cemca-table td:last-child {
	font-weight: 700;
}

.cemca-table .danger {
	color: #c0392b;
}

.cemca-table .success {
	color: #1f7a45;
}

.cemca-station-list {
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
}

.cemca-station-list li {
	padding: 12px 0;
	border-bottom: 1px solid #edf1ee;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.cemca-station-list li:last-child {
	border-bottom: 0;
}

.cemca-main {
	min-width: 0;
}

.cemca-map-frame {
	padding: 16px 18px;
}

.cemca-map-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.cemca-chip {
	padding: 8px 12px;
	border-radius: 999px;
	background: #edf7f1;
	color: var(--ministerio-green-dark);
	font-weight: 700;
	font-size: 0.86rem;
}

.cemca-map-placeholder {
	height: 100%;
	min-height: 0;
	border-radius: 0;
	background:
		radial-gradient(circle at top left, rgba(15, 143, 77, 0.12), transparent 35%),
		linear-gradient(180deg, #eff7f2 0%, #f9fcfa 100%);
	border: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.cemca-map-placeholder-inner {
	max-width: 520px;
	padding: 28px;
	text-align: center;
	color: #244031;
}

.cemca-map-placeholder-inner i {
	font-size: 3rem;
	color: var(--ministerio-green);
	margin-bottom: 14px;
}

.cemca-map-placeholder-inner p {
	color: var(--ministerio-muted);
	line-height: 1.65;
}

.cemca-map-placeholder .leaflet-container {
	height: 100%;
	min-height: 0;
}

#footer {
	background-color: #eaeaea;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;
	padding: 260px 0 90px;
	margin-top: 4rem;
}

#footer a,
#footer a:hover,
#footer a:focus,
#footer a:active {
	color: #666666 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

#footer p,
#footer h5 {
	margin-bottom: 0.6rem;
}

#footer .row {
	align-items: flex-start;
}

#footer .container {
	max-width: 1320px;
}

.footer-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.footer-brand-logo {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	overflow: hidden;
}

.footer-kicker {
	font-size: 0.95rem;
	font-weight: 700;
}

.footer-line {
	font-size: 0.88rem;
	opacity: 0.86;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.footer-links a {
	color: #666666;
	text-decoration: none;
	font-size: 0.92rem;
}

.footer-links a:hover {
	color: #222;
}

#img_provincia_footer {
	padding-bottom: 3em;
}

.text-footer {
	font-family: "Encode Sans", sans-serif !important;
	font-size: 18px;
	line-height: 120%;
	color: #666666;
	margin-bottom: 0;
}

#redes-sociales {
	padding-top: 0.6em;
}

.rteindent1 {
	padding-top: 0.6em;
	margin: 0;
}

@media (max-width: 1100px) {
	.cemca-workspace,
	.cemca-hero,
	.cemca-grid,
	.cemca-panels-row,
	.cemca-two-columns {
		grid-template-columns: 1fr;
	}

	.cemca-drawer {
		width: calc(100% - 24px);
		height: auto;
		max-height: none;
	}

	.cemca-drawer.is-open {
		display: block;
	}

	.cemca-two-columns,
	.cemca-monthly-controls {
		grid-template-columns: 1fr;
	}

}

/* ─────────────────────────────────────────────
   Mobile-only toggle buttons (hidden on desktop)
────────────────────────────────────────────── */
.cemca-btn-ver-mapa {
	display: none;
	width: 100%;
	padding: 10px 16px;
	margin-bottom: 8px;
	background: #00acc1;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.cemca-btn-volver-lista {
	display: none;
	position: fixed;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2500;
	background: #2d3436;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	white-space: nowrap;
	align-items: center;
	gap: 10px;
}

@media (min-width: 769px) {
	#divNav { height: 5.8em; }
}

@media (max-width: 768px) {
	/* 1. Ocultar el encabezado institucional grande */
	.topNav { display: none; }

	/* 2. Barra de nav verde: hamburger colapsable vía Bootstrap */
	#divNav {
		min-height: 46px;
	}
	#divNav .nav-link.menu-link,
	.menu-link {
		justify-content: flex-start;
		padding: 8px 12px;
		height: auto;
	}
	#divNav .navbar-collapse {
		background-color: var(--ministerio-green);
		padding-bottom: 6px;
	}

	/* 3. Shell de la app: llenar el viewport restante (hamburger colapsado ≈ 46px) */
	.cemca-page-shell {
		height: calc(100dvh - 46px);
		min-height: calc(100dvh - 46px);
	}

	/* 4. Map stage: columna flexible */
	.cemca-map-stage {
		display: flex;
		flex-direction: column;
	}

	/* 5. Catálogo: estático, ancho completo, columna */
	.cemca-catalog {
		position: static !important;
		width: 100% !important;
		height: 100%;
		flex: 1 1 auto;
		padding: 10px 10px 0;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.cemca-catalog-panels {
		flex: 1 1 auto;
		min-height: 0;
	}

	/* 6. Zoom: oculto en modo lista; superpuesto en modo mapa */
	.cemca-map-zoom {
		display: none;
	}
	.cemca-map-stage.is-map-mode .cemca-map-zoom {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 12px;
		left: 12px;
		z-index: 900;
		padding-top: 0;
		align-self: auto;
	}

	/* 7. Mapa: oculto por defecto (modo lista) */
	.cemca-map-placeholder {
		min-height: 0;
		flex: 1 1 auto;
		display: none;
	}

	/* 8. Modo mapa: intercambiar visibilidad */
	.cemca-map-stage.is-map-mode .cemca-map-placeholder { display: block; }
	.cemca-map-stage.is-map-mode .cemca-catalog          { display: none; }

	/* 9. FABs y atribución: no desplazar cuando el drawer está abierto */
	.cemca-workspace.has-drawer .leaflet-bottom.leaflet-right { margin-right: 0; }
	.cemca-workspace.has-drawer .cemca-map-fabs { right: 10px; }

	/* 10. Drawer: pantalla completa fija */
	.cemca-drawer {
		position: fixed !important;
		inset: 0 !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		border-radius: 0 !important;
		z-index: 3000 !important;
		max-height: none !important;
	}
	.cemca-drawer.is-open {
		display: flex !important;
	}

	/* 11. Botones móvil */
	.cemca-btn-ver-mapa { display: flex; }
	.cemca-map-stage.is-map-mode .cemca-btn-volver-lista { display: flex; }

	/* 12. Otros ajustes */
	.divNav-inner,
	.cemca-map-head,
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.cemca-station-list { grid-template-columns: 1fr; }
	.cemca-panels-row   { grid-template-columns: 1fr; }
	.cemca-workspace.has-drawer { grid-template-columns: 1fr; }
}

/* Tab-level overlay that covers an entire tab pane */
.cemca-tab-overlay {
	position: absolute;
	inset: 0;
	background: #ffffff;
	z-index: 2100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: auto;
}
.cemca-tab-overlay-inner {
	text-align: center;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.cemca-tab-overlay .cemca-tab-title {
	margin: 0;
	font-size: 1.15rem;
	color: #24313a;
}

/* Generic loading state: keep layout, show overlay */
.cemca-tab-pane.is-loading {
	position: relative;
}
.cemca-tab-pane.is-loading > *:not(.cemca-tab-overlay) {
	visibility: hidden;
}
.cemca-tab-pane.is-loading .cemca-tab-overlay {
	display: flex !important;
	z-index: 9999;
}

/* Meteorology-specific loading: keep canvases measurable but hide them visually and lock drawer scroll */
.cemca-tab-pane.is-loading-meteo > *:not(.cemca-tab-overlay) {
	visibility: hidden;
}

/* ─────────────────────────────────────────────
   Leaflet attribution – shift left when drawer is open
   so it is never hidden behind the drawer panel
────────────────────────────────────────────── */
.leaflet-bottom.leaflet-right {
	transition: margin-right 0.3s ease;
}
.cemca-workspace.has-drawer .leaflet-bottom.leaflet-right {
	margin-right: 454px; /* 430px drawer + 12px right offset + 12px gap */
}

/* ─────────────────────────────────────────────
   FAB buttons floating above the Leaflet attribution
   – move in sync with it when the drawer opens
────────────────────────────────────────────── */
.cemca-map-fabs {
	position: absolute;
	/* sit directly above the Leaflet attribution (~24px tall + 4px gap) */
	bottom: 34px;
	right: 10px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: right 0.3s ease;
	pointer-events: auto;
}

.cemca-workspace.has-drawer .cemca-map-fabs {
	right: 452px; /* same effective position as the attribution shift */
}

.cemca-fab {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ministerio-green);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.45);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(12, 28, 20, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cemca-fab:hover {
	background: var(--ministerio-green-dark);
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(12, 28, 20, 0.35);
}

/* ─────────────────────────────────────────────
   Modal overlay – shared base for FAQ and Contact
────────────────────────────────────────────── */
.cemca-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
	z-index: 4000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cemca-modal-overlay.is-open {
	display: flex;
}
.cemca-modal-box {
	background: #fff;
	border-radius: 18px;
	width: 100%;
	max-width: 620px;
	max-height: 85vh;
	overflow-y: auto;
	padding: 28px 30px;
	position: relative;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	overscroll-behavior: contain;
}
.cemca-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--ministerio-cyan);
}
.cemca-modal-head h3 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #1f2d3d;
	display: flex;
	align-items: center;
	gap: 10px;
}
.cemca-modal-head h3 i {
	color: var(--ministerio-cyan);
}
.cemca-modal-close {
	background: none;
	border: none;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--ministerio-muted);
	cursor: pointer;
	padding: 0 4px;
	flex-shrink: 0;
}
.cemca-modal-close:hover {
	color: #333;
}

/* ─────────────────────────────────────────────
   FAQ accordion
────────────────────────────────────────────── */
.cemca-accordion-item {
	border-bottom: 1px solid #eee;
}
.cemca-accordion-item:last-child {
	border-bottom: 0;
}
.cemca-accordion-btn {
	width: 100%;
	text-align: left;
	background: #f8f9fa;
	border: none;
	padding: 14px 16px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #2d3436;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	transition: background 0.2s;
}
.cemca-accordion-btn:hover {
	background: #e9ecef;
}
.cemca-accordion-btn::after {
	content: '\25bc';
	font-size: 10px;
	color: var(--ministerio-cyan);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}
.cemca-accordion-btn.is-open::after {
	transform: rotate(180deg);
}
.cemca-accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding: 0 16px;
	background: #fff;
}
.cemca-accordion-panel p,
.cemca-accordion-panel li {
	padding: 5px 0;
	margin: 0;
	line-height: 1.65;
	color: #555;
	font-size: 0.93rem;
}
.cemca-accordion-panel ul {
	padding-left: 18px;
}
.cemca-accordion-panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	margin: 8px 0;
}
.cemca-accordion-panel th,
.cemca-accordion-panel td {
	border: 1px solid #ddd;
	padding: 6px 10px;
	text-align: left;
}
.cemca-accordion-panel th {
	background: #f2f2f2;
}

/* ─────────────────────────────────────────────
   Contact form
────────────────────────────────────────────── */
.cemca-form-group {
	margin-bottom: 14px;
}
.cemca-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 0.9rem;
	color: #2d3436;
}
.cemca-form-group input,
.cemca-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dde3e6;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s;
}
.cemca-form-group input:focus,
.cemca-form-group textarea:focus {
	border-color: var(--ministerio-cyan);
	box-shadow: 0 0 0 3px rgba(58, 179, 200, 0.15);
}
.cemca-btn-submit {
	width: 100%;
	padding: 12px;
	background: var(--ministerio-green);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.cemca-btn-submit:hover {
	background: var(--ministerio-green-dark);
}

/* ─────────────────────────────────────────────
   Toast notification
────────────────────────────────────────────── */
.cemca-toast {
	position: fixed;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #2d3436;
	color: #fff;
	padding: 13px 24px;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	z-index: 5000;
	transition: top 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	display: flex;
	align-items: center;
	gap: 12px;
	border-left: 5px solid var(--ministerio-cyan);
	font-weight: 500;
	white-space: nowrap;
	pointer-events: none;
}
.cemca-toast.is-visible {
	top: 22px;
}
.cemca-toast i {
	color: var(--ministerio-cyan);
	font-size: 1.1rem;
}

/* ── Offline state ─────────────────────────────────────────────────────────── */
.cemca-ica-offline-label {
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: 4px;
	color: #636e72;
	text-align: center;
	margin-top: 4px;
}

.cemca-offline-banner {
	background: #ebf5fb;
	border-left: 4px solid #2980b9;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 6px;
}

.cemca-offline-banner h4 {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1a5276;
}

.cemca-offline-banner p {
	margin: 0 0 8px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #1a5276;
}

.cemca-offline-banner p:last-child { margin-bottom: 0; }

.cemca-no-connection {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 16px;
	text-align: center;
}

.cemca-no-connection i {
	font-size: 2.5rem;
	color: #b2bec3;
}

.cemca-no-connection strong {
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #636e72;
	text-transform: uppercase;
}

.cemca-no-connection p {
	margin: 0;
	font-size: 0.85rem;
	color: #95a5a6;
	line-height: 1.4;
	max-width: 280px;
}
