/* Importar fuente inspirada en Mario Wonder */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

body {
    background-color: #74B9FF;
    font-family: 'Nunito Sans', sans-serif;
    color: #ffffff;
    text-align: center;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #120907, #122643); 
    background-size: cover; 
    min-height: 100%; 
    font-family: Arial, sans-serif; 
}


.titulo{
    font-family: 'Bungee', cursive;
    font-size: 40px;
}

.mario{
    padding: 15px;
}

@media (max-width: 768px) {
    body {
        background-size: cover; 
    }

    #loadingGif {
        width: 120px;
        max-width: 80%;
    }

    #progressBarContainer {
        width: 80%;
        height: 8px;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover; /* Asegura que el fondo no se repita */
    }

    #loadingGif {
        width: 100px;
        max-width: 80%;
    }

    #progressBarContainer {
        width: 80%;
        max-width: 280px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    body {
        background-size: cover; /* Asegura que el fondo no se repita */
    }

    #loadingGif {
        width: 80px;
        max-width: 70%;
    }

    #progressBarContainer {
        width: 70%;
        height: 6px;
    }
}

#loadingContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    padding: 20px;
    box-sizing: border-box; 
    text-align: center;
}


#loadingGif {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    max-width: 80%; 
}


#progressBarContainer {
    width: 90%;
    max-width: 350px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}


#progressBar {
    width: 0%;
    height: 100%;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}


@media (max-width: 768px) {
    #loadingGif {
        width: 120px;
        max-width: 80%; 
    }

    #progressBarContainer {
        width: 80%;
        height: 8px;
    }
}

@media (max-width: 480px) {
    #loadingGif {
        width: 100px;
        max-width: 80%; /* Evita que el GIF se desborde */
    }

    #progressBarContainer {
        width: 80%;
        max-width: 280px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    #loadingGif {
        width: 80px;
        max-width: 70%; /* Ajusta el tamaño para pantallas muy pequeñas */
    }

    #progressBarContainer {
        width: 70%;
        height: 6px;
    }
}


.logo{
    width: 140px;
    height: 70px;
}

/* -------- NAVBAR -------- */

.navbar {
    background: #A71B21 !important;
    padding: 15px 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid #FFD700;
}

.navbar-toggler-icon {
    background-color: #FFD700; 
    border-radius: 10%; 
    width: 30px; 
    height: 30px; 
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    background-color:#FFD700; 
}

/* Logo */
.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.1);
    color: #FFD700;
}

/* Estilos del menú */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Efecto en hover */
.navbar-nav .nav-link:hover {
    color: #FFD700;
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.8);
    background-color: rgba(255, 215, 0, 0.2);
}

/* Estilo del botón de búsqueda */
.btn-outline-success {
    color: #fff !important;
    border-color: #FFD700 !important;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #FFD700 !important;
}

/* Dropdown */
.dropdown-menu {
    background-color: #E63946;
    border: none;
}

.dropdown-item {
    color: #fff !important;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
}

/* Navbar responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #E63946;
        padding: 10px;
        border-radius: 5px;
    }

    .navbar-nav .nav-link {
        text-align: center;
        display: block;
    }
}

/* -------- CAROUSEL -------- */
.carousel-inner img {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

/* -------- CARDS -------- */

.cartas{
    padding: 40px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    padding: 40px 20px;
    justify-items: center;
}


.card {
    background-color: white;
    border: 5px solid #FFD700; 
    border-radius: 15px; 
    color: black;
    padding: 20px; 
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
    max-width: 350px; 
    width: 100%; 
    margin: auto; 
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05); 
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4); 
}


.card-img-top {
    border-bottom: 5px solid #F4A261; 
    border-radius: 10px 10px 0 0; 
    max-width: 100%; 
    height: auto; 
    object-fit: cover; 
}


.card .card-body h5 {
    font-size: 1.2rem; 
    font-weight: bold; 
    margin-top: 15px; 
    color: #333;
}


.card .card-body p {
    color: #666; 
    font-size: 1rem;
    margin-top: 10px;
}



.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 56.25% 0 0 0; 
    overflow: hidden;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Estilo general para el footer */
.footer {
    border-top: 5px solid #FFD700;
    background-color: #023C7C;
    color: #ffffff;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer .footer-social {
    display: flex;
    gap: 15px;
}

.footer .footer-social a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

.footer .footer-form input {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.footer .footer-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer .footer-form button:hover {
    background-color: #0056b3;
}

.footer .footer-links {
    display: flex;
    gap: 30px;
}

.footer .footer-links h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer .footer-links li {
    margin-bottom: 5px;
}

.footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer .footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}


/* -------- BOTONES -------- */
.btn-outline-success {
    background-color: #FFD700;
    border: 3px solid #D35400;
    color: #000;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s, color 0.3s;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-outline-success:hover {
    background-color: #D35400;
    color: #fff;
}

.mario{
    width: 400px;
    height: 350px;
}

/* -------- FOOTER -------- */

.footer {
    background: #023C7C;
    color: #fff;
    padding: 40px 0 20px; 
    font-size: 1rem;
    width: 100%;
    margin-top: auto; 
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}


.container {
    flex: 1;
    padding: 15px;
}


.footer .container {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 30px; 
    margin-bottom: 30px; 
}


.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #FFD700;
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background-color: #D35400;
    color: #fff;
    transform: scale(1.1);
}


.footer-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
}

.footer-form input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    flex: 1; 
    min-width: 200px; 
}

.footer-form button {
    background-color: #FFD700;
    border: none;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-form button:hover {
    background-color: #D35400;
    color: #fff;
}

/* Links del footer */
.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Asegura que los links sean responsive */
}

.footer-links div {
    min-width: 150px;
}

.footer-links h5 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    margin-bottom: 8px; /* Espacio entre links */
}

.footer-links a:hover {
    color: #FFD700;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 20px; /* Espacio antes del copyright */
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-form {
        width: 100%;
    }

    .footer-form input {
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}