* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #042a39;
    --primari-gradiente: #19475a;
    --secundary: #e28953;
    --secundary-light: #f5b895;
    --secundary-lightest: #fce8dc;
    --tercero: #fcf0ea;
    --tercer-trasparente: #fcf0ead0;

    --primary-transparente: rgba(4, 42, 57, 0.479);
    --primary-dark: #071920;
}

body {
    background-color: #0c3747;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.bold{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: bold;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh; /* asegura que no se pueda hacer scroll */
}

html, body {
    overflow-x: hidden;
}

@keyframes flotanteMovimiento {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.btn-flotante{
    position: fixed;
    right: 15PX;
    bottom: 15px;
    background-color: var(--tercero);
    padding: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px var(--primary-transparente);
    z-index: 50;
    animation: flotanteMovimiento 2s infinite ease-in-out;
}
.btn-flotante a i{
    font-size: 50px;
    color: rgb(0, 128, 0);
}
.btn-flotante a i:hover{
    font-size: 53px;
    color: var(--tercero);
    transition: 0.3s;
}

.btn-flotante:hover{
   padding: 37px;
   background-color: rgb(0, 128, 0);
   transition: 0.3s;
}
/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary);
    color: var(--tercero);
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 40px;
}

header img {
    width: 100px;
    height: auto;
    padding: 0;
}

.nav {
    margin-right: 0;
    margin: auto;
}

a {
    text-decoration: none;
}

.nav a, .cierre a{
    padding: 8px 12px;
    text-transform: uppercase;
    border-radius: 15px;
    border: solid 3px var(--tercero);
    background: none;
    font-size: 13px;
    color: var(--tercero);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 5px;
}

.nav .active {
    background: none;
    border: solid 3px var(--secundary);
    color: var(--secundary);
}

.nav a:hover, .cierre a:hover {
    background-color: var(--secundary);
    border-color: var(--secundary);
    color: var(--tercero);
    box-shadow: 0 4px 8px var(--primary-transparente);
    transform: translateY(-3px);
}

/* ===== CARRUSEL ===== */
.carrusel {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.carrusel-container {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carrusel-item {
    width: 25%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: solid 3px var(--secundary);
}

/* Fondos del carrusel */
.carrusel-item:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), #19475a;
}

.carrusel-item:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), #2c5c72;
}

.carrusel-item:nth-child(3) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), #3e718a;
}

.carrusel-item:nth-child(4) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), #5086a2;
}

.carrusel-text {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(4, 42, 57, 0.7);
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
}

.carrusel-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secundary);
}

.carrusel-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
}

/* Controles del carrusel */
.carrusel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--secundary);
}

.carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 42, 57, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: solid 3px var(--tercero);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.carrusel-control:hover {
    background-color: var(--secundary);
}

.carrusel-control.prev {
    left: 20px;
}

.carrusel-control.next {
    right: 20px;
}

.container-about,
.container-contact,
.container-countertops,
.container-best-sellers {
    position: relative;
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 40px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    margin: 60px 0;
    background: linear-gradient(135deg, var(--secundary-lightest) 0%, #ffffff 50%, var(--tercero) 100%);
    box-shadow: 0 15px 40px rgba(4, 42, 57, 0.1);
    overflow: hidden;
    width: 85%;
    margin-left: auto;
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 25px;
    border-top-left-radius: 25px;
    border-left: 8px solid var(--secundary);
}


.container-about samp{
    font-size: 2.8rem;
    color: var(--secundary);
    font-weight: 700;
    letter-spacing: 2px;
}


/* Patrón de fondo */
.container-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--secundary-light) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, var(--secundary-light) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.03;
    z-index: 1;
}

/* Imágenes */
.container-about img{
    width: 350px;
    height: 350px;
    border-radius: 50%;
    margin: 0 40px;
    object-fit: cover;
    border: 8px solid var(--secundary-lightest);
    box-shadow: 0 10px 30px rgba(226, 137, 83, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.container-about img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(226, 137, 83, 0.3);
}

/* Texto y contexto */
.contexto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: 65%;
    padding: 20px;
    position: relative;
    z-index: 2;
}


.container .contexto p {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.7;
    font-weight: 400;
}


/* ===== SECCIÓN DE VALORES ===== */
.values-section {
    padding: 80px 20px;
    background: var(--tercero);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--primari-gradiente);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(4, 42, 57, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 42, 57, 0.15);
    border-color: var(--secundary);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secundary) 0%, var(--secundary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--tercero);
    font-size: 2rem;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: var(--primari-gradiente);
    line-height: 1.6;
    font-size: 1rem;
}

.logo-nav{
    display: none;
} 


/* Clases de animación */
.slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.reveal-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.reveal-from-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.reveal-from-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-from-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

.reveal-from-bottom.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateX(0);
}

.container-about{
    animation: fadeInUp 0.8s ease-out;
}

/* materiales*/

.materiales{
    padding: 30px 0;
    background: linear-gradient(180deg, var(--tercer-trasparente) 0%, var(--tercero));
}

.materiales h1{
    font-size: 2.8rem;
    color: var(--primary);
    text-align: center;
    border-bottom: solid 3px var(--secundary);
    border-radius: 15px;
    width: 65%;
    margin:auto;
}
.materiales h2{
    color: var(--tercero);
}

.materiales p{
    color: var(--tercero);
}

.project{
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.conten_project{
    margin-top: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border-bottom: solid 4px var(--secundary);
}

.inverso{
    flex-direction: row-reverse;
}

.conten_project::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-transparente);
    background: linear-gradient(130deg, var(--primary-transparente)50%, var(--primary) 30%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
    border-radius: 15px;
}

.h2_proyecto h2{
    text-align: left;
}

.inverso::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-transparente);
    background: linear-gradient(130deg, var(--primary)50%, var(--primary-transparente) 30%);
    clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);

    z-index: -1;
    border-radius: 15px;
}

.conten_project img{
    width: 55%;
    height: 300px;
    border: solid 4px var(--secundary);
    border-radius: 15px;
    margin: 20px 70px;
}
.conten_project .contexto p{
    text-align: start;
}
.conten_project .contexto{
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.inverso .contexto p{
    text-align: end;
}
.inverso .contexto{
    align-items: end;
}



/*servicios */


.servicios{
    margin-top: 50px;
    display: flex;
    padding: 80px 0;
    flex-direction: column;
    gap: 40px;
    background: linear-gradient(135deg,var(--primari-gradiente) 0%, rgba(0, 14, 20, 0.884) 100%);
    box-shadow: 0 15px 40px rgba(4, 42, 57, 0.1);
}

.servicios h1{
    font-size: 2.8rem;
    color: var(--tercero);
    text-align: center;
    border-bottom: solid 3px var(--secundary);
    border-radius: 15px;
    width: 26%;
    margin-left: 0;
    margin-right: 0;
    margin:auto;
}


.descripcion{
    display: none;
    position: absolute;
    padding: 20px 15px;
    color: white;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(rgba(3, 36, 49, 0.829), rgba(4, 42, 57, 0.801));
    backdrop-filter: blur(0.3px);
    
    /* CUBRIR LA IMAGEN */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* CENTRAR CONTENIDO */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 10px;
    z-index: -1;
}

.descripcion p{
    width: 70%;
}

.card:hover .descripcion{
    display: flex;
    opacity: 1;
    z-index: 1;   
}

.card-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.card img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.card{
    background-color: var(--tercero);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--secundary);
    position: relative;
    overflow: hidden;
}   

.card h2{
    padding: 20px 0;
    color: var(--primary);
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* cierre */

.contendor-cierre{
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: start;
    flex-direction: row;
    background: linear-gradient(100deg, var(--primari-gradiente)0%, var(--primary)100%);
}

.cierre p{
    color:var(--tercero);
    font-size: 16px; 
}

.cierre img{
    width: 35%;
    height: 300px;
    border-radius: 15px;
    margin: 0 40px;
    object-fit: cover;
    border: 4px solid var(--secundary-lightest);
    box-shadow: 0 10px 30px rgba(226, 137, 83, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.cierre h2{
    margin-bottom: 0;
}
.cierre .contexto{
    gap: 0;
    width: 100%;
}
/* ===== MENÚ MÓVIL ===== */
.hmabu {
    display: none;
}


.error{
    position: static;
}


/* ===== FOOTER ===== */
footer {
    border-top: solid 3px var(--secundary);
    background-color: var(--primary);
    color: var(--tercero);
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info h1,
.footer-nav h1,
.contact h1 {
    color: var(--secundary);
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--tercero);
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secundary-light);
    transform: translateX(5px);
}

.redes {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.redes a i {
    font-size: 28px;
    color: var(--tercero);
    transition: all 0.3s ease;
}

.redes a i:hover {
    color: var(--secundary-light);
    transform: translateY(-5px);
}
.telefono{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    margin-bottom: 10px;
}
.horario{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}
.idioma{
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.idioma i, .horario i, .telefono i {
    font-size: 28px;
}

.idioma p {
    color: var(--tercero);
    font-size: 14px;
}

.cierre a{
    margin-top: 20px;
}
.cierre h2{
    color: var(--secundary);
    margin-bottom: 20px;
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .container {
        width: 100%;
    }

    
    .horario, .telefono{
        justify-content: center;
    }
    
    .servicios h1, .materiales h1{
        width: 300px;
    }
    .idioma{
        justify-content: center;
    }

    .logo-nav{
        display: block;
        width: 50%;
    }

    .logo {
        width: 30px;
    }

    header {
        flex-direction: row;
    }

    /* Menú hamburguesa */
    .hmabu {
        border: solid 2px var(--tercero);
        width: auto;
        border-radius: 7px;
        display: flex;
        flex-direction: column;
        padding: 7px;
        z-index: 6;
        overflow: hidden;
    }

    .bar {
        width: 25px;
        height: 1px;
        background-color: var(--tercero);
        margin: 3px 0;
    }

    .nav {
        width: 60%;
        height: 100vh;
        top: 0;
        right: -100%;
        padding: 20px 0;
        position: fixed;
        display: flex;
        flex-direction: column;
        background-color: var(--primari-gradiente);
        z-index: 5;
        align-items: center;
        gap: 20px;
    }

    .nav a{
        width: 75%;
    }

    /* Secciones de contenido */
    .container-about{
        flex-direction: column;
        padding: 60px 30px;
        width: 100%;
    }

    .contexto {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .contexto p {
        text-align: center;
    }

    .container-about img{
        margin: 0 0 30px 0;
        width: 200px;
        height: 200px;
    }

    .cuadrado-izquierdo {
        display: none;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    /* Nuevas secciones responsive */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .values-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-number {
        font-size: 3rem;
    }

    footer .contact .redes{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
     .nav.active {
        right: 0;
    }

    .hmabu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hmabu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hmabu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    header p {
        text-align: left;
    }

    .container {
        display: flex;
        align-items: center;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

@media (max-width: 775px) {
    .conten_project{
        flex-direction: column;
        padding: 0 20px;
    } 

    
    .conten_project .contexto{
        align-items: center;
    }

    .conten_project img{
        width: 100%;
        height: 300px;
        margin: 20px 0;
    }

    .conten_project h2, .conten_project .contexto p{
        text-align: center;
    }

    .materiales{
        padding: 20px;
    }

    

    .conten_project::before{
        clip-path: polygon(0 0, 40% 0, 100% 30%, 100% 100%, 0 100%);
    }
    .inverso::before{
        clip-path: polygon(0 30%, 60% 0, 100% 0, 100% 100%, 0 100%);
    }
    
}

/* Móvil pequeño (480px) */
@media (max-width: 480px) {
    .stat-number {
        font-size: 2.2rem;
    }

    .cierre img{
        width: 95%;
        height: auto;
    }

    .values-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
    
    .contendor-cierre{
        flex-direction: column;
    }
    .stat-label {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    header{
        padding: 0 20px 0 0;
    } 
    
    .logo{
        padding: 20px 20px 0 20px;
    }
    header img{
        width: 50px
    }

    header p{
        font-size: 25px;
    }
}