.logoAvanza   {
    width: 200px; /* La imagen se ajusta al 100% del contenedor */
    height: 80px;
}

:root {
--primary: #04636c;
--secondary: #c904a3;
--accent: #00a8e8;
--light: #f8f9fa;
--dark: #212529;
--success: #28a745;
--gray: #6c757d;
--light-gray: #e9ecef;
--transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #00257a);
    color: white;
    padding: 30px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.date-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.9rem;
}

.summary {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
}

.summary h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.highlight-box {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.deficit-section {
    border-top: 3px solid var(--secondary-color);
}

.deficit-section h2 {
    color: var(--secondary-color);
}

.data-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.data-point {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.data-point.highlight {
    background-color: #ffe6e6;
    border-bottom-color: var(--secondary-color);
}

.data-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.data-point.highlight .data-value {
    color: var(--secondary-color);
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.key-factors {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.key-factors h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-color);
}

.factor-list {
    list-style-type: none;
}

.factor-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: flex-start;
}

.factor-list li:last-child {
    border-bottom: none;
}

.factor-list li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.conclusion {
    background: linear-gradient(135deg, #0039a6, #00257a);
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
}

.conclusion h2 {
    color: white;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: var(--text-color);
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

.risk-indicator {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.risk-high {
    background-color: #ffcccc;
    color: #cc0000;
}

.risk-medium {
    background-color: #fff4cc;
    color: #b38f00;
}

.risk-low {
    background-color: #e6f7ff;
    color: #0066cc;
}

.chart-placeholder {
    background-color: var(--light-color);
    height: 200px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: var(--text-color);
    font-style: italic;
}
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #fff;
        transition: left 0.3s;
        box-shadow: 0 5px 10px rgba(245, 242, 242, 0.1);
    }}

.dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: #f8f9fa;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu::before {
    display: none;
}
.menu-toggle {
    display: block;
}
.nav-menu.active {
    left: 0;
}

.nav-item {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link {
    padding: 15px 20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(247, 246, 246, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header y navegación */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    display: block;
}

.nav-link:hover {
    color: #3498db;
}