/* Estilos para los contenedores específicos */
.row.mb-4 > .col-12 > .p-4,
.row.mb-4.d-flex.align-items-stretch > .col-md-6 > .p-4,
.row.mb-4 > .col-12 > .p-4 {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: block; 
}

/* Efecto hover */
.row.mb-4 > .col-12 > .p-4:hover,
.row.mb-4.d-flex.align-items-stretch > .col-md-6 > .p-4:hover,
.row.mb-4 > .col-12 > .p-4:hover {
    background-color: #f0f0f0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}


.valores-background-color {
    background-color: white;
}


.card {
    background-color: #ffffff; 
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.15s ease;
}

.card:hover {
    background-color: #f0f0f0; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important; 
}

.text-black {
    color: black !important; 
}


.icon-black {
    color: black !important; 
}

/* Fondo del main container */
main  {
    background-color: #f0f0f0; 
    color: white; 
    padding: 20px; 
}

/* Estilos generales del logo */
.navbar-brand img {
    max-width: 150px; 
    height: auto;  
}

.pdf-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    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;
}

/* Estilo base para los íconos redondos */
.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;
}

/* Botón de más redes */
.more-button {
    background-color: #555;
}

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

/* Redes sociales adicionales (ocultas inicialmente en pantallas grandes) */
.additional-icons {
    display: none;
    flex-direction: column;
    gap: 5px;
}

/* Mostrar redes adicionales cuando están activas */
.additional-icons.active {
    display: flex;
}

.fade-in {
  opacity: 0 !important;
  transform: translateY(200px) !important;
  transition: opacity 3.5s ease-out, transform 2s ease-out !important;
}

.fade-in-left {
  opacity: 0 !important;
  transform: translateX(-200px)  !important;
  transition: opacity 3.5s ease-out, transform 2s ease-out !important;
}

.fade-in-right {
  opacity: 0 !important;
  transform: translateX(200px)  !important;
  transition: opacity 3.5s ease-out, transform 2s ease-out !important;
}

.appear {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}

/* Estilo para texto blanco */
.text-white {
    color: white; 
}

.list-unstyled {
    color: white; 
}




@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 100px; 
    }

    .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; 
    }

    /* Ocultar el botón de desplegar en pantallas pequeñas */
    .more-button {
        display: none;
    }

    /* Mostrar siempre todos los íconos en pantallas pequeñas */
    .additional-icons {
        display: flex;
        flex-direction: row; 
        grid-column: span 3; 
    }

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

    .card {
        height: auto; 
        max-width: 100%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .card h6 {
        font-size: 12px;
    }
}


@media (min-width: 320px) and (max-width: 640px) and (max-height: 1136px) {
    .navbar-brand img {
        max-width: 100px; 
    }

    .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; 
    }

    /* Ocultar el botón de desplegar en pantallas pequeñas */
    .more-button {
        display: none;
    }

    /* Mostrar siempre todos los íconos en pantallas pequeñas */
    .additional-icons {
        display: flex;
        flex-direction: row; 
        grid-column: span 3; 
    }

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

    .card {
        padding: 10px; 
        margin: 0; 
    }

    .card h6 {
        font-size: 12px; 
    }
}


@media (min-width: 577px) and (max-width: 768px) {
    .navbar-brand img {
        max-width: 120px; 
    }

    .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; 
    }

    /* Ocultar el botón de desplegar en pantallas pequeñas */
    .more-button {
        display: none;
    }

    /* Mostrar siempre todos los íconos en pantallas pequeñas */
    .additional-icons {
        display: flex;
        flex-direction: row; 
        grid-column: span 3; 
    }

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

    .card {
        padding: 15px; 
    }
}

/* Pantallas grandes (desktops medianos) */
@media (min-width: 769px) and (max-width: 992px) {
    .navbar-brand img {
        max-width: 140px; 
    }

    .card {
        padding: 20px;
    }
}


@media (min-width: 1201px) {
    .navbar-brand img {
        max-width: 180px; 
    }
}

/* Estilos de las cards (tarjetas) */
.pdf-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0px;
}

/* Tarjeta individual */
.pdf-card {
    background-color: #0B2538;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: auto; 
    height: 800px; 
    text-align: center;
    padding: 0px;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.pdf-card embed {
    width: 100%; 
    height: 700px; 
    margin-bottom: 15px;
}

/* Botón dentro de la tarjeta */
.pdf-card button {
    background-color:  #E0C023;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

/* Estilos del visor PDF (modal) */
.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: 0px;
}

/* Iframe que contiene el PDF */
.pdf-modal iframe {
    width: 100%;
    height: 85%;
    border-radius: 8px;
    border: none;
}

/* Botón para cerrar el modal */
.pdf-modal .close-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;
}

/* Botón para descargar el PDF */
.pdf-modal .download-pdf {
    background-color:  #E0C023;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

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

/* Fondo oscuro detrás del modal */
.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;
}

/* Color del texto de los títulos en las cards */
h3 {
    color: white;
}
.map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-info {
    background-color: #00aaff; 
    border: none;
}

.btn:hover {
    opacity: 0.8;
}
.custom-button {
    background-color: #0B2538 !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.custom-button button:hover {
    background-color: #04680d;
}


@media (min-width: 1201px) {
    .pdf-card {
        width: 90%; 
        max-width: 1200px; 
        height: 80%; 
        padding: 20px; 
    }

    .pdf-card iframe {
        height: 850px; 
    }

    .pdf-modal {
        width: 80%; 
        height: 80%; 
    }
}


@media (max-width: 1200px) {
    .pdf-card {
        width: 100%; 
        height: 80%;    
    }

    .pdf-card iframe {
        height: 650px; 
    }

    .pdf-modal {
        width: 90%; 
        height: 80%; 

    }
}


@media (max-width: 768px) {
    .pdf-card {
        width: 100%; 
        height: 80%;
    }

    .pdf-card iframe {
        height: 300px; 
    }

    .pdf-modal {
        width: 95%; 
        height: 85%;
    }

    .pdf-card h3 {
        font-size: 1rem; 
    }

    .pdf-card button {
        font-size: 0.9rem; 
    }
}


@media (max-width: 480px) {
    .pdf-card {
        padding: 10px; 
    }

    .pdf-card iframe {
        height: 250px; 
    }
}

/* Estilo base para el iframe y la imagen de vista previa */
.pdf-frame-computer {
    display: none; 
    width: 100%;
    height: 300px; 
}

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


@media (min-width: 768px) {
    .pdf-preview {
        display: none; 
    }
    .pdf-frame-computer {
        display: block; 
    }
}


@media (max-width: 767px) {
    .pdf-frame-computer {
        display: none; 
    }
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


.container {
    flex: 1;
}


footer {
    margin-top: auto; 
}

html {
    scroll-behavior: auto; 
  }
  

  .junta-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
  }
  
  .junta-card {
    border-radius: 15px;
    border: 2px solid #0B2538; /* Cambia este color si deseas */
    padding: 20px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .junta-card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0B2538;
  }
  
  .junta-card-image {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .junta-card-image:hover {
    transform: scale(1.05);
  }
  
/* Modal styles */
.junta-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  
    /* Flexbox centering */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .junta-modal-content {
    position: relative;
    max-width: 90%; /* Ensure the content fits within the screen */
    max-height: 90%;
  }
  
  .junta-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
  }
  
  .junta-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  
  
  .styled-table {
    background-color: #f8f1db;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.styled-table table {
    width: 100%;
    background-color: #f8f1db;
    color: #000000;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
}

.styled-table th, 
.styled-table td {
    border: 2px solid #000080;
    padding: 12px;
    font-size: 16px;
    text-align: left;
}

.styled-table th {
    background-color: #e8e2cc;
    font-weight: bold;
    text-align: center;
}

.styled-table td {
    background-color: #f8f1db;
}

.btn {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .styled-table th, 
    .styled-table td {
        font-size: 14px;
        padding: 8px;
    }

    .btn {
        font-size: 12px;
        padding: 5px 8px;
    }
}

@media (max-width: 576px) {
    .styled-table th, 
    .styled-table td {
        font-size: 12px;
        padding: 6px;
    }

    .btn {
        font-size: 11px;
        padding: 4px 6px;
    }
}

.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; 
}


html, body {
    height: 100%; 
    margin: 0;
    display: flex;
    flex-direction: column;
}


main {
    flex: 1; 
}


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