.fma-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #e0e0e0; 
    background-color: #f9f9f9; 
    box-sizing: border-box; 
    position: relative; 
    z-index: 1; 
}
.fma-global-loader { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(249, 249, 249, 0.95); 
    z-index: 10; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    border-radius: 8px; 
    opacity: 0; 
    transition: opacity 0.2s ease-in-out; 
}
.fma-container.fma-loading .fma-global-loader { 
    display: flex; 
    opacity: 1; 
}
.fma-container.fma-loading .fma-column { 
    visibility: hidden; 
    opacity: 0; 
}
.fma-column { 
    transition: opacity 0.3s ease-in-out; 
}
.fma-loader-spinner { 
    border: 6px solid #f3f3f3; 
    border-top: 6px solid #026580; 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    animation: fma-spin 1s linear infinite; 
}
.fma-loader-text { 
    margin-top: 20px; 
    font-weight: bold; 
    color: #000000; 
    font-size: 1.1em; 
}
@keyframes fma-spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}
.fma-container::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-size: contain; 
    opacity: 0.75; 
    z-index: -1; 
}
.fma-tabs-column, .fma-chart-column { 
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    box-sizing: border-box; 
    width: 100%; 
}
.fma-search-wrapper { 
    padding: 15px 0 5px 0; 
    position: relative; 
}
.fma-search-input { 
    width: 100%; 
    padding: 8px 12px 8px 40px !important; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 0.9em; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>'); 
    background-repeat: no-repeat; 
    background-position: 10px center; 
    background-size: 16px 16px; 
}
.fma-search-input::placeholder { 
    text-indent: 0; 
}
.fma-tabs-content { 
    background-color: transparent; 
    border: none; 
    padding: 0; 
}
.fma-table td { 
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7); 
}
.fma-tabs-nav { 
    display: flex; 
    flex-wrap: wrap; 
    border-bottom: 1px solid #ccc; 
    text-align: center; 
}
.fma-tabs-nav-item {
    flex-grow: 1; 
    padding: 10px 15px; 
    cursor: pointer; 
    background-color: #f1f1f1; 
    border: 1px solid #ccc; 
    border-bottom: none; 
    border-radius: 4px 4px 0 0; 
    text-decoration: none; 
    color: #333; 
    margin-right: 2px;
    transition: all 0.2s ease-in-out;
}
.fma-tabs-nav-item:hover {
    background-color: #e9ecef;
}

.fma-tabs-nav-item.active {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    color: #026580 !important;
    font-weight: bold;
}

.fma-tab-panel { 
    display: none; 
} 
.fma-tab-panel.active { 
    display: block; 
}
.fma-table { 
    width: 100%; 
    table-layout: fixed; 
    font-size: 0.9em; 
    border-collapse: collapse; 
}
.fma-table th, .fma-table td { 
    padding: 12px 10px; 
    text-align: left; 
    white-space: normal; 
    word-break: break-word; 
}
.fma-table th { 
    background-color: #f2f2f2; 
    text-align: center; 
}
.fma-table-body-scroll { 
    height: 360px; 
    overflow-y: auto; 
}
.fma-table-header-wrapper { }
.fma-table-body td { 
    border-bottom: 1px solid #ddd; 
}
@media (min-width: 961px) { 
    .fma-tabs-column { flex: 2; min-width: 300px; } 
    .fma-chart-column { flex: 3; min-width: 400px; } 
    .fma-table-header-wrapper { padding-right: 17px; } 
    .fma-table-body-scroll { overflow-y: scroll; } 
}
.fma-table tbody tr:hover { 
    background-color: rgba(233, 245, 255, 0.8); 
} 
.fma-clickable-row { 
    cursor: pointer; 
}
.fma-table tr.fma-row-selected { 
    background-color: #d1ecf1 !important; 
    font-weight: bold; 
}
.fma-table .positive { 
    color: #28a745; 
    font-weight: 500; 
}
.fma-table .negative { 
    color: #dc3545; 
    font-weight: 500; 
} 
.fma-table .neutral { 
    color: #6c757d; 
}
.fma-investment-controls { 
    text-align: center; 
    margin-bottom: 15px; 
    min-height: 125px; 
}
.fma-investment-question { 
    margin: 0 0 10px 0; 
    font-size: 1em; 
    color: #333; 
    font-weight: bold; 
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7); 
}
.fma-chart-filters { 
    margin-bottom: 10px; 
} 
.fma-chart-filter-btn { 
    background: #f1f1f1; 
    border: 1px solid #ccc; 
    padding: 5px 10px; 
    cursor: pointer; 
    border-radius: 4px; 
    margin: 2px; 
}

/* --- CAMBIO 1: Color del botón activo --- */
.fma-chart-filter-btn.active { 
    background: #026580; 
    color: white; 
    border-color: #026580;
}

.fma-investment-result { 
    font-size: 1.4em; 
    font-weight: bold; 
    height: auto; 
    margin-bottom: 0; 
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.7); 
}
.fma-result-and-cta-container { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 2px; 
    margin-bottom: 10px; 
    min-height: 50px; 
}
.fma-cta-button { 
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
    display: inline-block; 
    margin: 0; 
    padding: 8px 16px; 
    font-size: 1em; 
    font-weight: bold; 
    color: #ffffff; 
    background-color: #026580; 
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    transition: color 0.3s ease-in-out; 
}
.fma-cta-button::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: #000000; 
    z-index: -1; 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease-in-out; 
}
.fma-cta-button:hover::before { 
    transform: scaleX(1); 
}
.fma-cta-button:hover { 
    background-color: #026580; 
}
.fma-investment-result.positive { 
    color: #28a745; 
} 
.fma-investment-result.negative { 
    color: #dc3545; 
}
.fma-chart-wrapper { 
    position: relative; 
    height: 350px; 
}
.fma-chart-loader { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: rgba(255,255,255,0.8); 
    padding: 10px 20px; 
    border-radius: 5px;
}
.fma-chart-selections { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
    min-height: 32px; 
}
.fma-selection-tag { 
    display: flex; 
    align-items: center; 
    background-color: #e9ecef; 
    border: 1px solid #ced4da; 
    border-radius: 4px; 
    padding: 5px 10px; 
    font-size: 0.9em; 
}
.fma-selection-color { 
    width: 15px; 
    height: 15px; 
    border-radius: 3px; 
    margin-right: 8px; 
    border: 1px solid rgba(0,0,0,0.2); 
}
.fma-selection-remove { 
    margin-left: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    color: #dc3545; 
    font-size: 1.2em; 
    line-height: 1; 
}
.fma-selection-remove:hover { 
    color: #a71d2a; 
}
.fma-selection-vs, .fma-selection-corr { 
    font-weight: bold; 
    color: #333; 
}
.fma-selection-corr { 
    font-size: 0.9em; 
    color: #6c757d; 
}
@media (max-width: 960px) { 
    .fma-container { 
        flex-direction: column; 
        padding: 10px; 
        background-image: none; 
    } 
    .fma-container::before { 
        background-image: none; 
    } 
    .fma-tabs-column { 
        min-width: 0; 
    } 
    .fma-chart-column { 
        min-width: 0; 
        position: relative; 
        z-index: 1; 
    } 
    .fma-chart-column::before { 
        content: ''; 
        position: absolute; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        /* --- CAMBIO 2: Posición del logo en móvil --- */
        background-position: center 70%; /* Lo baja del 50% (centro) al 70% del alto */
        background-repeat: no-repeat; 
        background-size: contain; 
        opacity: 0.075; 
        z-index: -1; 
    } 
}
@media (max-width: 480px) { 
    .fma-chart-column { 
        padding: 15px 5px; 
    } 
}
.fma-sortable-header { 
    cursor: pointer; 
}
.fma-sortable-header .fma-sort-indicator { 
    display: inline-block; 
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent; 
    margin-left: 5px; 
    vertical-align: middle; 
    opacity: 0.5; 
}
.fma-sortable-header[data-sort-direction="original"] .fma-sort-indicator { 
    border-top: 5px solid transparent; 
    border-bottom: 5px solid transparent; 
}
.fma-sortable-header[data-sort-direction="asc"] .fma-sort-indicator { 
    border-bottom: 5px solid #333; 
    opacity: 1; 
}
.fma-sortable-header[data-sort-direction="desc"] .fma-sort-indicator { 
    border-top: 5px solid #333; 
    opacity: 1; 
}