/* 
   JCS SpA - Design System & Global Styles
   Premium Industrial Branding | Maule, Chile
*/

:root {
    --primary: #f18132;
    --primary-dark: #d35400;
    --secondary: #1c1c1c;
    --accent: #2c3e50;
    --text-main: #333;
    --text-light: #666;
    --text-on-dark: #ffffff;
    --bg-light: #fdfdfd;
    --bg-soft: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .premium-font {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

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

ul {
    list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* --- UI Components --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(241, 129, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(241, 129, 50, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

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

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

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

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

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

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .desktop-nav ul {
        display: none; 
    }
    
    .mobile-toggle {
        display: block !important;
        margin-left: 15px;
    }

    .logo img {
        height: 60px !important; /* Keep mobile readable but not massive */
    }
}
