/* === INDICE PAGE STYLES === */

/* Quitar icono libro de "Zona Clientes" si se agrega via CSS ::after */
.navbar .nav-item a[href*="Login"]::after,
.navbar .nav-link[href*="Login"]::after,
.nav-link[href*="200.75"]::after { display: none !important; }

/* Navbar: fondo solido #004059, sin gradiente */
.navbar {
    position: relative !important;
    background-color: #004059 !important;
    background: #004059 !important;
    background-image: none !important;
    z-index: 1020;
}
.navbar.navbar-expand-lg {
    background-color: #004059 !important;
    background-image: none !important;
}
.navbar .offcanvas {
    background-color: #004059 !important;
}

/* Espaciado para que el contenido no quede debajo del navbar */
.indice-page {
    padding-top: 20px;
}

.header-index {
    position: relative;
    background-color: #001b26;
    color: #fff;
    padding: 0;
    overflow: hidden;
}

.header-index .plot {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #004059 0%, #001b26 70%);
    opacity: 0.85;
}

.header-index-content {
    position: relative;
    z-index: 2;
    padding: 28px 0 24px;
}

.header-index .header-icon {
    display: none;
}

.header-index h1 {
    font-family: 'Questrial', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #fff;
    text-align: left;
}

.header-index .header-subtitle {
    font-size: 0.82rem;
    color: #90e0ef;
    letter-spacing: 0.06em;
    margin: 4px 0 0;
    text-align: left;
}

/* === LEGEND === */

.indice-legend {
    padding: 28px 0 8px;
}

.legend-text {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.legend-text i {
    color: #00b4d8;
    margin-right: 6px;
}

/* === SECTIONS === */

.indice-page {
    padding-bottom: 60px;
}

.indice-section {
    margin-top: 40px;
}

.section-header {
    border-bottom: 2px solid #004059;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title {
    font-family: 'Questrial', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #004059;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-title i {
    color: #00b4d8;
    margin-right: 8px;
    font-size: 1.1rem;
}

.badge-period {
    background-color: #00b4d8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

/* === TABLE === */

.indice-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Questrial', sans-serif;
    font-size: 0.9rem;
}

.indice-table thead th {
    background-color: #004059;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px 16px;
    text-align: left;
}

.indice-table thead th:not(:first-child) {
    text-align: center;
}

.indice-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.15s ease;
}

.indice-table tbody tr:hover {
    background-color: #f0f8fb;
}

.indice-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #333;
}

.indice-table tbody td:not(:first-child) {
    text-align: center;
}

/* === PERIODO CELL === */

.periodo-cell {
    min-width: 140px;
}

.periodo-label {
    display: block;
    font-weight: 600;
    color: #151515;
    font-size: 0.95rem;
}

.periodo-dates {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* === DOWNLOAD BUTTON === */

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #004059;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background-color: #006690;
    color: #fff;
    transform: translateY(-1px);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download i {
    font-size: 1rem;
    color: #00b4d8;
}

.btn-download small {
    font-size: 0.68rem;
    color: #90e0ef;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .header-index h1 {
        font-size: 1.7rem;
    }

    .indice-table thead th,
    .indice-table tbody td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .btn-download {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .btn-download small {
        display: none;
    }
}

@media (max-width: 575px) {
    .indice-table,
    .indice-table tbody,
    .indice-table tr,
    .indice-table td {
        display: block;
        width: 100%;
    }

    .indice-table thead {
        display: none;
    }

    .indice-table tbody tr {
        margin-bottom: 16px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    .indice-table tbody td {
        padding: 10px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .indice-table tbody td:last-child {
        border-bottom: none;
    }

    .indice-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #888;
        font-weight: 600;
    }
}
