/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES - ROSOF CARPINTERÍA ARTESANAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-bg-dark: #121212;
    --color-bg-dark-card: #1c1c1c;
    --color-bg-light: #ffffff;
    --color-bg-light-grey: #f7f7f7;
    --color-bg-light-card: #ffffff;

    --color-text-dark: #121212;
    --color-text-muted-dark: #666666;
    --color-text-light: #ffffff;
    --color-text-muted-light: #cccccc;

    --color-primary: #a85c2c;
    /* Cedar Wood Brown */
    --color-primary-hover: #be6f3c;
    /* Polished Teak */
    --color-primary-dark: #8c4b22;
    /* Dark Walnut */
    --color-accent-gold: #d4af37;
    /* Metallic Accent */

    --color-border-light: #e5e5e5;
    --color-border-dark: #333333;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --header-height-shrink: 70px;

    /* Transitions & Shadow */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-shrink) + 20px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

ul,
ol {
    list-style: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light-grey);
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-light-grey);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-bg-dark);
}

.text-light {
    color: var(--color-text-light);
}

.text-dark {
    color: var(--color-text-dark);
}

.text-muted {
    color: var(--color-text-muted-dark);
}

.text-accent {
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

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

.section-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted-dark);
    font-weight: 400;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 16px auto 0 auto;
    border-radius: var(--radius-full);
}

.section-header.align-left {
    margin-left: 0;
    text-align: left;
}

.section-header.align-left .section-title::after {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 8px 20px rgba(232, 122, 30, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-bg-dark);
    border: 1px solid var(--color-bg-dark);
}

.btn-outline:hover {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-wood {
    background-image: url('../assets/images/btn_wood_bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffdcb8 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 800 !important;
    padding: 18px 44px !important;
    font-size: 1.15rem;
    /* Larger font size */
    transition: all var(--transition-normal);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    overflow: visible !important;
}

.btn-wood:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
    color: #ffffff !important;
}

.btn-wood:active {
    transform: translateY(-1px) scale(0.98);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
}

.header .btn-wood {
    padding: 12px 28px !important;
    font-size: 0.95rem;
    /* Larger header button text */
}

/* ==========================================================================
   HEADER / NAVBAR (GLASSMORPHISM)
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    height: var(--header-height-shrink);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.header.scrolled h2,
.header.scrolled .nav-link {
    color: var(--color-bg-dark);
}

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

.header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.logo-img {
    height: 102px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: height var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 122px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition-normal);
}

.header.scrolled .brand-name {
    color: var(--color-text-dark);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-link.active::after {
    transform: scaleX(1);
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1010;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header.scrolled .mobile-toggle span {
    background-color: var(--color-text-dark);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal), visibility var(--transition-normal);
        z-index: 1005;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        visibility: hidden;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    .logo-img {
        height: 60px;
    }

    .header.scrolled .logo-img {
        height: 50px;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--color-text-light);
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-text-light);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
        background-color: var(--color-text-light);
    }

    .header-cta {
        display: none;
    }
}

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

.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .btn-wood, .btn-wood-light {
        padding: 14px 28px !important;
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   SECCIÓN NOSOTROS (HISTORIA & SIN MDF)
   ========================================================================== */

.nosotros-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.nosotros-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.nosotros-content p {
    color: var(--color-text-muted-dark);
    margin-bottom: 24px;
}

.badge-no-mdf {
    background-color: rgba(232, 122, 30, 0.08);
    border-left: 4px solid var(--color-primary);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.badge-no-mdf h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.badge-no-mdf p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.nosotros-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nosotros-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nosotros-feature-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.nosotros-feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.nosotros-feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted-dark);
    margin-bottom: 0;
}

.nosotros-visual {
    position: relative;
}

.nosotros-img-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.nosotros-experience {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--color-primary);
    z-index: 5;
}

.nosotros-experience .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.nosotros-experience .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-text-muted-light);
    margin-top: 4px;
}

@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .nosotros-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ==========================================================================
   SECCIÓN SERVICIOS (TARJETAS MODERNAS)
   ========================================================================== */

.servicios {
    background-color: var(--color-bg-light-grey);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

.servicio-card {
    background-color: var(--color-bg-light-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border-light);
}

.servicio-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.servicio-card-img img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

.servicio-card:hover .servicio-card-img img {
    transform: scale(1.1);
}

.servicio-card-icon {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-bg-light-card);
    z-index: 10;
}

.servicio-card-body {
    padding: 40px 30px 30px 30px;
}

.servicio-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.servicio-card p {
    color: var(--color-text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.servicio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.servicio-card-link svg {
    transition: transform var(--transition-fast);
}

.servicio-card-link:hover {
    color: var(--color-primary-dark);
}

.servicio-card-link:hover svg {
    transform: translateX(4px);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 122, 30, 0.2);
}

/* ==========================================================================
   SECCIÓN ¿POR QUÉ ELEGIRNOS?
   ========================================================================== */

.elegirnos {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.elegirnos .section-title {
    color: var(--color-text-light);
}

.elegirnos .section-subtitle {
    color: var(--color-text-muted-light);
}

.elegirnos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

@media (min-width: 992px) {
    .elegirnos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.elegirnos-card {
    background-color: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all var(--transition-normal);
}

.elegirnos-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(232, 122, 30, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 122, 30, 0.2);
}

.elegirnos-card h4 {
    color: var(--color-text-light);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.elegirnos-card p {
    color: var(--color-text-muted-light);
    font-size: 0.95rem;
}

.elegirnos-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(232, 122, 30, 0.15);
}

/* ==========================================================================
   SECCIÓN GALERÍA
   ========================================================================== */

.galeria-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-image: url('../assets/images/btn_wood_light_bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4a2c11 !important;
    /* Dark teak brown */
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6), -1px -1px 1px rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
    font-weight: 800 !important;
    padding: 12px 24px !important;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    margin: 5px;
}

.filter-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    color: #1a0a00 !important;
}

.filter-btn.active {
    background-image: url('../assets/images/btn_wood_bg.png');
    color: #ffdcb8 !important;
    /* Light wood-fired color */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.galeria-grid.asimetrica {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    grid-auto-rows: 290px;
}

@media (max-width: 576px) {
    .galeria-grid.asimetrica {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .galeria-item.item-wide,
    .galeria-item.item-tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 290px;
    }
}

@media (min-width: 992px) {
    .galeria-grid.asimetrica {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 320px;
    }

    .galeria-item.item-wide {
        grid-column: span 2;
    }

    .galeria-item.item-tall {
        grid-row: span 2;
    }
}

.galeria-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.galeria-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.galeria-item-overlay h4 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.galeria-item-overlay p {
    color: var(--color-primary-hover);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}

.galeria-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-item:hover .galeria-item-overlay {
    opacity: 1;
}

/* ==========================================================================
   CÓMO TRABAJAMOS (CONEXIÓN DE CARTELES HORIZONTALES)
   ========================================================================== */

.proceso {
    background-color: #121813; /* Dark organic forest black background for high contrast */
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.proceso .section-title {
    color: var(--color-text-light);
}

.proceso .section-subtitle {
    color: var(--color-text-muted-light);
}

.proceso-connect-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1150px;
    margin: 60px auto 0 auto;
    position: relative;
}

.proceso-step-card {
    width: calc((100% - 80px) / 5); /* 5 steps with 20px gap */
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0; /* Animated by GSAP */
}

/* Horizontal Wood Connector Dowels */
.proceso-step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -22px; /* bridges the 20px gap + overlaps 1px under each card */
    width: 24px;
    height: 12px;
    background: linear-gradient(to bottom, #a85c2c 0%, #8c4b22 100%);
    border: 1px solid #5d3113;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
    z-index: -1; /* behind the cards */
}

.proceso-step-card:last-child::after {
    display: none;
}

/* Leaf Card container styling (Wooden plaque) */
.leaf-card {
    background-image: url('../assets/images/btn_wood_light_bg.png') !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4a2c11 !important;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.65), -1px -1px 1px rgba(0, 0, 0, 0.35);
    padding: 16px 15px !important;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leaf-card:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
    color: #1a0a00 !important;
}

.leaf-card .step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(74, 44, 17, 0.55) !important;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

.leaf-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #8c4b22 !important;
}

.leaf-card p {
    font-size: 0.78rem;
    color: #4a2c11;
    line-height: 1.35;
    margin-bottom: 0;
}

/* Step Card Image Styles */
.step-img-container {
    width: 100%;
    height: 90px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid #8c4b22;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.15);
    background-color: #2b180d;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.leaf-card:hover .step-img {
    transform: scale(1.08);
    opacity: 1;
}

/* RESPONSIVE DESIGN (Vertical stacked list with vertical wooden links) */
@media (max-width: 991px) {
    .proceso-connect-container {
        flex-direction: column;
        align-items: center;
        gap: 30px; /* vertical spacing */
        margin-top: 40px;
        max-width: 100%;
    }

    .proceso-step-card {
        width: 100%;
        max-width: 320px;
        transform: translateY(20px);
        opacity: 0;
    }

    /* Vertical Wood Connector Dowels */
    .proceso-step-card::after {
        right: auto;
        top: auto;
        left: 50%;
        bottom: -22px; /* bridges the 30px gap */
        width: 12px;
        height: 14px;
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   SECCIÓN CALL TO ACTION (CTA NARANJA)
   ========================================================================== */

.cta {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.5%);
    background-size: 30px 30px;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--color-text-light);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.9;
    font-weight: 300;
}

.cta .btn-secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cta h2 {
        font-size: 2.1rem;
    }
}

/* ==========================================================================
   SECCIÓN CONTACTO & FORMULARIO & MAPA
   ========================================================================== */

.contacto-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contacto-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto-item-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(232, 122, 30, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.contacto-item-body p,
.contacto-item-body a {
    color: var(--color-text-muted-dark);
    font-size: 0.95rem;
}

.contacto-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: var(--color-bg-light-grey);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.map-container {
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contacto-form-container {
    background-color: var(--color-bg-light-grey);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--color-text-dark);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 122, 30, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #c62828;
}

@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 96px;
    /* Stacked above back-to-top */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-primary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(232, 122, 30, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(232, 122, 30, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(232, 122, 30, 0);
    }
}

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

.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 1px solid var(--color-border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr 1.2fr;
    /* 4 balanced columns */
    gap: 40px;
    /* Tighter gap to fit 4 columns beautifully */
    margin-bottom: 60px;
    align-items: start;
    /* Ensures all columns align perfectly at the top */
}

.footer-col h4 {
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    /* Reset default browser top margin */
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col.about p {
    color: var(--color-text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    /* Align with top of h4 headings */
    margin-bottom: 24px;
    /* Match h4 margin-bottom */
}

.footer-logo-img {
    height: 162px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--color-text-muted-light);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-col.contact-col p {
    color: var(--color-text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col.contact-col svg {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link {
    font-size: 0.85rem;
    color: var(--color-text-muted-light);
}

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

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   SCROLL REVEAL & ENTRY ANIMATIONS
   ========================================================================== */

/* Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Delay modifiers */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Entry animations for Hero */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-actions.slide-up {
    animation-delay: 0.3s;
}

.hero-text.slide-up {
    animation-delay: 0.15s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    /* Positioned at the very bottom */
    /* Placed cleanly below the WhatsApp button */
    right: 30px;
    width: 54px;
    /* Slightly larger to appreciate the wood ring detail */
    height: 54px;
    background-image: url('../assets/images/back_to_top_wood.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #4a2c11 !important;
    /* Dark wood-carved color for the arrow */
    border-radius: 0 !important;
    /* Remove border-radius since shape comes from transparent PNG */
    border: none !important;
    /* Remove border */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    z-index: 998;
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal), filter 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    overflow: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.08) !important;
    /* Lift and scale up */
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.45)) !important;
    color: #1a0a00 !important;
    /* Darken arrow slightly */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .whatsapp-float {
        bottom: 76px;
        /* Stacked above back-to-top on mobile */
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   CUSTOM CURSOR SEGUIDOR (HAMMER THEME) & UX
   ========================================================================== */

.custom-cursor {
    width: 72px;
    /* Increased from 48px */
    height: 72px;
    /* Increased from 48px */
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
}

.cursor-hammer-img {
    width: 64px;
    /* Increased from 44px */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    transform: rotate(45deg);
    /* Default rotation to point at 14:00 (2 o'clock) */
}

.custom-cursor .cursor-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1.5px;
    opacity: 0;
    height: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Clicking animation (tap effect) */
.custom-cursor.clicking .cursor-hammer-img {
    transform: rotate(75deg) scale(0.85);
    /* Swings down on click */
}

/* Hover over portfolio items */
.custom-cursor.hovering-gallery {
    width: 90px;
    height: 90px;
    background-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(232, 122, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-cursor.hovering-gallery .cursor-hammer-img {
    width: 48px;
    /* Increased from 32px */
    transform: rotate(45deg);
}

.custom-cursor.hovering-gallery .cursor-text {
    opacity: 1;
    height: auto;
}

/* Hover over general interactive elements (buttons, links) */
.custom-cursor.hovering-link {
    width: 52px;
    height: 52px;
    background-color: rgba(18, 18, 18, 0.65);
    /* Soft dark glass to contrast with wooden buttons */
    backdrop-filter: blur(3px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(3px);
    border: 1.5px solid var(--color-primary);
    /* Teak border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    /* Elegant 3D shadow */
}

.custom-cursor.hovering-link .cursor-hammer-img {
    width: 40px;
    /* Increased from 28px */
    transform: rotate(60deg);
}

@media (pointer: coarse) {

    /* Completely disable on touchscreen devices */
    .custom-cursor {
        display: none !important;
    }
}

/* ==========================================================================
   FANCYBOX LIGHTBOX PREMIUM STYLING OVERRIDES
   ========================================================================== */

.fancybox__container {
    --fancybox-bg: rgba(10, 10, 10, 0.96);
    --fancybox-color: #fff;
    --fancybox-accent-color: var(--color-primary);
    font-family: var(--font-body);
}

.fancybox__toolbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.fancybox__caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 30px;
    text-align: center;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.fancybox__caption a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* GSAP Animations reveals placeholders (avoid FOUC) */
.reveal-el {
    opacity: 1;
}

.header .btn-wood {
    padding: 12px 28px !important;
    font-size: 0.95rem;
    /* Larger header button text */
}

.btn-wood-light {
    background-image: url('../assets/images/btn_wood_light_bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4a2c11 !important;
    /* Dark teak brown for high contrast on light pine wood */
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6), -1px -1px 1px rgba(0, 0, 0, 0.4);
    font-weight: 800 !important;
    padding: 18px 44px !important;
    font-size: 1.15rem;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    overflow: visible !important;
}

.btn-wood-light:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
    color: #1a0a00 !important;
    /* Slightly darker brown on hover */
}

.btn-wood-light:active {
    transform: translateY(-1px) scale(0.98);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
}

/* --- FOOTER SOCIAL WOOD-DISC BUTTONS --- */
.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 0;
    /* Reset top margin under h4 header */
}

.footer-social-btn {
    width: 46px;
    /* Slightly smaller than back-to-top for perfect scaling */
    height: 46px;
    background-image: url('../assets/images/back_to_top_wood.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #4a2c11 !important;
    /* Dark wood-carved look */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    border-radius: 0 !important;
    border: none !important;
    cursor: pointer;
}

.footer-social-btn:hover {
    transform: translateY(-4px) scale(1.08) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)) !important;
    color: #1a0a00 !important;
}


/* --- TIMELINE WOOD-CARVING STEP IMAGES --- */
.step-img-container {
    width: 100%;
    height: 90px; /* Reduced from 120px to save height */
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid #8c4b22;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.15);
    background-color: #2b180d;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.leaf-card:hover .step-img {
    transform: scale(1.08);
    opacity: 1;
}