/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #0f2027; /* Azul industrial oscuro */
    --secondary-color: #f5a623; /* Naranja maquinaria */
    --text-color: #333333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav h1 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* --- ¡NUEVA IMAGEN INDUSTRIAL POTENTE! --- */
    background: linear-gradient(rgba(15, 32, 39, 0.205), rgba(32, 58, 67, 0.9)), url('Gemini_Generated_Image_3q71df3q71df3q71.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    font-weight: 300;
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    display: block;
    margin: 10px auto 0;
}

/* --- ANIMACIONES SCROLL --- */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* --- NOSOTROS --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
}

.about-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- VALORES CORPORATIVOS --- */
#valores {
    background-color: var(--primary-color);
    color: var(--white);
}

#valores .section-title {
    color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.value-item strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- SECTORES Y CATÁLOGO --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.sector-card {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.sector-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--secondary-color);
}

.sector-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Tablas de Productos */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
}

tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #f1f1f1; }

/* --- MARCAS --- */
.brands-container {
    column-count: 4;
    column-gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.brands-container div {
    padding: 5px 0;
    font-weight: 600;
    color: var(--primary-color);
}

.brands-container div::before {
    content: "✓ ";
    color: var(--secondary-color);
}

/* --- FOOTER / CONTACTO --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 5% 20px;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-item {
    font-size: 1.1rem;
}

.contact-item span {
    color: var(--secondary-color);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h2 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .brands-container { column-count: 2; }
    
    table, thead, tbody, th, td, tr { display: block; }
    th { display: none; }
    td { text-align: right; padding-left: 50%; position: relative; }
    td::before { 
        content: attr(data-label); 
        position: absolute; 
        left: 15px; 
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap; 
        text-align: left; 
        font-weight: bold; 
        color: var(--primary-color); 
    }
}