/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
/* body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} */
/* Body styling */
body {
    font-family: 'IBM Plex Mono', monospace;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
header {
    background-color: #0000ff;
    padding: 10px 20px;
    text-align: center;
    color: #fff;
}

header h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

/* Botón y enlaces */
nav ul li a {
    color: #fff;
}

.card .button {
    background-color: #0000ff;
}

.card .button:hover {
    background-color: #0056b3;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main section */
main {
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* Company selection section */
.company-selection {
    max-width: 1200px;
    margin: 0 auto;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.card p {
    padding: 0 15px;
    font-size: 0.9em;
    color: #666;
}

.button {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 10px 20px;
    color: #fff;
    background-color: #4CAF50;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #45a049;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

/* Styling for options in variables.html */
.options-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 10px;
}

.option {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
}

.option h3 {
    font-size: 1.4em;
    color: #0000ff;
    margin-bottom: 15px;
}

.option ul {
    list-style: none;
    padding: 0;
}

.option ul li {
    margin: 10px 0;
}

.option ul li a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.option ul li a:hover {
    color: #0056b3;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.button.secondary {
    background-color: #0056b3;
}

.button.secondary:hover {
    background-color: #003d80;
}

/* Estilo para las tarjetas de métricas */
.dashboard .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding-top: 20px;
}
/* Contenedor de tarjetas */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centrar las tarjetas */
    padding: 20px;
}

/* Tarjetas de métricas */
.metric-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 220px; /* Ancho fijo para consistencia */
    text-align: center;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-5px); /* Efecto al pasar el ratón */
}

.metric-card h3 {
    font-size: 1.2em;
    color: #0000ff;
    margin-bottom: 15px;
}

.metric-card p {
    font-size: 1em;
    color: #333;
    margin: 10px 0;
}

.metric-card small {
    display: block;
    margin-top: 15px;
    font-size: 0.8em;
    color: #666;
}

/* Barra de progreso */
.progress-bar {
    width: 100%;
    height: 15px;
    background-color: #ddd;
    border-radius: 7.5px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

.progress-bar::before {
    content: "";
    display: block;
    height: 100%;
    width: var(--progress);
    transition: width 0.3s ease;
}

/* Colores para diferentes niveles */
.progress-bar.low::before {
    background-color: #FF4B4B; /* Rojo para niveles bajos */
}

.progress-bar.high::before {
    background-color: #4CAF50; /* Verde para niveles altos */
}

/* Responsividad */
@media (max-width: 600px) {
    .metric-card {
        width: 100%;
    }
}

/* .metric-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 200px;
    text-align: center;
}

.metric-card h3 {
    font-size: 1.2em;
    color: #0000ff;
    margin-bottom: 10px;
}

.metric-card p {
    font-size: 1em;
    color: #333;
}

.metric-card small {
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
    color: #666;
} */

/* Barra de progreso */
/* .progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: "";
    display: block;
    height: 100%;
    background-color: #4CAF50; 
    width: var(--progress);
    transition: width 0.3s ease;
}*/

/* Barra de progreso */
/*.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: "";
    display: block;
    height: 100%;
    width: var(--progress);
    transition: width 0.3s ease;
}

.progress-bar.low::before {
    background-color: #FF0000; 
}

.progress-bar.high::before {
    background-color: #4CAF50; /*
} */


.variable-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.variable-info {
    flex: 1;
    max-width: 600px;
}

.main-metric {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.metric-date {
    font-size: 0.9em;
    color: #666;
}

.trends {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.trend {
    font-size: 1.2em;
    color: green;
}

.trend-chart {
    margin-top: 20px;
}

.map-container {
    flex: 1;
    position:relative;
    min-width: 650px;
    max-width: 850px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contenedor general de las tarjetas */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Estilo de las tarjetas */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    padding: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Imagen de la tarjeta */
.card img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Esto asegura que la imagen se ajuste al tamaño sin deformarse */
    margin-bottom: 10px;
    background-color: #f4f4f4; /* Color de fondo para imágenes más pequeñas */
    padding: 10px;
    border-radius: 4px;
}

/* Texto en la tarjeta */
.card h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.card p {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

/* Contenedor de botones dentro de la tarjeta */
.button-container {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.button {
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.button.secondary {
    background-color: #0056b3;
}

.button:hover {
    background-color: #0056b3;
}

.button.secondary:hover {
    background-color: #003d80;
}
