/* styles.css - Casa Loma Premium Styling */

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

:root {
    /* Color Palette */
    --color-bg-primary: #0d0d0f;       /* Deep Ebony Black */
    --color-bg-secondary: #151518;     /* Rich Charcoal */
    --color-bg-tertiary: #1e1e24;      /* Lighter Carbon */
    
    --color-wood-oak: #c89d7c;         /* Warm Oak */
    --color-wood-walnut: #8d5b34;      /* Walnut */
    --color-wood-olive: #b88b4a;       /* Olive Wood */
    
    --color-resin-teal: #0d9488;       /* Turquoise Teal */
    --color-resin-black: #27272a;      /* Smoke Black */
    --color-resin-clear: rgba(255, 255, 255, 0.15); /* Clear Crystal */
    
    --color-gold: #d4af37;             /* Muted Luxury Gold */
    --color-gold-hover: #bda030;
    --color-gold-light: rgba(212, 175, 55, 0.15);
    
    --color-text-primary: #f8fafc;     /* Silk White */
    --color-text-secondary: #94a3b8;   /* Slate Muted */
    --color-text-muted: #64748b;
    
    /* Glassmorphism Defaults */
    --glass-bg: rgba(21, 21, 24, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --glass-blur: 16px;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.25s ease;
    
    /* Container Width */
    --container-max-width: 1200px;
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--color-text-primary);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--color-bg-primary);
}

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

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

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

/* Base layouts */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 8rem 0;
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-header h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ==========================================================================
   3. COMPONENTS & UTILITIES
   ========================================================================== */

/* Shimmer Button Effect */
.btn-shimmer {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-bg-primary);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    z-index: -1;
}

.btn-shimmer:hover::before {
    left: 150%;
}

.btn-shimmer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f9df7b 0%, var(--color-gold) 100%);
}

.btn-shimmer:active {
    transform: translateY(-1px);
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    border-radius: 8px;
}

/* Reveal on Scroll styling */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    height: 70px;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

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

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('assets/hero_river_table.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05); /* Slight zoom for parallax */
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 15, 0.4) 0%,
        rgba(13, 13, 15, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-top: 4rem;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   6. ARTESANÍA (ABOUT SECTION)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.about-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    padding: 1.5rem;
    border-left: 2px solid var(--color-gold);
}

.highlight-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.about-image-wrapper {
    position: relative;
}

.about-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

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

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

/* Geometric details */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border-right: 2px solid var(--color-gold-light);
    border-bottom: 2px solid var(--color-gold-light);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   7. CATÁLOGO / GALERÍA INTERACTIVA
   ========================================================================== */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-secondary);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.filter-btn.active {
    color: var(--color-bg-primary);
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.catalog-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.catalog-card-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

.catalog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 15, 0.1) 0%,
        rgba(13, 13, 15, 0.95) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.catalog-card-info {
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.catalog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.catalog-card-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.catalog-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.catalog-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.spec-item {
    font-size: 0.8rem;
}

.spec-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.spec-val {
    font-weight: 500;
}

.catalog-card-btn {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    opacity: 0;
    transition: var(--transition-smooth);
}

.catalog-card-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
}

/* Hover States */
.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

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

.catalog-card:hover .catalog-card-info {
    transform: translateY(0);
}

.catalog-card:hover .catalog-card-desc,
.catalog-card:hover .catalog-specs,
.catalog-card:hover .catalog-card-btn {
    opacity: 1;
}

/* 3D Tilt Effect on JS Hover */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card > * {
    transform: translateZ(20px);
}

/* ==========================================================================
   8. PROCESO DE CREACIÓN (TIMELINE)
   ========================================================================== */
.timeline-section {
    position: relative;
    background: var(--color-bg-secondary);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The center line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.1) 0%,
        var(--color-gold) 20%,
        var(--color-gold) 80%,
        rgba(212, 175, 55, 0.1) 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    width: 100%;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.timeline-content-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-item-inner {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content-side {
    text-align: left;
    align-items: flex-start;
    direction: ltr; /* Reset direction for text reading */
}

.timeline-item:nth-child(even) .timeline-media-side {
    direction: ltr;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-primary);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-node {
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
    box-shadow: 0 0 25px var(--color-gold);
}

.timeline-step {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
}

.timeline-img-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    height: 250px;
    border: 1px solid var(--glass-border);
}

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

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

/* ==========================================================================
   9. TESTIMONIOS (CAROUSEL)
   ========================================================================== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

.testimonial-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.testimonial-card {
    padding: 3rem;
    text-align: center;
    max-width: 700px;
}

.quote-icon {
    font-size: 4rem;
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    line-height: 0;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.testimonial-author {
    font-family: var(--font-body);
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel Nav Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.carousel-btn.prev {
    left: -80px;
}

.carousel-btn.next {
    right: -80px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background-color: var(--color-gold);
    width: 25px;
    border-radius: 5px;
}

/* ==========================================================================
   10. SIMULADOR & CONTACTO
   ========================================================================== */
.quote-section {
    background: var(--color-bg-secondary);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: stretch;
}

/* Custom Interactive Wood/Resin Customizer */
.customizer-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.customizer-preview-container {
    flex-grow: 1;
    background-color: var(--color-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 350px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.customizer-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Virtual Table Top Visualizer */
.table-visualizer {
    --table-width: 280px;
    --table-height: 160px;
    --resin-width: 40px;
    --wood-color: var(--color-wood-oak);
    --resin-color: var(--color-resin-teal);
    
    width: var(--table-width);
    height: var(--table-height);
    background-color: var(--wood-color);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 
                inset 0 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Wooden Slabs (left & right sides of river) */
.wood-slab-left, .wood-slab-right {
    flex: 1;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 2px, transparent 2px, transparent 15px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 4px, transparent 4px, transparent 30px);
    transition: var(--transition-smooth);
}

.wood-slab-left {
    border-right: 4px solid rgba(0, 0, 0, 0.2);
    /* Organic-like cut on the edge */
    clip-path: polygon(0% 0%, 100% 0%, 85% 20%, 95% 45%, 80% 65%, 90% 85%, 75% 100%, 0% 100%);
}

.wood-slab-right {
    border-left: 4px solid rgba(0, 0, 0, 0.2);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 25% 100%, 10% 85%, 20% 65%, 5% 45%, 15% 20%);
}

/* The Epoxy River Flowing in the center */
.resin-river {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--resin-width);
    left: calc(50% - (var(--resin-width) / 2));
    background: var(--resin-color);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    z-index: 1;
    transition: var(--transition-smooth);
    opacity: 0.95;
    /* River fluid textures using CSS gradients */
    background-image: 
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

/* Floating table shadow underneath */
.table-shadow {
    width: 260px;
    height: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    filter: blur(8px);
    margin-top: 35px;
    transition: var(--transition-smooth);
}

.preview-details {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.preview-price-box {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
}

.preview-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
}

.preview-price-value {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
    display: block;
}

/* Elegante Formulario */
.quote-form-container {
    padding: 3rem;
}

.quote-form-container h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Custom Input Fields */
.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.04);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Custom Interactive Select (Card styles) */
.custom-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.selector-option {
    position: relative;
    cursor: pointer;
}

.selector-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.selector-card {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition-fast);
}

.selector-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.selector-option input[type="radio"]:checked + .selector-card {
    border-color: var(--color-gold);
    background: var(--color-gold-light);
}

.selector-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.selector-extra {
    font-size: 0.75rem;
    color: var(--color-gold);
    display: block;
}

/* Sliders */
.range-slider-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.range-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--color-bg-tertiary);
    border-radius: 2px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-val {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
    color: var(--color-gold);
}

/* Validations & Forms Shaking */
.form-input.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.03);
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-input.error + .form-error-msg {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake-animation {
    animation: shake 0.4s ease;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Form success message */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-bg-secondary);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.form-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    border: 2px solid var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-text {
    color: var(--color-text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
    background-color: #060608;
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background-color: var(--color-gold-light);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.contact-info-list svg {
    margin-top: 3px;
    color: var(--color-gold);
    flex-shrink: 0;
}

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

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a:hover {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Up to 1100px: Grid layouts adjustments */
@media (max-width: 1100px) {
    .container {
        padding: 0 3rem;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .carousel-btn.prev {
        left: -40px;
    }
    
    .carousel-btn.next {
        right: -40px;
    }
}

/* Up to 900px: Sizing & Menus */
@media (max-width: 900px) {
    .section-padding {
        padding: 6rem 0;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    /* Hero Title scale */
    .hero-title {
        font-size: 3.2rem;
    }
    
    /* About grid layout */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-img {
        height: 400px;
    }
    
    /* Timeline design transforms to vertical-only side layout */
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-node {
        left: 2rem;
    }
    
    .timeline-item-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 5rem;
    }
    
    .timeline-content-side {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .timeline-item:nth-child(even) .timeline-item-inner {
        direction: ltr;
    }
    
    .timeline-item:nth-child(even) .timeline-content-side {
        text-align: left;
        align-items: flex-start;
    }
    
    /* Testimonial slider */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.15rem;
    }
    
    /* Footer elements */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Navigation menu hidden for toggle button */
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-bg-primary);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 99;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Menu active states for Toggle */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Up to 600px: Extreme responsive styling for small screens */
@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .catalog-filters {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-card {
        height: 400px;
    }
    
    .customizer-preview-container {
        padding: 1.5rem 1rem;
        min-height: 280px;
    }
    
    .table-visualizer {
        --table-width: 200px;
        --table-height: 120px;
        --resin-width: 30px;
    }
    
    .table-shadow {
        width: 180px;
    }
    
    .quote-form-container {
        padding: 1.5rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .custom-selector-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .carousel-btn {
        display: none; /* Hide buttons and rely on dot selectors for small screens */
    }
}
