/* =========================================
   01. VARIABLES
========================================= */

:root {
    --wood-dark: #2b2118;
    --wood: #7b5435;
    --wood-light: #c18a5b;

    --cream: #f6f2eb;
    --cream-dark: #e9e1d6;

    --dark: #181512;
    --text: #625b54;
    --white: #ffffff;
    --whatsapp: #25d366;

    --font-body: "DM Sans", sans-serif;
    --font-title: "Playfair Display", serif;

    --container: 1240px;
    --transition: var(--transition);
}


/* =========================================
   02. RESET / BASE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--dark);
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   03. CONTENEDORES GENERALES
========================================= */

.section-container,
.header-container,
.hero-container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================================
   04. HEADER
========================================= */

.header {
    height: 88px;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(24, 21, 18, 0.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--wood-light);

    color: var(--dark);
}

.logo-text {
    display: flex;
    flex-direction: column;

    color: white;

    line-height: 1;
}

.logo-text strong {
    font-family: var(--font-title);

    font-size: 20px;
}

.logo-text span {
    font-size: 11px;

    margin-top: 5px;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.7;
}

/* =========================================
   LOGO DEL HEADER
========================================= */

.logo-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.logo-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* NAV */

.navbar {
    display: flex;

    align-items: center;

    gap: 34px;
}

.navbar a {
    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    color: var(--wood-light);
}


/* HEADER BUTTON */

.header-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 14px 22px;

    background: var(--wood-light);

    color: var(--dark);

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);
}

.header-button:hover {
    background: white;
}

/* =========================================
   MENÚ HAMBURGUESA
========================================= */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    position: relative;

    z-index: 1002;
}


.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--wood-light);

    transition: var(--transition);
}


.menu-toggle:hover span:nth-child(2) {
    width: 17px;
}



/* =========================================
   OVERLAY DEL MENÚ
========================================= */

.mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 1998;

    background: rgba(10, 8, 6, 0.72);

    backdrop-filter: blur(4px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


.mobile-overlay.active {
    opacity: 1;

    visibility: visible;
}



/* =========================================
   PANEL LATERAL
========================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1999;

    width: min(390px, 88vw);
    height: 100dvh;

    padding: 0 32px;

    display: flex;

    flex-direction: column;

    background: #18130f;

    border-right:
        1px solid rgba(255, 255, 255, 0.08);

    transform: translateX(-105%);

    visibility: hidden;

    transition:
        transform 0.45s cubic-bezier(.77, 0, .18, 1),
        visibility 0.45s;
}


.mobile-menu.active {
    transform: translateX(0);

    visibility: visible;
}



/* =========================================
   CABECERA PANEL MÓVIL
========================================= */

.mobile-menu-header {
    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}


.mobile-menu-close {
    width: 42px;
    height: 42px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    background: transparent;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    font-size: 17px;

    transition: var(--transition);
}


.mobile-menu-close:hover {
    background: var(--wood-light);

    border-color: var(--wood-light);

    color: var(--dark);

    transform: rotate(90deg);
}



/* =========================================
   NAVEGACIÓN MÓVIL
========================================= */

.mobile-nav {
    display: flex;

    flex-direction: column;

    margin-top: 45px;
}


.mobile-nav a {
    position: relative;

    min-height: 73px;

    display: grid;

    grid-template-columns: 38px 1fr auto;

    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.72);

    font-family: var(--font-title);

    font-size: 25px;

    transition: var(--transition);
}


.mobile-nav a:first-child {
    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}


.mobile-nav a span {
    color: rgba(255, 255, 255, 0.22);

    font-family: var(--font-body);

    font-size: 9px;

    letter-spacing: 2px;
}


.mobile-nav a > i {
    color: rgba(255, 255, 255, 0.22);

    font-size: 12px;

    transition: var(--transition);
}


.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--wood-light);

    padding-left: 7px;
}


.mobile-nav a:hover > i,
.mobile-nav a.active > i {
    color: var(--wood-light);

    transform: translateX(4px);
}



/* =========================================
   PIE DEL MENÚ MÓVIL
========================================= */

.mobile-menu-footer {
    margin-top: auto;

    padding: 30px 0 35px;
}


.mobile-menu-footer > p {
    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.30);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;
}


.mobile-whatsapp {
    min-height: 52px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: var(--wood-light);

    color: var(--dark);

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);
}


.mobile-whatsapp:hover {
    background: white;
}



/* =========================================
   BLOQUEO DE SCROLL
========================================= */

body.menu-open {
    overflow: hidden;
}

/* =========================================
   05. PÁGINA INICIO - HERO
========================================= */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;
}

/* =========================================
   HERO - CARRUSEL
========================================= */

.hero-slider {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;
}


.hero-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;

    transform: scale(1.08);

    transition:
        opacity 1.4s ease,
        transform 7s ease;
}


.hero-slide.active {
    opacity: 1;

    transform: scale(1);
}


/* OSCURECIMIENTO DEL FONDO */


/* EL CONTENIDO SIEMPRE ENCIMA */


/* =========================================
   HERO - INDICADORES DEL CARRUSEL
========================================= */

.hero-dots {
    position: absolute;

    z-index: 5;

    bottom: 35px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 10px;
}


.hero-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);

    cursor: pointer;

    transition: var(--transition);
}


.hero-dot.active {
    width: 28px;

    border-radius: 20px;

    background: var(--wood-light);
}


.hero-dot:hover {
    background: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(15, 12, 9, 0.94) 0%,
            rgba(20, 16, 12, 0.78) 42%,
            rgba(20, 16, 12, 0.20) 100%
        );
}

.hero-container {
    position: relative;

    z-index: 2;

    padding-top: 90px;
}

.hero-content {
    max-width: 760px;
}


/* KICKER */

.hero-kicker,
.section-label {
    color: var(--wood-light);

    letter-spacing: 4px;

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 22px;
}


/* TITLE */

.hero h1 {
    color: white;

    font-family: var(--font-title);

    font-size: clamp(54px, 7vw, 95px);

    font-weight: 600;

    line-height: 0.97;

    letter-spacing: -3px;

    margin-bottom: 28px;
}

.hero h1 span {
    display: block;

    color: var(--wood-light);

    font-style: italic;
}


/* DESCRIPTION */

.hero-description {
    max-width: 600px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 17px;

    line-height: 1.8;
}


/* BUTTONS */

.hero-buttons {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 38px;
}

.button-primary,
.button-secondary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 17px 25px;

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}

.button-primary {
    background: var(--wood-light);

    color: var(--dark);
}

.button-primary:hover {
    background: white;
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: white;
}

.button-secondary:hover {
    border-color: white;

    background: rgba(255, 255, 255, 0.08);
}


/* HERO FEATURES */

.hero-features {
    display: flex;

    gap: 50px;

    margin-top: 60px;
}

.hero-features div {
    display: flex;

    flex-direction: column;
}

.hero-features strong {
    color: white;

    font-family: var(--font-title);

    font-size: 24px;
}

.hero-features span {
    color: rgba(255, 255, 255, 0.45);

    margin-top: 5px;

    font-size: 12px;
}


/* SCROLL */

.hero-scroll {
    position: absolute;

    right: 35px;

    bottom: 30px;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 15px;

    transform: rotate(90deg);

    transform-origin: right bottom;

    color: rgba(255, 255, 255, 0.45);

    font-size: 9px;

    letter-spacing: 4px;
}

.scroll-line {
    width: 60px;

    height: 1px;

    background: rgba(255, 255, 255, 0.35);
}


/* =========================================
   SECCIONES GENERALES DEL INICIO
========================================= */

.about,
.services,
.projects,
.contact-cta {
    padding: 120px 0;
}


/* =========================================
   INICIO - NOSOTROS
========================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    height: 620px;

    object-fit: cover;
}

.about-badge {
    position: absolute;

    right: -25px;

    bottom: 45px;

    width: 160px;

    height: 160px;

    background: var(--wood-dark);

    color: white;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    gap: 10px;
}

.about-badge i {
    color: var(--wood-light);

    font-size: 28px;
}

.about-badge span {
    font-size: 13px;
}

.about-badge strong {
    display: block;

    font-family: var(--font-title);

    font-size: 19px;
}


/* TEXT */

.about-content h2,
.section-heading h2,
.cta-box h2 {
    font-family: var(--font-title);

    font-size: clamp(40px, 5vw, 64px);

    line-height: 1.06;

    font-weight: 600;

    letter-spacing: -1px;

    margin-bottom: 28px;
}

.about-content h2 em,
.section-heading h2 em,
.cta-box h2 em {
    color: var(--wood-light);

    font-weight: inherit;
}

.about-content p {
    color: var(--text);

    line-height: 1.9;

    margin-bottom: 18px;

    font-size: 15px;
}

.text-link {
    display: inline-flex;

    gap: 12px;

    align-items: center;

    margin-top: 15px;

    color: var(--wood);

    font-size: 14px;

    font-weight: 600;
}


/* =========================================
   INICIO - SERVICIOS
========================================= */

.services {
    background: var(--wood-dark);

    color: white;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    margin-bottom: 60px;
}

.section-heading > div {
    max-width: 700px;
}

.section-heading > p {
    max-width: 380px;

    color: rgba(255, 255, 255, 0.45);

    line-height: 1.8;
}


/* SERVICES GRID */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    position: relative;

    min-height: 400px;

    padding: 40px 30px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    transition: 0.4s ease;
}

.service-card:hover {
    background: var(--wood-light);

    color: var(--dark);

    transform: translateY(-8px);
}

.service-number {
    position: absolute;

    top: 25px;

    right: 25px;

    color: rgba(255, 255, 255, 0.25);

    font-size: 12px;
}

.service-icon {
    width: 55px;

    height: 55px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 80px;

    font-size: 20px;

    color: var(--wood-light);
}

.service-card:hover .service-icon {
    color: var(--dark);

    border-color: rgba(0, 0, 0, 0.25);
}

.service-card h3 {
    font-family: var(--font-title);

    font-size: 28px;

    margin-bottom: 18px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.52);

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 30px;
}

.service-card:hover p {
    color: rgba(0, 0, 0, 0.65);
}

.service-card a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================
   INICIO - PROYECTOS
========================================= */

.projects {
    background: #f1ebe2;
}

.projects .section-heading > p {
    color: var(--text);
}

.projects-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    grid-template-rows: 290px 290px;

    gap: 20px;
}

.project-card {
    position: relative;

    overflow: hidden;
}

.project-large {
    grid-row: span 2;
}

.project-card img {
    height: 100%;

    object-fit: cover;

    transition: 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.75)
        );

    color: white;
}

.project-overlay span {
    color: var(--wood-light);

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 7px;
}

.project-overlay h3 {
    font-family: var(--font-title);

    font-size: 26px;
}


/* =========================================
   INICIO - CTA
========================================= */

.contact-cta {
    background: var(--cream);
}

.cta-box {
    background: var(--wood-dark);

    color: white;

    padding: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}

.cta-box > div {
    max-width: 700px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.55);

    line-height: 1.8;
}

.cta-button {
    flex-shrink: 0;

    background: var(--wood-light);

    color: var(--dark);

    padding: 19px 28px;

    display: inline-flex;

    gap: 12px;

    align-items: center;

    font-weight: 600;

    transition: var(--transition);
}

.cta-button:hover {
    background: white;
}


/* =========================================
   07. FOOTER
========================================= */

.footer {
    background: #14110f;

    color: white;

    padding-top: 80px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1.4fr 1fr;

    gap: 60px;

    padding-bottom: 65px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);

    margin-top: 25px;

    max-width: 350px;

    line-height: 1.8;
}

.footer h4 {
    font-size: 13px;

    margin-bottom: 25px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--wood-light);
}

.footer-grid > div:not(:first-child) {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.footer-grid a,
.footer-grid p {
    color: rgba(255, 255, 255, 0.48);

    font-size: 13px;
}

.footer-grid a:hover {
    color: white;
}

.footer-grid p i {
    width: 20px;

    color: var(--wood-light);
}


/* SOCIAL */

.social-links {
    display: flex;

    gap: 10px;
}

.social-links a {
    width: 40px;

    height: 40px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    display: flex;

    align-items: center;

    justify-content: center;

    transition: 0.3s;
}

.social-links a:hover {
    background: var(--wood-light);

    color: var(--dark);
}


/* FOOTER BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    padding: 25px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: rgba(255, 255, 255, 0.32);

    font-size: 12px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);

    display: flex;

    gap: 8px;

    align-items: center;
}


/* =========================================
   08. WHATSAPP FLOTANTE
========================================= */

.whatsapp-floating {
    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 900;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: var(--whatsapp);

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 27px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: translateY(-5px) scale(1.05);
}
/* =========================================
   06. PÁGINA CONTACTO
========================================= */


/* =========================================
   CONTACTO - HERO
========================================= */

.contact-hero {

    position: relative;

    min-height: 530px;

    display: flex;

    align-items: center;

    padding-top: 88px;

    overflow: hidden;

    background:
        url("../img/hero-carpinteria-1.jpg")
        center 48% / cover no-repeat;

}


.contact-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 16, 13, 0.96) 0%,
            rgba(24, 19, 15, 0.80) 45%,
            rgba(24, 19, 15, 0.35) 100%
        );

}


.contact-hero-content {

    position: relative;

    z-index: 2;

    padding-top: 35px;

}


.contact-hero-content h1 {

    max-width: 800px;

    color: white;

    font-family: var(--font-title);

    font-size: clamp(55px, 6vw, 88px);

    line-height: 0.98;

    font-weight: 600;

    letter-spacing: -3px;

}


.contact-hero-content h1 em {

    display: block;

    color: var(--wood-light);

    font-weight: inherit;

}


.contact-hero-content p {

    max-width: 580px;

    margin-top: 28px;

    color: rgba(255, 255, 255, 0.60);

    font-size: 16px;

    line-height: 1.8;

}


/* =========================================
   CONTACTO - CONTENIDO PRINCIPAL
========================================= */

.contact-page {

    padding: 120px 0;

    background: var(--cream);

}


.contact-grid {

    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 100px;

    align-items: start;

}


/* =========================================
   CONTACTO - INFORMACIÓN
========================================= */

.contact-info h2 {

    max-width: 520px;

    margin-bottom: 25px;

    font-family: var(--font-title);

    font-size: clamp(42px, 5vw, 62px);

    font-weight: 600;

    line-height: 1.04;

    letter-spacing: -2px;

}


.contact-info h2 em {

    display: block;

    color: var(--wood);

    font-weight: inherit;

}


.contact-intro {

    max-width: 520px;

    color: var(--text);

    font-size: 15px;

    line-height: 1.9;

}


.contact-details {

    margin-top: 45px;

    display: flex;

    flex-direction: column;

}


.contact-detail {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 21px 0;

    border-bottom: 1px solid rgba(43, 33, 24, 0.12);

}


.contact-detail:first-child {

    border-top: 1px solid rgba(43, 33, 24, 0.12);

}


.contact-detail-icon {

    flex-shrink: 0;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--wood-dark);

    color: var(--wood-light);

    font-size: 16px;

}


.contact-detail > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.contact-detail span {

    color: #90877f;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

}


.contact-detail strong {

    color: var(--dark);

    font-size: 14px;

    font-weight: 600;

}


.contact-whatsapp {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 35px;

    padding: 17px 25px;

    background: var(--whatsapp);

    color: white;

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);

}


.contact-whatsapp:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);

}


/* =========================================
   CONTACTO - FORMULARIO
========================================= */

.contact-form-box {

    position: relative;

    padding: 55px;

    background: white;

    box-shadow:
        0 30px 80px rgba(47, 38, 30, 0.08);

}


.contact-form-box::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background: var(--wood-light);

}


.form-heading {

    margin-bottom: 35px;

}


.form-heading span {

    color: var(--wood);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

}


.form-heading h3 {

    margin-top: 10px;

    font-family: var(--font-title);

    font-size: 32px;

    font-weight: 600;

}


.contact-form {

    display: flex;

    flex-direction: column;

    gap: 24px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    color: var(--dark);

    font-size: 12px;

    font-weight: 600;

}


.form-group label span {

    color: #b56f42;

}


.input-box {

    position: relative;

}


.input-box i {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: #a69d95;

    font-size: 13px;

    pointer-events: none;

}


.input-box input,
.input-box select {

    width: 100%;

    height: 53px;

    padding:

        0 15px
        0 45px;

    border: 1px solid #ded7cf;

    outline: none;

    background: #faf8f5;

    color: var(--dark);

    font-family: var(--font-body);

    transition: var(--transition);

}


.input-box input:focus,
.input-box select:focus,
.form-group textarea:focus {

    border-color: var(--wood-light);

    background: white;

    box-shadow:
        0 0 0 3px rgba(193, 138, 91, 0.10);

}


.form-group textarea {

    width: 100%;

    min-height: 160px;

    padding: 17px;

    resize: vertical;

    border: 1px solid #ded7cf;

    outline: none;

    background: #faf8f5;

    color: var(--dark);

    font-family: var(--font-body);

    line-height: 1.7;

    transition: var(--transition);

}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #aaa19a;

}


.form-submit {

    width: 100%;

    min-height: 56px;

    border: none;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background: var(--wood-dark);

    color: white;

    cursor: pointer;

    font-family: var(--font-body);

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);

}


.form-submit:hover {

    background: var(--wood);

}


.form-privacy {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 7px;

    color: #99918a;

    font-size: 10px;

}


.form-privacy i {

    color: var(--wood);

}


/* ALERTA */

.form-alert {

    margin-bottom: 25px;

    padding: 15px 18px;

    font-size: 13px;

    line-height: 1.6;

}


.form-alert.success {

    background: #edf8f1;

    border-left: 3px solid #3f9b61;

    color: #286842;

}


.form-alert.error {

    background: #fff0ed;

    border-left: 3px solid #c45a49;

    color: #913b30;

}


/* =========================================
   CONTACTO - UBICACIÓN / MAPA
========================================= */

.location-section {

    padding: 110px 0 130px;

    background: #efe8de;

}


.location-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    margin-bottom: 45px;

}


.location-heading h2 {

    font-family: var(--font-title);

    font-size: clamp(42px, 5vw, 62px);

    line-height: 1;

    font-weight: 600;

}


.location-heading h2 em {

    color: var(--wood);

    font-weight: inherit;

}


.location-heading > p {

    max-width: 390px;

    color: var(--text);

    line-height: 1.8;

    font-size: 14px;

}


.map-container {

    position: relative;

    overflow: hidden;

    min-height: 520px;

    background: #ddd;

}


.map-container iframe {

    display: block;

    filter:
        saturate(0.65)
        sepia(0.10);

}


.map-card {

    position: absolute;

    left: 30px;

    bottom: 30px;

    z-index: 5;

    width: min(380px, calc(100% - 60px));

    padding: 24px;

    display: flex;

    align-items: center;

    gap: 18px;

    background: var(--wood-dark);

    color: white;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.22);

}


.map-card-icon {

    flex-shrink: 0;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--wood-light);

    color: var(--dark);

}


.map-card > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.map-card span {

    color: rgba(255, 255, 255, 0.42);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.map-card strong {

    color: white;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================
   09. RESPONSIVE
========================================= */


/* ---------- 1050px ---------- */

@media (max-width: 1050px) {

     .navbar {
        display: none;
    }


    /* MOSTRAR HAMBURGUESA */

    .menu-toggle {
        display: flex;
    }


    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}


/* ---------- 950px ---------- */

@media (max-width: 950px) {

    .contact-grid {

        grid-template-columns: 1fr;

        gap: 70px;

    }


    .contact-info {

        max-width: 700px;

    }

}


/* ---------- 850px ---------- */

@media (max-width: 850px) {

    
    .header-button {
        display: none;
    }


    .menu-toggle {
        margin-left: auto;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-features {
        gap: 25px;

        flex-wrap: wrap;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .about-image img {
        height: 500px;
    }

    .about-badge {
        right: 20px;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        grid-template-rows: none;
    }

    .project-card,
    .project-large {
        height: 400px;

        grid-row: auto;
    }

    .cta-box {
        padding: 50px 35px;

        flex-direction: column;

        align-items: flex-start;
    }

}


/* ---------- 700px ---------- */

@media (max-width: 700px) {

    .contact-hero {

        min-height: 500px;

    }


    .contact-hero-content h1 {

        letter-spacing: -2px;

    }


    .contact-page {

        padding: 80px 0;

    }


    .contact-form-box {

        padding: 35px 25px;

    }


    .form-row {

        grid-template-columns: 1fr;

    }


    .location-heading {

        flex-direction: column;

        align-items: flex-start;

    }


    .location-section {

        padding: 80px 0;

    }


    .map-container iframe {

        height: 500px;

    }

}


/* ---------- 600px ---------- */

@media (max-width: 600px) {

    .header {
        height: 75px;
    }

    .hero {
        min-height: 880px;
    }

    .hero-container {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 51px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        align-items: stretch;

        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .hero-features {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .hero-scroll {
        display: none;
    }

    .about,
    .services,
    .projects,
    .contact-cta {
        padding: 80px 0;
    }

    .about-image img {
        height: 420px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 330px;
    }

    .service-icon {
        margin-bottom: 50px;
    }

    .project-card,
    .project-large {
        height: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

}