/* Importing Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@font-face {
    font-family: "HKGrotesk-Bold";
    src: url("/fonts/HKGrotesk-Bold.otf") format("opentype");
}
@font-face {
    font-family: "HKGrotesk-Light";
    src: url("/fonts/HKGrotesk-Light.otf") format("opentype");
}
body {
    background: #f7f8f9;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding-top: 70px;
}
.card img {
    max-width: 100%;
    object-fit: cover;
    text-align: center;
    border-radius: 2rem;
    z-index: 0;
}
h5 {
    font-size: 1.5rem !important;
}

.color-title {
    color: #302d55;
}
.m-content {
    width: max-content;
}
.navbar-collapse a {
    font-family: "HKGrotesk-Bold";
}
.navbar-nav a {
    color: #302d55;
}
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #302d55 !important; /* cambia color al hacer scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar.scrolled a {
    color: white;
}
.HKbold {
    font-family: "HKGrotesk-Bold";
}
.pointer {
    cursor: pointer;
}

.border-gray {
    border: 0.1rem solid rgba(185, 185, 185, 0.4);
}
.ji-center {
    justify-items: center;
}
.custom-arrow {
    font-weight: bold;
    padding: 0 10px;
    color: #302d55;
}

/* captcha */

.g-recaptcha {
    justify-items: center;
}

/* search modal */
#abrirModalBtn {
    cursor: pointer;
    padding: 0px 1rem;
}

.modal {
    display: none; /* Oculta el modal por defecto */
    position: fixed;
    z-index: 5; /* Se asegura de que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permite scroll si el contenido es grande */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente */
}

.modal-contenido {
    background-color: #fefefe;
    margin: 10% auto; /* Centra el modal vertical y horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 50rem;
    border-radius: 8px;
    position: relative;
}

.cerrar {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* estilos de page post */
.post-content {
    /* text-align: center; */
    font-family: "HKGrotesk-Bold";
}
.post-content img {
    max-width: 100%;
    height: auto;
    text-align: center;
    display: block;
    margin: 2rem 0rem !important;
    border-radius: 0.375rem;
}
.border-post h1,
h2 {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 2rem;
    color: #302d55;
}
.post-content p, ul{
    font-family: "HKGrotesk-Light";
    /* font-weight: bold; */
}

/* border page post */
.border-post {
    box-shadow: 0 5px 20px 0 rgba(69, 67, 96, 0.1);
    border-color: transparent;
    padding: 1rem 1rem;
    background: #ffffffbd;
    border-radius: 1rem;
    width: 90%;
    justify-self: center;
}
/* FIN border page post */

#botonArriba {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 99;
    border: none;
    background-color: #201d41;
    cursor: pointer;
    padding: 15px;
    border-radius: 2rem;
    font-size: 0px;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    color: white;
}

#botonArriba:hover {
    background-color: #16a2ff;
}
.mostrarBoton {
    opacity: 1 !important;
    visibility: visible !important;
}
.card {
    --bs-card-title-color: #302d55;
    --bs-card-color: #302d55;
}

.card-title {
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-canvas {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 2rem;
    color: #302d55;
}
/* animacion de linea en card-title */
.card-title::before {
    transform-origin: right;
}

.card-title:hover::before {
    transform-origin: left;
    transform: scaleX(1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.82, 0.94);
}

.card-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #04c1fa, #3580e2, #045da5);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.card-title:hover::before {
    transform: scaleX(1);
}

.card-flex {
    display: flex;
    flex-direction: row;
    padding: 20px;
    height: 22rem;
}

.card-flex img {
    width: 40%;
}
/* fin card-title */

.w-fit-content {
    width: fit-content;
}
.m-text {
    margin: 1rem 0 1.6rem;
}
.contenedor {
    justify-content: space-around;
}
.contenido {
    /* margin: 2rem 0rem; */
    padding: 1rem;
    border-radius: 2rem;
}
.contenido small {
    font-weight: bold;
    color: #302d55;
}
.ads {
    text-align: center;
    padding-top: 3rem;
}

.carousel-inner {
    /* borde sombreado */
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.212);
}
/* descripcion de lista de post con puntos suspendidos, */
.texto-truncado {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
@media screen and (max-width: 470px) {
    .card-flex img {
        width: 100% !important;
        height: auto;
    }
}

@media screen and (max-width: 870px) {
    .ads {
        text-align: center;
        padding-top: 0rem;
    }
    .contenedor {
        flex-direction: column;
        align-items: center;
    }
    .contenido {
        width: 95%;
        margin: 0rem 0rem;
        padding: 0;
        background-color: rgba(255, 255, 255, 0);
    }
    h5 {
        font-size: 1.4rem !important;
    }
    .card-flex {
        display: flex;
        flex-direction: column;
        padding: 20px;
        height: auto;
    }
    .card-flex img {
        width: 80%;
        height: auto;
        align-self: center;
    }
    .card-body {
        width: 100%;
        justify-content: center;
    }
    .border-post {
        padding: 0rem 1rem;
        width: 100%;
    }
    .mp-0 {
        padding: 0 !important;
    }
    .footer-links {
        padding: 2rem 0 5rem 0;
        font-size: small;
        display: block !important;
        text-align: center;
    }
    .footer-links .footer-column {
        padding: 1rem 0 !important;
    }
}
/* media entre 2 anchos */
@media screen and (min-width: 769px) and (max-width: 1200px) {
}

@media screen and (min-width: 1200px) {
    .dpx-5 {
        padding-right: 3rem !important;
        padding-left: 3rem !important;
    }
}
/* animacion de imagen de post */
.animated-zoom {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.animated-zoom:hover {
    transform: scale(1.1);
    color: #007bff;
    cursor: pointer;
}

.bg-dark a {
    color: #aaa;
}
/*--------------------------------------------------------------
	Footer
--------------------------------------------------------------*/
.footer {
    padding: 10px 0;
    font: menu;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer .copyright {
    margin: 0;
}

.footer .footer-social-links {
    text-align: right;
}

.footer .footer-social-links a {
    display: inline-block;
    padding: 0 6px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    gap: 8px;
    justify-items: center;
    background: #302d55fa;
    color: white;
    padding: 2rem 0 5rem 0;
}

.footer-column h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none; /* Elimina los puntos de la lista */
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ffffff; /* Color de los enlaces */
    text-decoration: none; /* Elimina el subrayado */
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #00bcd4; /* Cambia el color al pasar el cursor */
}

.category-list-footer {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3 columnas */
    gap: 0; /* espacio entre columnas */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
}

/*lineas background */

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #4cb8b600;
    overflow: hidden;
    z-index: -1;
}

.ball {
    position: absolute;
    width: 20vmin;
    height: 20vmin;
    border-radius: 50%;
    backface-visibility: hidden;
    animation: move linear infinite;
}

.ball:nth-child(odd) {
    color: #1096f0;
}

.ball:nth-child(even) {
    color: #11e93f;
}

.ball:nth-child(1) {
    top: 77%;
    left: 88%;
    animation-duration: 40s;
    animation-delay: -3s;
    transform-origin: 16vw -2vh;
    box-shadow: 40vmin 0 5.703076368487546vmin currentColor;
}
.ball:nth-child(2) {
    top: 42%;
    left: 2%;
    animation-duration: 53s;
    animation-delay: -29s;
    transform-origin: -19vw 21vh;
    box-shadow: -40vmin 0 5.17594621519026vmin currentColor;
}
.ball:nth-child(3) {
    top: 28%;
    left: 18%;
    animation-duration: 49s;
    animation-delay: -8s;
    transform-origin: -22vw 3vh;
    box-shadow: 40vmin 0 5.248179047256236vmin currentColor;
}
.ball:nth-child(4) {
    top: 50%;
    left: 79%;
    animation-duration: 26s;
    animation-delay: -21s;
    transform-origin: -17vw -6vh;
    box-shadow: 40vmin 0 5.279749632220298vmin currentColor;
}
.ball:nth-child(5) {
    top: 46%;
    left: 15%;
    animation-duration: 36s;
    animation-delay: -40s;
    transform-origin: 4vw 0vh;
    box-shadow: -40vmin 0 5.964309466052033vmin currentColor;
}
.ball:nth-child(6) {
    top: 77%;
    left: 16%;
    animation-duration: 31s;
    animation-delay: -10s;
    transform-origin: 18vw 4vh;
    box-shadow: 40vmin 0 5.178483653434181vmin currentColor;
}
.ball:nth-child(7) {
    top: 22%;
    left: 17%;
    animation-duration: 55s;
    animation-delay: -6s;
    transform-origin: 1vw -23vh;
    box-shadow: -40vmin 0 5.703026794398318vmin currentColor;
}
.ball:nth-child(8) {
    top: 41%;
    left: 47%;
    animation-duration: 43s;
    animation-delay: -28s;
    transform-origin: 25vw -3vh;
    box-shadow: 40vmin 0 5.196265905749415vmin currentColor;
}
/* fin lineas background */

/* ticker */
.ticker-wrap {
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    width: 100%;
    border-radius: 10px;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker 35s linear infinite;
}

.ticker__item {
    padding: 10px 20px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}
.ticker-title {
    position: relative;
    right: 0;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 0.8rem;
    text-align: center;
    border-radius: 10px 0px 0px 10px;
    max-width: 100%;
    gap: 0.5rem;
    background-color: #16a2ff;
    color: #fff;
    z-index: 1;
}
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
