/* ==========================================================================
   premium design system - styles.css
   mueblerialg spa - custom high-end furniture website
   ========================================================================== */

/* 1. TYPOGRAPHY & IMPORTS */
@import url('https://db.onlinewebfonts.com/c/240a7cb10b49b02c94ceddc459d385a9?family=Gagalin-Regular');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-matte-black: #121212;
    --color-black-deep: #0a0a0a;
    --color-black-light: #1c1c1c;

    --color-metallic-gold: #d4af37;
    --color-soft-gold: #f5e6a8;
    --color-gold-dark: #a67c1e;

    --color-matte-green: #385c43;
    /* Verde mate elegante oliva */
    --color-green-glow: #4a785b;
    /* Verde mate claro para hover */
    --color-green-dark: #17241c;
    /* Verde mate oscuro para paneles */
    --color-green-premium: #2ecc71;
    /* Verde premium para botones de contacto */

    --color-text-white: #ffffff;
    --color-text-gray: #a0a0a0;
    --color-text-muted: #6e6e6e;

    /* Fonts */
    --font-primary: 'Gagalin-Regular', 'Gagalin', 'Impact', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Transition Speeds */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* 2. BASE RESET & INITIAL STYLING */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-matte-black);
    color: var(--color-text-white);
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Global Font Override (preserving Font Awesome icons) */
body,
p,
span:not(.fa):not(.fab):not(.fas):not([class*="fa-"]),
a:not(.fa):not(.fab):not(.fas):not([class*="fa-"]),
label,
button,
input,
select,
textarea {
    font-family: 'Montserrat', sans-serif !important;
}

/* Heading Typography Override (Gagalin for titles) */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-text,
.hero-subtitle-tag,
.section-title,
.proyectos-title,
.project-card-title,
.modal-title,
.modal-tag {
    font-family: 'Gagalin-Regular', 'Gagalin', 'Impact', sans-serif !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.black-bg-lighter {
    background-color: var(--color-black-deep);
}

/* 3. TYPOGRAPHY RULES */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-metallic-gold);
}

.gradient-gold-text {
    background: linear-gradient(135deg, var(--color-metallic-gold) 0%, var(--color-soft-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-text {
    color: var(--color-metallic-gold);
}

.font-light {
    font-weight: 300;
    color: var(--color-text-gray);
}

.section-tag {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.green-tag {
    color: var(--color-green-glow);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.section-title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text-gray);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--color-metallic-gold);
    margin-bottom: 30px;
}

.gold-line.center {
    margin-left: auto;
    margin-right: auto;
}

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

.text-green {
    color: var(--color-green-glow);
}

/* 4. BUTTONS & INTERACTIVE ELEMENTS */
.btn {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--color-metallic-gold);
    color: var(--color-black-deep);
}

.btn-gold:hover {
    background-color: var(--color-soft-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
}

.btn-outline:hover {
    border-color: var(--color-metallic-gold);
    color: var(--color-soft-gold);
    transform: translateY(-2px);
}

.btn-green {
    background-color: var(--color-matte-green);
    color: var(--color-text-white);
}

.btn-green:hover {
    background-color: var(--color-green-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 92, 67, 0.3);
}

.btn-green-premium {
    background-color: var(--color-green-premium);
    color: var(--color-text-white);
}

.btn-green-premium:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 15px var(--color-metallic-gold);
}

.btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-text-gold {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-metallic-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-text-gold:hover {
    color: var(--color-soft-gold);
}

.btn-text-gold:hover i {
    transform: translateX(4px);
    color: var(--color-green-glow);
}

.btn-text-gold i {
    transition: var(--transition-fast);
}

/* 5. NAV BAR & HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-matte-green);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: var(--color-black-deep);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 30px;
}

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

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 0.1em;
}

.nav-menu ul {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green-glow);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--color-green-glow);
}

.nav-menu a:hover {
    color: var(--color-text-white);
}

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

/* Hamburguesa mÃ³vil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition-smooth);
}

/* 6. HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomSlow 20s infinite alternate;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 60px;
}

.hero-logo-wrapper {
    margin-bottom: 25px;
}

.hero-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.animate-glow {
    animation: logoGlow 6s infinite alternate;
}

.hero-title {
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-metallic-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

/* 7. CATEGORÃAS GRID */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    display: block;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(18, 18, 18, 0.3) 50%, rgba(18, 18, 18, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition-smooth);
}

.category-content {
    transform: translateY(20px);
    transition: var(--transition-smooth);
    width: 100%;
}

.category-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-soft-gold);
    transition: var(--transition-fast);
}

.category-desc {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.category-card:hover .category-overlay {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.98) 0%, rgba(18, 18, 18, 0.6) 80%);
    box-shadow: inset 0 0 30px rgba(56, 92, 67, 0.2);
    border-color: rgba(56, 92, 67, 0.4);
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-card:hover .category-desc {
    opacity: 1;
    height: auto;
    margin-bottom: 20px;
}

.category-card:hover .category-title {
    color: var(--color-text-white);
}

/* 8. QUIÃ‰NES SOMOS */
.about-section {
    overflow: hidden;
    background-color: var(--color-black-deep);
}

.about-bg-accent {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.about-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-info h2 {
    margin-bottom: 20px;
}

.about-text {
    margin-bottom: 25px;
    font-size: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feat-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.gold-icon {
    font-size: 24px;
    color: var(--color-metallic-gold);
    margin-top: 3px;
    background: linear-gradient(135deg, var(--color-metallic-gold), var(--color-soft-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feat-item h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    margin-bottom: 5px;
}

.feat-item p {
    font-size: 14px;
    color: var(--color-text-gray);
    font-weight: 300;
}



/* 9. PROYECTOS RENDERIZADOS */
.featured-grid,
.renders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    margin-top: 40px;
}

.proyectos-grid,
.sub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 992px) {

    .proyectos-grid,
    .sub-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {

    .proyectos-grid,
    .sub-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.render-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.render-item.large-render {
    grid-row: span 2;
}

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

.render-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.render-info-overlay h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    color: var(--color-soft-gold);
    margin-bottom: 5px;
}

.render-info-overlay span {
    font-size: 13px;
    color: var(--color-text-gray);
    font-weight: 300;
}

.render-item:hover .render-img {
    transform: scale(1.05);
}

.render-item:hover .render-info-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 10. PROYECTOS DESTACADOS */
.proyectos-section {
    margin-top: 60px;
    text-align: center;
}

.proyectos-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.proyectos-filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.proyectos-filtros button {
    background: #121212;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 13px;
    text-transform: uppercase;
}

.proyectos-filtros button:hover,
.proyectos-filtros button.active {
    background: #d4af37;
    color: #121212;
}


.proyectos-grid .render-item,
.sub-gallery-grid .render-item {
    height: 280px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.proyectos-grid .render-item:hover,
.sub-gallery-grid .render-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.proyecto-card,
.project-card {
    position: relative;
    overflow: hidden;
    background: var(--color-black-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0 !important;
    /* No padding so image occupies entire card */
    box-shadow: none;
    transition: var(--transition-smooth);
    height: 100%;
    box-sizing: border-box;
}

.proyecto-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.proyecto-card .project-img-wrapper,
.project-card .project-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.proyecto-card img,
.proyecto-card .project-img,
.project-card img,
.project-card .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    transition: var(--transition-smooth);
}

.proyecto-card:hover img,
.proyecto-card:hover .project-img,
.project-card:hover img,
.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Hover Info Overlay */
.proyecto-card .project-info,
.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 80%, rgba(10, 10, 10, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    text-align: left;
}

.proyecto-card:hover .project-info,
.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.proyecto-card h3,
.proyecto-card h4,
.proyecto-card .project-card-title,
.project-card h3,
.project-card h4,
.project-card .project-card-title {
    color: var(--color-soft-gold) !important;
    font-family: var(--font-primary) !important;
    font-size: 1.20rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.proyecto-card p,
.proyecto-card .project-card-desc,
.project-card p,
.project-card .project-card-desc {
    color: var(--color-text-gray) !important;
    font-family: var(--font-secondary) !important;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.proyecto-card .btn-small,
.project-card .btn-small {
    margin-top: 5px;
    width: 100%;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 10px 15px;
    border-radius: 4px;
}


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

.filter-btn {
    background-color: var(--color-black-deep);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-text-gray);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-metallic-gold);
    color: var(--color-text-white);
}

.filter-btn.active {
    background-color: var(--color-metallic-gold);
    border-color: var(--color-metallic-gold);
    color: var(--color-black-deep);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Minimalist Rectangular Filter Buttons */
.filter-btn-rect {
    background-color: var(--color-black-deep);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-gray);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn-rect:hover {
    border-color: var(--color-metallic-gold);
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.02);
}

.filter-btn-rect.active {
    border-color: var(--color-metallic-gold);
    color: var(--color-metallic-gold);
    background-color: rgba(212, 175, 55, 0.08);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    background-color: var(--color-matte-black);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--color-metallic-gold);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(46, 204, 113, 0.45);
    border-color: var(--color-matte-green);
}

.project-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border: 2px solid var(--color-matte-green);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(18, 18, 18, 0.85);
    border: 1px solid var(--color-metallic-gold);
    color: var(--color-soft-gold);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 2px;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-text-white);
    line-height: 1.3;
}

.project-card-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* 11. SUB-GALERÃAS DE ESPECIALIDADES */
.sub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sub-gallery-card {
    background-color: var(--color-matte-black);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
}

.black-bg-lighter .sub-gallery-card {
    background-color: var(--color-black-light);
}

.sub-gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-green-glow);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(46, 204, 113, 0.1);
}

.sub-gallery-img {
    height: 250px;
    overflow: hidden;
}

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

.sub-gallery-card:hover .sub-gallery-img img {
    transform: scale(1.06);
}

.sub-gallery-info {
    padding: 25px;
}

.sub-gallery-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-soft-gold);
}

.sub-gallery-info p {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 12. COTIZADOR INTERACTIVO */
.quote-section {
    background-image: linear-gradient(135deg, var(--color-black-deep) 0%, var(--color-matte-black) 100%);
}

.quote-box {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(18, 18, 18, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.quote-form-side {
    padding: 50px;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.quote-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--color-soft-gold);
}

.quote-subtitle {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-gray);
    margin-bottom: 35px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-gray);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    background-color: var(--color-black-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-metallic-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Checkbox estilizado */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-white);
    text-transform: none;
    letter-spacing: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: var(--color-black-deep);
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.checkbox-group input[type="checkbox"]:checked+label .custom-checkbox {
    background-color: var(--color-matte-green);
    border-color: var(--color-green-glow);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.checkbox-group input[type="checkbox"]:checked+label .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--color-text-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Radio buttons estilizados */
.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-gray);
}

.radio-label input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-color: var(--color-black-deep);
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.radio-label input[type="radio"]:checked+.custom-radio {
    border-color: var(--color-metallic-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.radio-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-metallic-gold);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Subir archivo estilizado */
.file-upload-label {
    border: 1px dashed rgba(212, 175, 55, 0.4);
    background-color: rgba(212, 175, 55, 0.02);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.file-upload-label:hover {
    background-color: rgba(212, 175, 55, 0.06);
    border-color: var(--color-metallic-gold);
}

.file-upload-label i {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
    color: var(--color-metallic-gold);
}

.file-name-text {
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Panel de Resultados del Cotizador */
.quote-result-side {
    padding: 50px;
    background-color: var(--color-black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    max-width: 250px;
}

.calculator-icon {
    font-size: 50px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.result-placeholder h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    margin-bottom: 10px;
}

.result-placeholder p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.result-details {
    width: 100%;
}

.result-heading {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--color-soft-gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 10px;
}

.price-range {
    background-color: var(--color-matte-black);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 32px;
    color: var(--color-green-glow);
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.price-info {
    font-size: 11px;
    color: var(--color-text-muted);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.breakdown-item span {
    color: var(--color-text-gray);
}

.breakdown-item strong {
    color: var(--color-text-white);
    font-weight: 500;
}

.next-steps h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    margin-bottom: 10px;
    color: var(--color-soft-gold);
}

.next-steps ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.next-steps li {
    font-size: 12px;
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 13. CONTACTO Y UBICACIÃ“N */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-panel {
    background-color: var(--color-black-deep);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    color: var(--color-metallic-gold);
    margin-top: 3px;
}

.contact-card-item h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    margin-bottom: 5px;
    color: var(--color-soft-gold);
}

.contact-card-item p {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.contact-link:hover {
    color: var(--color-green-glow);
    text-decoration: underline;
}

.contact-map-panel {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 450px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.map-wrapper {
    width: 100%;
    height: 100%;
    /* Filtro oscuro para el mapa de Google */
    filter: grayscale(1) invert(0.9) contrast(1.2) brightness(0.9);
}

/* 14. FOOTER */
.footer-section {
    background-color: var(--color-black-deep);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 18px;
    letter-spacing: 0.10em;
    margin-bottom: 10px;
}

.brand-slogan {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 25px;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-text-gray);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-green-glow);
    border-color: var(--color-green-glow);
    color: var(--color-black-deep);
    box-shadow: 0 0 10px var(--color-green-glow);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-info h4 {
    font-size: 14px;
    color: var(--color-soft-gold);
    margin-bottom: 20px;
    border-left: 2px solid var(--color-metallic-gold);
    padding-left: 10px;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--color-text-gray);
}

.footer-links a:hover {
    color: var(--color-text-white);
    padding-left: 5px;
}

.footer-info p {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* 15. MODAL WINDOWS */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--color-matte-black);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 95%;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 95vh;
    overflow-y: auto;
}

.project-modal.active .modal-content-wrapper {
    transform: translateY(0) scale(1);
}

.modal-narrow {
    max-width: 500px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--color-green-glow);
    border-color: var(--color-green-glow);
    color: var(--color-black-deep);
    box-shadow: 0 0 10px var(--color-green-glow);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
}

.modal-gallery-side {
    background-color: var(--color-black-deep);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.modal-main-img-container {
    width: 100%;
    height: 580px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0c0c0c;
    transition: var(--transition-smooth);
}

.modal-thumbnails {
    display: none !important;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.modal-thumb:hover,
.modal-thumb.active {
    opacity: 1;
    border-color: var(--color-metallic-gold);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-side {
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.modal-info-side .project-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-metallic-gold);
    margin-bottom: 10px;
}

.modal-project-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-text-white);
}

.modal-project-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.technical-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.tech-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.tech-row span {
    color: var(--color-text-gray);
}

.tech-row strong {
    color: var(--color-soft-gold);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* Agendamiento Modal */
.meeting-form-container {
    padding: 40px;
}

.meeting-form-container h2 {
    font-size: 24px;
    margin: 15px 0 8px 0;
    color: var(--color-soft-gold);
}

.meeting-form-container p {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
}

.meeting-form-element {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.large-icon {
    font-size: 40px;
    color: var(--color-metallic-gold);
}

/* 16. TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--color-black-deep);
    border: 1px solid var(--color-green-glow);
    border-left: 4px solid var(--color-green-glow);
    color: var(--color-text-white);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast-success i {
    color: var(--color-green-glow);
}

/* 17. ANIMATIONS */
@keyframes zoomSlow {
    0% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7));
    }
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 20px;
        opacity: 0;
    }

    100% {
        top: 6px;
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }
}

/* Scroll Animations helper class */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 18. MEDIA QUERIES (RESPONSIVENESS) */

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

@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 42px;
    }

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

    .category-card {
        height: 380px;
    }


    .renders-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 320px 200px 200px;
    }

    .renders-item.large-render {
        grid-row: span 1;
    }

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

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

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

    .quote-form-side {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

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

    .modal-body-grid {
        grid-template-columns: 1fr;
    }

    .modal-gallery-side {
        padding: 20px;
    }

    .modal-main-img-container {
        height: 400px !important;
    }

    .modal-info-side {
        padding: 30px;
    }
}

@media (max-width: 768px) {

    .modal-main-img-container {
        height: 300px !important;
    }

    /* Mobile Navigation toggle */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-black-deep);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 1000;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-green-glow);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-green-glow);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }
}

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

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

    .sub-gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .quote-form-side {
        padding: 30px 15px;
    }

    .quote-result-side {
        padding: 40px 20px;
    }

    .price-value {
        font-size: 26px;
    }

    .contact-info-panel {
        padding: 25px 15px;
    }

}

/* ==========================================================================
   Interactive Kitchen Calculator Styles
   ========================================================================== */

.cotizador-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 5px;
}

.cotizador-buttons-grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cotizador-buttons-grid.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.btn-option {
    background-color: var(--color-black-light);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-text-gray);
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    width: 100%;
}

.btn-option:hover {
    border-color: var(--color-metallic-gold);
    color: var(--color-text-white);
    background-color: rgba(212, 175, 55, 0.05);
}

.btn-option.selected {
    background-color: var(--color-metallic-gold);
    border-color: var(--color-metallic-gold);
    color: var(--color-black-deep);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

@media (max-width: 768px) {
    .cotizador-buttons-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {

    .cotizador-buttons-grid.grid-3,
    .cotizador-buttons-grid.grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Toast error states */
.toast-error {
    border-color: #ff4d4d !important;
    border-left-color: #ff4d4d !important;
}

.toast-error i {
    color: #ff4d4d !important;
}

/* ============================================================
   INPUTS Y SELECTS PREMIUM (GLOBAL)
   ============================================================ */

/* ============================================================
   INPUTS Y SELECTS PREMIUM (GLOBAL)
   ============================================================ */

/* Estilo base */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    background: #181818;
    border: 1px solid #333;
    color: #f5f5f5;
    padding: 10px 14px;
    border-radius: 10px;
    width: 100%;
    transition: all 0.25s ease;
    outline: none;
    font-size: 0.95rem;
}

/* Glow verde al enfocar */
input:focus,
select:focus,
textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.45);
    background: #1f1f1f;
    transform: translateY(-1px);
}

/* Placeholder elegante */
input::placeholder,
textarea::placeholder {
    color: #888;
    transition: color 0.25s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #2ecc71;
}

/* Select con flecha premium */
select {
    appearance: none;
    background-image: linear-gradient(135deg, #2ecc71 0%, #2ecc71 100%);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 10px;
}

/* Textarea animado */
textarea {
    min-height: 90px;
    resize: vertical;
}

/* ============================================================
   CHECKBOX Y RADIO PREMIUM
   ============================================================ */

input[type="checkbox"],
input[type="radio"] {
    accent-color: #2ecc71;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="checkbox"]:active,
input[type="radio"]:active {
    transform: scale(1.2);
}

/* Checkbox personalizado del cotizador */
.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #555;
    display: inline-block;
    transition: all 0.25s ease;
}

input[type="checkbox"]:checked+label .custom-checkbox {
    background: #2ecc71;
    border-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.45);
}

/* ============================================================
   LABELS PREMIUM
   ============================================================ */

label {
    font-size: 0.9rem;
    color: #e6e6e6;
    margin-bottom: 6px;
    display: block;
    transition: color 0.25s ease;
}

input:focus+label,
select:focus+label,
textarea:focus+label {
    color: #2ecc71;
}

/* ==========================================================================
   CONTACT SECTION (HIELOSUR INSPIRED - LIGHT INDUSTRIAL PREMIUM)
   ========================================================================== */

.contact-premium-section {
    background-color: #f4f6f8;
    /* Light industrial gray background */
    color: #1a1a1a;
    padding: 80px 20px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2ecc71;
    /* Green brand highlight */
    background-color: rgba(46, 204, 113, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--color-text-gray);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

/* Contact Cards styling */
.contact-cards-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.contact-card.highlight-card {
    border: 1px solid rgba(46, 204, 113, 0.3);
    background-color: rgba(46, 204, 113, 0.02);
}

.contact-card-icon-wrap {
    font-size: 28px;
    color: #2ecc71;
    margin-bottom: 16px;
}

.contact-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.contact-card-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Green premium action buttons */
.contact-btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #2ecc71;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.15);
}

.contact-btn-green:hover {
    background-color: #27ae60;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.45);
    transform: translateY(-1px);
}

/* Map Column */
.contact-map-column {
    display: flex;
    flex-direction: column;
}

.map-container-frame {
    flex-grow: 1;
    min-height: 350px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

    .map-container-frame {
        min-height: 300px;
    }
}

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

@media (max-width: 576px) {
    .btn-nav-cta {
        display: none !important;
    }
}

.btn-nav-cta {
    background-color: var(--color-metallic-gold) !important;
    color: var(--color-black-deep) !important;
    border: none !important;
    font-weight: 600 !important;
}

.btn-nav-cta:hover {
    background-color: var(--color-matte-green) !important;
    color: var(--color-black-deep) !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* About Side Image Column */
.about-image-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.about-img-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.about-img-frame:hover .about-side-img {
    transform: scale(1.1);
}

.about-img-caption {
    font-family: 'Caveat', cursive !important;
    font-size: 1.35rem;
    color: var(--color-text-gray);
    text-align: right;
    line-height: 1.4;
    font-style: italic;
    border-right: 2px solid var(--color-metallic-gold);
    border-left: none !important;
    padding-right: 15px;
    padding-left: 0 !important;
    margin-top: 5px;
    width: 100%;
}

@media (min-width: 992px) {
    .about-grid {
        display: grid !important;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 50px;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-image-side {
        margin-top: 0;
    }
}

/* Constant slow zoom animation for all image cards (paused/scaled on hover) */
.category-img,
.project-img,
.project-img-wrapper img,
.project-img-wrap img,
.about-side-img {
    transform: scale(1.02);
    animation: zoomSlow 20s infinite alternate linear !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover override: stops animation and scales smoothly to 1.1 */
.category-card:hover .category-img,
.project-card:hover .project-img,
.project-card:hover .project-img-wrapper img,
.project-card:hover .project-img-wrap img,
.about-img-frame:hover .about-side-img {
    animation: none !important;
    transform: scale(1.1) !important;
}

/* ============================================================
   MEJORAS ULTRA PREMIUM Y RESPONSIVIDAD LIGHTBOX
============================================================ */

/* Mobile adjustment for professional lightbox arrows */
@media (max-width: 768px) {
    #lightbox-prev {
        left: 10px !important;
        background: rgba(10, 10, 10, 0.7) !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }

    #lightbox-next {
        right: 10px !important;
        background: rgba(10, 10, 10, 0.7) !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }

    #lightbox-modal .modal-content {
        max-width: 95vw !important;
    }
}

/* Hover dorado con brillo suave */
.filter-btn-rect:hover,
.filter-btn-rect.active {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.render-item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

/* Ensure smooth 3D tilts and perspective calculations */
.render-item {
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.4s ease;
}

/* Unified layout grid for all portfolio categories */
.renders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    /* higher row size for better visual presentation */
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .renders-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .renders-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 15px;
    }
}

/* Contorno de imágenes y tarjetas en color verde fino y elegante */
.render-item,
.category-card,
.about-img-frame,
.modal-main-img-container {
    border: 1px solid var(--color-matte-green) !important;
}

/* Ocultar textos e información sobre las imágenes en la sección de Proyectos Destacados */
#proyectos-destacados .render-info-overlay {
    display: none !important;
}

/* Lightbox modal smooth entrance fade-in and scale-in */
#lightbox-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#lightbox-modal.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

#lightbox-modal .modal-content {
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#lightbox-modal.active .modal-content {
    transform: scale(1) !important;
}

/* Cursor change when zoomed */
#lightbox-img.zoomed {
    cursor: grab;
}


/* ============================================================
   CARRUSEL HORIZONTAL - PROYECTOS DESTACADOS
   ============================================================ */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    width: 100%;
    padding: 15px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Card layout inside horizontal carousel */
.carousel-track .render-item {
    flex: 0 0 calc(33.333% - 16px);
    /* 3 cards in desktop */
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-track .render-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    /* Avoid native drag interfere with custom drag-to-scroll */
}

/* Carousel navigation buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid var(--color-metallic-gold);
    color: var(--color-soft-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-nav-btn:hover {
    background: var(--color-metallic-gold);
    color: #121212;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.carousel-nav-btn.prev {
    left: -25px;
}

.carousel-nav-btn.next {
    right: -25px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-track .render-item {
        flex: 0 0 calc(50% - 12px);
        /* 2 cards in tablets */
        height: 240px;
    }

    .carousel-nav-btn.prev {
        left: -15px;
    }

    .carousel-nav-btn.next {
        right: -15px;
    }
}

@media (max-width: 650px) {
    .carousel-track {
        gap: 15px;
    }

    .carousel-track .render-item {
        flex: 0 0 100%;
        /* 1 card in mobile */
        height: 220px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        display: none;
        /* Hide navigation buttons on mobile to allow native swipe space */
    }
}

/* Fuerza de tipografía Gagalin en cabecera navbar y primera sección hero */
.brand-text,
.nav-menu a,
.btn-nav-cta,
.hero-title,
.hero-subtitle-tag,
.hero-subtitle,
.hero-cta .btn,
.scroll-indicator span {
    font-family: 'Gagalin-Regular', 'Gagalin', 'Impact', sans-serif !important;
}

/* Fuerza de tipografía Caveat (mano escrita) en la sección La Empresa (Nosotros) y ajuste de tamaño */
#about,
#about :not(i):not([class*="fa-"]) {
    font-family: 'Caveat', cursive, sans-serif !important;
}

/* Restaurar fuente Gagalin para los encabezados de la sección La Empresa */
#about .section-tag,
#about h2.section-title {
    font-family: 'Gagalin-Regular', 'Gagalin', 'Impact', sans-serif !important;
}

#about h2.section-title {
    font-size: 38px !important;
}

#about .about-text {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
}

#about .feat-item h4 {
    font-size: 1.35rem !important;
}

#about .feat-item p {
    font-size: 1.15rem !important;
}

#about .about-img-caption {
    font-size: 1.15rem !important;
}