body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

p{
    font-size: large;
}

header {
    background-color: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 2px 2px 2px rgb(80, 80, 80);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.header-container h1{
    margin-bottom: 0;
}

header.scrolled {
    background-color: #f8f8f8;
    color: black;
}

header.scrolled a {
    color: black;
    background-color: none;
}

header.scrolled .menu-toggle {
    color: black;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    background-color: none;
    transition: background-color 0.3s;
}

nav ul li {
    margin: 0 10px;
    background-color: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    background-color: none;
}

nav ul.scrolled {
    background-color: #f8f8f8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}


h1, h2, h3 {
    margin: 0 0 0.5em 0;
}

.listing {
    border: 1px solid #ddd;
    padding: 1em;
    margin: 1em 0;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1em;
}

form input, form textarea {
    padding: 0.5em;
    margin-top: 0.5em;
    width: 100%;
    box-sizing: border-box;
}

form button {
    margin-top: 1em;
    padding: 0.5em;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}

.about{
    margin-top: 70px;
    background-image: url(../images/american_flag.jpg) !important;
    background-position: center;
    background-size: cover;
    display: flex;
}

.about-content{
    max-width: 70%;
    padding: 40px;
    margin: 70px 70px 70px 70px;

    color: white;
    background: linear-gradient(45deg,rgba(124, 124, 124, 0.527),rgba(10, 10, 10, 0.815));
    position: relative;
    animation: slide-up 2s forwards;
}

.about-buttons{
    padding-top: 20px;
}

.about-buttons>a{
    border: #ffff solid 2px;
    padding: 4px 10px;
    margin-right: 10px;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background-color 0.5s, color 0.5s;
}

.about-buttons>a:hover{
    color: black;
    background-color: white;
}

.services-logo{
    background-color: #333;
    text-align: center;
    color: white;
}

.services-logo > .img{
    animation: blink 3s infinite;
}

.service-p{
    display: flex;
    width: 100%;
}
.service-p>p{
    width: 50%;
    margin: auto;
    text-align: justify;
}

/*CARDS*/
.cards{
    font-family: Arial, sans-serif;
    background-color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
}

.item {
    display: flex;
    background-color: #fff;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(50% - 20px);
    box-sizing: border-box;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 1s ease-out;
}

.item img {
    display:none;
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text > h3 {
    color: #333;
    margin: 0 0 10px;
}

.text > p {
    color: #333;
    margin: 0;
}

.aos-animate .item {
    opacity: 1 !important; /* Aparecer gradualmente */
}

.aos-animate .contact-block {
    opacity: 1 !important; /* Aparecer gradualmente */
}

/*form styles*/

.contact-section {
    margin-top: 40px;
    padding: 50px;
    background-color: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
}

.contact-section > h2{
    margin-bottom: 40px;
}

.contactContainer{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-block {
    width: calc(33% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 1s ease-out;
}

.contact-block img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.contact-form {
    background-color: #fff;
    width: 80%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-form input[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #333;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: #ffffff;
    color: black;
}

/*Whatsapp y QR*/

.know-us{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fff;
}

.split-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    background-color: #ffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-section {
    max-width: 30%;
    flex: 1;
    padding: 20px;
    text-align: justify;
}

.text-section img {
    display: block;
    margin: 20px auto;
}

.image-section {
    max-width: calc(80% - 20px);
    margin: 10px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Inicialmente invisible */
    transform: translateX(-100px); /* Fuera de la pantalla a la izquierda */
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.image-section img {
    max-width: 100%;
    height: auto;

}

.aos-animate{
    opacity: 1; /* Aparecer */
    transform: translateX(0); /* Deslizar hacia adentro */
}

/*fixed list contact*/

.fixed-contact{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.fixed-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

.contact-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bolder;
    border: 2px solid white;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    display: block;
    transition: background-color 0.5s, color 0.5s, opacity 0.3s ease-in-out;
}

.contact-button:hover{
    background-color: white;
    color:#333;
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 60px;
    left: 0;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.contact-list a {
    margin-bottom: 10px;
}

.contact-list img {
    width: 50px;
    height: 50px;
}

.close-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 10px;
}

.contact-list.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.contact-list.hide {
    opacity: 0;
    transform: translateY(100px);
    visibility: visible;
}

.contact-list.hidden{
    visibility: hidden !important;
}
        
.contact-button.hide {
    opacity: 0;
    visibility: hidden;
}


/*TRANSICION LOGOS*/

.logo {
    height: 40px;
    transition: opacity 0.3s ease;
}

.logo.hidden {
    opacity: 0;
    position: absolute;
    visibility:hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    header h1 {
        margin: 0;
    }

    nav {
        position: relative;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        /* border-left: 2px solid #c7c7c7; */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #333;
        width: 150px;
        margin-top: 35px;
        padding: 0;
        transition: background-color 0.3s, max-height 0.5s;
        max-height: 0;
        overflow: hidden;
    }
    /* nav ul.scrolled {
        border-left: 2px solid #646464;
    } */

    nav ul.active {
        display: flex;
        max-height: 300px; /* Adjust this value based on your menu items */
        box-shadow: 2px 2px 2px rgb(80, 80, 80);
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        padding-top: 10px;
        padding-bottom: 10px;
        display: block;
        width: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    nav ul.active li a {
        opacity: 1;
        transition-delay: 0.1s;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 1em;
    }
    .about-content{
        margin: 40px;
    }
    .about-buttons{
        display: flex;
    }
    .service-p>p{
        width: 80%;
    }
    .item{
        display: list-item ;
        width: 100%;
        align-content: center;
        list-style: none    ;
    }
    .item img{
        margin-right: 0px;
    }
    .split-container{
            max-width: 100% !important;
            width: 100% !important;
            display: block;
    }
    .text-section{
        max-width: 100% !important;
    }
    .text-section img{
        width: 200px;
        margin: auto;
    }
    .contactContainer{
        display: block;
    }
    .contactContainer > .contact-block{
        width: 100%;
    }
    .image-section{
        max-width: 100%;
    }
}


/* Styles for larger screens where menu-toggle is not visible */
@media (min-width: 769px) {
    nav ul {
        display: flex !important;
        max-height: none !important;
        background: none !important;
    }

    nav ul li a {
        opacity: 1 !important;
        transition: none !important;
    }
    nav ul.scrolled {
        background: none !important;
    }
}

@keyframes slide-up {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    100% {
        bottom: 0;
        opacity: 1;
    }
}
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}