@charset "UTF-8";


  /* VARIABLES DE COLOR Y CONFIGURACIÓN BASE */
  :root {
    --primary-gold: #c5945e;
    --dark-bg: #111111;
    --dark-card: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-muted: #777777;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Variables de fondo */
    --bg-logos: #ffffff; /* Ajustado a blanco puro para integrar los logos perfectamente */
    --bg-custom-blocks: #f5f3f2;
    --bg-value-section: #10281d;
    
    /* Configuración del Carrusel Infinito (14 logos) */
    --ticker-speed: 38s; 
    --logo-width: 160px;
    --logo-gap: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. MENÚ DE NAVEGACIÓN (HEADER) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0) 100%);
    padding: 20px 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
    background: #111111;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    width: 165px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
}

nav ul li a:hover {
    color: var(--primary-gold);
}

nav ul li a i {
    font-size: 10px;
    margin-left: 3px;
}

.btn-contact {
    background-color: var(--primary-gold);
    color: var(--text-light) !important;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-contact:hover {
    background-color: #b0814f;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--primary-gold);
}

/* 2. HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), 
                url('../images/Hero-Banner-Grupo-Encino_arboles y edificios.webp') no-repeat center center/cover;
    padding: 220px 0 100px 0; 
    color: var(--text-light);
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero h1 span {
    color: var(--primary-gold);
}

.hero p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 550px;
    color: #dddddd;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-filled {
    background-color: var(--primary-gold);
    color: var(--text-light);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn-filled:hover {
    background-color: #b0814f;
}

.btn-outline {
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 3. BARRA DE LOGROS / ESTADÍSTICAS */
.stats-bar {
    background-color: #202020; 
    color: var(--text-light);
    padding: 35px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-block {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 15px;
}

.stat-icon-png {
    width: auto;
    height: 55px; 
    display: block;
    object-fit: contain;
}

.stats-numbers {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 9px; 
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1.3; 
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background-color: var(--primary-gold);
    opacity: 0.6;
    margin: 0 5px;
}

/* 4. SECCIÓN LOGOS DE CLIENTES (FONDO ADAPTADO A BLANCO PURO) */
.trusted-by {
    background-color: var(--bg-logos);
    padding: 55px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
}

.trusted-by p {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 35px;
    font-weight: 600;
}

.ticker-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: infiniteScroll var(--ticker-speed) linear infinite;
}

.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.logo-item {
    width: var(--logo-width);
    margin: 0 calc(var(--logo-gap) / 2);
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Degradados laterales adaptados para fundirse con el fondo blanco */
.trusted-by::before, .trusted-by::after {
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}
.trusted-by::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-logos) 0%, rgba(255,255,255,0) 100%);
}
.trusted-by::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-logos) 0%, rgba(255,255,255,0) 100%);
}

/* 5. SECCIÓN SOLUCIONES INTEGRALES */
.ecosystem-section {
    padding: 100px 0;
    background-color: var(--bg-custom-blocks);
}

.ecosystem-header-block {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-gold);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.ecosystem-header-block p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.infografia-ecosistema {
    display: grid;
    grid-template-columns: 1fr 440px 1fr;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.ecosystem-col {
    display: flex;
    flex-direction: column;
    gap: 60px;
    z-index: 5;
}

.col-left-align { margin-right: -45px; }
.col-right-align { margin-left: -45px; }

.ecosystem-card {
    background-color: var(--text-light);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.card-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.card-header-info img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.card-header-info h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.ecosystem-card p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-link-action {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.card-link-action:hover { opacity: 0.8; }

.col-left-align .ecosystem-card { text-align: left; }
.col-left-align .card-header-info { flex-direction: row; }

.col-right-align .ecosystem-card { text-align: right; }
.col-right-align .card-header-info { flex-direction: row-reverse; }
.col-right-align .card-link-action { flex-direction: row-reverse; }

.center-node-ecosystem {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.center-vector-img {
    width: 100%;
    height: auto;
    max-width: 440px;
    display: block;
}

/* 6. ¿POR QUÉ GRUPO ENCINO? */
.value-section {
    background-color: var(--bg-value-section);
    color: var(--text-light);
    padding: 80px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 40px;
    align-items: center;
}

.value-grid .section-title { margin-bottom: 0; }

.features-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0; 
}

.features-row .feature-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.features-row .feature-item:not(:last-child) {
    border-right: 1px solid #87948e;
}

.feature-icon-wrapper {
    margin-bottom: 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.feature-item h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-item p {
    font-size: 11px;
    color: #d1ddd7;
    line-height: 1.4;
}

/* 7. METODOLOGÍA */
.method-section {
    padding: 100px 0;
    background-color: var(--bg-custom-blocks);
}

.method-intro { margin-bottom: 60px; }

.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.method-steps::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 50px;
    right: 50px;
    height: 1px;
    background-color: #dddddd;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: #dcdad9;
    line-height: 1;
    margin-bottom: -15px;
    display: block;
}

.step-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.bg-diag { background-color: #1F513B; }
.bg-dis { background-color: #6e5127; }
.bg-impl { background-color: #7B8A74; }
.bg-opt { background-color: #B47E45; }

.step-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.step-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 8. CASOS DE ÉXITO */
.cases-section {
    background-color: #272727;
    color: var(--text-light);
    padding: 90px 0 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 50px;
}

.cards-slider-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cases-cards-wrapper {
    position: relative;
    width: 100%;
}

.cases-cards {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cases-cards.active { display: grid; }

.case-card {
    position: relative;
    height: 320px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background-size: cover;
    background-position: center;
}

.case-1 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa Logistica_.webp'); }
.case-2 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa Industrial_.webp'); }
.case-3 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa Financiera_.webp'); }
.case-4 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa de Construccin_.webp'); }
.case-5 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa del Sector Retail_webp.webp'); }
.case-6 { background-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3)), url('../images/Empresa Manufacturera_.webp'); }

.case-icon-top {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-icon-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-card p {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 0;
    line-height: 1.4;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-dot.active {
    background-color: var(--primary-gold);
    transform: scale(1.2);
}

/* 9. CONTACTO */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(rgba(13, 23, 18, 0.9), rgba(13, 23, 18, 0.9)), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070') no-repeat center center/cover;
    color: var(--text-light);
}

.contact-section .section-title { font-size: 44px; }
.contact-section .section-title span { color: var(--primary-gold); }

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 18px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 13px;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    background-color: var(--primary-gold);
    color: var(--text-light);
    border: none;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
}

/* 10. FOOTER */
footer {
    background-color: #090909;
    color: #888888;
    padding: 70px 0 30px 0;
    font-size: 13px;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 15px;
    line-height: 1.6;
    padding-right: 20px;
}

.footer-col h5 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: #161616;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.social-links a:hover { background-color: var(--primary-gold); }

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

/* RESPONSIVIDAD */
@media (max-width: 1200px) {
    .infografia-ecosistema { grid-template-columns: 1fr 380px 1fr; }
    .col-left-align { margin-right: -25px; }
    .col-right-align { margin-left: -25px; }
}

@media (max-width: 992px) {
    .stats-grid {
        flex-wrap: wrap;
        gap: 30px 10px;
    }
    .stat-block {
        flex: none;
        width: 45%;
        justify-content: center;
    }
    .stat-divider { display: none; }
    
    .infografia-ecosistema {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ecosystem-col {
        gap: 30px;
        margin: 0 !important;
    }
    .center-node-ecosystem {
        grid-row: 1;
        max-width: 340px;
        margin: 0 auto;
    }
    .col-right-align .ecosystem-card { text-align: left; }
    .col-right-align .card-header-info { flex-direction: row; }
    .col-right-align .card-link-action { flex-direction: row; }

    .value-grid, .cases-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-row { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 0;
    }
    .features-row .feature-item { padding: 0 15px; }
    .features-row .feature-item:not(:last-child) { border-right: none; }
    .features-row .feature-item:nth-child(odd) { border-right: 1px solid #87948e; }

    .method-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    .method-steps::before { display: none; }
    .cases-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-area {
        position: relative;
        margin: 0 auto;
        z-index: 999;
    }

    .logo-img {
        width: 140px;
    }

    nav {
        display: block !important; 
        position: fixed;
        top: 0;
        left: -100%; 
        right: auto;
        width: 280px;
        height: 100vh;
        background-color: #111111;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        padding: 100px 30px 40px 30px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    nav.menu-open {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn-contact {
        text-align: center;
        margin-top: 15px;
        border-bottom: none !important;
    }

    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    
    .stat-block {
        width: 100%;
        justify-content: flex-start;
        padding-left: 20%;
    }
    
    .features-row { 
        grid-template-columns: 1fr; 
        gap: 40px 0;
    }
    .features-row .feature-item {
        border-right: none !important;
        border-bottom: 1px solid #87948e;
        padding-bottom: 25px;
    }
    .features-row .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .form-row, .method-steps, .footer-grid { grid-template-columns: 1fr; }
}