.banner {
    position: relative; /* ✅ mantiene el flujo */
    height: 760px;
    background:
      url('../../public/image/portada/principal.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #002984;
    overflow: hidden;
}



.text-overlay {
    position: relative;
    z-index: 2;
}

/* CURVA SVG */
.curva {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.curva svg {
    display: block;
    width: 100%;
    height: 120px;
}

.text-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    padding-left: 40px;
}

.text-overlay h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0000cc;
    margin-top: 80px; /* Ajusta este valor para bajar el título */
}


header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: transparent; /* O blanco si quieres */
}



/* HEADER SUPERIOR */
.header-custom {
    font-family: 'Sora', sans-serif;
}

.top-link {
    color: #0000cc;
    font-size: 0.85rem;
    text-decoration: none;
}

.top-link:hover {
    text-decoration: underline;
}

.navbar-nav .nav-link {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
}
/* Estilo mejorado para el dropdown */
.dropdown-menu {
    background-color: rgba(0, 0, 204, 0.9); /* Azul con opacidad */
    padding: 0.5rem;
    border-radius: 0 !important; /* Esquinas rectas */
    margin: 0 !important;        /* Sin márgenes externos */
    box-shadow: none;            /* Sin sombra */
  }
  
  /* Estilos de ítems dentro del dropdown */
  .dropdown-menu .dropdown-item {
    color: white !important;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.875rem; /* Tamaño de letra más pequeño */
    white-space: normal;
    word-wrap: break-word;
    text-transform: none !important; /* No forzar mayúsculas */
  }
  
  /* Hover */
  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 204, 0.9);
  }
  
  /* RESPONSIVE: mejora el comportamiento del offcanvas en móviles */
  @media (max-width: 991.98px) {
    .navbar-nav {
      padding-left: 1rem;
    }
  
    .dropdown-menu {
      position: static;
      float: none;
      width: auto;
      margin-top: 0;
      background-color: transparent;
      box-shadow: none;
      padding: 0;
    }
  
    .dropdown-menu .dropdown-item {
      color: #000 !important;
      padding: 0.5rem 0;
      font-size: 0.8125rem; /* Aún más pequeño en móviles */
      background-color: transparent !important;
    }
  
    .dropdown-menu .dropdown-item:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
  }
  

.navbar-nav {
    gap: 1.5rem;
}

hr.custom-line {
    border-top: 1px solid #0000cc;
    margin: 0;
    opacity: 1;
}

/* HEADER INFERIOR */
.navbar {
    font-family: 'Sora', sans-serif;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230000cc' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,204, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #0000cc !important;
    position: relative;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #0000cc;
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}


/* FOOTER */
.footer {
    background-color: #0303B5;
    color: white;
    padding: 40px 0;
    font-family: Tahoma, sans-serif;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer p,
.footer a {
    font-size: 14px;
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.newsletter {
    display: flex;
    align-items: center;
    background-color: #1c1e28;
    padding: 5px;
    border-radius: 5px;
    width: fit-content;
}

.newsletter input {
    border: none;
    padding: 10px;
    font-size: 16px;
    outline: none;
    flex: 1;
    color: #ccc;
    background: white;
}

.newsletter button {
    background-color: #000000;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.newsletter button:hover {
    background-color: #d0023c00;
}

.footer-single-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin-top: 20px;
}
