:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #D32F2F;
    --accent-hover: #B71C1C;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Responsive Spacing */
    --section-padding: 100px 0;
    --header-height: 70px;
    --dock-height: 70px;
}

body.light-mode {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden; 
    font-size: 1rem; 
}

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: var(--section-padding); position: relative; }

/* Desktop Only Helpers (Mobile First) */
.desktop-only { display: none !important; }
.hide-desktop { display: flex !important; }

/* Header - Default Mobile (Hidden or simplified) */
.header { 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    padding: 1rem 0; transition: var(--transition);
    background: rgba(18, 18, 18, 0.8); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}
.header.scrolled { padding: 0.8rem 0; }
.nav { display: flex; justify-content: center; align-items: center; } /* Center logo on mobile */
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 1.2rem; }
.logo-svg { width: 45px; height: 30px; }
.nav-links { display: none; } /* Use dock for mobile */

/* Mobile Dock (The new menu) */
.mobile-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 450px;
    height: var(--dock-height);
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dock-item {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}
.dock-item span:first-child { font-size: 1.4rem; }
.dock-item:hover, .dock-item.active { color: var(--accent-color); }
.dock-item svg { fill: currentColor; transition: var(--transition); }

/* Buttons & Elements */
.btn-primary, .btn-main, .form-btns button {
    background: var(--accent-color); color: white !important; padding: 0.8rem 1.8rem; border-radius: 50px;
    font-weight: 600; border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; width: 100%; /* Full width on mobile */
}
.btn-outline { 
    background: transparent; border: 1px solid white; color: white; padding: 0.8rem 1.8rem; 
    border-radius: 50px; font-weight: 600; text-decoration: none; transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
}

/* Hero - Mobile Optimized */
.hero { 
    min-height: 100vh; display: flex; align-items: center; position: relative; 
    background: #121212 url('https://images.pexels.com/photos/4246119/pexels-photo-4246119.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
    padding-top: 100px;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 5; }
.hero-content { position: relative; z-index: 10; text-align: center; }
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 700; }
.hero h1 span { color: var(--accent-color); display: block; }
.hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 2.5rem; color: #ccc; }
.hero-btns { display: flex; flex-direction: column; gap: 1rem; width: 100%; }

/* Grids & Cards - Mobile First (1 column) */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header blockquote { color: var(--text-secondary); margin-top: 0.5rem; font-size: 1.05rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.underline { width: 40px; height: 4px; background: var(--accent-color); border-radius: 10px; margin: 0 auto; }


.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.service-card { background: var(--card-bg); padding: 2.5rem 1.5rem; border-radius: 20px; border: 1px solid var(--glass-border); text-align: center; }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.content-image img { width: 100%; border-radius: 15px; }
.antique-frame { background: #fdfaf0; padding: 10px; border: 6px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.nosotros-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.nosotros-content { text-align: center; }
.quote-text { font-style: italic; color: var(--accent-color); font-weight: 600; margin-bottom: 1rem; font-size: 1.2rem; }

/* Form - Mobile Optimization */
/* Form - Mobile Optimization & Compact UI */
.quote-card { background: var(--card-bg); padding: 1.5rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border); }
@media (min-width: 768px) { .quote-card { padding: 2.5rem; border-radius: 25px; } }

.form-step { display: none; margin-top: 1.5rem; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
.form-compact-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }

/* Interactive Route Sketch */
.route-sketch { display: flex; flex-direction: column; gap: 0.8rem; position: relative; padding-left: 2rem; margin-bottom: 1.5rem; }
.route-sketch::before { content: ''; position: absolute; left: 8px; top: 15px; bottom: 15px; width: 2px; background: var(--glass-border); z-index: 1; }
.route-sketch .route-node { position: relative; z-index: 2; }
.route-sketch .route-node::before { content: ''; position: absolute; left: -2rem; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--accent-color); transform: translateY(-50%); }

.progress-container { display: flex; justify-content: space-between; position: relative; margin-bottom: 20px; }
.progress-container::before { content: ''; background: var(--glass-border); position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 3px; width: 100%; z-index: 1; }
.progress { background: var(--accent-color); position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 3px; width: 0%; z-index: 1; transition: var(--transition); }
.circle { width: 28px; height: 28px; background: var(--bg-color); border: 2px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; font-weight: 700; font-size: 0.75rem; }
.circle.active { border-color: var(--accent-color); color: var(--accent-color); }

.type-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.type-option { cursor: pointer; padding: 1.5rem; border: 1px solid var(--glass-border); border-radius: 15px; text-align: center; background: var(--bg-color); }
.type-option.selected { border-color: var(--accent-color); background: rgba(211, 47, 47, 0.1); }
.type-option div { font-size: 2rem; margin-bottom: 0.5rem; }

input, select, textarea { width: 100%; padding: 0.8rem 1rem; background: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-primary); font-family: inherit; margin-bottom: 0; font-size: 0.95rem; }
.form-btns { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }

.cat-header { background: rgba(211, 47, 47, 0.1); color: var(--accent-color); padding: 0.5rem 0.8rem; border-radius: 6px; font-weight: 700; font-size: 0.85rem; margin: 1rem 0 0.5rem; border-left: 3px solid var(--accent-color); }
.inventory-container { max-height: 50vh; overflow-y: auto; padding-right: 0.5rem; }
.item-ctrl { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--glass-border); }
.counter { display: flex; align-items: center; gap: 8px; }
.counter button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--glass-border); background: transparent; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center;}
.counter input { width: 30px; text-align: center; border: none; background: transparent; padding: 0; font-weight: bold; margin: 0; color: var(--text-primary); font-size: 1rem; }
.dynamic-sub-opts { margin-top: 0.5rem; padding: 0.8rem; background: var(--glass-bg); border-radius: 8px; border-left: 2px solid var(--accent-color); display: flex; flex-direction: column; gap: 0.6rem; }

/* Floating / Control Buttons */
.back-to-top {
    position: fixed; bottom: 100px; right: 20px; width: 45px; height: 45px;
    background: rgba(30,30,30,0.8); border: 1px solid var(--accent-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
    z-index: 1500; transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Footer - Mobile First */
.footer { background: #080808; padding: 4rem 0 2rem; border-top: 1px solid var(--glass-border); margin-bottom: 80px; } /* Margin to clear dock */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
.footer-col h3, .footer-col h4 { margin-bottom: 1.2rem; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 0.8rem; }
.footer-col .contact-link { display: flex; align-items: center; justify-content: center; gap: 10px; }
.copyright { text-align: center; margin-top: 3rem; color: var(--text-secondary); font-size: 0.85rem; }

/* Marketing Sections: Trust Badges, Timeline, FAQ, Testimonials, Tips */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; padding: 2rem 0; background: var(--card-bg); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.badge-item { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.badge-item svg { color: var(--accent-color); fill: currentColor; }

.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; }
.timeline-grid::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); z-index: 1; }
.timeline-card { background: var(--card-bg); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 15px; position: relative; z-index: 2; margin-left: 3rem; }
.timeline-card::before { content: attr(data-step); position: absolute; left: -3rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: var(--bg-color); border: 2px solid var(--accent-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; color: var(--accent-color); }

.faq-item { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.faq-header { padding: 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-content { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-secondary); }
.faq-item.active .faq-content { padding: 0 1.2rem 1.2rem; max-height: 500px; }
.faq-item.active .faq-header span { transform: rotate(45deg); color: var(--accent-color); }

.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.review-card { background: var(--card-bg); padding: 1.5rem; border-radius: 15px; border: 1px solid var(--glass-border); }
.review-stars { color: #FFD700; margin-bottom: 0.5rem; font-size: 1.2rem; letter-spacing: 2px; }

.tips-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.tip-card { background: var(--glass-bg); border-left: 4px solid var(--accent-color); padding: 1.5rem; border-radius: 0 15px 15px 0; }

/* Theme Toggle */
.theme-toggle { background: transparent; border: none; cursor: pointer; color: var(--text-primary); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); }

/* =============================================
   TABLET & DESKTOP ENHANCEMENTS (min-width)
   ============================================= */

@media (min-width: 768px) {
    :root {
        --section-padding: 140px 0;
        --header-height: 80px;
    }
    body { font-size: 1.1rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero-btns { flex-direction: row; justify-content: center; }
    .btn-main, .btn-outline { width: auto; padding: 0.9rem 2.4rem; }
    
    .services-grid, .tips-grid { grid-template-columns: repeat(2, 1fr); }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .form-btns { flex-direction: row; }
    
    .timeline-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .timeline-grid::before { top: 50px; left: 0; right: 0; bottom: auto; height: 2px; width: 100%; }
    .timeline-card { margin-left: 0; margin-top: 4rem; text-align: center; }
    .timeline-card::before { left: 50%; top: -4rem; transform: translateX(-50%); }
}

@media (min-width: 1024px) {
    .desktop-only { display: flex !important; }
    .hide-desktop { display: none !important; }
    
    .inventory-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; max-height: 600px; }
    .cat-header { grid-column: 1 / -1; }
    
    /* Header Desktop */
    .nav { justify-content: space-between; }
    .nav-links { display: flex; list-style: none; gap: 2.2rem; align-items: center; }
    .nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 1.05rem; transition: var(--transition); }
    .nav-links a:hover { color: var(--accent-color); }
    .btn-primary { width: auto; }
    .logo { font-size: 1.5rem; }
    
    /* Hero Desktop */
    .hero-content { text-align: left; max-width: 800px; }
    .hero h1 { font-size: 4.5rem; line-height: 1.1; }
    .hero h1 span { display: inline; }
    .hero p { font-size: 1.25rem; max-width: 600px; text-align: left; }
    .hero-btns { justify-content: flex-start; }
    
    /* Layouts Desktop */
    .section-header { text-align: left; }
    .underline { margin: 0; }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .content-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
    .nosotros-layout { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
    .nosotros-content { text-align: left; }
    
    /* Footer Desktop */
    .footer { margin-bottom: 0; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; text-align: left; }
    .footer-col .contact-link { justify-content: flex-start; }
    
    /* Floating Desktop */
    .back-to-top { bottom: 30px; right: 30px; }
    .whatsapp-ghost {
        position: fixed; bottom: 30px; right: 90px; width: 60px; height: 60px;
        background: transparent; border: 2px solid #25D366; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; z-index: 2000; transition: var(--transition);
    }
}

/* Transitions & Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
