/* ==================================================
   DC MOBLES
   ESTILOS GENERALES
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #f5f3ef;
    color: #161616;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.menu-abierto {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    font: inherit;
}

section {
    scroll-margin-top: 76px;
}

.etiqueta {
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.etiqueta-clara {
    color: #bcb8b0;
}


/* ==================================================
   ENCABEZADO
================================================== */

.encabezado {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    width: 100%;
    height: 76px;
    align-items: center;
    justify-content: space-between;

    padding: 0 48px;

    background: rgba(245, 243, 239, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.marca {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu a {
    position: relative;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.menu a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    width: 0;
    height: 1px;
    margin: auto;

    background: #161616;

    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.boton-menu {
    display: none;

    background: transparent;
    color: #161616;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    cursor: pointer;
}


/* ==================================================
   PORTADA
================================================== */

.portada {
    position: relative;

    display: flex;
    min-height: 100vh;
    align-items: flex-end;

    overflow: hidden;

    padding: 150px 7vw 90px;

    background: #161616;
    color: #ffffff;
}

.portada-fondo {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.08)
        ),
        url("imagenes/portada/portada-principal.jpg");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #161616;
}

.portada-fondo::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.08);
}

.portada-contenido {
    position: relative;
    z-index: 2;

    width: min(920px, 100%);
}

.portada-etiqueta {
    margin-bottom: 24px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.portada h1 {
    max-width: 900px;
    margin-bottom: 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 102px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -3px;
}

.portada-descripcion {
    max-width: 560px;
    margin-bottom: 42px;

    font-size: 17px;
}

.enlace-descubrir {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 8px;

    border-bottom: 1px solid #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.enlace-descubrir span {
    transition: transform 0.3s ease;
}

.enlace-descubrir:hover span {
    transform: translateY(5px);
}


/* ==================================================
   INTRODUCCIÓN
================================================== */

.introduccion {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;

    padding: 130px 7vw;
}

.introduccion-numero,
.nosotros-numero {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.introduccion-contenido {
    max-width: 1100px;
}

.introduccion h2 {
    max-width: 950px;
    margin-bottom: 70px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -2px;
}

.introduccion-textos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;

    max-width: 900px;
    margin-left: auto;
}

.introduccion-textos p {
    font-size: 16px;
    line-height: 1.8;
}


/* ==================================================
   PROYECTOS
================================================== */

.proyectos {
    padding: 120px 0 0;

    background: #ffffff;
}

.proyectos-encabezado {
    padding: 0 7vw 80px;
}

.proyectos-encabezado h2 {
    max-width: 900px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -2px;
}

.proyecto {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(320px, 0.75fr);

    min-height: 680px;
}

.proyecto-invertido {
    grid-template-columns:
        minmax(320px, 0.75fr)
        minmax(0, 1.55fr);
}

.proyecto-invertido .carrusel {
    order: 2;
}

.proyecto-invertido .proyecto-informacion {
    order: 1;
}

.proyecto-informacion {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px 7vw;

    background: #efede8;
}

.proyecto:nth-of-type(even) .proyecto-informacion {
    background: #dedbd3;
}

.proyecto-numero {
    display: block;

    margin-bottom: 80px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.proyecto-categoria {
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.proyecto-informacion h3 {
    margin-bottom: 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.3vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
}

.proyecto-informacion > p:last-child {
    max-width: 430px;

    font-size: 16px;
    line-height: 1.8;
}


/* ==================================================
   CARRUSELES
================================================== */

.carrusel {
    position: relative;

    min-width: 0;
    min-height: 680px;

    overflow: hidden;

    background: #d8d5ce;

    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.carrusel-pista {
    display: flex;

    width: 100%;
    height: 100%;

    transform: translateX(0);

    transition:
        transform 0.75s
        cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

.carrusel-pista.sin-transicion {
    transition: none;
}

.carrusel-diapositiva {
    position: relative;

    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    height: 680px;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #d8d5ce;
}

.carrusel-diapositiva img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: scale(1);

    transition: opacity 0.5s ease;
}

.carrusel-diapositiva.activa img {
    transform: scale(1);
}

.carrusel::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.22),
            transparent 30%
        );
}


/* ==================================================
   FLECHAS MINIMALISTAS
================================================== */

.carrusel-flecha {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 54px;
    height: 90px;

    padding: 0;

    background: rgba(10, 10, 10, 0.08);
    color: rgba(255, 255, 255, 0.72);

    cursor: pointer;

    transform: translateY(-50%);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        opacity 0.3s ease;
}

.carrusel-flecha::before {
    content: "";

    position: absolute;
    top: 50%;

    width: 21px;
    height: 21px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.carrusel-anterior {
    left: 0;
}

.carrusel-anterior::before {
    left: 19px;

    transform:
        translateY(-50%)
        rotate(-135deg);
}

.carrusel-siguiente {
    right: 0;
}

.carrusel-siguiente::before {
    right: 19px;

    transform:
        translateY(-50%)
        rotate(45deg);
}

.carrusel-flecha:hover {
    background: rgba(10, 10, 10, 0.28);
    color: rgba(255, 255, 255, 0.98);
}

.carrusel-flecha:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: -4px;
}


/* ==================================================
   INDICADORES DEL CARRUSEL
================================================== */

.carrusel-indicadores {
    position: absolute;
    right: 28px;
    bottom: 27px;
    left: 28px;
    z-index: 5;

    display: flex;
    justify-content: center;
    gap: 8px;

    pointer-events: none;
}

.carrusel-indicador {
    position: relative;

    width: 42px;
    height: 2px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.38);
}

.carrusel-indicador::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.95);

    transform: scaleX(0);
    transform-origin: left center;
}

.carrusel-indicador.activo::after {
    transform: scaleX(1);
}

.carrusel-indicador.cargando::after {
    animation: indicadorCarga 10s linear forwards;
}

@keyframes indicadorCarga {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/* ==================================================
   NOSOTROS
================================================== */

.nosotros {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;

    padding: 140px 7vw;

    background: #151515;
    color: #ffffff;
}

.nosotros-contenido {
    max-width: 1100px;
}

.nosotros h2 {
    max-width: 930px;
    margin-bottom: 80px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -2px;
}

.nosotros-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;

    margin-bottom: 100px;
}

.nosotros-columnas p {
    color: #d3d3d3;
    line-height: 1.8;
}

.nosotros-columnas > div p + p {
    margin-top: 24px;
}

.nosotros-destacado {
    color: #ffffff !important;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.45 !important;
}

.estadisticas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #444444;
}

.estadistica {
    padding: 42px 32px 0 0;
}

.estadistica strong {
    display: block;

    margin-bottom: 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 400;
}

.estadistica span {
    color: #bcbcbc;

    font-size: 13px;
}


/* ==================================================
   PROCESO
================================================== */

.proceso {
    padding: 130px 7vw;
}

.proceso-encabezado {
    margin-bottom: 80px;
}

.proceso-encabezado h2 {
    max-width: 850px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -2px;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #b7b3ab;
}

.paso {
    min-height: 320px;

    padding: 34px 28px 20px 0;

    border-right: 1px solid #b7b3ab;
}

.paso:not(:first-child) {
    padding-left: 28px;
}

.paso:last-child {
    border-right: 0;
}

.paso span {
    display: block;

    margin-bottom: 70px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.paso h3 {
    margin-bottom: 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
}

.paso p {
    font-size: 14px;
    line-height: 1.8;
}


/* ==================================================
   CONTACTO
================================================== */

.contacto {
    display: flex;
    min-height: 660px;
    align-items: center;
    justify-content: center;

    padding: 110px 7vw;

    background: #dedbd3;

    text-align: center;
}

.contacto-contenido {
    max-width: 900px;
}

.contacto h2 {
    margin-bottom: 34px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -3px;
}

.contacto-contenido > p:not(.etiqueta) {
    max-width: 590px;
    margin: 0 auto 42px;

    font-size: 16px;
    line-height: 1.8;
}

.boton-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 28px;

    padding: 19px 25px;

    border: 1px solid #151515;

    background: transparent;
    color: #151515;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.boton-whatsapp:hover {
    background: #151515;
    color: #ffffff;
}


/* ==================================================
   PIE DE PÁGINA
================================================== */

.pie-pagina {
    padding: 80px 7vw 35px;

    background: #111111;
    color: #ffffff;
}

.pie-superior {
    display: flex;
    justify-content: space-between;
    gap: 60px;

    padding-bottom: 80px;
}

.pie-marca {
    max-width: 400px;
}

.pie-logo {
    margin-bottom: 25px;

    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
}

.pie-descripcion {
    color: #a8a8a8;
    line-height: 1.8;
}

.pie-redes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;

    margin-top: 28px;
}

.pie-redes a {
    color: #ffffff;

    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;

    transition: opacity 0.3s ease;
}

.pie-redes a:hover {
    opacity: 0.7;
}

.pie-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.pie-menu a {
    color: #c6c6c6;
    font-size: 13px;
}

.pie-menu a:hover {
    color: #ffffff;
}

.pie-inferior {
    display: flex;
    justify-content: space-between;

    padding-top: 28px;

    border-top: 1px solid #333333;

    color: #888888;
    font-size: 12px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1000px) {
    .encabezado {
        padding: 0 28px;
    }

    .introduccion,
    .nosotros {
        grid-template-columns: 60px 1fr;
    }

    .proyecto,
    .proyecto-invertido {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .proyecto-invertido .carrusel,
    .proyecto-invertido .proyecto-informacion {
        order: initial;
    }

    .carrusel {
        min-height: 650px;
    }

    .carrusel-diapositiva {
        height: 650px;
    }

    .proyecto-informacion {
        min-height: 460px;
    }

    .proyecto-numero {
        margin-bottom: 55px;
    }

    .pasos {
        grid-template-columns: repeat(2, 1fr);
    }

    .paso:nth-child(2) {
        border-right: 0;
    }

    .paso:nth-child(3),
    .paso:nth-child(4) {
        border-top: 1px solid #b7b3ab;
    }
}


/* ==================================================
   CELULAR
================================================== */

@media (max-width: 720px) {
    .encabezado {
        height: 68px;
        padding: 0 20px;
    }

    .marca {
        font-size: 16px;
    }

    .boton-menu {
        display: block;
        z-index: 1002;
    }

    .menu {
        position: fixed;
        inset: 0;
        z-index: 1001;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;

        background: #f5f3ef;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-15px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .menu.activo {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .menu a {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 34px;
        font-weight: 400;
        letter-spacing: -1px;
        text-transform: none;
    }

    .portada {
        min-height: 92vh;
        padding: 125px 22px 55px;
    }

    .portada h1 {
        font-size: clamp(47px, 14vw, 68px);
        letter-spacing: -2px;
    }

    .portada-descripcion {
        font-size: 15px;
    }

    .introduccion,
    .nosotros {
        display: block;
        padding: 90px 22px;
    }

    .introduccion-numero,
    .nosotros-numero {
        margin-bottom: 40px;
    }

    .introduccion h2,
    .nosotros h2 {
        margin-bottom: 50px;

        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .introduccion-textos,
    .nosotros-columnas {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-left: 0;
    }

    .proyectos {
        padding: 90px 0 0;
    }

    .proyectos-encabezado {
        padding: 0 22px 55px;
    }

    .proyectos-encabezado h2 {
        font-size: 43px;
        letter-spacing: -1.5px;
    }

    .carrusel {
        min-height: 510px;
    }

    .carrusel-diapositiva {
        height: 510px;
    }

    .carrusel-flecha {
        width: 46px;
        height: 76px;
    }

    .carrusel-flecha::before {
        width: 18px;
        height: 18px;
    }

    .carrusel-anterior::before {
        left: 16px;
    }

    .carrusel-siguiente::before {
        right: 16px;
    }

    .carrusel-indicadores {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .carrusel-indicador {
        width: 34px;
    }

    .proyecto-informacion {
        min-height: auto;

        padding: 65px 22px 80px;
    }

    .proyecto-numero {
        margin-bottom: 45px;
    }

    .proyecto-informacion h3 {
        font-size: 45px;
        letter-spacing: -1.5px;
    }

    .nosotros-columnas {
        margin-bottom: 70px;
    }

    .nosotros-destacado {
        font-size: 23px;
    }

    .estadisticas {
        grid-template-columns: 1fr;
    }

    .estadistica {
        padding: 32px 0;

        border-bottom: 1px solid #444444;
    }

    .estadistica:last-child {
        border-bottom: 0;
    }

    .proceso {
        padding: 90px 22px;
    }

    .proceso-encabezado {
        margin-bottom: 55px;
    }

    .proceso-encabezado h2 {
        font-size: 43px;
        letter-spacing: -1.5px;
    }

    .pasos {
        grid-template-columns: 1fr;
    }

    .paso,
    .paso:not(:first-child) {
        min-height: auto;

        padding: 32px 0 48px;

        border-right: 0;
        border-bottom: 1px solid #b7b3ab;
    }

    .paso:nth-child(3),
    .paso:nth-child(4) {
        border-top: 0;
    }

    .paso span {
        margin-bottom: 40px;
    }

    .contacto {
        min-height: 600px;

        padding: 90px 22px;
    }

    .contacto h2 {
        font-size: 49px;
        letter-spacing: -2px;
    }

    .boton-whatsapp {
        width: 100%;
        justify-content: space-between;
    }

    .pie-pagina {
        padding: 70px 22px 30px;
    }

    .pie-superior {
        flex-direction: column;

        padding-bottom: 60px;
    }

    .pie-menu {
        align-items: flex-start;
    }

    .pie-inferior {
        flex-direction: column;
        gap: 10px;
    }
}


/* ==================================================
   CELULARES PEQUEÑOS
================================================== */

@media (max-width: 420px) {
    .carrusel {
        min-height: 430px;
    }

    .carrusel-diapositiva {
        height: 430px;
    }

    .carrusel-flecha {
        width: 40px;
        height: 68px;
    }

    .carrusel-flecha::before {
        width: 16px;
        height: 16px;
    }

    .carrusel-anterior::before {
        left: 14px;
    }

    .carrusel-siguiente::before {
        right: 14px;
    }

    .carrusel-indicadores {
        bottom: 18px;
    }

    .carrusel-indicador {
        width: 28px;
    }
}


/* ==================================================
   REDUCIR MOVIMIENTO
================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .carrusel-pista,
    .carrusel-diapositiva img,
    .menu,
    .enlace-descubrir span {
        transition: none;
    }

    .carrusel-indicador.cargando::after {
        animation: none;
        transform: scaleX(1);
    }
}

/* ==================================================
   ORDEN DE PROYECTOS EN CELULAR
   Primero la descripción y después las fotografías
================================================== */

@media (max-width: 720px) {
    .proyecto .proyecto-informacion {
        order: 1;
    }

    .proyecto .carrusel {
        order: 2;
    }
}