/* CSS Institucional - Axis 5S */
/* Colores establecidos: Azul Marino (#0A2342), Naranja (#F77F00), Gris Acero (#6C757D), Fondo Limpio (#FFFFFF) */

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

html {
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #ffffff;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0A2342;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.header-logo {
    height: 60px;
    width: auto;
    display: block;
}

.site-nav a {
    text-decoration: none;
    color: #0A2342;
    font-weight: 600;
    margin-left: 25px;
    font-size: 14px;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: #F77F00;
}

.site-nav a.btn-nav {
    background-color: #F77F00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
}

.site-nav a.btn-nav:hover {
    background-color: #d66d00;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #0A2342;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    text-decoration: none;
    color: #0A2342;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-nav a:hover {
    background-color: #f8f9fa;
    color: #F77F00;
}

.mobile-nav a.btn-nav-mobile {
    background-color: #F77F00;
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
}

.mobile-nav a.btn-nav-mobile:hover {
    background-color: #d66d00;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 60%, #f4f7fa 100%);
    padding: 80px 0;
    border-bottom: 4px solid #F77F00;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.badge {
    background-color: rgba(10, 35, 66, 0.08);
    color: #0A2342;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #6C757D;
    margin-bottom: 25px;
}

.hero-bullets ul {
    list-style: none;
    margin-bottom: 30px;
}

.hero-bullets li {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0A2342;
    display: flex;
    align-items: center;
}

.hero-bullets .dot {
    width: 8px;
    height: 8px;
    background-color: #F77F00;
    border-radius: 50%;
    margin-right: 12px;
}

.btn-primary {
    display: inline-block;
    background-color: #0A2342;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 32px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(10, 35, 66, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #F77F00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.3);
}

.hero-industrial-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.grid-2-align-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid #0A2342;
}

.text-center {
    text-align: center;
    justify-content: center;
}
.section-title.text-center {
    border-left: none;
    padding-left: 0;
}
.section-title.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #F77F00;
    margin: 12px auto 0 auto;
}

.section-subtitle {
    color: #6C757D;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-top: 4px solid #6C757D;
}

.problems-card {
    border-top-color: #dc3545;
}

.consequences-card {
    border-top-color: #0A2342;
    background-color: #f8f9fa;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.list-red, .list-green {
    list-style: none;
}

.list-red li, .list-green li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.list-red .icon, .list-green .icon {
    margin-right: 12px;
    font-size: 18px;
}

.consequence-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.consequence-item h4 {
    font-size: 16px;
    color: #0A2342;
    margin-bottom: 4px;
}

.consequence-item p {
    font-size: 14px;
    color: #6C757D;
}

.consequence-item .arrow {
    color: #F77F00;
    font-size: 18px;
}

/* Solution Section */
.solution-section {
    background-color: #f8f9fa;
}

.solution-header {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-badge {
    color: #F77F00;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.solution-header h2 {
    font-size: 36px;
    margin: 10px 0 20px 0;
}

.section-lead {
    font-size: 18px;
    color: #495057;
}

.solution-benefits h3 {
    margin-bottom: 20px;
}

.solution-visual-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Comparison Section */
.comparison-section {
    background-color: #ffffff;
}

.comparison-container {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.comparison-img {
    object-fit: cover;
}

.quick-comparison-text .before-box {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 4px;
}

.quick-comparison-text .after-box {
    background-color: #f3faf5;
    border-left: 4px solid #28a745;
    padding: 15px;
    border-radius: 4px;
}

.quick-comparison-text h4 {
    margin-bottom: 5px;
}

/* Methodology */
.methodology-section {
    background-color: #f4f7fa;
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.step-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-bottom: 4px solid #e2e8f0;
}

.step-card.active {
    border-bottom-color: #F77F00;
    box-shadow: 0 8px 25px rgba(247, 127, 0, 0.08);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 30px;
    background-color: #0A2342;
    color: #ffffff;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.step-card.active .step-num {
    background-color: #F77F00;
}

.step-card h3 {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 20px;
}

.step-card ul {
    list-style-type: square;
    padding-left: 20px;
    font-size: 14px;
    color: #495057;
}

.step-card li {
    margin-bottom: 8px;
}

/* Deliverables */
.deliverable-card {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 40px 25px;
    transition: transform 0.3s;
}

.deliverable-card:hover {
    transform: translateY(-5px);
}

.d-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.deliverable-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.deliverable-card ul {
    list-style: none;
    font-size: 14px;
    color: #6C757D;
}

.deliverable-card li {
    margin-bottom: 8px;
}

/* KPI Table */
.table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    border-radius: 8px;
}

.kpi-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    text-align: left;
}

.kpi-table th {
    background-color: #0A2342;
    color: #ffffff;
    padding: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.kpi-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

.font-bold { font-weight: 600; }
.text-red { color: #dc3545; }
.text-green { color: #28a745; }

.badge-table {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-table.positive {
    background-color: #e6f4ea;
    color: #137333;
}

.main-benefit-callout {
    background-color: #0A2342;
    color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
}

/* KPI Table Mobile Card Layout */
@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: visible;
    }
    
    .kpi-table thead {
        display: none;
    }
    
    .kpi-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .kpi-table tr {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .kpi-table td {
        display: block;
        padding: 8px 0;
        border-bottom: none;
        font-size: 14px;
    }
    
    .kpi-table td:first-child {
        font-size: 16px;
        font-weight: 700;
        color: #0A2342;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .kpi-table td:nth-child(2),
    .kpi-table td:nth-child(3) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        font-weight: 600;
    }
    
    .kpi-table td:nth-child(2)::before {
        content: "Antes: ";
        color: #6C757D;
        font-weight: 400;
        margin-right: 8px;
    }
    
    .kpi-table td:nth-child(3)::before {
        content: "Después: ";
        color: #6C757D;
        font-weight: 400;
        margin-right: 8px;
    }
    
    .kpi-table td:last-child {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px solid #f0f0f0;
    }
}

/* Why us section */
.list-check-orange {
    list-style: none;
    margin-top: 20px;
}

.list-check-orange li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.list-check-orange li::before {
    content: "✔";
    color: #F77F00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.why-us-slogan-box {
    background-color: #f4f7fa;
    border-left: 8px solid #F77F00;
    padding: 40px;
    border-radius: 0 8px 8px 0;
    text-align: center;
}

.slogan-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #0A2342;
    font-weight: 700;
    font-style: italic;
}

/* Proposal Section */
.proposal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: relative;
}

.card-badge {
    background-color: #F77F00;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.proposal-card h2 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.m-top-30 { margin-top: 30px; }

.proposal-include h4, .proposal-duration h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #6C757D;
}

.proposal-include ul {
    list-style-type: none;
}

.proposal-include li {
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.proposal-include li::before {
    content: "•";
    color: #0A2342;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
}

.duration-box {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 80px;
    flex-wrap: nowrap;
    width: 100%;
}

.days-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #0A2342;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.days-range {
    font-size: 42px;
    line-height: 1;
}

.days-label {
    font-size: 16px;
    font-weight: 600;
    color: #6C757D;
    margin-top: 4px;
}

.days-text {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

/* Contact and Footer */
.contact-section {
    background-color: #0A2342;
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 40px;
}

.contact-section h2 {
    color: #ffffff;
    font-size: 36px;
}

.subtitle-contact {
    color: #a0aec0;
    margin-bottom: 5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.contact-item-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s;
}

.contact-item-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.c-icon-large {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-item-card h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-item-card p {
    color: #cbd5e0;
    font-size: 14px;
}

.footer-brand {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1); /* Convierte el logo a blanco para visibilidad en fondo oscuro si es necesario, o se puede usar tal cual */
}

.slogan-footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #F77F00;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.copyright {
    font-size: 12px;
    color: #718096;
}

/* Responsive - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-3, .steps-flow {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .grid-2, .grid-3, .grid-2-align-center, .contact-grid, .steps-flow {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    
    /* Header responsive */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .site-nav {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    
    .why-us-slogan-box {
        border-left: none;
        border-top: 8px solid #F77F00;
        border-radius: 0 0 8px 8px;
    }
    
    /* Duration Box Mobile */
    .duration-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .days-num {
        font-size: 36px;
        align-items: center;
    }
    
    .days-range {
        font-size: 36px;
    }
    
    .days-label {
        font-size: 14px;
    }
    
    .days-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* Methodology Steps Mobile - Vertical Connector */
    .steps-flow {
        gap: 30px;
    }
    
    .step-card {
        position: relative;
    }
    
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -30px;
        width: 2px;
        height: 30px;
        background-color: #e2e8f0;
        transform: translateX(-50%);
    }
    
    /* Typography scaling for mobile */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    .step-card h3 {
        font-size: 18px;
    }
    
    .deliverable-card h4 {
        font-size: 16px;
    }
    
    .contact-section h2 {
        font-size: 28px;
    }
    
    .proposal-card h2 {
        font-size: 24px;
    }
}
