/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}



/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}



/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}
```
</rewritten_file>

/* Ajuste específico para los gráficos de línea */
.tab-general #grafico-linea,
.tab-general #grafico-crecimiento {
    margin-bottom: 4rem; /* Margen adicional para estos gráficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

/* Ajustes para los gráficos de gasolina regular */
.charts-column .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.charts-column canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}
```
</rewritten_file>

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}



/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}


/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
.tab-general #grafico-linea,
.tab-general #grafico-crecimiento {
    margin-bottom: 4rem; /* Margen adicional para estos gráficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

/* Ajustes para los gráficos de gasolina regular */
.charts-column .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.charts-column canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}



/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
.tab-general #grafico-linea,
.tab-general #grafico-crecimiento {
    margin-bottom: 4rem; /* Margen adicional para estos gráficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

/* Ajustes para los gráficos de gasolina regular */
.charts-column .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.charts-column canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}



/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
.tab-general #grafico-linea,
.tab-general #grafico-crecimiento {
    margin-bottom: 4rem; /* Margen adicional para estos gráficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

/* Ajustes para los gráficos de gasolina regular */
.charts-column .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.charts-column canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f5f8fa;
}

.producto-row.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c3e50;
}

.detalles-tabla {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 1em;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 600;
}

.table-container {
    margin: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8em;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.analysis-table th,
.analysis-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilos del Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.content {
    padding: 2rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid específico para insight cards */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.table-container {
    max-height: 200px;
    overflow-y: auto;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.source-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.source-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Estilo para el scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para los valores */
.precio-valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.fecha-valor {
    font-size: 1.1rem;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
}

.full-width {
    width: 100%;
}

/* Estilos de las Cards */
.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estilos específicos para las cards */
.precio-actual {
    margin-top: 20px;
    text-align: center;
}

.precio-actual h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.precio-valor {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.fecha-actualizacion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.estadisticas-adicionales {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estadisticas-adicionales div {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Gráficos */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%; /* Altura fija más grande */
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.bar-chart-container {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 600px;
    margin-bottom: 3rem;
}

/* Contenedor de evolución de productos */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 250px; /* Aumentado a 250px */
    flex-shrink: 0;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 15px;
}

/* Selector de productos actualizado */
.product-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(800px + 4rem);
    overflow-y: auto;
}

.product-selector h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para el acordeón */
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.accordion-item:not(:last-child) {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para los items de productos */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item:last-child {
    border-bottom: none;
}

/* Ocultar radio buttons */
.product-item input[type="radio"] {
    display: none;
}

/* Scrollbar personalizado */
.product-selector::-webkit-scrollbar {
    width: 6px;
}

.product-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.product-selector::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


/* Media Queries */
@media (min-width: 1200px) {
    .insights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-evolution-container {
        flex-direction: column;
    }

    .product-selector {
        flex: 0 0 auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .charts-wrapper {
        min-height: 800px;
    }

    .charts-wrapper .chart-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Hover específico para el item seleccionado */
.product-item.selected:hover {
    background-color: #1976d2 !important;
    color: white !important;
}

/* Espaciador entre categorías */
.category-spacer {
    height: 20px; /* Altura del espaciador */
    margin: 10px 0; /* Margen adicional arriba y abajo */
    border-bottom: 1px solid #eee; /* Línea separadora opcional */
}

/* Ajuste del contenedor de acordeón */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Asegurarse que el último espaciador no tenga margen inferior */
.category-spacer:last-child {
    display: none;
}

/* Contenedor de la lista de productos */
.product-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* Estilos para las categorías */
.category-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid rgb(75, 192, 192);
    font-size: 1.1em;
}

.category-products {
    padding: 8px 0;
}

/* Ajustes adicionales para product-item */
.product-item {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 2px 8px;
}

.product-item:hover {
    background-color: rgba(75, 192, 192, 0.1);
}

.product-item.selected {
    background-color: rgba(75, 192, 192, 0.2);
    border-left: 3px solid rgb(75, 192, 192);
}

.product-item input[type="radio"] {
    display: none;
}

.product-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    color: #4a4a4a;
}

.product-item input[type="radio"]:checked + label {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

/* Estilos para la tarjeta de Información de Datos */
.fecha-actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.fecha-actual h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.fecha-valor {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.fecha-detalle {
    color: #666;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Ajuste específico para la tarjeta */
.insight-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:nth-child(2) h2 {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

/* Estilos para la fuente de datos */
.data-source {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(75, 192, 192);
    border-radius: 4px;
}

.data-source p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.data-source a {
    color: rgb(75, 192, 192);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.data-source a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Estilos para el header del gráfico y botón de información */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.chart-header h3 {
    font-size: 1rem;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.info-button:hover {
    color: rgb(75, 192, 192);
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    font-size: 0.9rem;
}

.info-popup.active {
    display: block !important;
}

.info-popup p {
    margin: 0.5rem 0;
}

.info-popup ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-popup li {
    margin: 0.3rem 0;
}

/* Ajustes específicos para gasolina_regular.html */
.insight-card canvas {
    margin-top: 1.5rem;
    padding: 1rem;
    height: 400px !important;
    width: 100% !important;
}

/* Estilos para el contenedor de gráficos */
.charts-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el último gráfico tenga suficiente espacio */
.chart-container:last-child {
    margin-bottom: 2rem;
}



/* Asegurar que el canvas ocupe el espacio correctamente */
.chart-container canvas {
    margin-top: 0.5rem;
}

/* Estilos específicos para los gráficos de la pestaña General en canasta básica */
.tab-general .charts-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3rem;
}

.tab-general .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.tab-general .chart-header {
    margin-bottom: 2rem;
}

.tab-general canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
.tab-general #grafico-linea,
.tab-general #grafico-crecimiento {
    margin-bottom: 4rem; /* Margen adicional para estos gráficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

/* Ajustes para los gráficos de gasolina regular */
.charts-column .chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 4rem 8rem 2rem; /* Aumentado padding derecho e inferior */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    height: 500px; /* Aumentada la altura */
    margin: 0 2rem 2rem 2rem; /* Aumentados los márgenes */
}

.charts-column canvas {
    margin-bottom: 3rem; /* Aumentado el margen inferior */
}

/* Ajuste específico para los gráficos de línea */
#grafico-gasolina,
#grafico-variacion {
    margin-bottom: 4rem; /* Margen adicional para estos grficos específicos */
    height: calc(100% - 2rem) !important; /* Ajuste de altura considerando márgenes */
}

#grafico-producto {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

/* Ajustamos el ancho del selector de productos para dar más espacio al gráfico */
.product-selector {
    width: 160px; /* Más estrecho para dar más espacio a los gráficos */
    flex-shrink: 0;
}

#product-list {
    max-width: 160px;
}

#grafico-crecimiento {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-producto-mensual {
    width: 100%;
    height: 550px;
    margin: 0 auto;
}

#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
}

/* Estilos comunes para todos los gráficos */
#grafico-producto,
#grafico-producto-mensual,
#grafico-variacion-mensual {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem 3rem 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Estilos específicos para cada contenedor */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    flex: 1;
}

#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important; /* Forzar ancho completo */
    height: 500px !important;
    margin: 0 auto;
}

.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-selector {
    width: 180px;
    flex-shrink: 0;
}

#product-list {
    max-width: 220px; /* Aumentado para coincidir con el contenedor */
}

/* Estilos para las tabs de análisis */
.analysis-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.analysis-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: rgb(75, 192, 192);
    font-weight: bold;
}

.analysis-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(75, 192, 192);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Estilos para el selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-slider-container {
    margin: 1rem 0;
    position: relative;
}

#yearSlider {
    width: 100%;
    margin: 1rem 0;
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.selected-period {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    color: #2c3e50;
}

/* Estilos para el gráfico de cambios de precios */
#price-changes-chart {
    height: 400px;
    margin-top: 2rem;
}

/* Ajustar el contenedor de las tabs */
.tab-content {
    width: 100%;
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

/* Asegurar que el contenedor de producto mantenga su ancho */
.product-evolution-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Ajustar el contenedor de los gráficos */
.charts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    min-width: 0; /* Importante para evitar desbordamiento */
}

/* Mantener el ancho del selector de productos */
.product-selector {
    width: 250px;
    flex-shrink: 0;
}

/* Asegurar que los contenedores de gráficos mantengan su ancho */
.evolution-chart-container,
.monthly-chart-container {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Asegurar que los gráficos mantengan su ancho */
#grafico-evolucion-producto,
#grafico-comparacion-mensual {
    width: 100% !important;
    height: 500px !important;
}

/* Estilos para el nuevo selector de período */
.period-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.year-range-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.year-range-container > label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.year-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-input label {
    font-size: 0.9rem;
    color: #666;
}

.year-select {
    padding: 0.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:hover {
    border-color: #aaa;
}

.year-select:focus {
    outline: none;
    border-color: rgb(75, 192, 192);
    box-shadow: 0 0 0 2px rgba(75, 192, 192, 0.2);
}

/* Estilos para la tabla de análisis */
.price-analysis-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analysis-table th,
.analysis-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-table tr:hover {
    background-color: #f8f9fa;
}

.price-change {
    font-weight: 500;
}

.price-change.positive {
    color: #dc3545;
}

.price-change.negative {
    color: #28a745;
}

/* Estilo para el contenedor de la tabla */
.price-analysis-table-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el botón de análisis */
.analysis-btn {
    padding: 0.5rem 1.5rem;
    background-color: rgb(75, 192, 192);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.analysis-btn:hover {
    background-color: rgb(65, 170, 170);
}

.year-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end; /* Alinear con la parte inferior de los selectores */
}

#mapa {
    width: 100%;
    height: 600px;  /* o el alto que prefieras */
    margin: 20px 0;
    border-radius: 8px;
    z-index: 1;
}

.custom-cluster-icon {
    background: none;
}

.cluster-icon {
    background-color: rgba(84, 112, 198, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    height: 100%;
}

.cluster-icon.small {
    background-color: rgba(84, 112, 198, 0.8);
}

.cluster-icon.medium {
    background-color: rgba(241, 156, 56, 0.8);
    transform: scale(1.1);
}

.cluster-icon.large {
    background-color: rgba(230, 76, 76, 0.8);
    transform: scale(1.2);
}

.map-section {
    margin: 20px 0;
}

.map-header {
    margin-bottom: 15px;
}

.map-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #333;
}

.map-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

#mapa {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analysis-table th,
.analysis-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.analysis-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.producto-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.producto-row:hover {
    background-color: #f8f9fa;
}

.producto-row.active {
    background-color: #e9ecef;
}

.detalles-tabla {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
}

.detalles-tabla th,
.detalles-tabla td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.detalles-tabla th {
    background: #f8f9fa;
    font-weight: 500;
}

.table-container {
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}
  