@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/********** ESTILOS GLOBALES DEL SITIO **********/
:root {
    --primary: #ff8002;
    --secondary: #2881C8;
    --light: #F5F5F5;
    --dark: #2881C8;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/*** Identidad visual y colores de STCM ***/
.stcm-font {
    color: #6c757d !important;
    font-family: 'Arial Paneuropean Rounded Bold', 'Arial Rounded MT Bold', 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

.bg-primary {
    background-color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: #e67300 !important;
    border-color: #e67300 !important;
}

.btn-square.bg-primary,
.flex-shrink-0.bg-primary {
    background-color: var(--primary) !important;
}

.back-to-top:hover {
    background-color: var(--primary) !important;
}

.copyright a {
    color: var(--primary) !important;
}

.copyright a:hover {
    color: var(--secondary) !important;
}

.service-item .btn-light {
    color: var(--secondary) !important;
}

.service-item .btn-light:hover {
    color: #fff !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/*** Indicador de experiencia: integra el dato con el fondo de la sección ***/
.experience-badge {
    color: var(--secondary);
    background-color: #fff;
}

.experience-badge h1,
.experience-badge h5 {
    color: var(--secondary);
}

.text-dark {
    color: var(--secondary) !important;
}

.bg-dark {
    background-color: #1a1f24 !important;
}

.stcm-nav-name {
    margin-left: 40px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--secondary);
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Cargador inicial ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Botones y acciones ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navegación principal ***/
.site-header {
    top: 0 !important;
    width: 100%;
    padding: 0;
    background-color: var(--secondary);
    box-shadow: 0 4px 14px rgba(40, 129, 200, .16);
    z-index: 1030;
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.site-header .site-brand {
    position: relative;
    display: flex;
    flex: 0 0 330px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 330px;
    min-height: 73px;
    height: auto;
    margin: 0;
    padding: 3px 12px;
    background-color: #fff;
    z-index: 1;
}

.site-header .site-brand::after {
    position: absolute;
    top: 0;
    right: -29px;
    display: block;
    width: 58px;
    height: 100%;
    background-color: var(--primary);
    clip-path: polygon(42% 0, 100% 0, 58% 100%, 0 100%);
    content: "";
    z-index: 2;
}

.site-brand-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.site-brand-primary img {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.site-brand-name {
    color: #6c757d;
    font-family: 'Arial Paneuropean Rounded Bold', 'Arial Rounded MT Bold', 'Montserrat', sans-serif;
    font-size: 1.87rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.site-brand-tagline {
    display: block;
    margin-top: 4px;
    color: #454545;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.site-navigation {
    min-width: 0;
    padding: 0 24px 0 38px;
}

.site-navigation .navbar-nav {
    align-items: center;
    gap: 24px;
}

.site-navigation .nav-link {
    margin: 0;
    padding: 24px 0;
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    outline: none;
    transition: color .2s ease, background-color .2s ease;
}

.site-navigation .nav-link:hover,
.site-navigation .nav-link.active {
    color: var(--primary) !important;
}

.site-menu-toggle {
    align-self: center;
    margin: 0 16px 0 auto;
    padding: 8px 10px;
    background-color: #fff;
    border: 0;
    border-radius: 4px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .site-header .site-brand {
        flex-basis: 285px;
        width: 285px;
        min-height: 68px;
        padding-inline: 10px;
    }

    .site-brand-primary img {
        width: 32px;
        height: 32px;
    }

    .site-brand-name {
        font-size: 1.65rem;
    }

    .site-brand-tagline {
        font-size: .47rem;
    }

    .site-navigation {
        padding: 0 12px 0 30px;
    }

    .site-navigation .navbar-nav {
        gap: 12px;
    }

    .site-navigation .nav-link {
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .site-header-inner {
        align-items: center;
    }

    .site-header .site-brand {
        flex: 0 1 292px;
        width: min(292px, calc(100% - 72px));
        min-height: 68px;
        padding: 4px 12px;
    }

    .site-navigation {
        flex-basis: 100%;
        width: 100%;
        padding: 8px 16px 16px;
        background-color: var(--secondary);
        border-top: 1px solid rgba(255, 255, 255, .24);
    }

    .site-navigation .navbar-nav {
        align-items: stretch;
        gap: 5px;
        padding: 0;
        border: 0;
    }

    .site-navigation .nav-link {
        width: 100%;
        padding: 11px 16px;
        border-radius: 4px;
        font-size: 1.05rem;
        text-align: center;
    }

    .site-navigation .nav-link:hover,
    .site-navigation .nav-link.active {
        color: #fff !important;
        background-color: rgba(255, 255, 255, .14);
    }

}

@media (max-width: 575.98px) {
    .site-header .site-brand {
        flex-basis: 250px;
        width: min(250px, calc(100% - 64px));
        min-height: 65px;
        padding: 4px 8px;
    }

    .site-header .site-brand::after {
        right: -20px;
        width: 40px;
    }

    .site-brand-primary {
        gap: 8px;
    }

    .site-brand-primary img {
        width: 27px;
        height: 27px;
    }

    .site-brand-name {
        font-size: 1.45rem;
    }

    .site-brand-tagline {
        margin-top: 3px;
        font-size: .49rem;
        line-height: 1.2;
    }

    .site-menu-toggle {
        margin-right: 10px;
        padding: 7px 8px;
    }
}

/* Evita que bloques flexibles con texto amplíen el ancho de la página en móviles. */
.d-flex > .ms-3 {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
}

@media (max-width: 359.98px) {
    .site-header .site-brand {
        flex-basis: 220px;
        width: min(220px, calc(100% - 58px));
    }

    .site-brand-name {
        font-size: 1.3rem;
    }

    .site-brand-tagline {
        font-size: .39rem;
    }
}


/*** Portadas y encabezados interiores ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(40, 129, 200, .94) 0%, rgba(40, 129, 200, .72) 38%, rgba(40, 129, 200, .12) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(to right, rgba(40, 129, 200, 1) 0%, rgba(40, 129, 200, 0) 100%), url(../images/shared/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Tarjetas de servicios ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(40, 129, 200, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Pie de página y créditos ***/
.footer {
    color: #B0B9AE;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.logo-grande{
    max-height: 110px !important;
}

.team-photo-main{
    width: 200px !important;
    height: auto;
    display: block;
    margin: 0 auto;
}
