@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700;900&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables for Premium Theme */
:root {
    --bg-dark: #ffffff;
    --bg-card: #f8f8fa;
    --bg-card-hover: #f1f1f5;
    --primary: #c5a880;
    --primary-light: #dec6a6;
    --primary-dark: #a88c64;
    --text-main: #1c1c21;
    --text-muted: #62626e;
    --accent: #b08d57;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-glass: rgba(197, 168, 128, 0.25);
    --bg-glass: rgba(255, 255, 255, 0.9);
}

/* Reset & Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.section-padding {
    padding: 100px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.left-title {
    text-align: left;
}

.left-title::after {
    left: 0;
    transform: none;
}

/* Header & Navigation */
.top-bar {
    background-color: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a:hover {
    color: var(--primary);
}

.header-main {
    position: fixed;
    top: 35px; /* offset top-bar height roughly */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
}

.header-main .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header-main .nav-btn {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.header-main .nav-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

.header-main.stuck {
    top: 0;
    background-color: var(--bg-glass);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 2rem;
}

.header-main.stuck .nav-link {
    color: var(--text-main);
}

.header-main.stuck .nav-btn {
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.header-main.stuck .nav-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.header-main.stuck .logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    background: transparent;
    transition: var(--transition-smooth);
}

/* Hero Slideshow Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.2);
    transition: opacity 2s ease-in-out, transform 5s ease-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(13,13,15,0.85) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 25px rgba(197, 168, 128, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    background-color: var(--bg-dark);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Left Column: Overlapping Images Layout */
.about-images-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
}

/* Background Image Frame (Gold Border) */
.about-img-bg-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 90%;
    border: 8px solid var(--primary); /* Gold border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    overflow: hidden;
}

.about-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Foreground Image Frame (Burgundy Border) */
.about-img-fg-frame {
    position: absolute;
    top: 25%;
    left: 45%;
    width: 50%;
    height: 75%;
    border: 8px solid #6b0c0c; /* Dark red/burgundy border */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
    overflow: hidden;
}

.about-img-fg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Content Styles */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    font-family: var(--font-heading);
    color: #6b0c0c; /* Burgundy/Red color */
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.about-logo-brand {
    margin-bottom: 1.8rem;
    text-align: left;
}

.about-brand-img {
    max-width: 320px;
    height: auto;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #6b0c0c; /* Burgundy/Red color */
    margin-bottom: 1.8rem;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.about-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a0a0aa; /* Light gray separators */
}

.tag-separator {
    color: #d1d1d6;
    font-weight: 300;
}

/* CTA Mid Section */
.cta-mid {
    position: relative;
    background-image: linear-gradient(rgba(13, 13, 15, 0.78), rgba(13, 13, 15, 0.78)), url('../img/escritorio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 2rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.cta-mid h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #ffffff;
}

.cta-mid p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.4);
}

/* Ambientes Checkerboard Section */
.ambientes-section {
    background-color: #ffffff;
}

.ambientes-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ambientes-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.ambientes-outline-text {
    font-size: 6rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08); /* light gray outline */
    letter-spacing: 8px;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--font-display);
    display: block;
    user-select: none;
}

.ambientes-main-title {
    font-family: var(--font-body); /* sans-serif Outfit, uppercase */
    font-size: 2.2rem;
    color: #6b0c0c; /* burgundy red */
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ambientes-desc-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.ambientes-desc-1, .ambientes-desc-2 {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.ambientes-checker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05); /* very light shadow to lift the whole block */
    background-color: #ffffff;
}

.ambientes-text-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    height: 420px; /* same height as images */
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.ambientes-text-card:hover {
    background-color: #fafafa;
}

.ambientes-text-card h3 {
    font-family: var(--font-body);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ambientes-text-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.ambientes-icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ambientes-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.ambientes-image-card {
    height: 420px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.ambientes-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.ambientes-image-card:hover .ambientes-img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .ambientes-checker-grid {
        grid-template-columns: 1fr;
    }
    
    .ambientes-text-card, .ambientes-image-card {
        height: 350px;
    }
    
    .ambientes-title-wrapper {
        display: block;
        max-width: 100%;
    }

    .ambientes-outline-text {
        font-size: clamp(2rem, 11vw, 4rem);
        letter-spacing: 3px;
        max-width: 100%;
        overflow: hidden;
    }

    .ambientes-main-title {
        font-size: 1.6rem;
        max-width: 90%;
        white-space: normal;
    }
}

/* Portfolio Gallery Section */
.portfolio-section {
    background-color: var(--bg-dark);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
    margin-bottom: 4rem;
}

.portfolio-header-left {
    flex: 1;
    max-width: 750px;
}

.portfolio-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.portfolio-outline-text {
    font-size: 6rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08); /* slightly darker gray outline */
    letter-spacing: 6px;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--font-display);
    display: block;
    user-select: none;
}

.portfolio-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #6b0c0c; /* burgundy red */
    font-weight: 700;
    position: absolute;
    bottom: -15px;
    left: 0;
    margin: 0;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.portfolio-header-right {
    margin-bottom: 0.5rem;
}

.portfolio-btn-all {
    display: inline-block;
    background-color: #6b0c0c; /* burgundy red button background */
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 0; /* square corners */
    transition: var(--transition-smooth);
    border: none;
    white-space: nowrap;
}

.portfolio-btn-all:hover {
    background-color: #4a0808;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 12, 12, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    height: 500px; /* vertical format */
    border-radius: 0; /* square corners */
    overflow: hidden;
    border: none; /* removed border */
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item::after {
    content: '\f00e'; /* FontAwesome search plus icon placeholder or we can use custom overlays */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 15, 0.85);
    border: 2px solid var(--primary);
    border-radius: 0; /* square corners */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    padding: 1.5rem;
    text-align: center;
}

.portfolio-hover h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.portfolio-hover span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-item:hover h4, .portfolio-item:hover span {
    transform: translateY(0);
}

/* Experience & Guarantee Section */
.experience-section {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.experience-new-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.experience-image-side {
    position: relative;
    height: 450px; /* matches environments card height */
    width: 100%;
}

.experience-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
}

.experience-burgundy-card {
    background-color: #6b0c0c; /* burgundy red */
    color: #ffffff;
    padding: 3rem 2.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 240px;
    box-sizing: border-box;
}

.experience-burgundy-card h3 {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #ffffff;
}

.experience-burgundy-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.experience-card-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.experience-card-link i {
    transition: var(--transition-smooth);
}

.experience-card-link:hover i {
    transform: translateX(5px);
}

.experience-text-side {
    position: relative;
    padding-left: 1rem;
}

.experience-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.experience-outline-text {
    font-size: 5.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08); /* light gray outline */
    letter-spacing: 6px;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--font-display);
    display: block;
    user-select: none;
}

.experience-main-title {
    font-family: var(--font-heading); /* serif font Playfair Display */
    font-size: 2.2rem;
    color: #6b0c0c; /* burgundy red */
    font-weight: 700;
    position: absolute;
    bottom: -15px;
    left: 0;
    margin: 0;
    line-height: 1.2;
}

.experience-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 900px) {
    .experience-new-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experience-image-side {
        height: 380px;
    }
    
    .experience-burgundy-card {
        width: 80%;
        height: auto;
        padding: 2rem;
    }
    
    .experience-title-wrapper {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .experience-outline-text {
        font-size: clamp(2rem, 11vw, 4rem);
        letter-spacing: 3px;
        max-width: 100%;
        overflow: hidden;
    }

    .experience-main-title {
        font-size: 1.6rem;
        position: absolute;
        bottom: -20px;
        left: 0;
        margin: 0;
        max-width: 100%;
    }
}

/* Contact & Message Section */
.contact-section {
    background-color: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(197, 168, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-details h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.info-details p {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.phone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.phone-link i {
    color: #25D366;
    font-size: 1.1rem;
}

.phone-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.phone-link:hover i {
    color: #ffffff;
}

/* Glassmorphic Contact Form */
.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    bottom: -8px;
    left: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(197, 168, 128, 0.35);
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: var(--font-body);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

textarea.form-control {
    resize: none;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.3);
}

/* Footer Section */
.footer-main {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    padding: 80px 2rem 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: -6px;
    left: 0;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: var(--transition-smooth);
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 15, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid var(--border-glass);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2010;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

@media (max-width: 900px) {
    .lightbox-prev {
        left: -10px;
    }
    .lightbox-next {
        right: -10px;
    }
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        background: rgba(0, 0, 0, 0.85);
    }
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Form success notification modal style */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-msg i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Base Mobile Menu and Toggle Styles (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
}
body.no-scroll {
    overflow: hidden;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .ambientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .experience-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 15px;
    }
    
    .top-bar {
        display: none;
    }
    
    .header-main {
        top: 0;
        background-color: var(--bg-glass);
        backdrop-filter: blur(15px);
        padding: 0.75rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        border-bottom: 1px solid var(--border-glass);
    }
    
    .header-main .container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-main .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 0;
    }
    
    .mobile-menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-main);
        border-radius: 4px;
        transition: var(--transition-smooth);
    }
    
    .mobile-menu-toggle.active .bar {
        background-color: var(--text-main) !important;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 5rem 2rem;
        transition: var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--text-main) !important;
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
    }
    
    /* Removed mobile CTA drawer styling */
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 60px 1.5rem;
    }
    
    .about-logo-wrapper {
        padding: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .ambientes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-grid-4col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .portfolio-header-left {
        max-width: 100%;
    }
    
    .portfolio-outline-text {
        font-size: 4rem;
    }
    
    .portfolio-main-title {
        font-size: 2rem;
        bottom: -8px;
    }
    
    .portfolio-btn-all {
        width: 100%;
        text-align: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .portfolio-banner h1 {
        font-size: 2.5rem;
    }

    .toast-msg {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        justify-content: center;
    }
}

/* Portfolio Page Custom Styles */
.portfolio-banner {
    position: relative;
    background-image: linear-gradient(rgba(13, 13, 15, 0.85), rgba(13, 13, 15, 0.88)), url('../img/DSC0811-scaled.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 2rem 100px;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.portfolio-banner h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    font-size: 0.8rem;
    color: var(--primary);
}

.portfolio-filters-wrapper {
    padding: 4rem 2rem 2rem;
    background-color: var(--bg-dark);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.3);
}

.portfolio-grid-wrapper {
    background-color: var(--bg-dark);
    padding: 0 2rem 6rem;
}

/* Portfolio item transitions when filtered */
.portfolio-item {
    transition: var(--transition-smooth), opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    border: none;
}

/* Guarantee & Video Features Section */
.video-features-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.guarantee-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.guarantee-video-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.guarantee-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 0px; /* square corners like in screenshot */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16/9;
    filter: grayscale(100%); /* B&W like in screenshot */
    transition: var(--transition-smooth);
}

.guarantee-video-wrapper:hover {
    filter: grayscale(0%); /* Premium color hover transition */
}

.guarantee-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guarantee-video-btn {
    display: inline-block;
    background-color: #6b0c0c; /* burgundy red */
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-radius: 0px; /* square corners */
    transition: var(--transition-smooth);
    border: none;
    margin-top: 1.5rem;
    text-transform: none;
    text-decoration: none;
}

.guarantee-video-btn:hover {
    background-color: #4a0808;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 12, 12, 0.2);
}

.guarantee-card {
    background-color: #ffffff;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-right: 6px solid #6b0c0c; /* thick burgundy right border */
    border-bottom: 6px solid #6b0c0c; /* thick burgundy bottom border */
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .guarantee-card {
        margin-left: -5rem; /* overlapping effect */
    }
}

.guarantee-card h2 {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 700;
    color: #6b0c0c;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.guarantee-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* 3 Column Differentials Grid */
.diferenciais-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 6rem;
    text-align: center;
}

.diferencial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diferencial-num {
    font-size: 6.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.05); /* outline gray */
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-display);
    user-select: none;
}

.diferencial-item h3 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

.diferencial-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .guarantee-new-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .guarantee-card {
        margin-left: 0;
        padding: 2.5rem 2rem;
    }
    
    .diferenciais-new-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        margin-top: 4rem;
    }
}

/* Practicality & Well-Being Section */
.practicality-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.practicality-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.practicality-image-side {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.practicality-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0px;
}

.practicality-text-side {
    padding-left: 1rem;
}

.practicality-title {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 700;
    color: #6b0c0c;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.practicality-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0;
}

@media (max-width: 900px) {
    .practicality-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .practicality-image-side {
        height: 280px;
    }
    
    .practicality-text-side {
        padding-left: 0;
    }
    
    .practicality-title {
        font-size: 1.8rem;
    }
}

/* ============================================================
   Página de Erro 404 + Mapa do Site
   ============================================================ */
.error-banner {
    position: relative;
    background-image: linear-gradient(rgba(13, 13, 15, 0.86), rgba(13, 13, 15, 0.92)), url('../img/DSC0811-scaled.jpg');
    background-size: cover;
    background-position: center;
    padding: 190px 2rem 90px;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

/* Numeral 404: contorno grande ao fundo + numeral sólido à frente,
   mesmo tratamento usado na seção Ambientes da home. */
.error-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 0.5rem;
}

.error-outline {
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 12px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
    user-select: none;
    white-space: nowrap;
}

.error-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 6px;
    color: var(--primary);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.error-banner h1 {
    font-size: 2.4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.error-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.error-uri {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    word-break: break-all;
}

.error-uri i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--primary);
}

.cta-btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.error-back {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
}

.error-back:hover {
    color: var(--primary);
}

.error-back i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* ---------- Mapa do site ---------- */
.sitemap-section {
    background-color: var(--bg-dark);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.sitemap-col {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Barra de destaque no topo, cresce da esquerda no hover */
.sitemap-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.sitemap-col:hover {
    background-color: var(--bg-card-hover);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.sitemap-col:hover::before {
    width: 100%;
}

.sitemap-col-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.sitemap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--primary);
    font-size: 1rem;
}

.sitemap-col-head h3 {
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.sitemap-links li + li {
    margin-top: 0.35rem;
}

.sitemap-links a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
}

.sitemap-links a i {
    font-size: 0.62rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.sitemap-links a:hover {
    color: var(--text-main);
}

.sitemap-links a:hover i {
    transform: translateX(3px);
}

@media (max-width: 1000px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .error-banner {
        padding: 150px 1.5rem 70px;
    }

    .error-mark {
        height: 100px;
    }

    .error-outline {
        font-size: 7rem;
        letter-spacing: 6px;
    }

    .error-code {
        font-size: 4rem;
        letter-spacing: 3px;
    }

    .error-banner h1 {
        font-size: 1.7rem;
    }

    .error-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }

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