html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*fuente general*/
}

a {
    text-decoration: none;
    color: #000;
}
.underline{
    text-decoration: underline;
}

/*tipografía*/
.title {
    font-family: "Rubik", sans-serif;
    font-size: 64px;
    font-weight: 700;
}

.subtitle {
    font-family: "Rubik", sans-serif;
    font-size: 32px;
    font-weight: 500;
}

.subtitle2 {
    font-family: "Rubik", sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.body {
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.body-sm {
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/*fuente en media mobile */
@media (max-width:767px) {
    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .subtitle2 {
        font-size: 16px;
    }

    .body {
        font-size: 14px;
    }

    .body-sm {
        font-size: 12px;
    }
}

/*weights*/
.regular {
    font-weight: 400;
}

.medium {
    font-weight: 500;
}

.semi-bold {
    font-weight: 600;
}

.bold {
    font-weight: 700;
}

.extra-bold {
    font-weight: 800;
}


/*styles*/
.italic {
    font-style: italic;
}

/*colores de fuente*/
.principal {
    color: #000;
}

.white {
    color: #ffff;
}

/* alineacion */
.center {
    text-align: center;
}

.right {
    text-align: right;
}

.justify {
    text-align: justify;
}

/*botones*/
.btn {
    background-color: #009AAE;
    color: #ffff;
    padding: 12px 12px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.btn-secondary {
    background-color: #5076C6;
    color: #ffff;
    width: 330px;
    padding: 6px 10px;
    border: none;

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #006471;
}

@media (max-width:767px) {
    .btn-primary {
        font-size: 12px;
        width: 100%;
        max-width: 300px;
    }

    .btn-secondary {
        font-size: 12px;
    }
}

/* display */
.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}


/* STYLE */
/* main */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* a */
.header-hero-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1080px;
}

.header-hero-container {
    display: flex;
    height: 100vh;
    width: 100%;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    transition: background-color 0.3s ease;
    /* suaviza el cambio */
    align-items: center;
    z-index: 3;
    background: #009AAE;
}

#main-header a {
    color: #fff;
}

#main-header .nav-btn {
    background-color: #fff;
    color: #009AAE;
}

header:hover {
    background-color: #009AAE;
    /* el color que quieras */
}

.logo-nav-container {
    display: flex;
    gap: 10px;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 190px;
}

nav {
    display: flex;
    gap: 20px;
}

.menu-button {
    display: none;
}


@media (max-width:880px) {
    header {
        align-items: start;
    }

    header:has(.active) {
        align-items: start;
    }

    nav,
    .nav-btn {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
    }

    .logo-nav-container {
        flex-direction: column;
        align-items: start;

    }

    .menu-button {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        border-radius: 6px;
        padding: 4px;
        transition: transform 2s ease;
        background-color: #fff;


    }

    header:has(.active) .menu-button {
        background-color: #fff;
    }

}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 60px;
}

.hero-content {
    display: flex;
    max-width: 621px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero-img {
    width: 100%;
    max-width: 1236px;
}

@media (min-width:768px) {}


/* MAIN */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* sobrenosotros */
#sobrenosotros {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 112px 60px;
    gap: 40px;
    flex-wrap: wrap;
    overflow: hidden;
}

#sobrenosotros h2 {
    max-width: 300px;
}

#sobrenosotros div {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 45px;
    max-width: 550px;
}

#sobrenosotros .arrow {
    height: 121px;
    width: 123px;
}


/* valores */
#valores {
    width: 100%;
    padding: 112px 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
    color: #ffff;
    background: url("./assets/valores.png");
    background-position: center;
    background-size: cover;
}

.valores-container {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    max-width: 1080px;
    flex-wrap: wrap;
    justify-content: center;
}

.valor {
    max-width: 346.67px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.valor-bottom {
    max-width: 638px;
}

/* carpinteria */
#carpinteria {
    width: 100%;
    overflow: hidden;

}

.img-carp-1 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 50%;
}

.img-carp-2 {
    position: absolute;
    bottom: 0;
    right: -50px;
    width: 35%;
}
.carpinteria-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1280px;
    padding: 112px 60px;

}

.carpinteria-header {
    width: 60%;
    gap: 16px;
    align-self: end;
    margin-top: 100px;
    max-width: 662px;
}

.carpinteria-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.carpinteria-main li {
    font-family: "Rubik", sans-serif;
    font-size: 16px;

}

.linea {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.linea-final {
    width: 80%;
}

.linea h4 {
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.carpinteria-footer {
    width: 50%;
}

hr {
    width: 100%;
}

/* productos */
#productos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 112px 60px;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.productos-header {
    max-width: 738px;
    z-index: 1;
}

.productos-list {
    display: flex;
    width: 100%;
    max-width: 1080px;
    gap: 38px;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    z-index: 1;

}

.producto {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 240px;
    max-width: 340px;
    width: 100%;
    flex: 1;
    align-items: center;
}

.producto * {
    text-align: center;
    color: #fff;
}

.producto-img {
    height: 168px;
    width: 168px;
    object-fit: cover;
    border-radius: 100%;
}

.producto p {
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: start;
}

/* servicios */
#servicios {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 112px 60px;
    justify-content: center;
    align-items: center;
    background-color: #009AAE;
    color: #fff;
}

.servicios-header {
    max-width: 738px;
}

.servicios-list {
    display: flex;
    width: 100%;
    max-width: 1080px;
    gap: 38px;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
}

.servicio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 240px;
    max-width: 340px;
    width: 100%;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.servicio-asesoramiento img{
    object-position: -23px;
}

.servicio-img {
    height: 168px;
    width: 168px;
    object-fit: cover;
    border-radius: 100%;

}

#cta {
    background-color: #009AAE;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffff;
    position: relative;
    width: 100%;
    padding: 112px 100px;
    overflow: hidden;
}

.cta-img {
    position: absolute;
    z-index: 0;
    width: 100%;
    object-fit: cover;
    padding: 0 100px;
    max-width: 1280px;
    height: 640px;
    box-sizing: content-box;

}

#cta::before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    /* negro con opacidad */
    z-index: 1;
    position: absolute;
    width: 100%;
    max-width: 1280px;
    height: 640px;
}


.cta-content {
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 640px;
    padding: 0 60px;
}




/* reviews */
#testimonios {
    background-color: #009AAE;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 112px 60px;
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.testimonios-header {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonios-main {
    overflow: hidden;
}

.testimonios-img {
    position: absolute;
    z-index: -1;
}

.testimonios-img.top {
    top: 0;
    right: 0;
}

.testimonios-img.bottom {
    bottom: -20px;
    left: 0;
    width: 100%;
}

.review-list {
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
    transition: transform 2s ease;
}

.review-card {
    background-color: #fffffff8;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 1px 1px 22px 8px rgba(82, 82, 82, 0.219);
    -webkit-box-shadow: 1px 1px 22px 8px rgba(95, 95, 95, 0.39);
    -moz-box-shadow: 1px 1px 22px 8px rgba(199, 199, 199, 0.39);
    align-items: center;
    width: 280px;
    padding: 60px 20px;
    min-height: 236px;
}

.review-card .review-text {
    font-size: 11px;
    text-align: center;
}

.review-card[data-state="active"] {
    min-height: 286px;
    width: 380px;
    padding: 64px 20px;
    background-color: #ffff;

}

.review-card[data-state="active"] .review-text {
    font-size: 16px
}

.review-list[data-index="0"] {
    transform: translate(30%);

}

.review-list[data-index="1"] {
    transform: translate(0%);

}

.review-list[data-index="2"] {
    transform: translate(-30%);
}


.dots-list {
    z-index: 2;

    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.dot-button {
    width: 30px;
    height: 30px;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background-color: rgba(219, 219, 219, 0.598);
}

[data-dot-state="active"] .dot {
    background-color: rgb(255, 255, 255);
}

/* contactar */
#contactar {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 112px 60px;
    max-width: 1280px;
    width: 100%;
}

.contactar-main {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

.contactar-info {
    display: flex;
    width: 314px;
    max-width: 100%;
    background-color: #009AAE;
    padding: 20px;
    gap: 24px;
    flex-direction: column;
    color: #fff;
    border-radius: 30px;

}

.info-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 17px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1
}

.form-row {
    width: 100%;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 0 0;
    min-width: 238px;
}

.field-label {
    width: 100%;
    color: #232323;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.form-input {
    display: flex;
    height: 48px;
    padding: 8px 0px;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(12, 10, 10, 0.15);
    background-color: rgba(255, 255, 255, 0);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    outline: none;
}

.form-input:focus {
    border-bottom-color: #4d372e;
}

.form-btn {
    width: min-content;

}

.message-field {
    width: 100%;
}

.message-input {
    flex: 1 0 0;
    color: rgba(12, 10, 10, 0.6);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 180px;
    padding: 12px 12px 12px 0px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(12, 10, 10, 0.15);
    background-color: rgba(255, 255, 255, 0);
    resize: vertical;
    outline: none;
}

.message-input:focus {
    border-bottom-color: #4d372e;
}

.message-input::placeholder {
    color: rgba(12, 10, 10, 0.6);
}

.contact-info-section {
    display: flex;
    width: 503px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}

.contact-info-container {
    display: flex;
    padding: 8px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* footer */
footer {
    background-color: #009AAE;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 100px;
    gap: 70px;
    justify-content: center;
    align-items: center;
}

footer a {
    color: #fff;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
}
.footer-links a{

}

.footer-links div,
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info {
    align-items: end;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


/* IMÁGENES */
.frame-hero {
    position: absolute;
    left: 0;
    z-index: -4;
}

#carpinteria {
    position: relative;
}


#productos {
    position: relative;
    background: url("./assets/productos.png");
    background-size: cover;
}

.prod-img-1 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
}

.prod-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;

}

.prod-img-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;

}

/* RESPONSIVE */
@media (max-width:768px) {

    .hero,
    #sobrenosotros,
    #valores,
    .carpinteria-content,
    #productos,
    #servicios,
    
    #testimonios,
    #contactar,
    footer {
        padding: 112px 20px;
    }
    .carpinteria-header{
        width: 100%;
    }
    .carpinteria-footer{
        width: 70%;
    }
    .img-carp-1{
        width: 60%;
        min-width: 300px;
    }
    .img-carp-2{
        width: 40%;
    }
    #cta{
        padding: 112px 20px;
    }
    .cta-content{
        padding: 0;
    }
    .review-card{
        width: 230px;
    }
    .review-card[data-state="active"]{
        width: 100vw;
    }
}