@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap");

:root {
    --font-primary: "Poppins", sans-serif;
    --color-primary: #39d76d;
    --color-secondary: #553dee;
}

/* ---------------------------   RESET   --------------------------- */

body {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
    position: relative;
    overflow-x: hidden;
    background-color: var(--white);
    color: black;
}

img {
    border: none;
    outline: none;
    max-width: 100%;
}

a,
.btn,
button {
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    outline: medium none;
}

a,
a:active,
a:focus,
a:hover {
    outline: none;
    text-decoration: none;
    color: var(--color-primary);
}

a img,
iframe {
    border: none;
}

label {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 5px;
    max-width: 100%;
}

/* ---------------------------   GLOBALES   --------------------------- */

/* Colores */

.bg-black {
    background-color: black;
}
.bg-dark {
    background-color: #202020 !important;
}

/* Botones */

.btn-primary {
    border-radius: 3rem !important;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    color: #000;
    border: 2px solid #000 !important;
    padding: 10px 20px;
    transition: all 0.35s ease-in-out;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    bottom: 30%;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    transform: scale(0.5);
    transition: transform 0.3s;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scale(5);
}

.btn-primary:hover {
    background-color: #000;
    color: #fff; /* Cambia el color del texto al hacer hover */
}

/* Texto */

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

/* ---------------------------   LOADER   --------------------------- */

#loaderSpinner {
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    position: fixed;
    z-index: 999999;
    top: 50%;
    left: 50%;
    height: 100vh;
    width: 100vw;
    background-color: var(--black) c5;
    border: none;
}

.load {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}
.load hr {
    border: 0;
    margin: 0;
    width: 40%;
    height: 40%;
    position: absolute;
    animation: spin 2s ease infinite;
    opacity: 100;
    background: var(--colgreen);
    border-radius: 50%;
}

.load :first-child {
    animation-delay: -1.5s;
}
.load :nth-child(2) {
    animation-delay: -1s;
}
.load :nth-child(3) {
    animation-delay: -0.5s;
}

@keyframes spin {
    0%,
    100% {
        transform: translate(0);
    }
    25% {
        transform: translate(160%);
    }
    50% {
        transform: translate(160%, 160%);
    }
    75% {
        transform: translate(0, 160%);
    }
}

/* ---------------------------   NAVBAR   --------------------------- */

.navbar {
    padding: 2rem;
    position: relative;
}

.navbar-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.navbar .btnMenuMobile {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translate(-50%, -50%);
    line-height: 0;
}

.navbar .logo {
    height: 2.75rem;
}
.navbar a {
    color: white;
    background: none;
}
.navbar a:hover {
    color: var(--color-primary);
}
.navbar .rs {
    padding-left: 2rem;
}
.navbar .rs a {
    color: white;
}
.navbar .rs a:hover {
    color: var(--color-primary);
}

@media (min-width: 992px) {
    .navbar {
        padding: 1rem;
    }
}

/* ---------------------------   MENU MOBILE   --------------------------- */

#menuMobile {
    background-color: #000;
    color: white;
    text-align: center;
    width: 100%;
}

.btnMenuMobile {
    background: transparent;
    border: none;
    color: #39d76d;
}

#menuMobile .logo {
    max-width: 10rem;
}

.btn-close {
    color: #39d76d !important;
    font-size: 2.5rem;
}

#menuMobile .menu {
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 2px solid var(--color-primary);
}

#menuMobile .menu a {
    padding: 1.5rem 0;
    font-weight: bold;
}

/* ---------------------------   EVENTS   --------------------------- */

/* Efecto general en la card */
.event-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 1rem;
    border: 0.25rem solid white;

    box-shadow: 0px 8px 20px rgba(0, 0, 0, 1), 0px 4px 8px rgba(0, 0, 0, 1);
}

.event-card {
    position: relative;
}
.event-card .card-body {
    position: relative;
}

.event-card:hover {
    transform: translateY(-6px);
}

/* Overlay opcional sobre la imagen */
.event-media {
    overflow: hidden;
    position: relative;
}

.event-img {
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transition: transform 0.4s ease;
    border-radius: 1rem;
}

.event-title {
    transition: ease-in-out all 0.2s;
}

.event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #020024;
    background: linear-gradient(
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.event-card:hover .event-media::after {
    opacity: 1;
}
.event-card:hover .event-title {
    color: var(--color-primary) !important;
}

/* Botón aparece solo al hacer hover (opcional) */
.event-card .btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.event-card:hover .btn {
    opacity: 1;
    transform: translateY(-2px);
}

.event-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
}

.event-cost {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    z-index: 2;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: bold;
}

.event-date {
    color: black;
    margin-bottom: 0.5rem;
}

/* ---------------------------   FOOTER   --------------------------- */

/* ============================================================== 
     # Footer
=================================================================== */

footer .logo {
    height: 60px;
}

footer .f-items .f-item .address li {
    display: flex;
    margin-bottom: 25px;
}
footer .f-items .f-item .address a {
    color: white;
}

footer .f-items .f-item .address li i {
    display: inline-block;
    height: 45px;
    width: 45px;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    margin-right: 20px;
    color: var(--white);
    border: 1px dashed var(--color-primary);
    font-weight: 300;
    font-size: 18px;
}

footer .f-items .f-item .address li:first-child {
    margin-top: 2rem;
}
footer .f-items .f-item .address li:last-child {
    margin-bottom: 0;
}

footer .f-items .f-item .address li strong {
    display: block;
}

/* Footer Bottom */
footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1;
}

footer .footer-bottom ul li {
    display: inline-block;
    margin-left: 15px;
}

footer .footer-bottom p {
    margin: 0;
}

footer.bg-dark .footer-bottom p,
footer.bg-dark .footer-bottom a {
    color: #adb5bd;
}

footer.bg-dark .footer-bottom a {
    font-size: 14px;
}

footer.bg-dark .footer-bottom a:hover {
    color: var(--color-primary);
}

/* Footer */

.footer-bottom .link {
    margin-top: 10px;
}

footer .footer-bottom ul li {
    margin-left: 8px;
    margin-right: 8px;
}
