/********** ZERMUTT - CSS FINAL AZUL ACERO **********/
:root {
    --primary: #4F6D7A;
    --primary-hover: #3E5863;
    --secondary: #7A8088;
    --light: #F3F4F6;
    --light-2: #E9ECEF;
    --nav-light: #F1F2F4;
    --dark: #16181B;
    --dark-2: #22262B;
    --dark-3: #2D3238;
    --white: #FFFFFF;
    --text: #5F666D;
    --heading: #111418;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --transition: all .35s ease;
}

/********** Base **********/
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Roboto', sans-serif;
    color: var(--heading);
    font-weight: 700;
    letter-spacing: .5px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

@media (max-width: 991.98px) {
    .pt-6,
    .py-6 {
        padding-top: 70px;
    }

    .pb-6,
    .py-6 {
        padding-bottom: 70px;
    }
}

/********** Buttons **********/
.btn {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-radius: 0;
    transition: var(--transition);
    box-shadow: none !important;
}

.btn::after {
    display: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    color: var(--dark);
    background: var(--white);
}

.btn-outline-dark:hover {
    color: var(--white);
    background: var(--dark);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/********** Back to top **********/
.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

/********** Background helpers **********/
.bg-dark-radial {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
}

.bg-light-radial {
    background: var(--nav-light) !important;
    background-image: none !important;
}

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

/********** Topbar **********/
.container-fluid.px-5.d-none.d-lg-block {
    background: #f3f3f3;
    border-bottom: 1px solid var(--border);
}

.container-fluid.px-5.d-none.d-lg-block h6 {
    color: var(--heading);
    font-size: 14px;
    letter-spacing: .8px;
    margin-bottom: 4px;
}

.container-fluid.px-5.d-none.d-lg-block span {
    color: var(--text);
    font-size: 14px;
}

/********** Navbar **********/
.sticky-top {
    top: 0;
    z-index: 1020;
}

.navbar,
.navbar.bg-dark,
.bg-light-radial {
    background: var(--nav-light) !important;
    background-image: none !important;
}

.navbar {
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand h1 {
    font-size: 2rem;
    letter-spacing: 1px;
}

/* Logo PNG oscuro */
.logo-wrap,
.logo-panel {
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    box-shadow: none;
}

.site-logo {
    height: 74px;
    width: auto;
    display: block;
}

/* Links oscuros */
.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    position: relative;
    padding: 26px 16px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1A1D21 !important;
    outline: none;
    letter-spacing: .8px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-dark .navbar-nav .nav-link::before,
.navbar-light .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover::before,
.navbar-dark .navbar-nav .nav-link.active::before,
.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link.active::before {
    transform: scaleX(1);
}

/* Botón principal del menú */
.navbar .nav-item.nav-link.bg-primary {
    color: var(--white) !important;
    background: var(--primary) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .nav-item.nav-link.bg-primary:hover {
    background: var(--primary-hover) !important;
    color: var(--white) !important;
}

.navbar .nav-item.nav-link.bg-primary::before {
    display: none !important;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(0);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link,
    .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 14px;
    }

    .navbar-dark .navbar-nav .nav-link::before,
    .navbar-light .navbar-nav .nav-link::before {
        display: none;
    }

    .site-logo {
        height: 54px;
    }

    .logo-wrap,
    .logo-panel {
        padding: 6px 0;
    }
}

/********** Carousel / Hero **********/
.carousel-item img {
    min-height: 78vh;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(16, 18, 20, 0.58), rgba(16, 18, 20, 0.66));
    z-index: 1;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption p {
    color: var(--white);
}

.carousel-caption .btn {
    margin-top: 10px;
}

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

@media (max-width: 576px) {
    .carousel-item img {
        min-height: 62vh;
    }

    .carousel-caption h4,
    .carousel-caption h5 {
        font-size: 15px;
        font-weight: 600 !important;
    }

    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 700 !important;
    }
}

/********** Page Header **********/
.page-header {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(16, 18, 20, 0.72), rgba(16, 18, 20, 0.72)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    text-align: center;
}

/********** Section Titles **********/
.text-primary {
    color: var(--primary) !important;
}

.section-title,
.text-center.mx-auto.mb-5 h1 {
    line-height: 1.2;
}

/********** Cards / Blocks **********/
.service-item,
.bg-light.p-4,
.portfolio-title,
.testimonial,
.contact-form,
.footer .input-group,
.bg-white.shadow-sm,
.bg-light.text-center.h-100.p-4 {
    border-radius: var(--radius);
}

.service-item {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item img {
    transition: transform .6s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-item:hover img {
    transform: scale(1.04);
}

.service-item .service-icon {
    margin-top: -42px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.service-item .service-icon i {
    transition: var(--transition);
    font-size: 34px;
}

.service-item:hover .service-icon i {
    transform: scale(1.08);
}

/********** Portfolio **********/
.portfolio-item {
    margin-bottom: 40px;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.portfolio-box img {
    width: 100%;
    transition: transform .6s ease;
}

.portfolio-item:hover .portfolio-box img {
    transform: scale(1.05);
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
    padding: 20px 24px;
    right: 20px;
    left: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.96);
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.portfolio-title p,
.portfolio-title .h4 {
    margin-bottom: 6px;
}

.portfolio-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin-top: -38px;
    margin-left: -38px;
    font-size: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
    transform: scale(.8);
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transform: scale(1);
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 50%;
    height: 100%;
    top: 0;
    background: rgba(22, 24, 27, 0.42);
    transition: var(--transition);
    z-index: 1;
    opacity: 0;
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before,
.portfolio-item:hover .portfolio-box::after {
    opacity: 1;
}

/********** Forms **********//********** Footer azul acero oscuro **********/
.footer {
    overflow: hidden;
    background: #243744 !important;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p,
.footer span {
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer h4 {
    color: #FFFFFF !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82) !important;
    transition: all .3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

.footer-logo-img {
    height: 54px;
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: rgba(255, 255, 255, 0.10);
    }
}

/********** Footer bottom **********/
.footer-bottom {
    background: #1B2A34;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-brand {
    color: #ffffff;
    font-weight: 700;
}

/********** Utility **********/
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded-industrial {
    border-radius: var(--radius);
}