* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    position: relative;
    z-index: 100;
}

.navbar-left {
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.navbar-left .logo {
    transform: scale(1.8);
    height: 70px;
    width: auto;
}
 

.dropdown-menu-grid {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0; 
    width: 300px; 
    height: 300px; 
    z-index: 1000;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
    display: none;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.dropdown:hover .dropdown-menu-grid {
    display: flex !important; 
}

.dropdown-menu-grid li {
    list-style: none !important;
    margin: 15px !important; 
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    width: 100px; 
    height: 100px; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

.dropdown-menu-grid li:before,
.dropdown-menu-grid li:after {
    display: none !important;
    content: none !important;
}

.dropdown-menu-grid li a {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-top: none !important;
    box-sizing: border-box;
}

.grid-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    height: 100px !important; 
    width: 100px !important; 
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 15px !important;
}

.grid-item:hover {
    background: #03c0a8 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(3, 192, 167, 0.705) !important;
    border: 2px solid #03c0a8 !important;
}

.grid-item i {
    font-size: 24px !important;
    margin-bottom: 8px !important;
    color: #03c0a8 !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.grid-item:hover i {
    color: white !important;
}

.grid-item span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
    line-height: 1.2 !important;
    text-align: center !important;
    word-wrap: break-word !important;
    display: block !important;
}

.grid-item:hover span {
    color: white !important;
}


.dropdown-menu-grid,
.dropdown-menu-grid * {
    border-top: none !important;
    border-bottom: none !important;
}

.dropdown-menu:not(.dropdown-menu-grid) {
    display: block;
}

.dropdown:hover .dropdown-menu:not(.dropdown-menu-grid) {
    display: block;
}


@media (max-width: 768px) {
    .dropdown-menu-grid {
        width: 320px !important;
        height: 320px !important;
        right: -100px !important; 
    }
    
    .dropdown-menu-grid li {
        margin: 20px !important;
        width: 110px !important;
        height: 110px !important;
    }
    
    .grid-item {
        height: 110px !important;
        width: 110px !important;
        padding: 18px !important;
    }
    
    .grid-item i {
        font-size: 26px !important;
        margin-bottom: 10px !important;
    }
    
    .grid-item span {
        font-size: 13px !important;
    }
}


.dropdown-menu-grid li:nth-child(1) {
    order: 1;
}

.dropdown-menu-grid li:nth-child(2) {
    order: 2;  
}

.dropdown-menu-grid li:nth-child(3) {
    order: 3;
}

.dropdown-menu-grid li:nth-child(4) {
    order: 4;
}

.navbar-left .textC {
    display: flex;
    align-items: center;
    font-size: 30px;
    line-height: 30px;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    color: #04BFAA;
    margin-left: 10%;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    list-style: none;
    display: inline-flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    padding: 8px 12px;
    transition: color 0.3s ease, color 0.3s ease;
}


.navbar .dropdown {
    z-index: 200;
}

.navbar .dropdown-menu {
    display: none;
    position: absolute;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    list-style: none;
    z-index: 1;
}

.navbar .dropdown-menu li {
    padding: 12px 5px;
    transition: color 0.2s ease, color 0.2s ease;
    animation: fadeIn 0.2s ease-in both;
}

.navbar .dropdown-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar .dropdown-menu li:nth-child(2) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.2s;
}

.navbar .dropdown-menu li:nth-child(3) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.3s;
    
}

.navbar .dropdown-menu li:nth-child(4) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.4s;
    
}
.navbar .dropdown-menu li:nth-child(5) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.5s;
    
}
.navbar .dropdown-menu li:nth-child(6) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.6s;
    
}
.navbar .dropdown-menu li:nth-child(7) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.7s;
    
}
.navbar .dropdown-menu li:nth-child(8) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.8s;
    
}
.navbar .dropdown-menu li:nth-child(9) {
    border-top: 1px solid #dbdbdb;
    animation-delay: 0.9s;
    
}

.navbar .dropdown-menu li a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
}

.navbar .dropdown-menu li a:hover {
    color: #04BFAA;
    text-decoration: none;
}

.navbar .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-links a:hover {
    color: #04BFAA;
}

.btn-donation {
    background-color: #f04f48;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px !important;
    color: white !important;
    padding: 10px 30px !important;
    border-radius: 50px;
    border: 2px solid #f04f48;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}

.btn-menu {
    background-color: #04BFAA;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px !important;
    color: white !important;
    padding: 10px 30px !important;
    border-radius: 50px;
    border: 2px solid #04BFAA;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}

.btn-donation:hover {
    background-color: #76225e;
    color: #ffffff;
}

.navbar-right {
    display: flex;
}

.navbar-right a {
    /* border-radius: 100%;
    padding: 10px; */
    margin-left: 10px;
    margin-right: 10px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease, color 0.3s ease;
    color: black;
}

.navbar-right a i {
    transform: scale(1.5);
}

.navbar-right a i:hover {
    
    color: #76225e;
}

.social-icon {
    height: 30px;
    width: auto;
    margin-left: 10px;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    filter: brightness(0.7) invert(1);
}


/*------------------------------- Hamburger Menu---------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin: 5px 0;
    transition: 0.3s;
}

/* menu del cel (ocultado por defualt) */
.mobile-menu {
    margin-top: 30px;
    border-top: 2px solid lightgray;
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    text-align: center;
    z-index: 1000;
    box-shadow: 0px 15px 10px -10px #2c2c2c;  
}

.mobile-menu ul {
    list-style: none;
    padding: 10px 0;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
}

.mobile-menu a:hover {
    
    padding: 10px;
    border-radius: 5px;
}

.mobile-menu.active {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}


.dropdown-mobile {
    
    position: relative;
}

.dropdown-menu-mobile {
    display: none;
    list-style: none;
    padding: 10px 0;
    background-color: #f04f48;
    margin: 0;
    animation: slide-down .3s ease-out;
}

.dropdown-mobile.active .dropdown-menu-mobile {
    display: block;
}

.dropdown-menu-mobile li {
    padding-left: 100px;
    text-align: start;
}

.dropdown-menu-mobile li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.dropdown-menu-mobile li a:hover {
    background-color: #929292;
}

.hidden {
    display: none;
}

#searchInput {
    
    height: 30px; 
    border: 1px solid #333; 
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease; 
    outline: none; 
}

.buttonasd{
    display: none;
}


/* Large devices such as laptops (1024px and up) */
@media only screen and (max-width: 1024px) {

    /* .btn-donation{
        display: block;
    } */

    .buttonasd{
        display: block;
    }

    .navbar-left .textC{
        display: none;
    }

    .navbar-center {
        display: none;
    }

    .navbar-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Largest devices such as desktops (1280px and up) */
@media only screen and (max-width: 1280px) {}


@keyframes slide-down {
    0% { opacity: 0; -webkit-transform: translateY(-5%); }   
  100% { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
@media (max-width: 1800px){
    .nav-links li {
        margin: 0 12px;
    }
}