/* --- RESET & VARIABLES --- */
:root {
    --primary-red: #d32f2f;      /* Bruco Red */
    --secondary-red: #b71c1c;    /* Darker Interaction Red */
    --industrial-dark: #111111;  /* Deep Black/Charcoal */
    --steel-gray: #333333;       /* Machinery Gray */
    --light-gray: #f4f4f4;       /* Backgrounds */
    --pure-white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--steel-gray);
    background-color: var(--pure-white);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--industrial-dark);
    color: var(--light-gray);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-red);
}

.top-bar i { color: var(--primary-red); margin-right: 5px; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo { font-size: 1.8rem; font-weight: 800; color: var(--industrial-dark); letter-spacing: 2px; }
.red-b { color: var(--primary-red); font-size: 2.2rem; }

.nav-menu { list-style: none; display: flex; gap: 30px; }
.nav-link {
    text-decoration: none;
    color: var(--steel-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-link:hover { color: var(--primary-red); }

.hamburger {
    display: none;
    cursor: pointer;
    position: relative; 
    z-index: 2000; 
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--industrial-dark);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('gears.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%); 
    z-index: -1;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; font-weight: 300; letter-spacing: 2px; }

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    margin: 10px;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary { background: var(--primary-red); color: white; border: 2px solid var(--primary-red); }
.btn-primary:hover { background: var(--secondary-red); border-color: var(--secondary-red); }

.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--industrial-dark); }

/* --- GENERAL SECTIONS --- */
.container { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; color: var(--industrial-dark); text-transform: uppercase; }
.section-header hr { width: 60px; height: 3px; background: var(--primary-red); border: none; margin-top: 10px; }

/* --- ABOUT --- */
.about-flex { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 2; font-size: 1.1rem; color: #555; }
.about-text p { margin-bottom: 15px; }
.about-text strong { color: var(--industrial-dark); }

.bee-badge {
    flex: 1;
    background: var(--light-gray);
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 250px;
}
.bee-badge i { font-size: 3rem; color: var(--primary-red); margin-bottom: 15px; }

/* --- GRIDS --- */
.dark-section { background-color: var(--industrial-dark); color: white; padding: 80px 0; }
.dark-section h2 { text-align: center; margin-bottom: 50px; font-size: 2.2rem; text-transform: uppercase; }

.service-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; 
}

@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .product-layout { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-red); }
.service-card i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

/* --- ENHANCED MATERIAL TAGS --- */
.materials-list { margin-top: 50px; text-align: center; }
.materials-list h3 { color: var(--primary-red); margin-bottom: 20px; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 1px; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    padding: 6px 15px;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: 0.3s;
    color: #ccc;
    cursor: default;
}
.tags span:hover { background: var(--primary-red); border-color: var(--primary-red); color: white; }

/* --- TECHNICAL CAPABILITIES --- */
.technical-details { background-color: #fff; border-bottom: 1px solid #eee; }
.technical-details h3 { color: var(--primary-red); margin-bottom: 15px; font-size: 1.3rem; }

/* --- PRODUCTS --- */
.product-card { background: #f9f9f9; border: 1px solid #eee; }
.product-card h3 { color: var(--industrial-dark); }
.product-card p { color: #666; }

/* --- GALLERY CAROUSEL --- */
.gallery-section { margin-top: 60px; position: relative; }
.gallery-section h3 { text-align: center; text-transform: uppercase; color: var(--industrial-dark); margin-bottom: 20px; font-size: 1.5rem; }

.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 auto;
    width: 280px; 
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.carousel-item:hover img { transform: scale(1.05); }

/* --- FOOTER & CONTACT FORM --- */
footer { background: #000; color: #888; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.footer-info h3, .footer-form h3 { color: white; margin-bottom: 20px; text-transform: uppercase; font-size: 1.2rem; }
.footer-info p { margin-bottom: 15px; font-size: 0.95rem; }
.footer-info i { width: 25px; color: var(--primary-red); }

/* Footer Map */
.footer-map {
    margin-top: 25px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden; 
    line-height: 0;   
    filter: grayscale(100%) invert(90%) contrast(90%); 
    transition: 0.3s ease;
}
.footer-map:hover { filter: none; border-color: var(--primary-red); }

/* Form Elements */
.form-group { margin-bottom: 15px; }
.footer-form input, 
.footer-form textarea {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
    border-radius: 4px;
}
.footer-form input:focus, 
.footer-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}
.form-submit { width: 100%; margin: 10px 0 0 0; border-radius: 4px; }

.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; margin-top: 40px; font-size: 0.8rem; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; gap: 5px; padding: 5px; font-size: 0.75rem; }
    .hamburger { display: block; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; 
        flex-direction: column;
        background-color: var(--pure-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 2rem; }
    .hero-btns { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; margin: 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-info, .footer-form { text-align: center; }
    .about-flex { flex-direction: column; }
    .container { padding: 60px 20px; }
    .carousel-item { width: 220px; height: 220px; }
    
    .footer-map iframe { height: 200px; }

}
