/* --- SISTEMA DE DISEÑO (Extraído del contexto previo) --- */
@font-face {
    font-family: 'Outfit';
    src: url('/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    /* Ajusta la ruta si es necesario o usa Google Fonts */
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fallback a Google Fonts si no tienes el archivo local */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #003264;
    /* Azul Corporativo */
    --primary-light: #143d72;
    /* Azul Claro */
    --secondary: #fab414;
    /* Amarillo Acento */
    --tertiary: #78c800;
    /* Verde Validación */
    --text-dark: #001a33;
    --text-gray: #546e7a;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --radius: 16px;
    --shadow: 0 10px 30px -5px rgba(0, 50, 100, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(0, 50, 100, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #ffc947;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 180, 20, 0.4);
}

/* --- HEADER --- */
header {
    background: rgba(0, 50, 100, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    background: white;
    padding: 4px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero-carousel {
    position: relative;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--primary);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.9) 20%, rgba(0, 50, 100, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: white;
    max-width: 700px;
    margin-inline: auto;
}

/* Diagrama en Hero (Estilo Simplificado) */
.process-diagram {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.node-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.node-card i {
    font-size: 2rem;
    color: var(--secondary);
}

.node-label {
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

/* --- SECCIONES Y GRID --- */
.section-divider {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.section-divider h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    font-weight: 700;
}

.section-padding {
    padding: 4rem 0;
}

.bg-white {
    background: var(--white);
}

.bg-light {
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-grid:last-child {
    margin-bottom: 0;
}

.feature-grid.reverse .text-col {
    order: 2;
}

.feature-grid.reverse .img-col {
    order: 1;
}

.section-subtitle {
    color: var(--tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.img-col img {
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.img-col:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}



.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-col ul li i {
    color: var(--tertiary);
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.integracion-erps-container {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.integracion-erps-container > img {
    height: 16px;
    width: auto;
    border-radius: 0px;
}
.integracion-erps-container > img.sap-b1 {
    height: 48px;
}
.integracion-erps-container > img.sap-2011 {
    height: 22px;
} 
.integracion-erps-container > img.oracle {
    height: 13px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-grid.reverse .text-col {
        order: 1;
    }

    .feature-grid.reverse .img-col {
        order: 2;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}