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

/* 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*/
.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 */

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

/* Estilos de las cards */
.pdf-card-container {
    display: grid;
    gap: 20px;
    justify-content: center;
    align-items: stretch; 
    padding: 5px;
    grid-template-columns: repeat(1, 1fr);
}

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

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

/* Estilos para las tarjetas PDF */
.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: 490px;
    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%;
}

.pdf-card button:hover {
    background-color: #04680d;
}
.pdf-card .btn-vermas {
    background-color: #E0C023;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
  }
  
  .pdf-card .btn-vermas: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;
}

.pdf-modal iframe {
    width: 100%;
    height: 85%;
    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-preview {
        display: none;
    }
    .pdf-frame-computer {
        display: block;
    }
}

/* Media queries para pantallas pequeñas */
@media (max-width: 767px) {
    .pdf-card {
        height: auto;
    }

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

    .pdf-card button {
        padding: 8px;
    }
    
    .custom-contenedor {
        padding-top: 0px;
    }


}


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


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

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

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    overflow: hidden;
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }


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

    .section-title {
  color: #054c09;
  font-weight: 700;
}

.news-item {
  background-color: #ffffff;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 260px; /* Altura uniforme para todas */
  overflow: hidden;
}

.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Imagen fija y proporcional */
.news-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Videos con tamaño uniforme */
.news-video {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
}

.news-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.news-content {
  flex: 1;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  color: #0B2538;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-content p {
  margin-bottom: 1rem;
  color: #555;
}

.btn-danger {
  background-color: #c00;
  border: none;
  align-self: flex-start;
}

.btn-danger:hover {
  background-color: #a00;
}

.news-divider {
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

/* Fade-in animation */
.fade-in {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ====== Responsive ajustes ====== */
@media (max-width: 992px) {
  .news-item {
    flex-direction: column;
    min-height: auto;
    text-align: center;
  }

  .news-img,
  .news-video {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .news-content {
    padding-left: 0 !important;
    margin-top: 1rem;
  }

  .btn-danger {
    align-self: center;
  }
}

@media (max-width: 576px) {
  .news-img,
  .news-video {
    max-width: 100%;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-content p {
    font-size: 0.9rem;
  }
}