html {
    font-size: 16px;
    scroll-behavior: smooth;
}

*{
    margin: 0;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  background: none;
  border: 0;
  color: inherit;
  /* cursor: default; */
  font: inherit;
  line-height: normal;
  overflow: visible;
  padding: 0;
  -webkit-user-select: none; /* for button */
   -webkit-appearance: button; /* for input */
     -moz-user-select: none;
      -ms-user-select: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fbfcfd;
}

header {
    background-color: #fff;
    padding: 5px 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
}

.active_header {
    color: #43aa3e;
}

header .left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo_header {
    max-width: 100%;
    height: 70px;
    margin-right: 50px;
}

header svg{
    display: none;
}

nav span{
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #888;
    font-weight: bold;
}

.phone {
    width: min-content;
}

.phone a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 10px;
}

.phone a img {
    width: 40px;
    height: 40px;
}

.phone a p {
    width: 100px;
    display: inline-block;
    height: min-content;
}

main {
    margin-top: 80px;
}

.portada {
    padding-top: 100px;
    background: linear-gradient(45deg, #2A363A 16%, rgba(0, 0, 0, 0.50) 55%), url('../img/banner_herreria.png') center/cover fixed no-repeat;
    width: 100%;
    height: 550px;
}

.title {
    color: #43aa3e;
    width: 1050px;
    padding-left: 50px;
    margin: auto;
}

.title h1 {
    font-size: 3.5rem;
    width: 500px;
}

.title h1 span {
    color: white;
}

.title p {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 30px;
}

.main_contain {
    width: 1050px;
    margin: auto;
}

.card_aboutus {
    background-color: white;
    position: relative;
    top: -100px;
    border-top: #43aa3e 15px solid;
    border-radius: 5px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

.item_card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
}

.item_card img {
    width: 200px;
}

.item_card p {
    padding: 20px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.5;
}

.servicios_title {
    text-align: center;
    color: #43aa3e;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 80px;
}

.servicios_list {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #666;
}

.line {
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: #43aa3e 1px solid;
}

.carrousel_title {
    text-align: center;
    color: #43aa3e;
    font-weight: bold;
    font-size: 1.8rem;
    margin-top: 100px;
    margin-bottom: 80px;
}

.Carousel {
    width: 100%;
}

.Carousel h2 {
    font-size: 26px;
    line-height: 38px;
    padding-bottom: 24px;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-align: center;
}

/* images */

.slick-list {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    height: 304px;
    padding: 10px 0px;
    margin: 0px auto;
    max-width: 100%;
    overflow: hidden;
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    transition: .5s ease-in-out;
}

.slick {
    cursor: pointer;
    position: relative;
    width: 275px;
    padding: 0 18px;
    float: left;
    box-sizing: border-box;
    display: flex;
    height: 100%;
}

.slick h4 {
    position: absolute;
    z-index: 1;
    font-size: 22px;
    line-height: 23px;
    color: #fff;
    padding: 15px;
}

.slick h4 small {
    font-size: 15px;
    display: block;
}

.slick img {
    object-fit: cover;
    height: 300px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .5);
    transition: .3s ease-in-out;
}

.slick a img:hover {
    opacity: .85;
}

/* buttons */

.slick-arrow {
    border-radius: 30px;
    background-color: #fff;
    position: absolute;
    z-index: 4;
    width: 48px;
    height: 48px;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .15);
    border: 0;
    cursor: pointer;
}

.slick-arrow:focus {
    outline: 0;
}

.slick-arrow svg {
    width: 12px;
    height: 100%;
    color: rgba(0, 0, 0, .7);
}

.slick-prev {
    left: 0px;
}

.slick-next {
    right: 0px;
}

.popup-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .9);
    height: 100%;
    width: 100%;
    z-index: 9999;
}

.popup-image span {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 60px;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
    z-index: 999999;
}

.popup-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid white;
    border-radius: 5px;
    width: 750px;
    object-fit: cover;
}


.startContactanos {
    display: flex;
    margin-top: 100px;
}

.startContactanos img {
    width: 300px;
}

.startContactanos p {
    color: #43aa3e;
    font-weight: bold;
    font-size: 2.5rem;
    max-width: 80%;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;

}


/* FOMULARIO DE CONTACTO */

.contact {
    background: linear-gradient(45deg, #23252e 16%, rgba(0, 0, 0, 0.9) 65%), url('../img/portada_contacto.png') center/cover no-repeat;
    margin-bottom: 0;
    
}

.container {
    color: white;
    width: 80%;
    margin: auto;
}


input:focus~label,
textarea:focus~label,
input:valid~label,
textarea:valid~label {
    font-size: 0.75em;
    color: #999;
    top: -5px;
    -webkit-transition: all 0.225s ease;
    transition: all 0.225s ease;
}

.row h3 {
    font-size: 2rem;
    text-align: center;
    margin: 0;
    padding-top: 40px;
}

.styled-input {
    float: left;
    width: 293px;
    margin: 1rem 0;
    position: relative;
    border-radius: 4px;
}

@media only screen and (max-width: 935px) {
    .styled-input {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .input-container {
        margin: 0;
    }

    .container {
        width: 100%;
    }
}

.styled-input label {
    color: #999;
    padding: 1.3rem 30px 1rem 30px;
    position: absolute;
    top: 10px;
    left: 0;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    pointer-events: none;
}

.styled-input input {
    width: calc(100% - 60px);
}

.styled-input textarea {
    width: calc(100% - 60px);
}

.styled-input.wide {
    width: 650px;
    max-width: 100%;
}

input,
textarea {
    padding: 30px;
    border: 0;
    width: 100%;
    font-size: 1rem;
    background-color: #2d2d2d;
    color: white;
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: 0;
}

input:focus~span,
textarea:focus~span {
    width: 100%;
    -webkit-transition: all 0.075s ease;
    transition: all 0.075s ease;
}

textarea {
    width: 100%;
    min-height: 15em;
    resize: none;
}

.input-container {
    width: 650px;
    max-width: 80%;
    margin: 20px auto 25px auto;
    margin-bottom: 0;
}

.submit-btn {
    margin-right: auto;
    padding: 10px 35px;
    border-radius: 10px;
    display: inline-block;
    background-color: #43aa3e;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06),
        0 2px 10px 0 rgba(0, 0, 0, 0.07);
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
    width: calc(100%);
    float: none;
    text-align: center;
    margin-bottom: 50px;
}

.submit-btn:hover {
    transform: translateY(5px);
    background-color: #154613;
}


input[type=checkbox]+label {
    color: #ccc;
    font-style: italic;
}

input[type=checkbox]:checked+label {
    color: #f00;
    font-style: normal;
}


.map{
    width: 100%;
}

footer{
    background-color: #222;
    color: white;
}

.footer-container{
    display: flex;
    justify-content: space-evenly;
    padding-top: 50px;
}

.mapaContainer{
    background-color: #222;
}

.direccion h3,
.redes h3,
.contact-info h3{
    margin: 0;
    margin-bottom: 15px;
}

.redes a{
    text-decoration: none;
    margin-right: 10px;
}

.redes svg{
    width: 70px;
}

.contact-info a{
    display: flex;
    text-decoration: none;
    color: white;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.contact-info svg{
    width: 50px;
}

.direccion{
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 350px;
}

.footer-end{
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 20px;
    align-items: end;
}

.footer-end img{
    width: 200px;
}

@media (max-width: 1080px) {
    .main_contain {
        width: 90%;
    }

    header{
        padding-left: 0;
        padding-right: 0;
    }

    .title {
        padding-left: 40px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 800px) {

    .footer-container{
        flex-direction: column;
        gap: 30px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-end{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }

    .contact-info svg{
        height: min-content;
    }

    .direccion h3,
    .redes h3,
    .contact-info h3{
        margin-top: 10px;
    }

    .card_aboutus {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: 1fr;
    }

    .popup-image img {
        width: 95%;
    }

    .item_card {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

   nav{
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        background-color: white;
        padding: 2rem;
        
        transform: translateX(-300px);
        transition: all 0.4s ease-in-out; /* It slowly shows the element as we place the mouse on the box and when the time reaches 2 seconds, it is fully visible. */  
        -webkit-transition: all 0.4s ease-in-out; 
        -moz-transition: all 0.4s ease-in-out;   
   }

   .phone a p {
        display: none;
   }

   .left img{
    margin-right: 0;
   }

   nav ul{
        flex-direction: column;
        align-items: start;
        gap: 40px;
   }

   nav span{
    display: block;
    font-size: 3rem;
    margin-bottom: 60px;
   }

   header svg{
    display: block;
    cursor: pointer;
   }

   .visible{
    box-shadow: 0 0 0 500vh rgba(0, 0, 0, .5);
    transform: translateX(0px);
   }

   #close{
    cursor: pointer;
   }

}

@media (max-width: 650px) {
    .portada {
        padding-top: 60px;
    }

    .title h1 {
        width: 300px;
        font-size: 3rem;
    }

    .title p {
        width: 80%;
    }

    .startContactanos {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin-top: 50px;
    }

    .startContactanos p {
        text-align: center;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}