*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

ol, ul, li, a {
    list-style: none;
}





/* General Reset */
body {
    background: #f4f7f8;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* Styles for social media icons */
.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    margin-bottom: 10px; /* Add some space below the icons */
    justify-content: flex-end; /* Push icons to the right within their container */
}

.social-icons img {
    width: 50px; /* Set the width to 50px */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent extra space below inline images */
}



@media (min-width: 768px) {
    header {
        height: 85px;
        padding: 0 2rem;
    }

    header .header-brand {
        font-size: 1.5rem;
        border-right: 3px solid #111;
        padding-right: 2rem;
    }

    header nav ul li a {
        font-size: 1.2rem;
    }

    header .header-cases {
        display: block;
        font-size: 1rem;
        border: 1px solid #111;
        padding: 0.5rem 1rem;
    }
    
}


/*mobile*/
@media (max-width: 768px) {

   /* Burger button styles */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #111;
    border-radius: 2px;
}
}

/* Show burger and collapse nav on small screens */
@media (max-width: 768px) {
    
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 1rem;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0.5rem 0;
    }

    header nav ul li {
        padding: 0.5rem 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 1rem;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0.5rem 0;
    }


    .slider-continer {
        width: 60%;
        height: auto;
        margin-top: 40px;
    }


    .burger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: row;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

}



@media (max-width: 768px) {
    .form-inline-wrapper {
    flex-direction: column;
    align-items: center;
    }

    .form-text, .contact-form {
    width: 100%;
    text-align: center;
    }

    .form-text p {
    max-width: none;
    }
}


.gallery-links-h2 {
    margin-top: 7%;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.wrapper p {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}


.gallery-links {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    position: relative;
    
}

.gallery-img {
    flex-basis: 90%;
    margin: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.gallery-img img {
    width: 100%;
    display: block;
}

.dark-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #1a253a;
    opacity: 0.5;
    transition: all ease-in-out 500ms;
    z-index: 1;
}

.index-category-box:hover .dark-overlay {
    opacity: 0;
}

.index-category-box h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.1rem;
    line-height: 1.5;
    text-align: center;
    text-shadow: -2px 2px 4px #000;
    z-index: 2;
    margin: 0;
}




@media only screen and (min-width: 762px) {
    .gallery-img {
        flex-basis: 300px;
    }
    .index-category-box h3:hover {
        opacity: 50%;
        transition: all ease-in-out 500ms;
    }
    .burger {
        display: none;
    }
}

.wrapper{
    margin-top: 9%;
}

.wrapper h2 {

text-align: center;


}
.wrapper p {
    text-align: center;
    font-size: 23px;
    font-family: "Roboto", sans-serif;
    margin-bottom: 5px;
    margin-bottom: 2%;
}

/*Button look on hover*/
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

nav li a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


nav li a:hover {
    background-color: #007BFF; /* or any color you like */
    color: #fff;
    cursor: pointer;
}
  /* Button look on hover */

@media (max-width: 650px) {
    .wrapper .gallery-links-h2 {
        margin-top: 10px;
    }
}



/*button volver main-casos*/

.return {
    display: block;
    margin: 40px auto 0 auto; /* Top margin, centered horizontally */
    padding: 14px 26px;
    background-color: #0077cc;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.return:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

.return a {
    color: white;
    text-decoration: none;
    display: block;
}

@media (max-width: 630px) {
    main{
        margin-top: 10%;
    }
}

.centered-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 15%;
    display: flex;
    justify-content: center;
    margin: 0 auto;  
    border-radius: 7px;
}
.centered-button:hover {
    background-color: #007BFF;
    color: #fff;
}
.centered-button a {
    font-weight: 600;
    font-size: 14px;
}



@media (max-width: 768px) {
    .centered-button {
        width: 20%;
        max-height: 15px;
    }
}