/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #2B2118;
    background-color: #F4EBE3;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.etiqueta {
    color: #B86F32;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}


/* ========================================
   BOTONES
======================================== */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 14px 25px;

    border: none;
    border-radius: 7px;

    text-decoration: none;
    text-align: center;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s;
}

.boton-principal {
    color: white;
    background-color: #B86F32;
}

.boton-principal:hover {
    background-color: #925221;
    transform: translateY(-2px);
}

.boton-secundario {
    color: white;
    background-color: transparent;
    border: 2px solid white;
}

.boton-secundario:hover {
    color: #2B2118;
    background-color: white;
    transform: translateY(-2px);
}


/* ========================================
   HEADER
======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: rgba(244, 235, 227, 0.97);
    border-bottom: 1px solid rgba(43, 33, 24, 0.08);

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.header .contenedor {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 145px;
    height: auto;
    transition: 0.3s;
}

.logo:hover img {
    transform: scale(1.04);
}


/* ========================================
   NAVEGACIÓN
======================================== */

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
}

.nav a {
    position: relative;

    display: block;
    padding: 10px 0;

    color: #2B2118;

    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;

    transition: 0.3s;
}

.nav a:not(.nav-cotizar)::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    background-color: #B86F32;

    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav a:not(.nav-cotizar):hover {
    color: #B86F32;
}

.nav a:not(.nav-cotizar):hover::after {
    width: 100%;
}

.nav .nav-cotizar {
    padding: 11px 22px;

    color: white;
    background-color: #B86F32;

    border-radius: 7px;

    box-shadow: 0 5px 15px rgba(184, 111, 50, 0.22);
}

.nav .nav-cotizar:hover {
    color: white;
    background-color: #925221;

    transform: translateY(-2px);
}


/* ========================================
   BOTÓN MENÚ MÓVIL
======================================== */

.menu-boton {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    color: #2B2118;
    background-color: transparent;

    border: 1px solid rgba(43, 33, 24, 0.15);
    border-radius: 8px;

    font-size: 1.7rem;

    cursor: pointer;
}


/* ========================================
   INICIO
======================================== */

.inicio {
    min-height: calc(100vh - 82px);

    display: flex;
    align-items: center;

    padding: 80px 0;

    color: white;

    background-image:
        linear-gradient(
            rgba(24, 17, 12, 0.66),
            rgba(24, 17, 12, 0.66)
        ),
        url("/imagenes/Sofá\ principal\ y\ sillones\ individuales\ con\ cojines\ súper\ acolchados.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inicio-contenido {
    max-width: 650px;
}

.inicio .etiqueta {
    color: #E9A15E;
}

.inicio h1 {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1.03;

    margin-bottom: 22px;
}

.inicio-descripcion {
    max-width: 590px;

    font-size: 1.08rem;
    line-height: 1.7;

    margin-bottom: 30px;
}

.inicio-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ========================================
   ANIMACIÓN DEL INICIO
======================================== */

.inicio .etiqueta,
.inicio h1,
.inicio-descripcion,
.inicio-botones {
    opacity: 0;
}

.inicio.animar .etiqueta {
    animation: entradaInicio 0.7s ease forwards;
}

.inicio.animar h1 {
    animation: entradaInicio 0.8s ease 0.15s forwards;
}

.inicio.animar .inicio-descripcion {
    animation: entradaInicio 0.8s ease 0.30s forwards;
}

.inicio.animar .inicio-botones {
    animation: entradaInicio 0.8s ease 0.45s forwards;
}

@keyframes entradaInicio {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   ANIMACIONES AL HACER SCROLL
======================================== */

.animacion-scroll {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.animacion-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   NOSOTROS
======================================== */

.nosotros {
    padding: 100px 0;
}

.nosotros .contenedor {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 70px;

    align-items: center;
}

.nosotros-imagen img {
    width: 100%;
    height: 450px;

    object-fit: cover;

    border-radius: 18px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.15);
}

.nosotros h2,
.titulo-seccion h2,
.contacto h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;

    margin-bottom: 20px;
}

.nosotros-contenido > p:not(.etiqueta) {
    color: #655A51;

    line-height: 1.8;

    margin-bottom: 17px;
}

.nosotros-contenido .boton {
    margin-top: 8px;
}


/* ========================================
   TÍTULOS
======================================== */

.titulo-seccion {
    max-width: 680px;

    margin: 0 auto 45px;

    text-align: center;
}

.titulo-seccion > p:not(.etiqueta) {
    color: #655A51;
    line-height: 1.7;
}


/* ========================================
   SERVICIOS
======================================== */

.servicios {
    padding: 100px 0;

    background-color: #FFFAF6;
}

.servicios-lista {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.servicio {
    padding: 36px 28px;

    background-color: white;

    border: 1px solid #EAD9CA;
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        box-shadow 0.3s;
}

.servicio.visible:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.11);
}

.servicio span {
    display: block;

    color: #B86F32;

    font-size: 2rem;
    font-weight: 800;
}

.servicio h3 {
    margin: 18px 0 12px;

    font-size: 1.3rem;
}

.servicio p {
    color: #655A51;

    line-height: 1.7;
}


/* ========================================
   TRABAJOS
======================================== */

.trabajos {
    padding: 100px 0;
}

.galeria {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.galeria figure {
    position: relative;

    overflow: hidden;

    border-radius: 14px;

    background-color: #DDD;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);
}

.galeria img {
    width: 100%;
    height: 310px;

    object-fit: cover;

    transition: transform 0.4s;
}

.galeria figure:hover img {
    transform: scale(1.05);
}

.galeria figcaption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 45px 18px 18px;

    color: white;

    font-weight: 700;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.88)
        );
}


/* ========================================
   CONTACTO
======================================== */

.contacto {
    padding: 100px 0;

    color: white;

    background-color: #2B2118;
}

.contacto .contenedor {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 70px;

    align-items: center;
}

.contacto-informacion > p:not(.etiqueta) {
    color: #DED4CC;

    line-height: 1.7;

    margin-bottom: 28px;
}

.datos-contacto {
    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.15);
}

.datos-contacto p {
    margin-bottom: 12px;
}


/* ========================================
   REDES SOCIALES
======================================== */

.redes-sociales {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}

.red-social {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 11px 17px;

    color: white;

    text-decoration: none;

    border:
        1px solid rgba(255, 255, 255, 0.20);

    border-radius: 8px;

    transition: 0.3s;
}

.red-social svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}

.red-social.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;

    transform: translateY(-3px);
}

.red-social.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;

    transform: translateY(-3px);
}


/* ========================================
   FORMULARIO
======================================== */

.formulario {
    width: 100%;

    padding: 36px;

    color: #2B2118;

    background-color: white;

    border-radius: 15px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25);
}

.formulario h3 {
    font-size: 1.6rem;

    margin-bottom: 7px;
}

.formulario > p {
    color: #6C625B;

    line-height: 1.6;

    margin-bottom: 24px;
}

.formulario label {
    display: block;

    margin: 17px 0 7px;

    font-weight: 600;
}

.formulario input,
.formulario textarea {
    width: 100%;

    padding: 13px 14px;

    color: #2B2118;

    background-color: #FAFAFA;

    border: 1px solid #D4CCC5;
    border-radius: 7px;

    outline: none;

    transition: 0.3s;
}

.formulario textarea {
    min-height: 125px;

    resize: vertical;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: #B86F32;

    box-shadow:
        0 0 0 3px rgba(184, 111, 50, 0.12);
}


/* ========================================
   BOTÓN WHATSAPP DEL FORMULARIO
======================================== */

.boton-whatsapp {
    width: 100%;

    margin-top: 20px;

    color: white;

    background-color: #25D366;
}

.boton-whatsapp svg {
    width: 24px;
    height: 24px;

    fill: white;
}

.boton-whatsapp:hover {
    background-color: #1EAE54;

    transform: translateY(-2px);
}


/* ========================================
   WHATSAPP FLOTANTE
======================================== */

.whatsapp-flotante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 18px;

    color: white;

    background-color: #25D366;

    border-radius: 50px;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition: 0.3s;

    animation:
        entradaWhatsApp 0.8s ease 1s both;
}

.whatsapp-flotante svg {
    width: 27px;
    height: 27px;

    fill: white;
}

.whatsapp-flotante:hover {
    background-color: #1EAE54;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30);
}

@keyframes entradaWhatsApp {

    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ========================================
   FOOTER
======================================== */

.footer {
    padding: 45px 0;

    color: #D7CEC6;

    background-color: #1D1712;

    text-align: center;
}

.footer img {
    width: 120px;
    height: auto;

    margin: 0 auto 18px;
}

.footer p {
    margin: 10px 0;

    font-size: 0.9rem;
}

.footer-redes {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin: 18px 0;
}

.footer-redes a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    border:
        1px solid rgba(255, 255, 255, 0.20);

    border-radius: 50%;

    transition: 0.3s;
}

.footer-redes svg {
    width: 21px;
    height: 21px;

    fill: currentColor;
}

.footer-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;

    transform: translateY(-3px);
}

.footer-whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;

    transform: translateY(-3px);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .servicios-lista {
        grid-template-columns: 1fr;
    }

    .galeria {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ========================================
   TABLET PEQUEÑA Y CELULAR
======================================== */

@media (max-width: 768px) {

    html {
        scroll-padding-top: 70px;
    }

    .header .contenedor {
        min-height: 70px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 110px;
    }

    .menu-boton {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
    }

    .nav.activo {
        display: block;
    }

    .nav ul {
        flex-direction: column;

        gap: 0;

        padding: 10px 0 15px;
    }

    .nav li {
        width: 100%;

        text-align: center;
    }

    .nav a {
        display: block;

        width: 100%;

        padding: 11px;
    }

    .nav a:not(.nav-cotizar)::after {
        display: none;
    }

    .nav .nav-cotizar {
        width: auto;

        margin: 8px 20px;

        padding: 12px;
    }


    /* INICIO */

    .inicio {
        min-height: 560px;

        padding: 65px 0;

        text-align: center;

        background-position: center;
    }

    .inicio-contenido {
        max-width: 600px;

        margin: 0 auto;
    }

    .inicio h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);

        line-height: 1.08;

        margin-bottom: 20px;
    }

    .inicio-descripcion {
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        font-size: 1rem;

        line-height: 1.6;
    }

    .inicio-botones {
        justify-content: center;
    }


    /* NOSOTROS */

    .nosotros {
        padding: 70px 0;
    }

    .nosotros .contenedor {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .nosotros-imagen img {
        height: clamp(260px, 60vw, 380px);
    }

    .nosotros-contenido {
        text-align: center;
    }


    /* SERVICIOS */

    .servicios {
        padding: 70px 0;
    }


    /* TRABAJOS */

    .trabajos {
        padding: 70px 0;
    }

    .galeria img {
        height: 260px;
    }


    /* CONTACTO */

    .contacto {
        padding: 70px 0;
    }

    .contacto .contenedor {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .contacto-informacion {
        text-align: center;
    }

    .redes-sociales {
        justify-content: center;
    }
}


/* ========================================
   CELULARES
======================================== */

@media (max-width: 480px) {

    .contenedor {
        width: 92%;
    }


    /* HEADER */

    .logo img {
        width: 105px;
    }


    /* INICIO */

    .inicio {
        min-height: 580px;

        padding: 50px 0;

        background-position: center;
    }

    .inicio-contenido {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;
    }

    .inicio .etiqueta {
        font-size: 0.75rem;

        letter-spacing: 2.5px;

        margin-bottom: 14px;
    }

    .inicio h1 {
        font-size: 2.25rem;

        line-height: 1.08;

        margin-bottom: 18px;
    }

    .inicio-descripcion {
        width: 100%;
        max-width: 340px;

        margin:
            0 auto 25px;

        font-size: 1rem;

        line-height: 1.55;
    }

    .inicio-botones {
        flex-direction: column;

        gap: 12px;
    }

    .inicio-botones .boton {
        width: 100%;

        padding: 14px 20px;
    }


    /* NOSOTROS */

    .nosotros-imagen img {
        height: 250px;
    }


    /* SERVICIOS */

    .servicio {
        padding: 30px 22px;
    }


    /* TRABAJOS */

    .galeria {
        grid-template-columns: 1fr;
    }

    .galeria img {
        height: 270px;
    }


    /* REDES SOCIALES */

    .redes-sociales {
        flex-direction: column;
    }

    .red-social {
        width: 100%;
    }


    /* FORMULARIO */

    .formulario {
        padding: 28px 20px;
    }


    /* WHATSAPP FLOTANTE */

    .whatsapp-flotante {
        right: 15px;
        bottom: 15px;

        width: 58px;
        height: 58px;

        padding: 0;

        border-radius: 50%;
    }

    .whatsapp-flotante svg {
        width: 31px;
        height: 31px;
    }

    .whatsapp-flotante span {
        display: none;
    }
}


/* ========================================
   CELULARES PEQUEÑOS
======================================== */

@media (max-width: 360px) {

    .inicio {
        min-height: 550px;
    }

    .inicio h1 {
        font-size: 2rem;
    }

    .inicio-descripcion {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .galeria img {
        height: 230px;
    }

    .formulario {
        padding: 24px 16px;
    }
}


/* ========================================
   REDUCIR ANIMACIONES
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .inicio .etiqueta,
    .inicio h1,
    .inicio-descripcion,
    .inicio-botones,
    .animacion-scroll,
    .whatsapp-flotante {
        opacity: 1;
        transform: none;

        animation: none;
        transition: none;
    }
}