* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.session-type {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.source-document {
    background: #ecf0f1;
    padding: 12px 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 0.95em;
    border-left: 4px solid #3498db;
}

.source-document a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.source-document a:hover {
    text-decoration: underline;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.info-card strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.composition {
    margin: 30px 0;
}

.party-group {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #95a5a6;
}

.party-group.pp {
    border-left-color: #0066a3;
}

.party-group.psoe {
    border-left-color: #ef1c27;
}

.party-group.mas-madrid {
    border-left-color: #00a58e;
}

.party-group.vox {
    border-left-color: #95c23d;
}

.party-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-count {
    background: #34495e;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.members-list {
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
}

.summary-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

.key-topics {
    list-style: none;
    margin-top: 15px;
}

.key-topics li {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    margin: 5px 0;
    border-radius: 5px;
    display: inline-block;
    margin-right: 10px;
}

.proposition {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.proposition:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.proposition-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.point-number {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.group-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.group-badge.pp {
    background: #0066a3;
}

.group-badge.psoe {
    background: #ef1c27;
}

.group-badge.mas-madrid {
    background: #00a58e;
}

.group-badge.vox {
    background: #95c23d;
}

.group-badge.consejo {
    background: #95a5a6;
}

.group-badge.vecinal {
    background: #e67e22;
}

.proposition-topic {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.proposition-reference {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.proposition-description {
    color: #555;
    margin: 15px 0;
    line-height: 1.8;
}

.vote-result {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.vote-result.aprobada {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.vote-result.rechazada {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.vote-result.parcial {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.result-label {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.result-label.aprobada {
    color: #28a745;
}

.result-label.rechazada {
    color: #dc3545;
}

.result-label.parcial {
    color: #ffc107;
}

.vote-details {
    font-size: 0.95em;
    margin-top: 8px;
}

.vote-details div {
    margin: 5px 0;
}

.subpoint {
    background: #f8f9fa;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}

.subpoint-number {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.full-text-toggle {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.full-text-toggle:hover {
    background: #2980b9;
}

.full-text-toggle.active {
    background: #27ae60;
}

.full-text-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.full-text-button:hover {
    background: #2980b9;
}

.full-text-button.active {
    background: #27ae60;
}

.full-text-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 10px;
}

.full-text-content.show {
    max-height: 2000px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.full-text-content p {
    margin: 10px 0;
    line-height: 1.8;
}

.transactional-note {
    background: #e7f3ff;
    padding: 12px;
    border-left: 4px solid #2196F3;
    margin: 10px 0;
    border-radius: 3px;
    font-style: italic;
}

.questions-section {
    margin-top: 30px;
}

.question-item {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}

.question-reference {
    color: #7f8c8d;
    font-size: 0.85em;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.verification-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.verification-info a {
    color: #2980b9;
    text-decoration: none;
}

.verification-info a:hover {
    text-decoration: underline;
}

.anchor-link {
    color: #7f8c8d;
    text-decoration: none;
    margin-left: 8px;
    font-size: 0.85em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.anchor-link:hover {
    opacity: 1;
    color: #3498db;
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    font-size: 0.95em;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.proposition-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.point-badge {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: box-shadow 0.3s ease;
}

.session-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.session-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.session-type {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.session-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.session-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    background: white;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.session-link:hover {
    background: #e8f4f8;
}

.session-link.pdf-link {
    color: #e67e22;
}

.section {
    margin: 30px 0;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    .proposition-header {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2em;
    }
}
