* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.6;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: black;
    margin-left: 0.5rem;
}

#title {
    font-weight: bolder;
}

.img {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 15em;
    background-image: url(./images/Materiales\ Ligeros\ Logo.svg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
}

.about-team {
    width: 100%;
    min-height: 40em;
    display: flex;
    background-image: url(./images/CasaRemodelacion.svg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    padding-bottom: 2rem;
}

.text-container {
    width: 85%;
    max-width: 60em;
    height: auto;
    min-height: 20em;
    margin: 2em auto;
    padding: 1.5rem;
    border-radius: 8%;
    background-color: rgba(128, 128, 128, 0.85);
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

#text-container-text {
    font-size: 1.5rem;
    text-align: center;
    z-index: 2;
}

#about-us-p {
    font-size: 1rem;
    padding-top: 1em;
    text-align: justify;
}

.carousel-container {
    padding: 0 3rem;
    position: relative;
    width: 100%;
    min-height: 50em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(./images/Patron\ \(1\).svg);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.carousel {
    width: 80%;
    max-width: 35em;
    height: auto;
    min-height: 25em;
    border-radius: 10%;
    background-color: white;
    z-index: 1;
    position: relative;
}

.solutions-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.img-1 {
    width: 100%; 
    min-height: 40em; 
    display: block;
    justify-content: center;
    align-items: center;
    background-image: url(./images/Man\ in\ Materials\ Warehouse.jpg);
    background-size: cover;
    background-position: center;
}

.text-solutions {
    width: 100%;
    min-height: 40em; 
    background-color: #1B1B1B;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-solutions-text {
    color: #E4DDCB;
    font-size: 1.75rem;
    text-align: center;
    padding: 1.5rem;
}

#text-solutions-p {
    font-size: 1rem;
    padding: 1.5rem;
    max-width: 90%;
    margin: 0 auto;
    text-align: justify;
}

.services-container {
    width: 90%;
    max-width: 80em; 
    margin: 2rem auto;
    background-color: #E4DDCB;
    border-radius: 1.5rem;
    overflow: hidden;
    display: block; 
    justify-content: center; 
}

.text-services, .delivery {
    width: 100%; 
    min-height: 10em; 
    background-color: #E4DDCB;
    text-align: center;
    padding: 2rem 1rem;
}

.text-services-text {
    font-size: 0.9rem; 
    padding: 1.5rem;
    text-align: justify;
    color: #1B1B1B;
}

.title-services {
    display: flex;
    align-items: center;
}

.text-icon {
    width: 1.6em;
    height: 1.6em;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
    object-fit: contain;
}

footer {
    width: 100%;
    min-height: 15em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    padding: 2rem; 
}

.logo {
    width: 8em;
    height: 8em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin: 1rem;
}

.socials, .contact-info, .maps {
    width: 15em;
    min-height: 8em; 
    background-color: white;
    margin: 1rem;
    padding: 1rem; 
}

.socials ul, .contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.socials ul li{
    font-size: 1rem; 
    padding: 0.5rem 0;
    text-decoration: none;
    color: black;
}

.contact-info ul li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    text-decoration: none;
    color: black;
}

#floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: opacity 0.4s ease;
  }
  
  .button-image {
    width: 20rem;
    height: auto;
    cursor: pointer;
  }
  
  .close-btn {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0.5rem;
  }
  
  .hidden {
    opacity: 0;
    pointer-events: none;
  }
  .visible {
    opacity: 1;
    pointer-events: auto;
  }
  


/* SPLIDE CSS */
.splide {
    position: relative;
    max-width: 500px;
    margin: auto;
  }
  
  .card {
    background-color: white;
    border: 5px solid black;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    max-width: 90%;
  }
  
  
  .img-container {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .card img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
  }
  
  .card h3, .card .desc, .card {
    position: relative;
    z-index: 1;
    color: #1B1B1B; 
    text-align: center;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin: 0.25rem 0;
    font-weight: bold;
  }
  
  .card .desc {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .splide__slide {
    display: flex;
    justify-content: center;
  }
  
  .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
  }

  .splide__arrow--prev {
    left: -3rem;
  }
  
  .splide__arrow--next {
    right: -3rem; 
  }

  
  .splide__pagination__page {
    background-color: #888888 !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: none;
  }
  
  .splide__pagination__page.is-active {
    background-color: #E63946 !important;
    opacity: 1;
    transform: scale(1.2);
  }
  

/* --- Media Queries --- */

/* Small screens (up to 600px) */
@media (max-width: 600px) {
    body {
        font-size: 0.9rem;
    }

    .text-container {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 5px;
    }

    #text-container-text {
        font-size: 1.6rem;
        text-align: center;
    }

    #about-us-p {
        font-size: 1.1rem;
        padding-top: 1rem;
    }

    .carousel {
        width: 90%;
    }

    .solutions-container {
        flex-direction: column;
    }

    .img-1, .text-solutions {
        width: 100%;
        min-height: 30em;
    }

    .text-solutions-text {
        font-size: 1.5rem;
    }

    #text-solutions-p {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .logo, .socials, .contact-info, .maps{
        width: 90%;
        margin: 1rem auto;
        text-align: center;
    }

    .logo img {
        width: 15rem;
        height: auto;
    }

    .maps iframe {
        width: 90%;
        height: 90%;
    }

    footer {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .splide {
        max-width: 300px;
        margin: auto;
    }

    .button-image {
        width: 15rem;
        height: auto;
    }
}

/* Medium screens (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        font-size: 1rem;
    }

    .text-container {
        width: 70%;
        margin: 2rem auto;
    }

    #text-container-text {
        font-size: 1.8rem;
    }

    #about-us-p {
        font-size: 1.3rem;
        padding-top: 1.5rem;
    }

    .carousel {
        width: 70%;
    }

    .solutions-container {
        flex-direction: row;
    }

    .img-1, .text-solutions {
        width: 50%;
        min-height: 45em;
    }

    .text-solutions-text {
        font-size: 2rem;
    }

    #text-solutions-p {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .services-container {
        flex-direction: block;
        justify-content: space-around;
    }

    .text-services, .delivery {
        width: 100%;
    }

    .text-services h1, .delivery h1 {
        width: 100%;
        font-size: 1.5rem;
    }

    footer {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }

    .logo, .socials, .contact-info, .maps {
        width: auto;
        margin: 1rem;
    }

    .logo img {
        width: 15rem;
        height: auto;
    }

    .maps {
        width: 50%;
        display: flex;
        justify-items: center;
        align-items: center;
    }
}

/* Large screens (1025px and up) */
@media (min-width: 1025px) {
    body {
        font-size: 1.1rem;
    }

    .text-container {
        width: 40%;
        max-width: 40em;
        margin-left: 5em;
        padding-top: 3rem;
        height: auto;
    }

    #text-container-text {
        font-size: 1.8rem;
    }

    #about-us-p {
        font-size: 1.4rem;
        padding-top: 2rem;
    }

    .carousel {
        width: 50%;
        max-width: 50em;
    }

    .solutions-container {
        flex-direction: row;
    }

    .img-1, .text-solutions {
        width: 50%;
        min-height: 50em;
    }

    .img-1 {
        display: flex;
        justify-items: center;
        align-items: center;
    }

    .text-solutions-text {
        font-size: 2.2rem;
    }

    #text-solutions-p {
        font-size: 1.1rem;
        padding: 2rem;
    }

    .services-container {
        justify-content: space-around;
        width: 70%;
        height: auto;
    }

    .text-services, .delivery {
        width: 100%;/
    }

    .text-services-text {
        padding-bottom: 0;
        font-size: 1.1rem;
    }

    .text-services h1 {
        font-size: 1.2rem;
    }

    .delivery h1 {
        font-size: 1.2rem;;
    }

    footer {
        flex-direction: row;
        justify-content: space-around;
        padding: 3rem;
        text-align: left;
    }

    .logo, .socials, .contact-info, .maps {
        margin: 1rem;
    }

    .maps {
        width: 25em;
        height: 18em;
    }
}

/* Very large screens (1921px and up)*/
@media (min-width: 1921px) {
    body {
        font-size: 1.2rem;
    }

    .text-container {
        width: 50%;
        max-width: 50em;
        margin-left: 10em;
    }

    #text-container-text {
        font-size: 2.4rem;
    }

    #about-us-p {
        font-size: 2rem;
    }

    .services-container {
        height: 40rem;
        width: 60%;
        border-radius: 4%;
    }

    .text-solutions-text {
        font-size: 2.5rem;
    }

    .text-services h1 {
        font-size: 2rem;
    }

    .delivery h1 {
        font-size: 2rem;
    }

    #text-solutions-p {
        font-size: 1.2rem;
        color: blue;
    }

    .logo img {
        width: 50rem;
        height: auto;
    }
}