/* 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;
    margin-bottom: none;
}

/* 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;
}
/* Fin de redes flotantes */

/* 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 {
    transform: scale(1.05);
    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: 20px;
}

/* 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;
}
/* Estilos responsivos */
/* Ajustes para pantallas específicas como el iPhone 5 */
@media (max-width: 320px) {
 
    .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;
    }
  }


@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%; 
        margin-top: 100px;
    }
}

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

    .more-button {
        display: none;
    }

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

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


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

    .pdf-card iframe {
        height: 250px; 
    }
    .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;
    }

    .more-button {
        display: none;
    }

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

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


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


@media (max-width: 767px) {
    .pdf-frame-computer {
        display: none; 
    }
}
@media (min-width: 1000px) {
    iframe {
      height: 800px;
    }
  }

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


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


.container {
    flex: 1;
}


footer {
    margin-top: auto; 
}
.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; 
}