/* Home cards */

body {
    background-color: #F6F6F6 !important;
    opacity: 0;
    transition: opacity 0.4s ease;
}

a label {
    cursor: pointer;
}

.container-xl > .card {
    padding: 5rem 1rem;
}

.card {
    transition: box-shadow 0.2s ease;
}

.card:not(.shadow-sm):hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 8px 3px !important;
}

.card_provider_1 {
    background-size: 37% !important;
}

.card_provider_2 {
    background-size: 32% !important;
}

.card_provider_3 {
    background-size: 32% !important;
}

.card_provider_14 {
    background-size: 37% !important;
}

.card_provider_5 {
    background-size: 37% !important;
}

.card_provider_6 {
    background-size: 37% !important;
}

.card_provider_7 {
    background-size: 30% !important;
}

.card_provider_8 {
    background-size: 30% !important;
}

.card_provider_9 {
    background-size: 30% !important;
}

.expositor-producto-subcategoria-lista > div {
    transition: opacity 0.5s ease;
}

.invisible {
    opacity: 0;
}

.hide {
    display: none;
}

.container-xl > .card > *:not(.caso-form-modal-container) {
    max-width: 950px;
    width: 100%;
}

.header-title {
    font-size: 40px;
    font-weight: 600;
}

.header-subtitle {
    font-size: 20px;
    font-weight: 400;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab !important;
    user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container a,  .scroll-container img {
    user-drag: none;
    -webkit-user-drag: none;
    flex-shrink: 0;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container .card {
    width: 500px;
}

.filtros-resultados .card h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.card-title, .container-title, .container-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-product-title {
    color: #711CA5;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
}

.container-title {
    font-size: 28px;
    font-weight: 700;
}

.container-subtitle {
    font-size: 24px;
    font-weight: 600;
}

.card-title {
    font-size: 25px;
    font-weight: 600;
}

.card-description, .card-description * {
    font-size: 14px;
    color: #7D7D7E;
    line-height: 20px;
}

.proveedor-title {
     font-size: 28px;
}

.roboto {
    font-family: "roboto", serif;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 25px;
        letter-spacing: 1.25px;
    }

    .header-subtitle {
        font-size: 14px;
        letter-spacing: 0.7px;
    }
}


/* Página de proveedor */

.proveedor-productos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.descripcion > p, table a, .descripcion li {
    font-size: 14px;
    line-height: 30px;
    font-weight: 400;
    text-decoration: none;
}

.proveedor-card {
    max-width: 500px;
    min-height: 240px;
    height: 100% !important;
}

.proveedor-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.proveedor-regiones {
    color: #711CA5;
    font-weight: 400;
}

/* Página de producto */

.producto-logo img {
    height: 300px;
    border-radius: 10px;
}

.empresa-tag {
    display: flex;
    height: 50px;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    padding: 15px;
    border-radius: 15px;
    box-shadow: #cdcdcd 1px 1px 6px 0;
    box-sizing: content-box;
}

.empresa-tag img {
    object-fit: contain;
    width: fit-content;
    height: 100%;
}

.empresa-tag h3 {
    margin: 0;
}

.producto-casos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.producto-caso {
    width: calc(50% - 10px);
    height: auto;
    aspect-ratio: 3 / 1;
    display: flex;
    border-radius: 20px;
    box-shadow: #cdcdcd 1px 1px 6px 0px;
    text-decoration: none;
    overflow: hidden;
}

.producto-caso-imagen {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-caso-imagen img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.producto-caso-info {
    width: 70%;
    padding: 15px;
}

.producto-caso-info h5 {
    font-size: 16px;
    line-height: 1;
    color: black;
    margin-bottom: 15px;
}

.producto-caso-info p {
    font-size: 12px !important;
    line-height: 1;
    color: #737373 !important;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
}

.table-responsive a {
    color: black;
}

.table-responsive a:hover {
    text-decoration: underline;
}


/* Página de casos de uso */

.caso-card label {
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.caso-card p {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.caso-card img {
    height: 50px;
    width: fit-content;
}

.caso-card-description {
    overflow: hidden;
    max-height: 120px;
    background-color: white;
}

.centro-card label:nth-of-type(1) {
    font-size: 16px;
    font-weight: 700;
}

.centro-card label:nth-of-type(2) {
    font-size: 16px;
    color: #711CA5;
    font-weight: 400;
}

.provider-small-card label:nth-of-type(1) {
    font-size: 18px;
    font-weight: 700;
}

.provider-small-card label:nth-of-type(2) {
    font-size: 14px;
    color: #711CA5;
    font-weight: 400;
}

.caso-documentacion > div {
    border-bottom: 1px solid #00000029;
}

.caso-documentacion > div:nth-of-type(1) {
    border-top: 1px solid #00000029;
}

.caso-documentacion span {
    font-size: 14px;
    color: #201F21;
    font-weight: 500;
    letter-spacing: 1.4px;
}


.caso-galeria {
    min-height: 230px;
    cursor: pointer;
}

.caso-galeria > img, .caso-galeria > video {
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.caso-form-modal-container {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191919c9;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    display: none;

}

.caso-form-modal {
    overflow-y: auto;
    height: 70%;
    width: 90%;
    max-width: 1000px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-radius: 5px;
    position: relative;
}

.caso-form-modal > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caso-form-modal-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.caso-galeria-left, .caso-galeria-right {
    width: 25px;
    height: auto;
    cursor: pointer;
    z-index: 2;
    padding: 0 5px;
    box-sizing: content-box;
}

@media (max-width: 576px) {
    .caso-form-modal-container {
        gap: 0;
    }

    .caso-galeria-left {
        margin-right: -40px;
    }

    .caso-galeria-right {
        margin-left: -40px;
    }

    .caso-form-modal {
        width: 97%;
    }
}


/* Página de Centro demostrador */

.centros-empresas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.centros-sectores > div {
    color: #711CA5;
    background-color: #f8f3fa;
}


/* Expositor de categorías y subcategorías */

.expositor-categoria {
    color: #2B2A2C;
    font-size: 18px;
}

.expositor-categorias-container {
    transition: height 0.4s ease;
    border-color: #00000029;
    border-width: 1px 0 1px 0;
    border-style: solid;
    overflow: hidden;
}

.expositor-subcategoria {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 10px;
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.5s ease;
}

.expositor-categorias-titulo {
    cursor: pointer;
}

.expositor-categorias-titulo h3 {
    color: #201F21;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.expositor-subcategoria-punto {
    width: 8px;
    height: 8px;
    border-radius: 8px;
}

.expositor-subcategoria-punto[data-categoria="adquisicion"] {
    background-color: #E88C8C;
}

.expositor-subcategoria-punto[data-categoria="comparticion"] {
    background-color: #711CA5;
}

.expositor-subcategoria-punto[data-categoria="explotacion"] {
    background-color: #388CE0;
}

.expositor-subcategoria-punto[data-categoria="estrategia"] {
    background-color: #7D7D7E;
}

.expositor-subcategoria-name {
    color: #7D7D7E;
}


/* Expositor de categorias y productos */

.expositor-producto-categoria-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.expositor-producto-categoria {
    cursor: default;
    color: #a09fa0;
    letter-spacing: 1px;
    position: relative;
}

.expositor-producto-categoria:before {
    content: '';
    position: absolute;
    background-color: rgba(114, 13, 165, 0.36);
    width: 0;
    height: 2px;
    bottom: -5px;
    transition: width 0.2s ease;
}

.expositor-producto-categoria.active {
    cursor: pointer;
    color: black;
    letter-spacing: 1px;
}

.expositor-producto-categoria.active:not(.selected):hover:before {
    background-color: rgba(114, 13, 165, 0.36);
    width: 100%;
}

.expositor-producto-categoria.selected:before {
    background-color: #720da5;
    width: 100%;
}

.expositor-producto-subcategoria-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    align-items: baseline;
    justify-content: center;
    width: 100%;
}

.expositor-producto-subcategoria {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3px 10px;
    overflow: hidden;
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.5s ease;
}

.expositor-producto-subcategoria-punto {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color: #E88C8C;
}

.expositor-producto-subcategoria img {
    width: 30px;
}

.expositor-producto-subcategoria-name {
    font-size: 14px;
    font-weight: 400;
    color: #201F21;
    white-space: nowrap;
}

.expositor-producto-categoria-select > option:not(.active) {
    display: none;
}


/* Filtros */

.producto-tag-subcategoria {
    max-width: 30px;
}

.filters-container {
    display: flex;
    flex-direction: column;
}

.filter-form {
    display: flex;
    gap: 10px;
}

.filters-responsive-container {
    width: 70%;
}

.filters-responsive {
    width: 100%;
    display: flex;
    gap: 10px;
}

.filters-responsive-input {
    width: 20%;
}

.filters-responsive-input span {
    display: none;
}

.filters-responsive-header, .filters-responsive-result {
    display: none;
}

.filtro-nombre-container {
    width: 30%;
    position: relative;
    display: flex;
    align-items: center;
}

.filtro-nombre-container > i:nth-of-type(1) {
    position: absolute;
    left: 12px;
    font-size: 18px;
    margin-top: 2px;
}

.filtro-nombre-container > i:nth-of-type(2) {
    position: absolute;
    right: 12px;
    font-size: 30px;
    color: #7D7D7E;
    margin-top: 4px;
}

.filtro-nombre {
    width: 100%;
    padding-left: 40px !important;
}

.filter-form select, .filter-form input {
    color: #4d4d4d;
    background-color: white;
}

.filter-form select.selected {
    color: black;
    background-color: white;
}

.filter-form select > option {
    color: black;
}

.filter-form select > option:first-of-type {
    color: #4d4d4d;
}

.filter-reboot, .filter-reboot label {
    cursor: pointer;
}

@media (max-width: 768px) {
    .filters-container .filter-form > .filtro-nombre-container {
        width: 100%;
    }

    .filters-responsive-header {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
    }

    .filters-responsive-container {
        background-color: rgba(0, 0, 0, 0.42);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        display: none;
        opacity: 0;
    }

    .filters-responsive {
        position: fixed;
        bottom: -100%;
        background-color: white;
        width: 100%;
        margin-top: auto;
        border-radius: 15px 15px 0 0;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .filters-responsive-header i {
        font-size: 24px;
        color: #7D7D7E;
    }

    .filters-responsive-header label {
        font-size: 24px;
        font-weight: 500;
    }

    .filters-responsive .filter-form span {
        font-size: 18px;
        font-weight: 500;
    }

    .filters-responsive-input {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filters-responsive-input span {
        display: inline;
        font-size: 18px;
        letter-spacing: 1.8px;
        font-weight: 500;
    }

    .filters-responsive-result {
        display: inline;
        font-size: 18px;
        color: #DBDBDB;
        background-color: #711ca5;
        letter-spacing: 1.8px;
        padding: 15px;
        text-align: center;
        border-radius: 30px;
        margin: 20px 0;
    }
}


/* Home Catálogo */

.home-container {
    max-width: 1600px;
    margin: 0 auto;
}

.home-container h1, .home-container p, .home-container button {
    color: #F3F3F3 !important;
}

.home-container p {
    letter-spacing: 2px;
    line-height: 28px;
}

.home-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    filter: brightness(0.5);
    z-index: -1;
}

.home-container h1 {
    font-size: clamp(42px, 4vw, 48px);
    line-height: 55px;
}

.button-link {
    border: 2px solid #711CA5;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.4s;
    text-decoration: none;
    padding: 1em 6em;
    color: white;
}

.button-link:hover {
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s;
    background-color: #711CA5;
}

.home-card > a  {
    aspect-ratio: 38 / 21;
    width: 100%;
    container-type: inline-size;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 10px #00000080;
}

.home-card h2 {
    font-size: 7cqw;
    color: #FFFFFF;
    width: 70%;
}

.home-card img {
    transition: transform 0.4s ease;
}

.home-card:hover img {
    transform: translateY(-10px);
}

.logos-home img {
    max-width: 100px;
}

.logos-home {
    border-top: 1px #707070 solid;
}


/* Forzar estilos dentro de campos wysiwyg */

.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 {
    font-size: 20px !important;
    margin-bottom: 20px  !important;
    margin-top: 30px  !important;
}

.rich-text p, .rich-text ul {
    font-size: 16px !important;
}

.rich-text a {
    color: #711CA5;
    text-decoration: none;
}