/* Animaciones y transiciones generales */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.counter {
    opacity: 0;
    transition: opacity 0.5s;
}

.counter.visible {
    opacity: 1;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-img {
    width: 100px;
    height: auto;
    animation: scaleLoop 1.5s ease-in-out infinite;
}

.loaded #preloader {
    display: none;
}

@keyframes scaleLoop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Contenedor de la imagen emergente */
.hidden-element {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification-image {
    max-width: 97%;
    max-height: 80%;
    object-fit: contain;
    cursor: default;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hidden-element.visible {
    opacity: 1;
    pointer-events: auto;
}

.d-none {
    display: none;
}
.btn-close-black {
    filter: invert(0); /* asegura que sea negra */
    background-color: white;
    border-radius: 50%;
    padding: 6px;
    width: 32px;
    height: 32px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
  }
  
/* 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;
}

/* Primer contenedor */
.cards-grid1 {
    margin: 0 auto;
}

.first-container1 {
    padding: 2px;
}

.card {
    transition: transform 0.2s;
}

.custom-card-background {
    background-color: #0B2538;
}

.custom-card-round {
    border-radius: 20%;
    overflow: hidden;
}

.custom-card-text {
    color: white;
}

.custom-img-small {
    width: 50% !important;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.card-title1 {
    color: white;
}

.custom-card-text1 {
    color: white;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* Media queries */
@media (max-width: 320px) {
    .custom-card-3 {
        min-height: 300px !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .card-title1 {
        font-size: 12px !important;
    }

    .custom-title {
        word-wrap: break-word;
        margin: 0px;
    }

    .custom-card-text1 {
        font-size: 12px !important;
    }

    .card {
        min-width: 145px;
    }

    .container {
        margin-top: 5px !important;
    }

}

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

    .card-title1 {
        font-size: 16px;
    }

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

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

    .custom-img-small {
        width: 70%;
        margin-top: 10px !important;
    }

    .card img {
        height: auto;
        max-width: 100%;
    }

    .custom-card-text1 {
        font-size: 14px;
    }

    .custom-card-3 {
        min-height: 300px !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .container {
        margin-top: 5px !important;
    }
   .texto-6{
    font-size: 13.5px !important;
   }
}

@media (min-width: 391px) and (max-width: 576px){
    .navbar-brand img {
        max-width: 100px; 
    }
    .card-title1{
        font-size: 16px; 
        
        padding: none;
        margin: none;
    }

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

    .custom-img-small {
        width: 70%; 
        margin-top: 20px !important;
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 16px !important;
    }
    .container {
        margin-top: 5px !important;
    }
   
}


@media (min-width: 577px) and (max-width: 768px) {
    .navbar-brand img {
        max-width: 120px; /* Tamaño del logo en tablets */
    }
    .card-title1{
        font-size: 18px; 
        padding: none;
        margin: none;
    }

    .social-icons {
        right: 10px; 
        top: 40%; 
    }

    .social-icons a {
        width: 45px; 
        height: 45px;
        line-height: 45px;
        font-size: 22px;
    }
    .card {
        height: auto; 
        max-width: 100%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .custom-img-small {
        width: 70%; 
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 18px !important;
    }
    .container {
        margin-top: 2px !important;
    }


}


@media (min-width: 769px) and (max-width: 992px) {
    .navbar-brand img {
        max-width: 140px; 
    }
    .cards-grid1 .col-12 {
        margin-bottom: 5px; 
        min-width: 250px;
    }
    .card-title1{
        font-size: 18px; 
        
        padding: none;
        margin: none;
    }
    .card {
        height: auto; 
        max-width: 100%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .custom-img-small {
        width: 70%; 
        margin-top: 10px !important;
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 18px !important;
    }
 


}
@media (min-width: 993px) and (max-width: 1279px) {
    .navbar-brand img {
        max-width: 140px; 
    }
    .cards-grid1 .col-12 {
        margin-bottom: 5px;
        min-width: 250px;
    }
    .card-title1{
        font-size: 18px; 
        
        padding: none;
        margin: none;
    }
    .card {
        height: auto; 
        max-width: 100%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .custom-img-small {
        width: 70%; 
        margin-top: 10px !important;
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 18px !important;
    }
   

}


@media (min-width: 1280px) {
    .navbar-brand img {
        max-width: 150px; 
    }
    .cards-grid1 .col-lg-3 {
        margin-bottom: 20px; 
    }
    .card-title1{
        word-wrap: break-word;
        padding: none;
        margin: none;
        font-size: 18px; 
    }
    .card {
        height: auto; 
        max-width: 100%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .custom-img-small {
        width: 70%; 
        margin-top: 10px  !important;
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 18px !important;
    }
   
 
}


@media (min-width: 1381px) {
    .navbar-brand img {
        max-width: 180px; 
    }
    
    .cards-grid1 .col-lg-3 {
        margin-bottom: 20px; 
    }
    .card-title1{
        padding: none;
        margin: none;
        font-size: 24px;
    }
    .card {
        height: auto; 
        max-width: 90%; 
        overflow: hidden; 
        padding: 10px; 
    }

    .custom-img-small {
        width: 70%; 
        margin-top: 10px !important;
    }

    .card img {
        height: auto; 
        max-width: 100%; 
    }
    .custom-card-text1 {
        font-size: 24px !important;
    }
    

}

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


/* Contenedor de la segunda imagen emergente */
.hidden-element-second {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.second-notification-image {
    max-width: 97%;
    max-height: 80%;
    object-fit: contain;
    cursor: default;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hidden-element-second.visible {
    opacity: 1;
    pointer-events: auto;
}

.d-none {
    display: none;
}


/* Aviso lateral izquierdo */
.side-notification {
    position: fixed;
    top: 100px;
    left: -280px;
    width: 260px;
    background-color: #0B2538;
    padding: 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: left 0.4s ease;
  }
  
  .side-notification.show {
    left: 0;
  }
  
  .notification-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 10px 10px 0;
  }
  
  .side-notification .btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: white; 
    border-radius: 50%;
    padding: 4px;
    color: black;           
    opacity: 1;
    z-index: 10;
    filter: none;           
  }
  
  /* Pestaña fija visible */
  .notification-tab {
    position: fixed;
    top: 120px;
    left: 0;
    background-color: #13405C;
    color: white;
    padding: 8px 10px;
    font-size: 18px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 9998;
    transition: background-color 0.3s;
  }
  
  .notification-tab:hover {
    background-color: #13405C;
  }
  
/* Aviso lateral inferior */
.bottom-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 260px;
    background-color: #0B2538;
    padding: 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
  }
  
  .bottom-notification.show {
    transform: translateY(0%);
  }
  
  .notification-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
  }
  
  .bottom-notification .btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    color: black;
    opacity: 1;
    z-index: 10;
    filter: none;
  }
  
  .bottom-notification-tab {
    position: fixed;
    bottom: 120px;
    left: 0;
    background-color: #13405C;
    color: white;
    padding: 8px 10px;
    font-size: 18px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 9998;
    transition: background-color 0.3s;
  }
  
  .bottom-notification-tab:hover {
    background-color: #13405C;
  }
  /* fin*/

  