.swiperCategories {
    position: relative;
    margin: 0 10%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.swiperCategories .swiper {
    border: 1px solid rgb(51, 51, 51);
    border-right: unset;
    border-left: unset;
    cursor: pointer;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
}

.swiper-slide {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.swiper-slide.is-active {
    background-color: rgb(232, 232, 232);
}

.swiper-slide p {
    margin: 0;
    font-family: 'Inter';
    color: rgb(51, 51, 51);
    font-weight: 400;
    font-size: 1em;
}

.swiper-button-prev::after, .swiper-button-next::after {
    display: none;
}

.swiper-button-prev {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-100% - 20px), 0);
    height: auto;
    padding: 13px;
    background-color: rgb(242, 242, 242);
    border: 1px solid rgb(77, 77, 77);
    width: 22px;
    transition: all 0.25s ease-in-out;
}

.swiper-button-next {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(20px, 0);
    height: auto;
    padding: 13px;
    background-color: rgb(242, 242, 242);
    border: 1px solid rgb(77, 77, 77);
    width: 22px;
    transition: all 0.25s ease-in-out;
}

.swiper-button-prev:hover {
    transform: translate(calc(-100% - 20px), 0) scale(1.1);
}

.swiper-button-next:hover {
    transform: translate(20px, 0) scale(1.1);
}

.contentRow {
    padding: 60px 10%;
    padding-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.contentRowRight {
    transform: translateX(70px);
}

.contentRowLeft {
    padding-right: 12%;
}

.contentRowTitle h1, .contentRowTitle h2 {
    margin: 0;
    font-family: 'Inter';
    color: rgb(9, 23, 43);
    font-weight: 600;
    font-size: 1.5em;
}

.contentRowText p {
    margin: 0;
    font-family: 'Inter';
    color: rgb(0, 0, 0);
    font-weight: 400;
    font-size: 0.9em;
}

.contentRowTitle {
    margin-bottom: 35px;
}

.contentRowText {
    margin-bottom: 95px;
}

a.contentRowButton {
    display: inline-block;
    padding: 5px 35px;
    border: 1px solid rgb(9, 23, 43);
    margin: 0;
    font-family: 'Inter';
    color: rgb(0, 0, 0);
    font-weight: 400;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

a.contentRowButton:hover {
    transform: scale(1.1);
}

.contentRowImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contentRowImg {
    width: 570px;
    height: auto;
}

.contentRowImg:first-of-type {
    margin-bottom: 20px;
}

@media only screen and (max-width: 1600px) {
    .contentRowLeft {
        padding-right: 5%;
    }
    .contentRowImg {
        width: 500px;
    }
}

@media only screen and (max-width: 1200px) {
    .contentRowLeft {
        padding-right: 0%;
    }
}

@media only screen and (max-width: 1000px) {
    .contentRow {
        flex-direction: column;
        text-align: center;
    }
    .contentRowLeft {
        margin-bottom: 50px;
    }
    .contentRowText {
        margin-bottom: 50px;
    }
    .contentRowRight {
    transform: unset;
        width: 90%;
        margin: 0 auto;
    }
    .contentRowImg {
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    .swiper-button-next, .swiper-button-prev {
        top: 55%;
        padding: 8px;
        width: 15px;
    }
    .swiper-slide p {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 600px) {
    .swiper-button-next {
        transform: translate(12px, 0);
    }
    .swiper-button-prev {
        transform: translate(calc(-100% - 12px), 0)
    }
}

/* ---------------------------------------------------------------------------------------------
   Reglas para la plantilla actual (serviciosTemplate.php), según el diseño aprobado: pestañas con
   enlace (activa = .active, gris y en negrita), texto a la izquierda y UNA imagen vertical (o vídeo)
   a la derecha (.contentRowVideo), y la imagen horizontal debajo a todo el ancho (.imageRow).
   Reescritas el 17/11/2026 (la versión del servidor que las tenía se sobrescribió con una copia antigua).
   --------------------------------------------------------------------------------------------- */
.swiper-slide a {
    display: block;
    text-decoration: none;
}

.swiper-slide.active {
    background-color: rgb(232, 232, 232);
}

.swiper-slide.active p {
    font-weight: 600;
}

.contentRowTitle h1 {
    text-transform: uppercase;
}

.contentRowLeft {
    flex: 1 1 auto;
    min-width: 0;
}

.contentRowRight {
    flex: 0 0 auto;
}

.contentRowVideo {
    width: 390px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: rgb(242, 242, 242);
}

.contentRowVideo img,
.contentRowVideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imageRow {
    width: 100%;
}

.imageRow img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

@media only screen and (max-width: 1200px) {
    .contentRowVideo {
        width: 330px;
    }
}

@media only screen and (max-width: 1000px) {
    .contentRowVideo {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    .imageRow img {
        max-height: 360px;
    }
}
