/* NAVBAR */
.navbar {
    width: 100%;
    /* background: transparent !important; */
    background: linear-gradient(to right); /* Azul con degradado */
    /* background: linear-gradient(to right, rgba(35,102,168,0.8), rgba(21,85,180,0.8)); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0px;
    height: 70px;
    box-sizing: border-box;
    position: fixed;
    z-index: 1000; /* Para que este encima de otro elementos */
    top: 0;
    left: 0;
}

header, nav {
    margin: 0;
    padding: 0;
}

.navbar-logo, .navbar-links {
    height: 60px; /* Igual que .navbar */
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    filter: brightness(0) invert(1); /* Cambia el color del logo a inverso del que se tenga actualmente */
    height: 48px;
    margin-right: 50px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 60px; /* Igual que navbar */
    padding: 0 10px;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 5px;
    transition: color 0.3s ease;
    line-height: 44px; /* O ajusta el line-height */
}

/* Quitar fondo azul del hover y solo cambiar color texto */
.navbar-links li a:hover,
.navbar-links li.dropdown .dropbtn:hover,
.navbar-links li.dropdown .dropdown-content li a:hover {
    background: none !important; /* elimina fondo */
    color: #00aaff !important; /* cambia color texto */
    text-decoration: none !important; /* sin subrayado */
    cursor: pointer;
}

.navbar-links,
.navbar-links ul,
.navbar-links li {
    list-style: none !important; /* elimina viñetas */
    margin: 0;
    padding: 0;
}

.navbar-links li.dropdown .dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Evitar fondo azul en contenedor li */
.navbar-links li:hover {
    background: none !important;
}

.demo-btn {
    background: #1555b4;
    color: #2366a8;
    font-weight: bold;
    border-radius: 5px;
    padding: 8px 28px;
    transition: background 0.2s, color 0.2s;
    border: none;
}

.demo-btn:hover {
    background: #174a76;
    color: #fff;
}

/* Estilos para dropdown */
.navbar-links li.dropdown {
    position: relative;
}

.navbar-links li.dropdown .dropdown-content li a {
    white-space: nowrap;
    padding: 3px 10px;  /* Menos espacio vertical */
    color: white;
}

.navbar-links li.dropdown .dropbtn {
    cursor: pointer;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 8px 22px;
    font-size: 1.1em;
    border-radius: 5px;
    transition: color 0.3s ease;
    background: none;
}

#serviceDropdownBtn {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 22px;
    border-radius: 5px;
    cursor: pointer;
}

#serviceDropdownBtn::after {
    content: "▼";
    font-size: 0.6em;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

.navbar-links li.dropdown.show .dropdown-content {
    display: block;
}

/* Contenedor dropdown - oculto por defecto */
.navbar-links li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    /*background: linear-gradient(to right, hsla(210, 66%, 40%, 0.749), #00538a);*/
    background: transparent;
    min-width: 210px;
    /*box-shadow: 0px 8px 16px rgba(0,0,0,0.2);*/
    border-radius: 5px;
    top: 100%; /* justo debajo del botón */
    left: 0;
    z-index: 10000;
}

/* Estilos para links dentro del dropdown */
.navbar-links li.dropdown .dropdown-content ul li a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 1em;
}

.navbar-links li.dropdown .dropdown-content li a:hover {
    background: none !important;
    color: #00aaff !important;
    text-decoration: underline;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 600px) {
    .navbar-links {
        display: none; /* Oculta el menú por defecto */
        flex-direction: column;
        width: 100%;
        /*position: fixed;*/
        top: 60px; /* altura navbar */
        left: 0;
        background-color: #00538a;
    }

    .navbar-links.show {
        display: flex; /* Mostrar menú cuando tenga clase show */
    }

    .navbar-links li {
        margin: 10px 0;
        background-color: #00538a;
    }

    .navbar-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 0.5px;
        z-index: 1001;
    }

    .navbar-links span {
        background-color: #00538a;
        display: block; /* para que el fondo abarque todo el ancho */
        padding: 8px 16px; /* opcional para espacio */
        border-radius: 5px; /* opcional para bordes redondeados */
    }

    .navbar-links li a,
    .navbar-links span a {
        background-color: #00538a;
        color: white; /* para que el texto sea visible */
        display: block;
        padding: 8px 16px;
        border-radius: 5px;
        text-decoration: none;
    }

    /* Ocultar el botón hamburguesa en pantallas grandes */
    .navbar-toggle {
        display: block;
    }

    /* Opcional: ajustar padding y tamaño */
    .navbar {
        padding: 0 20px;
    }
}

/* En pantallas grandes ocultamos el botón hamburguesa */
@media (min-width: 600px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-links {
    display: flex; /* Forzar que siempre se muestre */
    position: static;
    flex-direction: row;
    background: none;
    width: auto;
  }
}

.navbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}