/* Logo */
.navbar-brand img {
    max-width: 150px;
    height: auto;
}

/* Título PDF */
.pdf-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: none;
    color: #0B2538;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    padding-top: 20px;
}

/* Redes sociales flotantes */
.social-icons {
    position: fixed;
    right: 10px;
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 5px; 
    z-index: 1000;
}

.social-icons a,
.more-button {
    display: inline-block;
    width: 45px; 
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background-color: #3b5998; 
    color: white;
    text-align: center;
    font-size: 20px; 
    transition: all 0.3s;
}

.social-icons a:hover,
.more-button:hover {
    transform: scale(1.1); 
}

.social-icons a:hover.facebook {
    background-color: #2d4373;
}

.social-icons a:hover.instagram {
    background-color: #bc2a8d;
}

.social-icons a:hover.whatsapp {
    background-color: #1ebe57;
}

.social-icons a:hover.youtube {
    background-color: #FF0000;
}

.social-icons a:hover.tiktok {
    background-color: black;
}

.more-button {
    background-color: #555;
}

.more-button:hover {
    background-color: #333;
}

.additional-icons {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.additional-icons.active {
    display: flex;
}

/* Cards PDF */
.pdf-card-container {
    display: grid;
    gap: 20px;
    justify-content: center;
    padding: 60px;
    grid-template-columns: repeat(1, 1fr);
}

.pdf-card {
    background-color: #0B2538;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    width: 100%; 
    min-height: 500px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: auto;
}

.pdf-card embed {
    width: 100%;
    height: 485px;
    object-fit: cover;
    margin-bottom: 15px;
}

.pdf-card button {
    background-color: #E0C023;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.pdf-card button:hover {
    background-color: #04680d;
}

.pdf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    height: 80%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.pdf-modal iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: none;
}

.pdf-modal .close-pdf,
.pdf-modal .download-pdf {
    background-color: #E0C023;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.pdf-modal .close-pdf:hover {
    background-color: #c9302c;
}

.pdf-modal .download-pdf:hover {
    background-color: #449d44;
}

.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 900;
    display: none;
}

.pdf-frame-computer {
    display: none;
    width: 100%;
    height: 300px;
}

.pdf-preview {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .pdf-card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-preview {
        display: none;
    }

    .pdf-frame-computer {
        display: block;
    }

    .scroll-left,
    .scroll-right,
    .scroll-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .animated-img {
        opacity: 0;
        transform: translateY(-150px);
        transition: transform 1s ease, opacity 1s ease;
    }

    .img-container img.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .pdf-card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .pdf-card {
        height: auto;
    }

    .pdf-card embed {
        height: 150px;
    }

    .pdf-card button {
        padding: 8px;
    }

    .custom-contenedor {
        padding-top: 0px;
    }

    .scroll-left,
    .scroll-right {
        opacity: 0;
        transition: opacity 2.5s ease, transform 2.5s ease;
    }

    .scroll-left {
        transform: translateX(-80px);
    }

    .scroll-right {
        transform: translateX(80px);
    }

    .scroll-left.visible,
    .scroll-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .scroll-up {
        all: unset;
    }

    .animated-img {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Ajustes especiales para pantallas pequeñas */
@media (max-width: 500px) {
    .social-icons {
        position: static; 
        margin: 10px auto; 
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 5px; 
        justify-content: center;
        align-items: center;
    }

    .social-icons a {
        margin: 0 auto; 
        width: 40px; 
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }

    .more-button {
        display: none;
    }

    .additional-icons {
        display: flex;
        flex-direction: row;
        grid-column: span 3; 
    }
}


/* Contenedor de imágenes */
.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
    height: 100%;
}

.img-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
}

.close-btn:hover,
.close-btn:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
.footer-title {
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}

footer p {
    font-size: 0.9rem; 
    margin: 5px 0; 
}

footer .small-text {
    font-size: 0.8rem; 
    opacity: 0.7; 
}

footer {
    background-color: #0B2538; 
    color: white;
    padding: 20px 10px;
    margin-top: auto; 
}





/* tablas */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #222;
}

main {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeIn 1.2s ease-in;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #0B2538;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls button {
    margin: 0 5px;
    padding: 10px 16px;
    background-color: #0B2538;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background-color: #0B2538;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-main2 {
    background-color: #003366;
    color: #fff;
    padding: 2rem;
    border-radius: 16px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    margin-top: 3rem;
}

.scroll-fade2.visible {
    opacity: 1;
    transform: translateY(0);
}

.filters2 {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filters2 button {
    padding: 0.5rem 1rem;
    background-color: #0057a5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filters2 button:hover {
    background-color: #007bff;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#liquidezTable.dataTable th,
#liquidezTable.dataTable td,
#depositosTable.dataTable th,
#depositosTable.dataTable td,
#liquidezEntidadTable.dataTable th,
#liquidezEntidadTable.dataTable td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* tabla 1 */
.table-container {
    max-width: 800px;
}

#liquidezTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#liquidezTable thead {
    background-color: #4a58f2;
    color: white;
    text-align: center !important;
}

#liquidezTable th, 
#liquidezTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center !important;
    vertical-align: middle !important;
}

.last-row {
    background-color: #fff7e0;
    font-weight: bold;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

/* tabla 2 */
#depositosTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#depositosTable thead {
    background-color: #4a58f2;
    color: white;
    text-align: center !important;
}

#depositosTable th, 
#depositosTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center !important;
    vertical-align: middle !important;
}

#depositosTable td[style*="color:red;"] {
    color: red;
    font-weight: bold;
}

.last-row {
    background-color: #fff7e0;
    font-weight: bold;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

/* tabla3 */
.table-container {
    max-width: 800px;
}

#liquidezEntidadTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#liquidezEntidadTable thead {
    background-color: #0a1f44;
    color: white;
    text-align: center !important;
}

#liquidezEntidadTable th,
#liquidezEntidadTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center !important;
    vertical-align: middle !important;
}

.highlight-row {
    background-color: rgba(0, 128, 0, 0.2); 
    font-weight: bold;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .chart-main2 {
      padding: 1.8rem;
    }
}

@media (max-width: 992px) {
    .controls button,
    .filters2 button {
      padding: 8px 14px;
      font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .controls {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .filters2 {
      justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
      font-size: 1.4rem;
    }
    .controls button,
    .filters2 button {
      flex: 1 1 100%;
      padding: 10px;
      font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    h1 {
      font-size: 1.2rem;
    }
    .chart-main2 {
      padding: 1rem;
    }
}
