/* VARIABLES & RESET */
:root {
    --primary-color: #ff6600; /* Naranja Industrial */
    --primary-dark: #cc5200;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f4f4;
    --text-color: #333;
    --text-light: #fff;
    --font-main: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

/* UTILITIES */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.section-title { font-size: 2rem; margin-bottom: 2rem; position: relative; display: inline-block; }
.section-title::after {
    content: ''; display: block; width: 50%; height: 3px; background: var(--primary-color); margin-top: 5px;
}

/* BOTONES */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   HEADER & NAVEGACIÓN (ESTILO CLÁSICO RESTAURADO)
   ========================================= */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo img { height: 50px; }

.nav-menu ul { 
    display: flex; 
    list-style: none; 
}
.nav-menu ul li { margin-left: 20px; }

.nav-menu a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: bold; 
    transition: color 0.3s; 
}
.nav-menu a:hover { color: var(--primary-color); }

/* Botón destacado SOLO para Contacto */
.nav-menu .btn-contact {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
.nav-menu .btn-contact:hover {
    background: var(--primary-dark);
    color: white;
}

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* HERO / SLIDER */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px; /* Offset del header fijo */
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: -2;
}
.hero-slider .slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: -1;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content .text-highlight { color: var(--primary-color); }

/* QUIENES SOMOS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-img img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.feature-list i { color: var(--primary-color); }

/* SERVICIOS (HOME) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.card:hover { border-bottom-color: var(--primary-color); transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* CONTACTO */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.info-item i { font-size: 1.5rem; color: var(--primary-color); width: 30px; }
.info-item a { color: var(--text-color); text-decoration: none; }
.info-item a:hover { color: var(--primary-color); }

.contact-form { background: var(--light-bg); padding: 2rem; border-radius: 8px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit;
}
.full-width { width: 100%; }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    background: #25d366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 2000;
}
.whatsapp-float:hover { transform: scale(1.1); background: #1ebc57; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 70px; right: -100%;
        background: white; height: calc(100vh - 70px); width: 70%;
        flex-direction: column; justify-content: center;
        transition: 0.4s;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; }
    .nav-menu ul li { margin: 1.5rem 0; }
    
    .hero-content h1 { font-size: 2rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
}

/* =========================================
   ESTILOS PARA PÁGINAS INTERNAS (NECESARIOS)
   ========================================= */

/* Ajuste del Hero para páginas internas */
.hero-internal {
    height: 60vh;
    min-height: 400px;
    margin-top: 70px;
}

/* Layout para Soluciones y Servicios */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.service-list ul {
    list-style: none;
    margin-top: 1rem;
}
.service-list li {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Layout para Sectores */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.sector-card {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.sector-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}
.sector-card h3 { font-size: 1.1rem; }

/* Layout para Tecnología (Fichas) */
.tech-spec-item {
    background: white;
    border-bottom: 2px solid #eee;
    padding: 2rem;
    margin-bottom: 1rem;
}
.tech-spec-item h3 { color: var(--primary-color); margin-bottom: 1rem; }
.tech-spec-item ul { padding-left: 1.5rem; }

/* Responsive internas */
@media (max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .hero-internal { height: 50vh; }
}