html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(33, 33, 33, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.436);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
}

.logo {
    height: 80px;
    position: relative;
    top: 5px;
    left: 20px;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-right: 20px;
    padding: 0;
}

nav ul li {
    padding-right: 10px;
    display: inline;
}

nav ul li a {
    padding-right: 15px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #bce01d;
    transform: translateY(-7px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 32px;
    color: #fff;
    padding: 10px;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/fondo2.png') center/cover no-repeat;
    color: #fff;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    cursor: pointer;
    margin-bottom: 3em;
    padding: 1em;
    border-radius: 10px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #bce01d;
    font-weight: bold;
    outline: 1px solid #bce01d;
    transition: all ease-in-out 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #a5c419;
    box-shadow: 0px 0px 30px 5px #bce01d;
    -webkit-box-shadow: 0px 0px 30px 5px #bce01d;
    -moz-box-shadow: 0px 0px 30px 5px #bce01d;
    color: #fff;
}

.btn:active {
    transform: translateY(-1px);
}

.product-section {
    padding-top: 115px;
    text-align: center;
    color: #565656;
    background-color: #ededed;
    padding-bottom: 100px;
}

.product img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.product {
    padding: 30px;
    border: 2px solid #bce01d;
    border-radius: 15px;
    width: calc(33.333% - 30px);
    max-width: 320px;
    box-shadow: 3px 3px 12px #bce01d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.product:hover {
    box-shadow: 0px 2px 4px #bce01d;
    color: #000000;
    transform: translateY(-7px);
}

#slider {
    padding-top: 115px;
}

.section-title {
    text-align: center;
    margin-top: 8px;
    font-size: 40px;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

#wrapper {
    width: 100%;
    margin: 50px auto;
    position: relative;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.1) 2px 2px 0px;
}

#slider-wrap {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 20px 10px rgba(0, 0, 0, 0.5);
}

#slider-wrap ul#sliderUl {
    width: 100vw;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    list-style: none;
    background-color: #fff;
    overflow: hidden;
}

#slider-wrap ul#sliderUl li {
    float: left;
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#slider-wrap ul#sliderUl li>div h3 {
    font-size: 28px;
    text-transform: uppercase;
}

#slider-wrap ul#sliderUl li>div span {
    font-size: 21px;
}

#slider-wrap ul,
#pagination-wrap ul li {
    -webkit-transition: all 0.5s cubic-bezier(1, .01, .32, 1);
    -moz-transition: all 0.5s cubic-bezier(1, .01, .32, 1);
    -o-transition: all 0.5s cubic-bezier(1, .01, .32, 1);
    -ms-transition: all 0.5s cubic-bezier(1, .01, .32, 1);
    transition: all 0.5s cubic-bezier(1, .01, .32, 1);
}

.slider-h1 {
    width: 100%;
    color: rgb(46, 46, 46);
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    break-line: auto;
}

.sliderDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.sliderImg {
    width: 40%;
    height: 100%;
    min-height: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    max-height: 530px;
}

.nosotros {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background: #f0f0f0;
    border-radius: 10px;
}

.nosotros h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.nosotros p {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.8;
}

.form {
    display: flex;
    flex-direction: column;
    align-self: center;
    font-family: inherit;
    gap: 10px;
    padding-inline: 2em;
    background-color: #ffffff;
    border-radius: 20px;
    min-width: 350px;
    width: 100%;
}

.form-heading {
    text-align: center;
    color: #bce01d;
    font-size: 36px;
    background-color: transparent;
    align-self: center;
}

.form-field {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 10px;
    padding: 0.6em;
    border: none;
    outline: none;
    color: white;
    background-color: #f5f5f5;
}

.input-field {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: #5a7d00;
    padding-inline: 1em;
}

.sendMessage-btn {
    cursor: pointer;
    margin-bottom: 3em;
    padding: 1em;
    border-radius: 10px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #bce01d;
    font-weight: bold;
    outline: 1px solid #bce01d;
    transition: all ease-in-out 0.3s;
}

.sendMessage-btn:hover {
    transition: all ease-in-out 0.3s;
    background-color: #bce01d;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 2px 2px 10px #bce01d;
}

.form-card1 {
    margin: 50px 0;
    background-image: linear-gradient(163deg, #bce01d 0%, #bce01d 100%);
    border-radius: 22px;
    transition: all 0.3s;
    min-width: 350px;
    width: 50%;
    padding: 5px;
    display: flex;
}

.form-card1:hover {
    box-shadow: 0px 0px 10px 1px #bce01d;
}

.form-card2 {
    transition: all 0.2s;
}

.form-card2:hover {
    transform: scale(0.99);
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-icon {
    font-size: 24px;
    color: #bce01d;
    margin-left: 15px;
}

.contact-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

footer {
    width: 100%;
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: #fff;
    text-align: center;
    font-size: 16px;
    position: relative;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px;
}


.footer-logo img {
    width: 120px;
    position: relative;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    color: #bce01d;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #a5c419;
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;
}

.footer-social img {
    width: 30px;
    height: auto;
    transition: transform 0.3s;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #666;
    font-size: 14px;
}

.msgOk {
    color: #789205;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 20px;
}

.msgErr {
    color: #ff0000;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 20px;
}

.list-dosis {
    font-size: 1.2rem;
}

.list-dosis li {
    padding: 2rem;
}

.lista-hidraulicos {
    text-align: justify;
}

.lista-hidraulicos li {
    padding: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    #slider {
        padding-top: 30px;
    }

    ul {
        margin-left: -35px !important;
    }

    #slider-wrap ul#sliderUl li>div h3 {
        font-size: 20px;
    }

    #slider-wrap ul#sliderUl li>div span {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .sliderImg {
        width: 100%;
    }

    .product {
        padding: 20px;
        border: 1px solid #bce01d;
        width: calc(80% - 20px);
    }

    .form {
        padding-inline: 0px;
        align-items: center;
    }   

}

@media (max-width: 1180px) {

    .form-card1 {
        width: 80%;
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sliderImg {
        width: 100%;
        height: 90%;
        max-height: 450px;
    }

    .sliderDiv {
        justify-content: flex-start;
    }

    .header-container nav {
        position: absolute;
        top: 80px;
        width: 100vw;
        left: 0;
        right: -35px;
        margin-left: unset;
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-container nav ul {
        height: 100vh;
        margin-right: 0;
        padding: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        background-color: rgba(0, 0, 0, .9);
    }
    .footer-container {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

@media (min-width: 1180px) {
    nav {
        display: block !important;
    }
}