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

:root {
    --hero-height: 80vh;
    --grid-gap: 30px;
    --accent-color: #ce5d5c;
    --accent-color-hover: #a8140e;
}

body {
    padding-top: 65px;
    font-family: 'Geomanist';
}
b, strong{
    font-weight: 500;
}

/* Estilos generales del navbar */
.navbar .navbar-logo {
    letter-spacing: -0.1em;
    padding: 0;
    img {
        display: block;
    }
}

.navbar a {
    font-family: Oswald, sans-serif;
    padding: 20px 15px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.55rem;
    --accent-color: rgb(166,6,4);
}

/* === INICIO DE ESTILOS PARA EL EFECTO DE SUBMENÚS === */
.navbar .nav-container {
    position: relative; /* Contexto general */
}

.navbar .menu {
    margin: 0;
    padding: 0;
    overflow: visible; /* Revertimos el overflow:hidden de CSSkel para que los submenús sean visibles */
    transition: max-height .2s ease-out;
    display: flex; /* Mantenemos flex para escritorio, pero ajustaremos */
    align-items: center;
    list-style: none; /* Elimina viñetas por defecto */
    position: static; /* Restauramos el posicionamiento natural */
    width: auto; /* Asegura que el ancho sea automático */
}

.navbar .menu > li {
    position: relative; /* Cada <li> padre es un punto de referencia para el submenú */
    /*margin: 0 10px; /* Espaciado entre ítems */
    margin: 0;
    white-space: nowrap; /* Evita que el texto se desborde */
}

.navbar .menu > li > a {
    display: inline-block; /* Necesario para hover y posicionamiento */
    padding: 20px 15px;
    z-index: 1; /* Asegura que el enlace esté por encima si hay superposición */
}

.navbar .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%; /* Debajo del <li> padre */
    left: 0; /* Alineado con el borde izquierdo del <li> padre */
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.navbar .menu > li:hover > .submenu {
    visibility: visible;
    opacity: 1;
}

.navbar .submenu li {
    margin: 0;
}

.navbar .submenu a {
    display: block;
    padding: 10px 15px;
    font-size: 0.9em;
    color: var(--text-color-normal);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color-softer);
    width: 100%;
}

.navbar .submenu a:hover {
    background-color: var(--background-color-softer);
    color: var(--accent-color);
}

/* Estilos para el botón de cierre */
.close-btn {
    display: none; /* Oculto por defecto en todos los casos */
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.3em;
    color: var(--text-color-normal);
    cursor: pointer;
    padding: 0 10px;
    background-color: var(--background-color-softer);
    border: 1px solid var(--border-color-softer);
    border-radius: 3px;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--accent-color);
    background-color: var(--background-color);
}

/** GENERAL POSITIONS **/
.text-center{
    text-align: center;
}
.text-right{
    text-align: right;
}
.grid_vertical-center{
    align-items: center;
}

.brand {
    width: 200px;
    margin: 0 auto;
    img{
        width: 100%;
    }
}
.brand-title {
    text-align: center;
    margin: 0 auto .5em;
    color: #252525;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: .5em;
}
/* Ajustes para móviles (breakpoint de CSSkel a 900px) */
@media (max-width: 900px) {
    .navbar .menu {
        display: none; /* Oculto por defecto en móviles */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--background-color);
        padding: 10px 0; /* Espaciado interno */
    }
    .navbar .menu-btn:checked + .menu-icon + .menu + .close-btn {
        display: block; /* Muestra el botón de cierre solo cuando el menú está abierto */
    }
    .navbar .menu-btn:checked + .menu-icon + .menu {
        display: flex;
        flex-direction: column;
        max-height: 80vh; /* Altura máxima visible */
        overflow-y: auto; /* Scroll si se excede */
        scroll-behavior: smooth;
    }
    .navbar .menu > li {
        width: 100%;
        margin: 0;
    }
    .navbar .menu > li > a {
        width: 100%;
        text-align: left;
    }
    .navbar .submenu {
        position: static; /* Submenús en flujo normal en móviles */
        box-shadow: none;
        visibility: visible; /* Siempre visible si el menú está abierto */
        opacity: 1;
        width: 100%;
        background-color: var(--background-color-softer);
        display: none; /* Oculto por defecto en móviles */
    }
    .navbar .menu-btn:checked + .menu-icon + .menu .submenu {
        display: block; /* Muestra submenús cuando el menú está abierto */
    }
    .navbar .menu > li:hover > .submenu,
    .navbar .submenu:hover {
        visibility: visible; /* Redundante en móviles, pero por seguridad */
        opacity: 1;
    }
}
/* === FIN DE ESTILOS PARA EL EFECTO DE SUBMENÚS === */

/* Resto de los estilos existentes */
.hero {
    width: 100%;
    height: var(--hero-height);
    position: relative; /* Contexto para el ::before */
    background: #1F4362 url(../../content/media/promos/pt590_radio_tetra_hytera.webp) center center no-repeat;
    background-size: cover;
    color: #fff;
}

.hero::before {
    content: ''; /* Necesario para que ::before se renderice */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%, /* Negro semi-transparente en la parte superior */
        rgba(0, 0, 0, 0) 70% /* Transparente en la parte inferior */
    );
    z-index: 1; /* Asegura que el degradado esté detrás del contenido */
}

.hero .grid-container {
    height: var(--hero-height);
    place-items: center;
    position: relative; /* Asegura que el contenido esté por encima del ::before */
    z-index: 2; /* Coloca el contenido por encima del degradado */
}

.hero-msg h1 {
    font-size: 3.8em;
    text-transform: uppercase;
    text-align: left;
}

.hero-msg p {
    font-size: 1.3em;
    line-height: 1.2;
}

.wrapper {
    width: min(90%, 1068px);
    margin-inline: auto;
}

@media (max-width: 900px) {
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.4) 80% /* Oscuridad residual al 80%, ajustable */
        );
    }
}

.heading-black {
    padding-bottom: 50px;
    opacity: .98;
    color: #000;
    text-align: center;
}

.heading-title {
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 10px;
}

h1{
    text-align: center;
    letter-spacing: -.15rem;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

h2 {
    font-size: 50px;
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.1rem;
    margin: 0;
}
h3{
    letter-spacing: -.05rem;
}
h4{
    letter-spacing: 0;
}
h5{
    letter-spacing: -.01em;
    font-weight: 400;
}
#services {
    padding-bottom: 100px;
}

#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: #f7f7f7;
}

.bg-1 {
    background: url(../../content/media/site/mantenimiento2.webp) center center no-repeat;
    background-size: cover;
}

.bg-2 {
    background: url(../../content/media/site/instalaciones.webp) center center no-repeat;
    background-size: cover;
}

.bg-3 {
    background: url(../../content/media/site/proyectos.webp) center center no-repeat;
    background-size: cover;
}

footer {
    background-color: #333;
    color: #ccc;
    min-height: 5em;
    padding-top: 4em;
    font-size: 1.5rem;
}

.copyright {
    font-size: 1.2rem;
    text-align: center;
    padding: 2em 0 1em;
}

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: #fff !important;
}

footer a:hover {
    color: #b20c05;
}

.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;
}

.img-responsive {
    width: 100%;
}

.well {
    background: #ddd;
}

.well p, .well h4 {
    padding-left: 20px;
    padding-right: 20px;
}

.well h4 {
    margin-top: .3em;
}

@media (max-width:720px){
    .social-links{
        margin-bottom: 1em;
    }
    .hero-msg h1 {
        font-size: 3.2em;
    }
}