/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #e60012;
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --bg-color: #2e2e2c;
    --border-color: #eaeaea;
    --max-width: 1200px;
    --font-main: 'Segoe UI', tahoma, geneva, verdana, sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-color);
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 10px 10px;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =========================================
   2. UI COMPONENTS
   ========================================= */

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
    transition: transform var(--transition-speed) ease;
}

.whatsapp-btn:hover img {
    transform: scale(1.1);
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-switcher img {
    height: 20px;
    width: 32px;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.lang-switcher img:hover {
    transform: scale(1.1);
}

/* =========================================
   3. HEADER
   ========================================= */
.main-header {
    padding: 20px 0;
}

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

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo {
    height: 100px;
}

.brand h1 {
    text-align: center;
}

.nav-link {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
}

.nav-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

/* =========================================
   4. HERO & SECTIONS
   ========================================= */
.hero-section {
    background: url('../img/hero.jpg') no-repeat center center/cover;
    padding: 100px 0;
}

.hero2-section {
    background: url('../img/materialesv3.png') no-repeat center center/cover;
    padding: 100px 0;
}

.slogan-section {
    background: url('../img/tools2.jpg') no-repeat center center/cover;
    margin-top: 60px;
    padding: 110px 0;
    text-align: center;
}

/* =========================================
   5. CATALOG SYSTEM (CSS Scroll Snap)
   ========================================= */
.catalog-section {
    padding-top: 60px;
}

.catalog-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-container {
    background-color: #fff;
    color: #333;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgb(0 0 0 / 10%);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Header/Footer Images */
.catalog-cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Slider Track */
.slider-wrapper {
    width: 100%;
    position: relative;
    background-color: #333;
}

.slider-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.slide-item img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none; 
}

/* =========================================
   6. MATERIALS & CONTACT
   ========================================= */
.material-section {
    padding-top: 60px;
    text-align: center;
}

.material-list h2 {
    margin: 1.5rem 0;
    font-weight: 500;
}

.contact-section {
    padding: 4rem 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-section .container {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}

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

.logo-item img {
    max-width: 300px;
}

.info-item a {
    color: var(--text-light);
    text-decoration: none;
}

.info-item a.phone {
    text-decoration: underline;
}

.contact-divider {
    border: 0;
    height: 1px;
    background: rgb(255 255 255 / 30%);
    margin: 1rem 0;
}

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
    background-color: #222;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Adjustments */
@media (width <= 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        gap: 1rem;
    }
}
