@import url('https://fonts.googleapis.com/css2?family=PT%20Sans%20Narrow:wght@100;200;300;400;500;600;700;800;900&display=swap');
:root{
    --padding-top: 65px;
    --hero-height: calc(100vh - var(--padding-top));
    --grid-gap: 30px;
}

body{
    padding-top: var(--padding-top);
}

.navbar-logo img{
    width: 164px;
}
.menu a{
    text-transform: uppercase;
}
.hero .columns{
    height: var(--hero-height);
    place-items: center;
}
.hero {
    width: 100%;
    height: var(--hero-height);
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero .wrapper {
    position: relative;
    z-index: 1;
}
.hero-msg {
    max-width: 100vw;
}
.hero-msg h1{
    font-size: 2.2em;
}
.hero-msg p{
    font-size: 1.25em;
    line-height: 1.2;
    margin-top: 0.5em;
}
.wrapper,
.container{
    width: min(90%, 1280px);
    margin-inline: auto;
}
.width70{
    margin-left: auto;
    margin-right: auto;
    p{
        font-size: 1.25em;
    }
}

.heading-black {
    padding-bottom: 20px;
    opacity: .98;
    color: #000;
    text-align: center;
}
.heading-title {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 10px;
}
h2 {
    font-size: 50px;
    font-weight: 700;
    line-height: .92;
    letter-spacing: -2px;
    margin: 0;
}
.heading-black h2::after{
    content: "";
    display: block;
    width: 101px;
    height: 6px;
    background-color: #c51d1e;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

#services h3{
    font-size: 3rem;
    font-weight: 600;
    color:#444;
}
.container75{
    width: 75%;
    margin: 0 auto;
}
.service-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 220px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-color: #000;
}
.service-link{
    font-size: 2em;
    text-align: center;
    color: #fff;
    padding: 1em 0;
}
.service-body {
    text-align: center;
    width: 305px;
    max-width: 100%;
    position: relative;
    opacity: .999;
    z-index: 2;
    margin: 35px auto auto auto;
    padding: 30px 30px 0px 30px;
    background-color: #f7f7f7;
}
.bg-white{
    background-color: #fff;
}
.bg-gray {
    background-color: #efefef;
}
.bg-1{
    background: url(../images/hero2.webp) center center no-repeat;
    background-size: cover;
}
.bg-2{
    background: url(../images/service-1.webp) center center no-repeat;
    background-size: cover;
}
.bg-3{
    background: url(../images/service-2.webp) center center no-repeat;
    background-size: cover;
}
.ui .button-red {
    background-color: #c41c1e;
    border-color: #c41c1e;
    color: #fff;
}
.ui .button-red:hover{
    background-color: #d76300;
    border-color: #d76300;
    color: #fff;    
}
footer {
    position: relative; /* 🔑 para contener el overlay */
    background-image: url(/content/media/site/footerbg.webp);
    background-size: cover;
    background-position: center;
    color: #eee;
    min-height: 5em;
    padding: 3em .5em;
    overflow: hidden;
    a{
        color: #fff;
        text-decoration: none;
    }
    .wrapper {
        width: min(90%, 1024px);
        margin-inline: auto;
    }
}
/* Overlay azul */
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #002449d6; /* azul con opacidad */
    z-index: 0;
}

/* Contenido por encima del overlay */
footer > * {
    position: relative;
    z-index: 1;
}
.copyright{
    font-size: 0.9rem;
    text-align: center;
    padding: 2em 0 0;
    color: #ffffff66;
}
footer h4{
    font-size: .9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-menu{
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 1em;
}
.footer-menu li{
    margin-bottom: .2em;
}
footer a{
    text-decoration: none;
    color: var(--accent-color);
}
footer a:hover{
    color: #fff;
}

#footer-form{
    label{
        font-weight: 400;
        font-size: 0.9em;
    }
    input, select, textarea{
        width: 100%;
    }
    button{
        font-size: 0.9em;
    }
    .button-container {
        display: flex;
        align-items: center;
        margin: auto;
    }
}
.social-links{
    font-size: 1.6em;
}
.social-links a:hover{
    color: #fff;
}
.jumbotron {
    padding: 4em 2em;
    margin-bottom: 2em;
    background-color: #e9ecef;
    border-radius: .3em;
        background-image: url(/content/media/servicios/proyectos.webp);
    background-size: cover;
    background-position: 43% 36%;
    h1{
        font-weight: 800;
        color: #cf1d20;
        font-size: 3.5rem;
    }
}
.img-responsive{
    width: 100%;
}
.well{
    background: #ddd;
}
.well p, .well h4{
    padding-left: 20px;
    padding-right: 20px;
}
.well h4{
    margin-top: .3em;
}
.img-fotter{
    background-color: #ccc;
    font-weight: 600;
    padding: 1rem;
}
.bg-red{
    background-color: #c61e1d;
    color:#fff;
}
.bg-dark{
    background-color: #4d4c4c;
    color: #fff;
}
.quadrant{
    width: 90%;
    max-width: 845px;
    margin: auto;
}
.quadrant-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem!important;
    height: 291px;
    h3{
        font-size: 1.8rem;
    }
    p{
        line-height: 1.3;
        font-size: 0.9rem;
    }
}
.quadrant-content h3::after{
    content: "";
    display: block;
    width: 87px;
    height: 6px;
    background-color: #fff;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.section-head{
    padding-top: 2rem;
    padding-bottom: 1rem;
}
.section-body{
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.industria-item{
    padding: 2em 0;
    img{
        border-radius: 15px;
    }
}

.project-item{
    background-color: #e0e0e0;
    h4{
        padding: 1rem 1rem 0 1rem ;
        margin-bottom: 0;
    }
    p{
        padding: 0 1rem;
    }
}
.project-item h4::after {
    content: "";
    display: block;
    width: 87px;
    height: 4px;
    background-color: #c52426;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.section-head{
    text-align: center;
    .container{
        max-width: 700px;
    }
    .head-problem {
        font-size: 1.4em;
        line-height: 1.3;
        margin-top: 1rem;
        color: #444;
    }
    h1{
        font-weight: 700;
        letter-spacing: -0.02em;
    }
}

@media (min-width: 768px) {
    :root{
        --button-height: auto;
        --button-padding: 0.8rem 2rem;
        --button-fontsize: 1rem;
        --button-border-radius: 1rem;
    }
    .hero-msg h1{
        font-size: 3.8em;
    }
    .hero-msg p{
        font-size: 1.59em;
    }
    .width70{
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        p{
            font-size: 1.25em;
        }
    }
}
@media (max-width: 760px) {
    h2 {
        font-size: 2em;
    }
    .reverse-mobile {
        display: flex;
        flex-direction: column;
    }

    .reverse-mobile > div:first-child {
        order: 2; /* imagen abajo */
    }

    .reverse-mobile > div:last-child {
        order: 1; /* texto arriba */
    }
}


/* ================================
MENÚ CON SUBNIVELES – SPARTA
Integrado sin colisiones
================================ */
:root{
    --navbar-hover-background: #c9c9c95c;
}
@media (min-width: 768px) {
    .navbar .menu{
        overflow: revert;
    }
    .menu > a, .has-submenu > a{
        font-family: 'PT Sans Narrow', sans-serif;
        letter-spacing: 0.01em;
        padding: 20px 15px;
        font-weight: 600;
        color: #797979;
    }
    /* Item con submenú */
    .menu-item {
        position: relative;
        display: inline-block;
        float: left;
    }

    /* Enlace padre */
    .menu-item > a {
        display: inline-block;
        position: relative;
    }

    /* Submenú (desktop) */
    .menu-item .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background-color: var(--navbar-background);
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: all 0.25s ease;
        z-index: 200;
        padding: 0.5em 0;
    }

    /* Links del submenú */
    .menu-item .submenu a {
        display: block;
        width: 100%;
        padding: 0.6em 1.2em;
        font-size: 0.85rem;
        text-transform: none;
        color: var(--navbar-color);
        white-space: nowrap;
        width: 100%;
    }

    /* Hover sublinks */
    .menu-item .submenu a:hover {
        background-color: var(--navbar-hover-background);
        color: var(--navbar-hover-color);
    }

    /* Mostrar submenú en desktop */
    .menu-item:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Indicador visual (flecha) */
    .menu-item.has-submenu > a::after {
        content: "▾";
        font-size: 1em;
        margin-left: 0.1em;
        opacity: 0.6;
    }
}
/* ================================
MOBILE – comportamiento acordeón
================================ */
@media (max-width: 768px) {
    /* Evita scroll del body cuando el menú está desplegado */
    body:has(.menu-btn:checked) {
        overflow: hidden;
    }
    .nav-container {
        -webkit-box-shadow: 0px 3px 17px -5px #000000;
        box-shadow: 0px 3px 17px -5px #0000002b;
    }
    /* Menú mobile como contenedor scrolleable */
    .navbar .menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu a{
        padding: 10px 20px;
    }
    /* Submenú inline */
    .menu-item .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        padding-left: 1em;
        display: none;
    }

    /* Mostrar submenú cuando el menú hamburguesa está abierto */
    .menu-btn:checked ~ .menu .menu-item .submenu {
        display: block;
    }

    /* Links mobile */
    .menu-item .submenu a {
        padding: 0.4em 0;
        font-size: 0.9rem;
        padding-left: 2em;
    }

    /* Flecha más discreta en mobile */
    .menu-item.has-submenu > a::after {
        content: "";
    }

    .menu-item.has-submenu > a::after {
        content: "▾";
        font-size: 1rem;
        margin-left: 0.4em;
        opacity: 0.7;
    }
}
