/* Header base */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #001f54;
    height: 80px;
    /* altura fija */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    z-index: 2000;
}

/* Logo sobresaliente */
.logo-wrapper {
    position: absolute;
    top: 0;
    /* pegado arriba del header */
    left: 50%;
    transform: translate(-50%, 0%);
    /* se baja para sobresalir */
    z-index: 2100;
}

/* Línea dorada arriba */
.logo-placa::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1c40f;
}

/* Bordes dorados inclinados (laterales del triángulo) */
.logo-placa::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    border-left: 2px solid #f1c40f;
    border-right: 2px solid #f1c40f;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Placa triangular estilo premium */
.logo-placa {
    background: linear-gradient(180deg, #0a1c4f 0%, #001f54 100%);
    padding: 20px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    position: relative;
    display: inline-block;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    /* 🔹 transición suave */
}

/* Imagen dentro de la placa (animación scroll + hover) */
.logo-placa img {
  max-height: 70px;
  transition: max-height 0.4s ease, transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

/* Hover solo en el logo */
.logo-placa img:hover {
  transform: scale(1.1);             /* se agranda */
  filter: drop-shadow(0 0 15px rgba(241, 196, 15, 0.7)); /* glow dorado */
}

/* Menú */
.main-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 1rem;
    line-height: 80px;
    /* alinea con la altura del header */
}

.main-nav .nav-link:hover {
    color: #f1c40f !important;
}

/* Header cuando haces scroll */
.scrolled {
    height: 60px;
}

.scrolled .main-nav .nav-link {
    line-height: 60px;
}

.scrolled .logo-placa {
    padding: 12px 25px;
    /* mejor que 8px 20px para que no se encoja de golpe */
}

.scrolled .logo-placa img {
    max-height: 55px;
}

/* Compensar el header fijo */
/*
main {
    margin-top: 140px;
    /* espacio según el header + logo *//*
}
*/
/* Menús acercados al logo */
.nav-left {
    margin-right: 120px;
    /* separa el menú izquierdo del logo */
}

.nav-right {
    margin-left: 120px;
    /* separa el menú derecho del logo */
}

/* Ajuste responsivo */
@media (max-width: 991px) {

    .nav-left,
    .nav-right {
        margin: 0;
    }
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}




/* Overlay */
.mobile-overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 31, 84, 0.95);
    overflow-y: hidden;
    transition: 0.5s;
    z-index: 3000;
}

.mobile-overlay.open {
    height: 100%;
}

.mobile-overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #fff;
    text-decoration: none;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
}

.overlay-content a {
    display: block;
    font-size: 2rem;
    color: white;
    padding: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.overlay-content a:hover {
    color: #f1c40f;
}

.pt-5 {
    padding-top: 0 !important;
}

.mt-5 {
    margin-top: 0 !important;
}


.text-justify {
  text-align: justify;
}


