:root {
    --gunmetal: #545b62;
    --black: #080706;
    --goldenrod: #fad008;
    --white: #fff;
    --white-two: #fff;
    --almost-black: #020408;
    --white-three: #d8d8d8;
    --cool-grey: #aaadb1;
}

body {
    color: var(--gunmetal) !important;
    font-family: 'Titillium Web', sans-serif;
}

a {
    text-decoration: none;
    color: var(--gunmetal) !important;
    font-weight: 600;
}

.navbar-toggler {
    width: 16px;
    height: 16px;
    position: relative;
    transition: .5s ease-in-out;
}

/* Menu Horizontal Expanded */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
    border: 0 !important;
    color: white;
    /*margin-left: auto !important;*/
    /*margin-right: auto !important;*/
}

/*.navbar-toggler.collapsed {*/
/*    margin-left: 0 !important;*/
/*}*/

.navbar-toggler span {
    margin: 0;
    padding: 0;
}

.nav-link:focus, .nav-link:hover {
    color: var(--goldenrod) !important;
}

.toggler-icon {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.middle-bar {
    margin-top: 0;
}

/* When navigation is clicked */
.navbar-toggler .top-bar {
    margin-top: 0;
    transform: rotate(135deg);
}


.navbar-toggler .middle-bar {
    opacity: 0;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    margin-top: 0;
    transform: rotate(-135deg);
}

/* State when the navbar is collapsed */
.navbar-toggler.collapsed .top-bar {
    margin-top: -16px;
    transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    margin-top: 16px;
    transform: rotate(0deg);
}

.navbar > .container, .navbar > .container-fluid, .navbar > .container-lg, .navbar > .container-md, .navbar > .container-sm, .navbar > .container-xl, .navbar > .container-xxl {
    justify-content: flex-start !important;
}


.nav-link {
    color: var(--white) !important;
    text-transform: uppercase;
    padding-left: .5rem;
    padding-right: .5rem;
}

p {
    color: var(--gunmetal) !important;
    font-size: 18px;
    line-height: 26px;
}

h1 {
    font-size: 36px;
    line-height: 48px;
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 48px;
    text-transform: uppercase;
}

h3 {
    font-size: 28px;
    line-height: 36px;
    text-transform: uppercase;
}

h4 {
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
}

h5 {
    font-size: 20px;
    line-height: 28px;
    text-transform: uppercase;
}

h6 {
    font-size: 18px;
    line-height: 24px;
}

.from-spain {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 36px;
}

.text-white {
    color: var(--white);
}

.text-gunmetal {
    color: var(--gunmetal);
}

.text-golden {
    color: var(--goldenrod);
}

.text-white-two {
    color: var(--white-two);
}

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

.bg-izdit {
    background-color: rgba(02, 04, 08, .9) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
}

.fit-width {
    width: fit-content;
}

.mt-6 {
    margin-top: 6rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.pt-6 {
    padding-top: 5rem !important;
}

.pb-6 {
    padding-bottom: 5rem !important;
}

.w-15 {
    width: 15%;
}

.fs-24 {
    font-size: 24px !important;
}

.fs-28 {
    font-size: 28px !important;
    line-height: 32px !important;
}

/* Section Header */
.header-home {
    background-image: url("../assets/home/bgHero.webp");
    background-size: cover;
    min-height: 700px;
    height: 100vh;
}

.header-empresa {
    background-image: url("../assets/empresa/hero-empresa.webp");
    background-size: cover;
    min-height: 540px;
    height: 100vh;
}

.header-industria {
    background-image: url("../assets/industria/hero-industria.webp");
    background-size: cover;
    min-height: 380px;
    height: 100vh;
}

.header-servicios {
    background-image: url("../assets/servicios/hero-servicios.webp");
    background-size: cover;
    min-height: 500px;
    height: 100vh;
}

.header-sectores {
    background-image: url("../assets/sectores/hero-sectores.webp");
    background-size: cover;
    min-height: 350px;
    height: 100vh;
}

.header-sat {
    background-image: url("../assets/sat/hero-sat.webp");
    background-size: cover;
    min-height: 400px;
    height: 100vh;
}

.header-proyectos {
    background-image: url("../assets/sectores/hero-sectores.webp");
    background-size: cover;
    min-height: 350px;
    height: 100vh;
}

.logo-header {
    height: 50px;
}


/* Section Maintenance */
#section-mantainance {
    background-color: var(--gunmetal);
    background-image: url("../assets/home/bgMaintenance.webp");
    background-position: center bottom;
    background-repeat: no-repeat;
    /*width: 100vw;*/
}

#motorSketch {
    margin-top: -6.18rem;
    width: 100%;
    object-fit: cover;
    position: relative;
}

#design-relative {
    margin-top: -55px;
    z-index: 1 !important;
}

#logoPower {
    height: auto;
    width: 260px;
}

.logo-maintenance {
    width: 30% !important;
}

.pos-absolute {
    position: absolute !important;
}

.pos-relative {
    position: relative !important;
}

.fs-15 {
    font-size: 15px;
    line-height: 22px;

}

.left-divider {
    border-left: 1px solid var(--white-three);
}

.left-divider-services {
    border-left: 1px solid var(--white-three);
    height: 75px;
}

.bar-divider {
    border-bottom: 1px solid var(--white-three);
}

.how-to-help {
    color: var(--black) !important;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Section News */
.card {
    padding: 0;
    border: 0;
}

.card-subtitle {
    font-size: 15px;
    font-weight: lighter;
    color: var(--gunmetal);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gunmetal);
}

.card-text {
    font-size: 15px !important;
}

.card-link {
    color: var(--cool-grey) !important;
    font-size: 18px;
    font-weight: 700;
}

.card-link:hover {
    color: var(--gunmetal) !important;
}

/* Section Contact*/
.btn-atention {
    background-color: var(--goldenrod);
    color: var(--almost-black);
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
}

.btn-atention:hover {
    color: var(--almost-black);
    border-color: var(--goldenrod);
}

.atention-service {
    font-size: 24px;
    color: var(--gunmetal) !important;
    font-weight: 600;
    margin-bottom: 0 !important;
    line-height: 32px;
}

.atention-phone {
    font-size: 24px;
    color: var(--almost-black) !important;
    font-weight: 600;
}

.call-in-icon {
    width: 50px !important;
    height: 50px !important;
    margin-right: 2rem !important;
}


.contact-title {
    font-size: 16px;
    font-weight: normal;
}

.contact-izadi {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px !important;
}

.contact-tel {
    font-weight: 600;
    font-size: 18px;
}

.contact-description {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 6px !important;
}

.phone-description {
    font-size: 14px;
    margin-bottom: 0 !important;
    font-weight: 600;
}

.linkedin-icon {
    filter: grayscale(100%);
    background-repeat: no-repeat;
    height: 25px;
    width: 25px;
}

.linkedin-icon:hover {
    filter: none;
}

/* Section Izadi Image */
#section-izadi {
    background-image: url("../assets/empresa/empresa-01.webp");
    background-size: cover;
    height: 300px;
    margin-bottom: 3rem;
    position: relative;
}

.gray-bar {
    position: absolute;
    height: 100px;
    opacity: .8;
    background-color: var(--gunmetal);
    padding: 1rem;
    bottom: 10%;
}

.izadi-image-2022 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white) !important;
    margin-top: .2rem;
    margin-left: 1rem;
    margin-right: 2rem;
}

.izadi-image-description {
    font-size: 15px;
    font-weight: 600;
    color: var(--white) !important;
}

/* Section Industria */
.list-group-item {
    border: none !important;
    color: var(--gunmetal) !important;
}

#section-iiot {
    background-color: var(--white-two);
}

#section-innovacion {
    background-color: var(--white-two);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-idi {
    background-color: var(--gunmetal);
    padding: 2rem;
}

.list-group-numbered > .list-group-item::before {
    content: counters(section, " ") "    ";
    counter-increment: section;
    font-weight: 700;
    color: var(--gunmetal) !important;

}

/* Section Servicios */
#section-needs {
    background-color: var(--white-two);
}

.card-img-top-services {
    height: 190px !important;
    width: 100%;
    object-fit: cover;
    padding: 0 2rem;
    margin-bottom: 2rem;

}

.services-needs {
    font-weight: 600;
    text-align: center;
    line-height: 48px;
}

.services-no-fear {
    font-weight: 600;
}

/* Section Force */
#section-force {
    background-color: var(--white-two);
}

/* Section Sectores */
.m-applications {
    margin-left: 2rem !important;
}

/* Section SAT */
.bg-gray-section {
    background-color: var(--white-two);
    padding: 3rem 0;
}

.say-us {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.bg-white {
    background-color: var(--white);
    padding: 1rem;
}

.arrow-icon {
    width: 23px;
    height: 11px;
}

.text-talk {
    font-size: 36px;
    font-weight: 400;
    color: var(--gunmetal);
}

.text-our-experts {
    font-size: 15px;
    font-weight: 600;
}

.atention-service-sat {
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
}

.phone-sat {
    font-size: 15px;
    font-weight: 700;
}

.bg-gunmetal-section {
    background-color: var(--gunmetal);
    padding: 5rem 0;
}

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

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

.project-thumbnail {
    transition: opacity 0.3s ease;
}

.project-thumbnail:hover {
    opacity: 0.8;
}

.project-main-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    background-color: #ffffff;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.project-main-image-container:hover {
    opacity: 0.9;
}

.project-main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    display: block;
}

.sat-icons {
    height: 85px;
    width: 85px;
}

.text-input {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121212;
}

.text-btn-submit {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--almost-black);
}

.form-control {
    border-radius: 0 !important;
}

#logoPowerFooterSat {
    width: 70% !important;
}

/* Section Footer */
footer {
    padding-top: 3rem !important;
    background-color: var(--white-two);
}

.footer-link {
    font-size: 15px;
    font-weight: normal;
    text-decoration: underline;
}

.footer-link:hover {
    cursor: pointer;
    color: var(--almost-black) !important;
}

/*  Small devices (landscape phones, 576px and up)  */
@media (min-width: 576px) {

    /* Section Header */
    .header-home {
        min-height: 550px !important;
    }

    .header-empresa {
        min-height: 450px !important;
    }

    .header-servicios {
        min-height: 400px !important;
    }

    .header-sectores {
        min-height: 320px !important;
    }

    .header-sat {
        min-height: 420px !important;
    }

    .header-proyectos {
        min-height: 320px !important;
    }

    .p-title {
        padding-left: 3.5rem !important;
        padding-right: 3.5rem !important;
    }

    .p-title-empresa {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        /*margin-top: 3rem !important;*/
    }

    .from-spain {
        font-size: 32px !important;
    }

    /* Section Experience */
    #reducerImage {
        width: 50% !important;
    }

    /* Section Maintenance */
    .logo-maintenance {
        width: 15% !important;
    }

    #motorSketch {
        margin-top: -10.7rem;
    }

    #design-relative {
        margin-top: -95px;
    }

    /* Section Footer */
    #logoPowerFooter {
        width: 40% !important;
    }

    /* Section SAT */
    #logoPowertransmission {
        width: 40% !important;
    }

    #logoPowerFooterSat {
        width: 40% !important;
    }
}

/*  Medium devices (tablets, 768px and up)  */
@media (min-width: 768px) {
    /* Menu Horizontal Expanded */
    .navbar-expand-md .navbar-toggler {
        display: none !important;
    }

    h1 {
        font-size: 64px !important;
        line-height: 72px !important;
    }

    h2 {
        font-size: 48px !important;
        line-height: 60px !important;
    }

    h3 {
        font-size: 34px !important;
        line-height: 42px !important;
    }

    h4 {
        font-size: 28px !important;
        line-height: 40px !important;
    }

    h5 {
        font-size: 24px !important;
        line-height: 28px !important;
    }

    h6 {
        font-size: 22px;
        line-height: 26px;
    }


    /* Section Header */
    .p-title {
        padding-left: 7rem !important;
        padding-right: 7rem !important;
    }

    .p-title-empresa {
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    .header-home {
        min-height: 600px !important;
    }

    .header-empresa {
        min-height: 550px !important;
    }

    .header-industria {
        min-height: 500px !important;
    }

    .header-servicios {
        min-height: 600px !important;
    }

    .header-sectores {
        min-height: 420px !important;
    }

    .header-sat {
        min-height: 540px !important;
    }

    .header-proyectos {
        min-height: 420px !important;
    }

    /* Section Maintenance */
    .p-divider {
        margin-left: 10rem !important;
        margin-right: 10rem !important;
    }

    .m-divider {
        margin-top: 2rem !important;
    }

    /* Section Mantainance */
    #motorSketch {
        margin-top: -14.49rem;
    }

    #design-relative {
        margin-top: -145px;
    }

    .px-md-7 {
        padding-right: 7rem !important;
        padding-left: 7rem !important;
    }


    /* Section Industria */
    .px-md-6 {
        padding-right: 5rem !important;
        padding-left: 5rem !important;
    }


    /* Section Footer */
    #logoPowerFooter {
        width: 100% !important;
    }

    /* Section SAT */
    .text-talk {
        font-size: 64px !important;
    }

    #logoPowertransmission {
        width: 30% !important;
    }

    #logoPowerFooterSat {
        width: 35% !important;
    }
}

/*  Large devices (desktops, 992px and up)  */
@media (min-width: 992px) {
    h1 {
        font-size: 72px !important;
        line-height: 74px !important;
    }

    h2 {
        font-size: 64px !important;
        line-height: 72px !important;
    }

    h3 {
        font-size: 40px !important;
        line-height: 48px !important;
    }

    h4 {
        font-size: 32px !important;
        line-height: 48px !important;
    }

    h5 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    h6 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    /* Section Header */
    .p-title {
        padding-left: 6rem !important;
        padding-right: 6rem !important;
    }

    .p-title-empresa {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .header-home {
        min-height: 650px !important;
    }

    .header-empresa {
        min-height: 560px !important;
    }

    .header-industria {
        min-height: 500px !important;
    }

    .header-servicios {
        min-height: 550px !important;
    }

    .header-sectores {
        min-height: 450px !important;
    }

    .header-sat {
        min-height: 520px !important;
    }

    .header-proyectos {
        min-height: 450px !important;
    }

    .logo-header {
        height: 80px !important;
    }

    .ms-lg-6 {
        margin-left: 6rem !important;
    }

    /* Section Experience */
    .pb-15 {
        padding-bottom: 15rem !important;
    }

    /* Section Maintenance */
    #reducerImage {
        width: 100% !important;
    }

    #motorSketch {
        margin-top: -19.48rem;
    }

    #design-relative {
        margin-top: -165px;
    }

    .px-lg-6 {
        padding-right: 6rem !important;
        padding-left: 6rem !important;
    }

    .px-lg-9 {
        padding-right: 9.5rem !important;
        padding-left: 9.5rem !important;
    }

    .ps-lg-10 {
        padding-left: 10rem !important;
    }


    /* Section Empresa */
    .izadi-image-2022 {
        margin-left: 6rem !important;
    }

    /* Section Industria */
    .px-lg-7 {
        padding-right: 7rem !important;
        padding-left: 7rem !important;
    }

    /* Section Services   */
    #image-main-service {
        padding-left: 5rem !important;
        padding-right: 5rem !important;
    }

    /* Section SAT   */
    .text-talk {
        font-size: 72px !important;
    }

    .fs-lg-40 {
        font-size: 40px !important;
        line-height: 54px !important;
    }

    #logoPowerFooterSat {
        width: 25% !important;
    }

}

/*  X-Large devices (large desktops, 1200px and up)  */
@media (min-width: 1200px) {
    .p-title {
        padding-left: 12rem !important;
        padding-right: 12rem !important;
    }

    /* Section Maintenance */
    #reducerImage {
        width: 100% !important;
    }

    #motorSketch {
        margin-top: -23.25rem;
    }

    #design-relative {
        margin-top: -195px;
    }

    .px-xl-12 {
        padding-right: 12rem !important;
        padding-left: 12rem !important;
    }

    .ps-xl-12 {
        padding-left: 12rem !important;
    }

    /* Section Empresa */
    .izadi-image-2022 {
        margin-left: 9rem !important;
    }

    /* Section Industria */
    .px-xl-14 {
        padding-right: 14rem !important;
        padding-left: 14rem !important;
    }

    /* Section Services   */
    #image-main-service {
        padding-left: 5rem !important;
        padding-right: 5rem !important;
    }

    .px-xl-8 {
        padding-right: 8.3rem !important;
        padding-left: 8.3rem !important;
    }

    /* Section SAT   */
    #logoPowertransmission {
        width: 25% !important;
    }

    .px-xl-13 {
        padding-right: 13rem !important;
        padding-left: 13rem !important;
    }

    .px-xl-6 {
        padding-right: 5rem !important;
        padding-left: 5rem !important;
    }

    .mx-xl-6 {
        margin-left: 5rem !important;
        margin-right: 5rem !important;
    }
}

/*  XX-Large devices (larger desktops, 1400px and up)  */
@media (min-width: 1400px) {
    /* Section Maintenance */
    #motorSketch {
        margin-top: -27rem;
    }
    .px-xxl-6{
        padding-right: 6rem !important;
        padding-left: 6rem !important;
    }
    .px-xxl-15 {
        padding-right: 15rem !important;
        padding-left: 15rem !important;
    }
    .px-xxl-14{
        padding-right: 14rem !important;
        padding-left: 14rem !important;
    }
}

/* Estilos para botones de navegación de galería */
#prevImageBtn,
#nextImageBtn {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    transition: all 0.3s ease;
}

#prevImageBtn:hover,
#nextImageBtn:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-color: white !important;
    transform: scale(1.1);
}

#prevImageBtn:active,
#nextImageBtn:active {
    transform: scale(0.95);
}

#imageCounter {
    background-color: rgba(0, 0, 0, 0.6);
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Estilos para el dropdown de idioma */
#language-selector {
    margin-right: 1rem;
}

.btn-language {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-language:hover {
    background-color: rgba(250, 208, 8, 0.1);
    border-color: var(--goldenrod);
    color: white !important;
}

.btn-language:focus,
.btn-language:active {
    background-color: rgba(250, 208, 8, 0.15);
    border-color: var(--goldenrod);
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(250, 208, 8, 0.25);
}

.btn-language::after {
    margin-left: 0.5rem;
    border-top-color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.flag-icon-small {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-menu {
    background-color: rgba(2, 4, 8, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 160px;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(250, 208, 8, 0.1);
    color: var(--goldenrod) !important;
}

.dropdown-item.active {
    background-color: rgba(250, 208, 8, 0.2);
    color: var(--goldenrod) !important;
    font-weight: 600;
}

/* Ajustes para móvil */
@media (max-width: 767.98px) {
    /* Reducir el espacio entre la X y el menú */
    .navbar-collapse {
        margin-top: 0.5rem;
    }

    #language-selector {
        position: absolute;
        top: 0.5rem;
        right: 3.5rem;
        margin: 0;
        width: auto;
        z-index: 1050;
    }

    .btn-language {
        width: auto;
        justify-content: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .btn-language #current-lang {
        display: none;
    }

    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 140px;
        margin-top: 0.25rem;
    }

    .dropdown-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
    }
}