﻿/* Header Background */
body {
    background-color: #fff;
}

#cnt-header-home {
    background-image: url('../img/inversionista/banner_inversionista.png') !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    min-height: 250px;
}

/* Banner Section */
#carrusel-inversionista {
    padding-top: 40px;
    background-color: #fff;
    /* Fallback */
    background-image: url('../img/inversionista/banner_inversionista.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 540px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}



.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-align: center;
    z-index: 2;
    margin-bottom: 60px;
}

@media(min-width: 992px) {
    .banner-title {
        font-size: 48px;
    }
}

/* Tab Navigation Styles */
.inversionista-tabs-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    /* Center the tabs */
    justify-content: center;
    /* Gradient matching top bar */
    background: rgb(249, 226, 76);
    background: linear-gradient(90deg, rgba(249, 226, 76, 1) 0%, rgba(238, 119, 16, 1) 100%);
    padding: 0;
    height: 54px;
}

/* Tab Items */
.inversionista-tab {
    width: 280px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    /* Ensure z-index works if needed */
    z-index: 5;
    /* Above yellow block */
}

button.inversionista-tab::-moz-focus-inner {
    border: 0;
}

/* Colores */
.bg-yellow-lds {
/*    background-color: #FFC107;
*/    /* Position absolute to stick to left without affecting center alignment of tabs */
    position: absolute;
    left: 0;
    top: 0;
    width: 20%;
    max-width: 400px;
    /* Slight increase */
    min-width: 200px;
    height: 100%;
    z-index: 4;
    display: none;
}

@media(min-width: 992px) {
    .bg-yellow-lds {
        display: block;
    }
}

.bg-orange-lds {
    background-color: transparent;
    color: #000;
}

.bg-white-lds {
    background-color: white;
    color: #000;
}

.inversionista-tab.active {
    background-color: white;
    color: #000;
}

.inversionista-tab:hover {
    background-color: white;
    color: #000;
}

/* Main Content Area */
.cnt-main {
    padding: 40px 15px;
    min-height: 400px;
    position: relative;
    z-index: 10;
    background-color: #fff;
    /* Ensure opacity */
    clear: both;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 1200px) {
    .cnt-main {
        padding: 100px 0;
    }
}

/* New Card Styles */
.cards-container-row {
    gap: 20px;
}

.inversionista-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F7F7F7;
    border-radius: 12px;
    padding: 0 20px;
    border: 1px solid #EAEAEA;
    width: 380px;
    margin-bottom: 30px;
    text-decoration: none !important;
    color: #212529;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 102px;
    /* Fix for blurry edges/lines */
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
    /* Figma Shadow: ElevationXS X=0 Y=1 Blur=2 Spread=0 #91B6DA 16% */
    box-shadow: 0 1px 2px 0 rgba(145, 182, 218, 0.16);
}

    .inversionista-card-btn:hover {
        border-color: #d1d1d1;
        background-color: #D4D4D4;
    }

    .inversionista-card-btn.active {
        background-color: #FAE870;
        /* Yellow from reference */
        border-color: #ffe552;
    }

/* Content Box Styles */
.inversionista-content-box {
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    min-height: 446px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.inversionista-label {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: #212529;
}

.inversionista-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #333;
    /* Darker border */
    border-radius: 8px;
    /* Rounded corners */
    background-color: #fff;
    color: #333;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom Chevron Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
}

    .inversionista-select:disabled {
        background-color: #fff;
        color: #C4C4C4;
        border-color: #C4C4C4;
        cursor: default;
        opacity: 0.6;
    }

    .inversionista-select:focus {
        outline: none;
        border: 1px solid #67C3F0 !important;
        box-shadow: 0 0 0 1px #67C3F0 !important;
    }

/* SVG Download Icon */
.download-icon-svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    /* Default color */
    transition: stroke 0.3s ease;
    cursor: pointer;
}

/* Specific hover class for Agencias table or other actionable areas */
.download-icon-hover:hover {
    stroke: #FCC330;
    /* Hover color rgb(252, 195, 47) */
    color: #FCC330 !important;
}

.rating-desk-view {
    display: block;
}

.rating-mobile-view {
    display: none;
}

.rating-table-width {
    max-width: 964px;
    margin: 0 auto;
}

/* Compact style for Hechos de Importancia table */

/* Compact style for Hechos de Importancia table */
#results-hechosImportancia {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.inversionista-card-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    object-fit: contain;
}

.inversionista-card-text {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    /* Dark text */
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 991px) {

    /* Responsive Banner */
    #carrusel-inversionista {
        padding-top: 40px;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        min-height: 750px !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .banner-title {
        margin-bottom: 160px;
        margin-top: 0;
        padding: 0 15px;
    }

    /* Stack Tabs Vertical */
    .inversionista-tabs-container {
        position: absolute;
        bottom: 0;
        height: auto;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(90deg, rgba(249, 226, 76, 1) 0%, rgba(238, 119, 16, 1) 100%);
        margin-top: 0;
        align-self: stretch;
        padding: 20px 24px;
        /* Padding for top space and side margins */
    }

    .inversionista-tab {
        width: 100% !important;
        max-width: none;
        border-bottom: none;
        padding: 15px 0;
        text-align: center;
        justify-content: center;
        margin: 0;
        border-radius: 0;
    }

    .bg-yellow-lds {
        display: none !important;
    }

    /* Reduce vertical space in main container */
    .cnt-main {
        padding-top: 20px;
    }

    /* Cards Side-by-Side Mobile Adjustments */
    .inversionista-card-btn {
        flex-direction: row;
        text-align: center;
        padding: 15px 10px;
        min-height: auto;
        align-items: center;
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
        /* Mobile Shadow: Drop shadow X=0 Y=4 Blur=4 Spread=0 #E5E5EA */
        box-shadow: 0 4px 4px 0 #E5E5EA;
        height: auto;
    }

    .inversionista-card-icon {
        margin-right: 10px;
        margin-bottom: 0;
        width: 32px;
        height: 32px;
    }

    .inversionista-card-text {
        font-size: 13px;
        text-align: center;
        line-height: 1.2;
    }

    /* Reduce spacing for card container */
    .cards-container-row {
        margin-top: 10px !important;
        margin-left: -8px !important;
        margin-right: -8px !important;
        gap: 0 !important;
    }

        .cards-container-row > [class*='col-'] {
            padding-left: 8px !important;
            padding-right: 8px !important;
        }

    /* Mobile Rating Table Styles */
    .rating-desk-view {
        display: none !important;
    }

    .rating-mobile-view {
        display: block !important;
    }

    .rating-mobile-card {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .rating-divider-dotted {
        border-bottom: 3px dotted rgba(212, 212, 212, 1); /* Cambiado de solid a dotted */
        width: 100%;
        margin-top: 5px;
        margin-bottom: 25px;
    }

    .rating-mobile-grid {
        display: grid;
        grid-template-columns: 45% 55%;
        align-items: stretch;
        /* Ensure vertical line is continuous */
    }

    .rating-cell-label {
        text-align: right;
        padding-right: 15px;
        border-right: 2px solid rgba(212, 212, 212, 1);
        /* Consistent vertical line */
        font-weight: 700;
        color: #212529;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        /* Center vertically relative to line height if needed, but 'start' is safer for lists */
        min-height: 40px;
        /* Ensure height for alignment */
    }

        .rating-cell-label.align-top {
            align-items: flex-start;
            padding-top: 5px;
            /* Adjust alignment for top content */
        }

    .rating-cell-value {
        padding-left: 15px;
        color: #333;
        display: flex;
        align-items: center;
        min-height: 40px;
    }

        .rating-cell-value.align-top {
            align-items: flex-start;
        }

        /* Specific adjustments for images/lists in grid */
        .rating-cell-value img {
            max-height: 30px;
            width: auto;
            max-width: 100%;
        }
}

/* Download Item Hover Effects */
.download-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .download-item a {
        color: #333 !important;
        transition: color 0.3s ease;
        text-decoration: none;
    }

    .download-item svg {
        stroke: #333;
        transition: stroke 0.3s ease;
    }

    .download-item:hover a {
        color: #FCC330 !important;
    }

    .download-item:hover svg {
        stroke: #FCC330 !important;
    }

/* Anuales Footer Info */
.anuales-footer-info {
    background-color: rgb(253, 247, 210);
    border-radius: 4px;
    margin-top: 40px;
    width: 100%;
    max-width: 789px;
    min-height: 48px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    /* Added padding for responsiveness */
    line-height: 1.4;
    /* Fix Footer Overlap on Mobile/Tablet */
    body .bIso

{
    padding-bottom: 0 !important;
}

footer {
    position: relative !important;
    margin-top: 0 !important;
    width: 100%;
    clear: both;
}

}

@media (min-width: 768px) and (max-width: 991px) {

    /* Tablet Specific Adjustments */
    .inversionista-card-text {
        font-size: 16px !important;
    }

    .inversionista-card-btn {
        padding: 20px !important;
        width: 100%;
        max-width: 380px;
    }

    .inversionista-card-icon {
        margin-right: 15px !important;
    }

    /* Ensure no overlap */
    .cnt-main {
        padding-top: 40px;
        min-height: 600px;
    }

    /* Fix Footer Overlap by disabling sticky footer on tablet */
    body.bIso {
        padding-bottom: 0 !important;
    }

    footer {
        position: relative !important;
        margin-top: 0 !important;
        width: 100%;
        clear: both;
    }
}

/* Spacing adjustments for Hechos Importancia - Responsive Spacing */
.results-container-spacing {
    margin-top: 3rem;
}

@media (max-width: 991px) {

    /* Increase space between Year and Month selects on mobile */
    .year-select-group {
        margin-bottom: 30px !important;
    }

    /* Increase space between Month select and Results Table on mobile */
    .results-container-spacing {
        margin-top: 40px;
    }
}

/* List Style for Ratings */
.rating-list-style ul {
    margin-bottom: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.rating-list-style li {
    margin-bottom: 2px;
}
