.cards_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px
}

.card_service a {
    text-decoration: none;
    color: #68707a
}

.card_service .page_image {
    overflow: hidden;
    border-radius: 25px;
    line-height: 0;
    margin-bottom: 25px;
    position: relative
}

.card_service .page_image .overlay_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(50, 61, 73, .1);
    color: #fff;
    text-align: center;
    transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in
}

.card_service .page_image .overlay_image span {
    font-size: 55px;
    opacity: 0;
    transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in
}

.card_service a:hover .page_image .overlay_image {
    background-color: rgba(226, 10, 23, .85)
}

.card_service a:hover .page_image .overlay_image span {
    opacity: 1
}

.card_service .page_extracto {
    margin-top: 15px;
    margin-bottom: 15px
}

.card_service .page_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    color: #E20A17;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in
}

.card_service .page_link:hover {
    color: #000
}

.card_service .page_link span {
    font-weight: 700;
    margin-bottom: 3px
}

.card_service .page_title h3 {
    font-weight: 700;
    font-size: 20px;
}

.card_service a:hover .page_title h3 {
    color: #E20A17;
}


/* CAROUSEL */

.cards_carousel {
    margin-bottom: 60px;
}

.cards_carousel .owl-dots {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(calc(-50% + 0px));
}

.cards_carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    margin: 0 9px;
}

.cards_carousel .owl-dots .owl-dot span {
    box-shadow: inset 0 0 0 2px #E20A17;
    background-color: transparent;
    transition: box-shadow .3s ease;
}

.cards_carousel .owl-dots .owl-dot.active span {
    box-shadow: inset 0 0 0 20px #E20A17;
}


/*  CARD TEXT  */

.card_text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: #E20A17;
    color: #fff;
    padding: 50px 45px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 35px;
}

.card_text .title {}

.card_text .title {}

.card_text .link a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 8px 45px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.card_text .link a:hover {
    background-color: #fff;
    color: #000;
}

.persona_link {
    background-color: #f79100;
}

.abogado_link {
    background-color: #6e7074;
}

.card_text .icon {
    font-size: 95px;
}


/* CARDS PDF */

.documentos .wpb_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px
}

.card_pdf {
    position: relative;
    text-align: center;
    display: block;
    width: 100%;
}

.card_pdf a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 10px;
}

.image_pdf {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
}

.image_pdf img {
    display: inline-block;
    width: 100%;
}

.shap_pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(171, 177, 185, 0.5);
    mix-blend-mode: multiply;
}

.card_pdf:hover .shap_pdf {
    background-color: rgba(226, 10, 23, 0.75);
    mix-blend-mode: normal;
}

.shap_pdf .pdf_loading {
    display: none;
    color: #fff;
    font-size: 70px;
    animation: spin 1s linear infinite;
}

.pdf_prelouder {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(6 6 6 / 95%);
    color: #fff;
    z-index: 999;
}

.pdf_prelouder .loading_pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pdf_prelouder .loading_pdf i {
    font-size: 70px;
    animation: spin 1s linear infinite;
}

.tiitle_pdf {
    margin-top: 15px;
}

.tiitle_pdf h3 {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 20px;
}

.card_pdf:hover .tiitle_pdf h3 {
    color: #E20A17;
}

.content_pdf {
    color: #6e7074;
    font-size: 16px;
    line-height: 22px;
}

.content_iconpdf {
    position: absolute;
    right: 15px;
    top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 9;
}

.content_iconpdf .iconpdf,
.content_iconpdf .icondow {
    background-color: #fff;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content_iconpdf .icondow:hover {
    background-color: #000;
    color: #fff;
}

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
    display: grid;
    grid-template-rows: auto;
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}

.grid_1 {
    grid-template-columns: repeat(4, 1fr)
}

.grid_2 {
    grid-template-columns: repeat(2, 1fr)
}

.grid_3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid_4 {
    grid-template-columns: repeat(4, 1fr)
}

.grid_5 {
    grid-template-columns: repeat(5, 1fr)
}

.grid_6 {
    grid-template-columns: repeat(6, 1fr)
}

.cards_team {
    margin-bottom: 35px;
}

.card_team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cards_team .team_media img {
    border-radius: 25px;
}

.cards_team .team_info {
    text-align: center;
}

.cards_team .team_info .name {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.cards_team .team_info .area {
    color: #E20A17;
}

.cards_team .team_info .studio {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}


/*CARD CASOS */

.card_caso a {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-decoration: none;
}

.card_caso .caso_media {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.card_caso .caso_media .overlay_media {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(226, 10, 23, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all ease 0.3s;
    -webkit-transition: all ease 0.3s;
}

.card_caso:hover .caso_media .overlay_media {
    opacity: 1;
}

.card_caso .caso_title h3 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 0;
}

.card_caso .caso_link button {
    background-color: #E20A17;
    border: 1px solid #E20A17;
    border-radius: 35px;
    color: #fff;
    padding: 8px 25px;
    display: flex;
    gap: 8px;
}

.card_caso .caso_link button:hover {
    background-color: #000000;
    border: 1px solid #000000;
}

.casos_home .card_caso .caso_title h3 {
    color: #fff;
}

.casos_home .card_caso .caso_link button:hover {
    background-color: #fff;
    border: 1px solid #fff;
    color: #000000;
}

@media (max-width: 1300px) {
    .grid_1,
    .grid_2,
    .grid_3,
    .grid_4,
    .grid_5,
    .grid_6 {
        grid-column-gap: 40px;
        grid-row-gap: 40px;
    }
    .grid_5,
    .grid_6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 999px) {
    .grid_4,
    .grid_5,
    .grid_6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 778px) {
    .documentos .wpb_wrapper,
    .cards_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid_3,
    .grid_4,
    .grid_5,
    .grid_6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .documentos .wpb_wrapper,
    .cards_grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid_2,
    .grid_3,
    .grid_4,
    .grid_5,
    .grid_6 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        /* Start the rotation at 0 degrees */
    }
    100% {
        transform: rotate(360deg);
        /* End the rotation at 360 degrees */
    }
}