:root {
	--primary: #2563eb;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--bg-page: #f3f4f6;
	--card-bg: #ffffff;
	
	/* Semáforo */
	--color-verde: #10b981;
	--color-naranja: #f59e0b;
	--color-rojo: #ef4444;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--bg-page);
	color: var(--text-dark);
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Header --- */
.main-nav {
	background: white;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	padding: 15px 0;
}
.main-nav .container { /* Added for alignment of nav elements */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Lang Switch */
.lang-switch {
	display: flex;
	gap: 5px;
}
.lang-switch a {
	text-decoration: none;
	color: var(--text-dark);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.9rem;
	transition: background-color 0.2s ease;
}
.lang-switch a:hover {
	background-color: var(--bg-page);
}
.lang-switch a.active {
	background-color: var(--primary);
	color: white;
	font-weight: bold;
}
.nav-links { /* Styling for the navigation links container */
	display: flex;
	gap: 20px; /* Space between navigation links */
}
.nav-links a {
	text-decoration: none;
	color: var(--text-dark);
	font-weight: 600;
	transition: color 0.2s;
}
.nav-links a:hover {
	color: var(--primary);
}

.logo {
	text-decoration: none;
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--text-dark);
}

.page-header {
	margin: 40px 0 30px;
	text-align: center;
}
.page-header h1 { margin-bottom: 5px; font-size: 2rem; }
.subtitle { color: var(--text-light); margin-top: 0; }

/* --- Grid System --- */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
	margin-bottom: 50px;
}

@media (min-width: 768px) {
	.dashboard-grid {
		grid-template-columns: repeat(3, 1fr);
		/* Layout Desktop:
		   [ Status ] [ Chart   ] [ Chart ]
		   [ Tips   ] [ Chart   ] [ Chart ]
		   [ Ads	] [ Chart   ] [ Chart ]
		*/
	}
	.chart-card {
		grid-column: 2 / -1; /* Ocupa las columnas 2 y 3 */
		grid-row: 1 / 4;	 /* Se estira verticalmente */
	}
}

/* --- Cards --- */
.card {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s;
	margin-bottom: 20px; /* Added for vertical spacing */
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card h3 { margin-top: 0; font-size: 1rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* --- Widget Status --- */
.status-card { border-left: 6px solid #ccc; }
.status-card.verde { border-color: var(--color-verde); }
.status-card.naranja { border-color: var(--color-naranja); }
.status-card.rojo { border-color: var(--color-rojo); }

.big-price { font-size: 3rem; font-weight: 800; color: var(--text-dark); line-height: 1; margin: 10px 0; }
.unit { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.status-msg { font-weight: 600; margin: 0; }

/* --- Widget Chart --- */
.chart-container {
	position: relative;
	height: 300px;
	width: 100%;
}

/* --- Widget Ads --- */
.ad-card {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: white;
}
.ad-card h3 { color: rgba(255,255,255,0.8); }
.ad-card p { margin-bottom: 20px; }
.cta-button {
	display: block;
	background: white;
	color: var(--primary);
	text-align: center;
	padding: 10px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}
.ad-label {
	display: block;
	margin-top: 10px;
	font-size: 0.7rem;
	opacity: 0.5;
	text-align: center;
}

/* --- Widget Advice --- */
.advice-card {
	background-color: #f0fdf4; /* Verde muy claro */
	border-left: 6px solid var(--color-verde);
}

/* --- Articles --- */
.articles-list {
	margin-top: 30px;
}
.article-item {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.article-item h2 {
	margin-top: 0;
	font-size: 1.5rem;
}
.article-item h2 a {
	text-decoration: none;
	color: var(--text-dark);
}
.article-item p {
	color: var(--text-light);
}
.read-more {
	display: inline-block;
	margin-top: 10px;
	text-decoration: none;
	color: var(--primary);
	font-weight: 600;
}

/* --- Footer --- */
.main-footer {
	text-align: center;
	padding: 40px 0;
	color: var(--text-light);
	font-size: 0.9rem;
	border-top: 1px solid #e5e7eb;
}

@media (max-width: 950px) {
	.omie-page .page-wrapper {
		min-width: 950px;
		overflow-x: auto; /* Add horizontal scroll if content overflows */
	}
}

/* Dropdown styles */
.nav-item {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

.dropdown-content a:hover {
	background-color: #f1f1f1;
}

.nav-item:hover .dropdown-content {
	display: block;
}
