/* =====================================================
   quienes-somos.css  —  Estilos exclusivos de esta página
   ===================================================== */

/* ---- Active nav link ---- */
.qs-nav-active {
    color: #086AD8 !important;
    font-weight: 700 !important;

}

.scroll-top-btn {
    background-color: #086AD8;
    width: 40px;
    height: 40px;
    border-radius: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   PAGE HERO BANNER
   ===================================================== */
.qs-page-hero {
    background: none;
    padding: 70px 10% 60px 10%;
    color: #fff;
    position: relative;
    isolation: isolate;
}

.qs-page-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #000E36 0%, #086AD8 100%);
    pointer-events: none;
}

.qs-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.qs-page-hero-content {
    position: relative;
    z-index: 1;
}

.qs-breadcrumb {
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.qs-breadcrumb span {
    opacity: 1;
    font-weight: 600;
}

.qs-page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.1;
}

.qs-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.88;
    max-width: 560px;
}

/* =====================================================
   MVV + ABOUT: WRAPPER COMPARTIDO
   ===================================================== */
.qs-mvv-about-wrapper {
    position: relative;
    isolation: isolate;
    background: none;
}

.qs-mvv-about-wrapper::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(216, 216, 216, 0.5) 100%), url('./img/laptop_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.qs-mvv-about-wrapper > * {
    position: relative;
    z-index: 1;
}

/* =====================================================
   MISIÓN / VISIÓN / VALORES
   ===================================================== */
.qs-mvv-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 28px 10% 17px 10%;
    gap: 18px;
    align-items: stretch;
}

.qs-mvv-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 36px 20px 36px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.qs-mvv-card.qs-visible {
    opacity: 1;
    transform: translateY(0);
}

.qs-mvv-card.qs-visible:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.11);
}

/* Divider de acento bajo el icono */
.qs-mvv-divider {
    height: 3px;
    width: 48px;
    border-radius: 2px;
    margin-top: -4px;
}

.qs-mision-divider {
    background: #000E36;
}

.qs-vision-divider {
    background: #FF3E01;
}

.qs-valores-divider {
    background: #086AD8;
}

.qs-mvv-icon {
    display: flex;
    align-items: center;
    height: 54px;
}

.qs-mvv-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 0.9;
    margin-top: 4px;
}

.qs-mision-title {
    color: #000E36;
}

.qs-vision-title {
    color: #FF3E01;
}

.qs-valores-title {
    color: #086AD8;
}

.qs-mvv-text {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
}

/* --- Valores lista mejorada --- */
.qs-valores-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qs-valores-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 18px;
    position: relative;
}

.qs-valores-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #086AD8;
}

.qs-valor-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #000E36;
    line-height: 1.3;
}

.qs-valor-desc {
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
}

/* =====================================================
   ABOUT COMPANY CARD
   ===================================================== */
.qs-about-section {
    padding: 0 10% 50px 10%;
}

.b_lexware {
    padding: 15px 30px;
    border-radius: 10px;
}

.pa_lexware {
    background-color: #f3f3f3;
    padding: 27px 30px;
    border-radius: 10px;
}

.qs-about-card {
    background: #fff;
    border-radius: 16px;
    padding: 13px 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}

.qs-about-card.qs-visible {
    opacity: 1;
    transform: translateY(0);
}

.qs-about-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-about-logo-img {
    width: 140px;
    height: auto;
}

.qs-about-text p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #333;
}

.qs-about-text strong {
    color: #086AD8;
}

/* =====================================================
   TIMELINE SECTION
   ===================================================== */
.qs-timeline-section {
    position: relative;
    isolation: isolate;
    background-color: transparent;
    padding: 70px 10%;
}

.qs-timeline-section::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background-color: #fff;
    pointer-events: none;
}

.qs-timeline-section > * {
    position: relative;
    z-index: 1;
}

.qs-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #000E36;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.qs-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #086AD8;
    border-radius: 2px;
    margin: 14px auto 0 auto;
}

.qs-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qs-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #086AD8, #FF3E01);
    border-radius: 3px;
}

.qs-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 0 40px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.qs-timeline-item.qs-visible {
    opacity: 1;
    transform: translateX(0);
}

.qs-timeline-dot {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #086AD8;
    z-index: 1;
    margin-top: 4px;
}

.qs-timeline-dot--active {
    background: #086AD8;
    box-shadow: 0 0 0 5px rgba(8, 106, 216, 0.2);
}

.qs-timeline-content {
    background: #f7f9ff;
    border-radius: 12px;
    padding: 22px 28px;
    flex: 1;
    border-left: 4px solid #086AD8;
    transition: box-shadow 0.3s ease;
}

.qs-timeline-content:hover {
    box-shadow: 0 6px 24px rgba(8, 106, 216, 0.12);
}

.qs-timeline-year {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #086AD8;
    background: rgba(8, 106, 216, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.qs-timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000E36;
    margin-bottom: 6px;
}

.qs-timeline-content p {
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.qs-cta-section {
    position: relative;
    isolation: isolate;
    background-color: transparent;
    border-bottom: 1px solid #e0e0e0;
    padding: 40px 10%;
}

.qs-cta-section::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    width: 100dvw;
    transform: translateX(-50%);
    background-color: #EEEEEE;
    pointer-events: none;
}

.qs-cta-section > * {
    position: relative;
    z-index: 1;
}

.qs-cta-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.qs-cta-icon {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.qs-cta-text {
    flex: 1;
}

.qs-cta-text h2 {
    font-size: 28px;
    color: #000E36;
    font-weight: 500;
}

.qs-cta-btn {
    background-color: #086AD8;
    color: #fff;
    padding: 13px 60px;
    border-radius: 10px;
    font-size: 17px;
    white-space: nowrap;
    flex-shrink: 0;
}

.qs-cta-btn:hover {
    background-color: #0962bd;
}

/* =====================================================
   MEGA MENU (POP OUT) - ESTILOS IDÉNTICOS AL RESTO
   ===================================================== */
.dropdown-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav .nav-productos-link {
    padding: 8px 16px;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-container:hover .nav-productos-link {
    background-color: #086AD8;
    color: #ffffff !important;
    font-weight: 400;
    text-decoration: none;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    padding: 20px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 15px;
    z-index: 9999;
    pointer-events: none;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.dropdown-container:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    pointer-events: auto;
}

.mega-menu-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0A1A4D;
    border-bottom: 2px solid #086AD8;
    padding-bottom: 5px;
    display: inline-block;
    width: max-content;
}

.mega-menu-erp {
    color: #FF3E01;
    border-bottom: 2px solid #FF3E01;
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.mega-menu-list::-webkit-scrollbar {
    width: 5px;
}

.mega-menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mega-menu-list::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.mega-menu-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.mega-menu-list a {
    background-color: #E6E6E6;
    color: #333;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.mega-menu-col:first-child .mega-menu-list a:hover {
    background-color: #0A1A4D;
    color: #fff;
}

.mega-menu-col:last-child .mega-menu-list a:hover {
    background-color: #FF3E01;
    color: #fff;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {


    .qs-mvv-section {
        grid-template-columns: 1fr;
    }

    .qs-about-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 32px 24px;
        gap: 28px;
    }

    .qs-about-logo,
    .qs-about-text {
        width: 100%;
        display: block;
    }

    .b_lexware,
    .pa_lexware {
        width: 100% !important;
        box-sizing: border-box;
    }

    .b_lexware {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qs-page-hero h1 {
        font-size: 34px;
    }

    .qs-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .qs-cta-text h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .qs-page-hero {
        padding: 50px 5%;
    }

    .qs-mvv-section,
    .qs-about-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .qs-timeline-section {
        padding: 50px 5%;
    }

    .qs-cta-section {
        padding: 30px 5%;
    }
}

/* =====================================================
   FULL BLEED REAL EN ESCRITORIO
   El fondo ocupa el viewport; el contenido conserva la misma posición
   que tenía dentro del contenedor central de 1600 px.
   ===================================================== */
@media (min-width: 769px) {
    .qs-page-hero,
    .qs-mvv-about-wrapper,
    .qs-timeline-section,
    .qs-cta-section {
        width: 100vw;
        width: 100dvw;
        max-width: none;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        margin-left: -50dvw;
    }

    /* Los fondos se aplican al bloque real para que no puedan quedar
       ocultos detrás del contenedor principal de 1600 px. */
    .qs-page-hero {
        background: linear-gradient(135deg, #000E36 0%, #086AD8 100%);
        padding-left: max(10%, calc((100vw - 1600px) / 2 + 160px));
        padding-right: max(10%, calc((100vw - 1600px) / 2 + 160px));
    }

    .qs-mvv-about-wrapper {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(216, 216, 216, 0.5) 100%), url('./img/laptop_background.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .qs-mvv-section,
    .qs-about-section {
        padding-left: max(10%, calc((100vw - 1600px) / 2 + 160px));
        padding-right: max(10%, calc((100vw - 1600px) / 2 + 160px));
    }

    .qs-timeline-section {
        background-color: #fff;
        padding-left: max(10%, calc((100vw - 1600px) / 2 + 160px));
        padding-right: max(10%, calc((100vw - 1600px) / 2 + 160px));
    }

    .qs-cta-section {
        background-color: #EEEEEE;
        padding-left: max(10%, calc((100vw - 1600px) / 2 + 160px));
        padding-right: max(10%, calc((100vw - 1600px) / 2 + 160px));
    }

    .qs-page-hero::after,
    .qs-timeline-section::before,
    .qs-cta-section::before {
        display: none;
    }

    /* El wrapper ya mide el ancho completo del viewport. Se elimina por
       completo la segunda capa para impedir que la imagen se duplique. */
    .qs-mvv-about-wrapper::before {
        content: none !important;
        display: none !important;
    }

    /* El contenedor fijo y sus secciones internas solo organizan el contenido;
       ninguno puede volver a pintar una imagen o relleno sobre el fondo general. */
    .lexware-v2-content[data-lexware-page="quienes-somos"],
    .lexware-v2-content[data-lexware-page="quienes-somos"] .qs-mvv-section,
    .lexware-v2-content[data-lexware-page="quienes-somos"] .qs-about-section {
        background: transparent !important;
        background-image: none !important;
    }
}
