html,
body {
    width: 100%;
    overflow-x: hidden;
    /* Corta cualquier cosa que sobresalga a los lados */
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 110px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
    margin-right: 10px;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-btn img {
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
}

.lang-btn span {
    font-weight: bold;
    font-size: 0.8rem;
    color: #444;
}


@media (max-width: 768px) {
    .lang-btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

#welcome {
    background-image: url(img/fondo-nube-3.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    max-width: 1100px;
    margin: 40px auto;

    padding: 100px 120px;
    box-sizing: border-box;
}

#welcome:hover {
    transform: translateY(-5px);
}


#welcome h1 {
    /* Quitamos el fondo y el max-width de aquí */
    text-align: center;
    font-size: 2.2rem;
    color: #ff6600;
    line-height: 1.3;
    margin-bottom: 20px;
}


#welcome h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2e8b57;
    margin-bottom: 20px;
}

#welcome p {
    text-align: center;
    padding: 20px;
    color: #444;
    font-size: 1.05rem;
}


.main-content {
    position: relative;
}


.bg-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 65%,
            #2e8b57 100%),
        url("img/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    padding: 5px 20px;
}

.header img {
    height: 120px;
    width: auto;
    transition: transform 0.25s ease;
}

.header.scrolled img {
    transform: scale(0.7);
}

.social-icons {
    position: absolute;
    right: 50px;
    top: 50%;
    bottom: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-icons img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}



#gallery {
    padding: 60px 0;
}

#gallery h2 {
    text-align: center;
    color: #ff6600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: 0.3s ease;
    max-width: 500px;
    margin-left: 35%;
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel img {
    width: calc(100% / 3 - 24px);
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    scroll-snap-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}

#about {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    border-top: 5px solid #ff6600;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: 0.3s ease;
}

#about:hover {
    transform: translateY(-5px);
}

#about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* FAQ */
#faq {
    padding: 60px 20px;
}

#faq details {
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    padding: 15px;
}

#faq summary {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq details[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#faq details p {
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0 !important;
    padding-bottom: 120px;
    margin: 80px auto 120px auto;
    padding: 0 20px;
}

#contact h2 {
    text-align: center;
    color: #ff6600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: 0.3s ease;
    max-width: 500px;
    padding: 10px;
}

#contact form {
    width: 100%;
    max-width: 500px;


    background: white;
    padding: 30px;

    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 15px;
}

#contact textarea {
    min-height: 140px;
    resize: vertical;
}

#contact button {
    width: 100%;
    padding: 12px;

    background: #ff6600;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 16px;
    cursor: pointer;

    transition: 0.2s;
}

#contact button:hover {
    background: #e65c00;
}


footer {
    margin: 0;
    padding: 40px 20px;
    margin-top: 0;
    position: relative;

    background: linear-gradient(#2e8b57, #1f6b42);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.footer-col {
    max-width: 250px;
}

.footer-col h3 {
    margin-bottom: 10px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    z-index: 999;

    background: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    transition: 0.2s;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

#contact .wpp-link img,
footer .wpp-link img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

.cloud-box {
    max-width: 500px;
    margin: 0 auto;

    padding: 80px 40px;

    background-image: url(img/fondo-nube-3.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    text-align: center;
}

@media(max-width: 768px) {

    .header {
        position: fixed !important;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        height: auto !important;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: 160px;
    }

    .header div:first-child {
        display: none;
    }

    .header a img {
        width: auto;
        transform: none;
        height: 150px;
    }


    .social-icons {
        position: relative !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        gap: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }

    .lang-btn {
        display: flex !important;
        margin: 0 !important;
        padding: 6px 12px;
    }

    .lang-btn span {
        font-size: 0.7rem;
    }

    #welcome {
        padding: 60px 30px;
        margin: 20px 10px;
        background-size: cover;
    }



    #welcome h1 {
        font-size: 1.6rem;
        padding: 0;
    }

    #welcome h2 {
        font-size: 1.4rem;
    }

    #welcome p {
        font-size: 1rem;
        padding: 10px;
    }

    #gallery h2 {
        margin-left: 0;
    }

    .carousel-btn {
        display: none;
    }



    .carousel img {
        flex: 0 0 100%;
        width: 100%;
        height: 300px;
    }

    .carousel {
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
}