/* ========= BASE ========= */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../img/back web.png');
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
    background-color: #ececec;
    color: #333;
}

.page-wrapper {
    min-height: 100vh;
}

/* ========= HERO / PARTE SUPERIOR ========= */
.hero-section {
    padding-top: 55px;
    padding-bottom: 70px;
}

.hero-section .container {
    max-width: 1080px;
}

/* ========= LOGOS ========= */
.logos-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.logo-top {
    max-height: 115px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ========= TITULOS ========= */
.title-wrap {
    max-width: 860px;
    margin: 0 auto 34px auto;
}

.titulo-principal {
    margin: 0;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.04;
    color: #363636;
    letter-spacing: -1px;
}

.titulo-principal span {
    display: inline;
    margin-left: 10px;
    color: #3f6fe0;
}


.texto-descripcion {
    max-width: 760px;
    margin: 26px auto 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 400;
    color: #666;
}

/* ========= TABS ========= */
.tabs-wrap {
    margin-top: 34px;
}

.custom-tabs {
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.tab-btn {
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 28px !important;
    min-width: 170px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 0 !important;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: none !important;
}

.tab-btn:hover {
    color: #000 !important;
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.custom-tabs .nav-link.active {
    color: #000 !important;
    border: none !important;
    transform: translateY(0);
}

/* COLORES FIJOS POR TAB */
.tab-btn {
    background-color: #CCCCCC !important; /* GRIS */
}


/* Mantener color cuando están activas */
.custom-tabs .nav-link.active {
    background-color: #CCCCCC !important;
}


/* ========= CONTENEDOR GRANDE DE ABAJO ========= */
.custom-tab-content {
    margin-top: 0;
}

.content-box {
    background: #d9d9d9;
    
    padding: 38px 34px 50px 34px;
    border-radius: 0 18px 18px 18px;
    box-sizing: border-box;
}

.content-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 18px;
}

.content-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #525252;
    margin-bottom: 18px;
}

.demo-block {
    width: 100%;
   
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    margin-top: 24px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1200px) {
    .titulo-principal {
        font-size: 4.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 40px;
    }

    .titulo-principal {
        font-size: 3.4rem;
    }

    .texto-descripcion {
        font-size: 1rem;
        line-height: 1.8;
    }

    .tab-btn {
        min-width: 145px;
        font-size: 0.98rem;
        padding: 13px 20px !important;
    }

    .content-box {
        min-height: 620px;
    }
}

@media (max-width: 768px) {
    .logos-wrap {
        gap: 16px;
        margin-bottom: 20px;
    }

    .logo-top {
        max-height: 75px;
    }

    .titulo-principal {
        font-size: 2.4rem;
        letter-spacing: 0;
    }

    .titulo-principal span {
        margin-top: 5px;
    }

    .texto-descripcion {
        margin-top: 18px;
        font-size: 0.96rem;
        line-height: 1.7;
        padding: 0 8px;
    }

    .custom-tabs {
        gap: 8px;
    }

    .tab-btn {
        min-width: auto;
        width: calc(50% - 4px);
        font-size: 0.92rem;
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    .content-box {
        border-radius: 14px;
        min-height: 500px;
        padding: 24px 20px 30px 20px;
    }

    .content-box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .titulo-principal {
        font-size: 1.95rem;
    }

    .texto-descripcion {
        font-size: 0.92rem;
    }

    .tab-btn {
        width: 100%;
    }
}