/* src/components/CongresoWidget.css */ .congreso-container { display: flex; /* Se reduce ligeramente el espacio entre el gráfico y el panel */ gap: 1rem; background-color: #ffffff; border: 1px solid #e0e0e0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); padding: 1rem; border-radius: 8px; max-width: 800px; margin: 20px auto; font-family: "Public Sans", system-ui, sans-serif; color: #333333; align-items: center; } .congreso-grafico { /* --- CAMBIO PRINCIPAL: Se aumenta la proporción del gráfico --- */ flex: 1 1 65%; min-width: 300px; display: flex; align-items: center; justify-content: center; } .congreso-grafico svg { width: 100%; height: auto; animation: fadeIn 0.8s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .congreso-summary { /* --- CAMBIO PRINCIPAL: Se reduce la proporción del panel de datos --- */ flex: 1 1 35%; border-left: 1px solid #e0e0e0; /* Se reduce el padding para dar aún más espacio al gráfico */ padding-left: 1rem; } .congreso-summary h3 { margin-top: 0; font-size: 1.4em; color: #212529; } .chamber-tabs { display: flex; margin-bottom: 1.5rem; border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; } .chamber-tabs button { flex: 1; padding: 0.75rem 0.5rem; border: none; background-color: #f8f9fa; color: #6c757d; font-family: inherit; font-size: 1em; font-weight: 500; cursor: pointer; transition: all 0.2s ease-in-out; } .chamber-tabs button:first-child { border-right: 1px solid #dee2e6; } .chamber-tabs button:hover { background-color: #e9ecef; } .chamber-tabs button.active { background-color: var(--primary-accent-color); color: #ffffff; } .summary-metric { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; font-size: 1.1em; } .summary-metric strong { font-size: 1.5em; font-weight: 700; color: var(--primary-accent-color); } .congreso-summary hr { border: none; border-top: 1px solid #e0e0e0; margin: 1.5rem 0; } .partido-lista { list-style: none; padding: 0; margin: 0; } .partido-lista li { display: flex; align-items: center; margin-bottom: 0.75rem; } .partido-color-box { width: 14px; height: 14px; border-radius: 3px; margin-right: 10px; flex-shrink: 0; } .partido-nombre { flex-grow: 1; } .partido-bancas { font-weight: 700; font-size: 1.1em; } /* --- Media Query para Responsividad Móvil --- */ @media (max-width: 768px) { .congreso-container { flex-direction: column; padding: 1.5rem; } .congreso-summary { border-left: none; padding-left: 0; margin-top: 2rem; border-top: 1px solid #e0e0e0; padding-top: 1.5rem; } } .seat-tooltip { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 5px; background-color: white; border-radius: 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .seat-tooltip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #ccc; } .seat-tooltip p { margin: 0; font-size: 12px; font-weight: bold; color: #333; } .seat-tooltip { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px; background-color: white; } .seat-tooltip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #ccc; } .seat-tooltip p { margin: 0; font-size: 12px; font-weight: bold; color: #333; }