/* =========================================================
   DECONOVA S&D
   WEB CORPORATIVA
   ESTILOS PRINCIPALES
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --black: #171717;
    --black-soft: #242424;

    --white: #ffffff;

    --cream: #f6f4ef;
    --beige: #ebe5db;

    --gray: #6f6b64;
    --gray-light: #a19c94;

    --line: #dedbd4;

    --wood: #a77a49;
    --wood-light: #c3a078;

    --serif: "Playfair Display", Georgia, serif;

    --sans: "DM Sans", Arial, sans-serif;

    --container: 1180px;

    --radius: 2px;

    --transition: 0.3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}


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


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


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   UTILIDADES
   ========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--container)
    );

    margin-inline: auto;
}


.section {
    padding: 110px 0;
}


.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wood);
    margin-bottom: 18px;
}


.eyebrow.dark {
    color: var(--wood);
}


.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 65px;
}


.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.05;
}


.heading-description {
    max-width: 400px;
    color: var(--gray);
}


.section-heading.light h2 {
    color: var(--white);
}


.section-heading.light .heading-description {
    color: #b7b3ad;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(23, 23, 23, 0.96);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);
}


.header-container {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}


.brand-name {
    color: var(--white);

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 2px;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}


.nav-link {
    position: relative;

    color: #ddd9d2;

    font-size: 13px;
    font-weight: 500;

    transition: var(--transition);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--wood);

    transition: var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--white);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.nav-button {
    padding: 11px 18px;

    border: 1px solid var(--wood);

    color: var(--white);

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}


.nav-button:hover {
    background: var(--wood);
}


.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    width: 38px;
    height: 38px;

    flex-direction: column;
    justify-content: center;
    gap: 5px;
}


.menu-toggle span {
    display: block;

    width: 24px;
    height: 1px;

    background: var(--white);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            110deg,
            #171717 0%,
            #252321 55%,
            #4a3827 100%
        );

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: 100px;

    border-radius: 50%;

    border: 1px solid rgba(195,160,120,0.18);

    box-shadow:
        0 0 0 100px rgba(195,160,120,0.02),
        0 0 0 200px rgba(195,160,120,0.02);
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(23,23,23,0.95),
            rgba(23,23,23,0.5),
            rgba(23,23,23,0.1)
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;

    padding-top: 82px;
}


.hero h1 {
    color: var(--white);

    font-family: var(--serif);

    font-size: clamp(
        52px,
        8vw,
        100px
    );

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -2px;

    margin-bottom: 30px;
}


.hero h1 span {
    display: block;

    color: var(--wood-light);
}


.hero-description {
    max-width: 570px;

    color: #d5d1ca;

    font-size: 17px;

    margin-bottom: 40px;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 52px;

    padding: 0 26px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: var(--transition);
}


.btn-primary {
    background: var(--wood);
    color: var(--white);
}


.btn-primary:hover {
    background: var(--wood-light);
}


.btn-outline {
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--white);
}


.btn-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}


.btn-dark {
    background: var(--black);
    color: var(--white);

    border: 1px solid var(--black);
}


.btn-dark:hover {
    background: var(--wood);
    border-color: var(--wood);
}


.btn-light {
    background: var(--white);
    color: var(--black);
}


.btn-light:hover {
    background: var(--wood);
    color: var(--white);
}


/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.scroll-indicator {
    position: absolute;

    bottom: 35px;
    left: 50%;

    transform: translateX(-50%);

    width: 22px;
    height: 35px;

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: 20px;
}


.scroll-indicator span {
    position: absolute;

    top: 7px;
    left: 50%;

    width: 3px;
    height: 7px;

    transform: translateX(-50%);

    background: var(--white);

    border-radius: 5px;

    animation: scrollDown 1.8s infinite;
}


@keyframes scrollDown {

    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    background: var(--cream);
}


.intro-grid {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 80px;
}


.section-label {
    display: flex;

    flex-direction: column;

    gap: 12px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--gray);
}


.section-label span:first-child {
    color: var(--wood);

    font-family: var(--serif);

    font-size: 28px;

    font-weight: 500;

    letter-spacing: 0;
}


.intro-content {
    max-width: 780px;
}


.intro-content h2 {
    max-width: 750px;

    font-family: var(--serif);

    font-size: clamp(40px, 6vw, 72px);

    font-weight: 500;

    line-height: 1.05;

    margin-bottom: 35px;
}


.intro-content h2 em {
    color: var(--wood);
    font-style: normal;
}


.intro-content p:not(.eyebrow) {
    max-width: 650px;

    color: var(--gray);

    margin-bottom: 18px;

    font-size: 17px;
}


.text-link {
    display: inline-flex;

    gap: 12px;

    margin-top: 18px;

    color: var(--black);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    border-bottom: 1px solid var(--wood);

    padding-bottom: 7px;
}


.text-link span {
    color: var(--wood);

    transition: var(--transition);
}


.text-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   ABOUT
   ========================================================= */

.section-dark {
    background: var(--black);
    color: var(--white);
}


.about-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    border-top: 1px solid rgba(255,255,255,0.15);
}

.about-card {
    min-height: 280px;

    padding: 35px 28px;

    border-right:
        1px solid rgba(255,255,255,0.15);
}


.about-card:last-child {
    border-right: 0;
}


.card-number {
    display: block;

    margin-bottom: 65px;

    color: var(--wood-light);

    font-family: var(--serif);

    font-size: 28px;
}


.about-card h3 {
    margin-bottom: 18px;

    font-family: var(--serif);

    font-size: 27px;

    font-weight: 500;
}


.about-card p {
    color: #aaa69f;

    font-size: 14px;

    line-height: 1.8;
}


.values {
    margin-top: 90px;
}


.values-list {
    display: flex;

    flex-wrap: wrap;

    gap: 12px 35px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,0.15);
}


.values-list span {
    font-family: var(--serif);

    font-size: 24px;

    color: #d8d4ce;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.products {
    background: var(--white);
}


.slider-controls {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}


.slider-controls p {
    color: var(--gray);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.slider-controls > div {
    display: flex;

    gap: 8px;
}


.slider-button {
    width: 48px;
    height: 48px;

    border: 1px solid var(--line);

    background: var(--white);

    color: var(--black);

    transition: var(--transition);
}


.slider-button:hover {
    background: var(--black);
    color: var(--white);
}


.products-slider {
    display: flex;

    gap: 24px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding-bottom: 20px;

    cursor: grab;
}


.products-slider::-webkit-scrollbar {
    display: none;
}


.products-slider.dragging {
    cursor: grabbing;

    scroll-behavior: auto;
}


.product-card {
    flex: 0 0 360px;

    background: var(--cream);

    overflow: hidden;
}


.product-image {
    position: relative;

    height: 350px;

    background:
        linear-gradient(
            135deg,
            #ded8ce,
            #9c8973
        );

    overflow: hidden;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


.product-card:hover
.product-image img {
    transform: scale(1.04);
}


/*
   Mientras no existan las fotografías reales,
   este elemento funciona como referencia visual.
*/

/* .image-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,0.8);

    font-family: var(--serif);

    font-size: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(23,23,23,0.35),
            rgba(167,122,73,0.5)
        );
} */


.product-content {
    padding: 30px;
}


.product-number {
    color: var(--wood);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


.product-content h3 {
    margin: 12px 0 15px;

    font-family: var(--serif);

    font-size: 30px;

    font-weight: 500;
}


.product-content p {
    color: var(--gray);

    font-size: 14px;

    margin-bottom: 20px;
}


.product-content ul {
    list-style: none;
}


.product-content li {
    padding: 7px 0;

    border-top: 1px solid var(--line);

    color: var(--gray);

    font-size: 12px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    background: var(--wood);

    padding: 85px 0;
}


.cta-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.cta h2 {
    max-width: 750px;

    color: var(--white);

    font-family: var(--serif);

    font-size: clamp(35px, 5vw, 58px);

    line-height: 1.05;

    font-weight: 500;
}


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

.contact {
    background: var(--cream);
}


.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.8fr);

    gap: 90px;
}


.contact-form {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--line);

    background: var(--white);

    padding: 15px 16px;

    outline: none;

    color: var(--black);

    resize: vertical;

    transition: var(--transition);
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--wood);
}


.form-message {
    min-height: 20px;

    color: var(--wood);

    font-size: 13px;
}


.contact-info {
    display: flex;

    flex-direction: column;

    gap: 30px;
}


.contact-item {
    display: flex;

    gap: 18px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--line);
}


.contact-icon {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border: 1px solid var(--wood);

    color: var(--wood);

    font-size: 17px;
}

.contact-icon svg {
        width: 21px;
    height: 21px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

}


.contact-item div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.btn-wpp {
    text-transform: none;
}

.contact-item div > span {
    color: var(--gray);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.contact-item a,
.contact-item p {
    font-size: 14px;
}


.contact-item a:hover {
    color: var(--wood);
}


.social-section {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.social-section > span {
    color: var(--gray);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.social-links a {
    border: 1px solid var(--line);

    padding: 10px 15px;

    font-size: 12px;

    transition: var(--transition);
}


.social-links a:hover {
    background: var(--black);

    border-color: var(--black);

    color: var(--white);
}


.map-container {
    width: 100%;

    min-height: 260px;
}


.map-placeholder {
    width: 100%;
    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #ddd8cf;

    color: var(--black);
}


.map-placeholder span {
    font-family: var(--serif);

    font-size: 20px;
}


.map-placeholder small {
    color: var(--gray);

    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--black);

    color: var(--white);
}


.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1.5fr
        1fr;

    gap: 60px;

    padding: 75px 0;
}


.footer-brand img {
    width: 48px;

    margin-bottom: 18px;
}


.footer-brand p {
    max-width: 230px;

    color: #aaa69f;

    font-family: var(--serif);

    font-size: 20px;

    line-height: 1.3;
}


.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}


.footer-column h3 {
    margin-bottom: 10px;

    color: var(--white);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.footer-column a,
.footer-column span {
    color: #aaa69f;

    font-size: 13px;

    transition: var(--transition);
}


.footer-column a:hover {
    color: var(--white);
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 22px 0;
}


.footer-bottom p {
    color: #77736c;

    font-size: 11px;

    text-align: center;
}

/* =========================================================
   TARJETAS DE PRODUCTOS - INTERACCIÓN
   ========================================================= */

.product-card {
    position: relative;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);
}


/*
   Indicador "Ver proyectos"
   que aparece sobre la fotografía.
*/

.product-view {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 20px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 12px 15px;

    background: rgba(23, 23, 23, 0.88);

    color: var(--white);

    opacity: 0;

    transform: translateY(10px);

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

    backdrop-filter: blur(5px);
}


.product-card:hover .product-view {
    opacity: 1;

    transform: translateY(0);
}


.product-view span {
    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.product-view strong {
    color: var(--wood-light);

    font-size: 18px;

    font-weight: 400;
}


/* =========================================================
   MODAL DE PRODUCTOS
   ========================================================= */

.product-modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 35px;

    opacity: 0;

    visibility: hidden;

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


.product-modal.open {
    opacity: 1;

    visibility: visible;
}


/*
   Fondo oscuro detrás de la galería.
*/

.product-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(10, 10, 10, 0.90);

    backdrop-filter: blur(8px);
}


/*
   Contenedor principal del modal.
*/

.product-modal-content {
    position: relative;

    z-index: 2;

    width: min(
        1100px,
        100%
    );

    max-height: 90vh;

    overflow-y: auto;

    background: var(--cream);

    padding: 45px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    transform:
        translateY(20px)
        scale(0.98);

    transition:
        transform 0.3s ease;
}


.product-modal.open
.product-modal-content {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 5;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);

    background: var(--white);

    color: var(--black);

    font-size: 30px;

    font-weight: 300;

    line-height: 1;

    transition: var(--transition);
}


.modal-close:hover {
    background: var(--black);

    border-color: var(--black);

    color: var(--white);
}


/* =========================================================
   ENCABEZADO DEL MODAL
   ========================================================= */

.modal-header {
    display: grid;

    grid-template-columns:
        1fr
        0.65fr;

    gap: 50px;

    align-items: end;

    margin-bottom: 35px;

    padding-right: 45px;

    border-bottom: 1px solid var(--line);

    padding-bottom: 30px;
}


.modal-number {
    display: block;

    margin-bottom: 10px;

    color: var(--wood);

    font-family: var(--serif);

    font-size: 28px;
}


.modal-header h2 {
    font-family: var(--serif);

    font-size: clamp(
        36px,
        5vw,
        58px
    );

    font-weight: 500;

    line-height: 1.05;
}


.modal-description {
    color: var(--gray);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   GALERÍA
   ========================================================= */

.modal-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.modal-gallery-item {
    position: relative;

    overflow: hidden;

    background: var(--beige);

    aspect-ratio: 4 / 3;
}


.modal-gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.modal-gallery-item:hover img {
    transform: scale(1.04);
}


/*
   Si una imagen todavía no existe,
   mostramos un bloque visual de reserva.
*/

.modal-image-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #ded8ce,
            #a58d72
        );

    color: rgba(255,255,255,0.85);

    font-family: var(--serif);

    font-size: 25px;
}


/* =========================================================
   CUANDO EL MODAL ESTÁ ABIERTO
   ========================================================= */

body.modal-open {
    overflow: hidden;
}

/* =========================================================
   FORMULARIO DE CONTACTO
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--black);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--line);

    background: var(--white);

    color: var(--black);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group textarea {
    resize: vertical;

    min-height: 140px;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--wood);

    box-shadow:
        0 0 0 3px
        rgba(167, 122, 73, 0.10);
}


/* =========================================================
   MENSAJES DEL FORMULARIO
   ========================================================= */

.form-message {

    min-height: 22px;

    margin: 15px 0;

    font-size: 13px;

    line-height: 1.5;
}


.form-message.success {

    color: #3f6b45;
}


.form-message.error {

    color: #9b3d32;
}


/* =========================================================
   BOTÓN MIENTRAS SE ENVÍA
   ========================================================= */

#submitButton:disabled {

    cursor: not-allowed;

    opacity: 0.65;
}


/* =========================================================
   CAMPO HONEYPOT
   ========================================================= */

/*
 * Este campo no debe ser visible para usuarios.
 * Los bots suelen rellenarlo automáticamente.
 */

.honeypot {

    position: absolute !important;

    left: -9999px !important;

    width: 1px !important;

    height: 1px !important;

    opacity: 0 !important;
}