/* -------------------------
   HEADER & NAV
   ------------------------- */
.top-header {
  background: var(--white);
  padding: 15px 0;
  position: relative;
  z-index: 101;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-img {
  width: 400px;
  height: auto;
}

.top-right-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.audience-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.audience-label {
  font-weight: 700;
  color: #777;
}

.audience-links {
  display: flex;
  gap: 15px;
}

.audience-links a {
  font-weight: 500;
  color: var(--usb-black);
  transition: color 0.2s ease;
}

.audience-links a:hover {
  color: var(--usb-yellow);
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--usb-black);
  transition: transform 0.2s ease, color 0.2s;
}

.search-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.search-btn:hover {
  color: var(--usb-yellow);
  transform: scale(1.1);
}

/* NAV BAR */
.nav-bar {
  background: var(--usb-black);
  color: white;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  color: white;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

/* Flecha del menú */
.arrow-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--usb-yellow);
  border-bottom: 2px solid var(--usb-yellow);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.3s ease;
}

.nav-item:hover .arrow-icon {
  transform: rotate(225deg);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--usb-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}

/* MEGA MENU (Submenús) */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 900px;
  background: var(--light-gray);
  color: #333;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-top: none;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  display: flex;
  gap: 2px;
  overflow: hidden;
}

.mega-menu-wide {
    width: 1100px;
}

.mm-main-content {
    display: flex;
    flex: 3;
    padding: 30px;
    background: #fff;
    gap: 30px;
}

.mm-side-content {
    flex: 1.2;
    background: #f8f9fa; /* Gris muy tenue como en la imagen */
    padding: 30px;
    border-left: 1px solid #eee;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mm-column h4, .mm-side-content h4 {
  color: #718096;
  font-family: var(--font-serif);
  font-size: 14px;
  border-bottom: 1px solid #edf2f7;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 8px;
}

.mm-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #444;
  padding: 5px 0;
  transition: all 0.2s;
}

.mm-links a i {
    width: 24px;
    color: #a0aec0; /* Color de icono grisáceo */
    font-size: 15px;
    text-align: center;
    transition: color 0.3s ease;
}

.mm-links a:hover {
  color: var(--usb-blue);
  transform: translateX(5px);
  text-decoration: none;
  background: rgba(255, 204, 0, 0.05);
  padding-left: 8px;
}

.mm-links a:hover i {
    color: var(--usb-yellow);
}

.mt-20 { margin-top: 25px; }

.nav-actions {
  display: flex;
  align-items: stretch;
}

.action-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--usb-yellow);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
}

.action-link:hover {
  color: #fff;
}

.apply-box {
  background: var(--usb-yellow);
  width: 100px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 65px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 102;
}

.apply-hidden-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.mini-logo-dw {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.apply-divider {
  width: 60%;
  height: 2px;
  background: rgba(0, 0, 0, 0.8);
  margin: 15px 0;
  flex-shrink: 0;
}

.apply-text {
  color: var(--usb-black);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  transition: margin 0.3s ease;
}

.apply-box:hover {
  height: 150px;
  background: var(--usb-yellow);
  justify-content: flex-start;
  padding-top: 10px;
}

.apply-box:hover .apply-hidden-content {
  max-height: 150px;
  opacity: 1;
}

.apply-box:hover .apply-text {
  margin-bottom: 0;
}

.usb-logo-img {
  height: 75px;
  width: auto;
  transition: transform 0.2s ease;
  display: block;
}

.usb-logo-img:hover {
  transform: scale(1.05);
}

/* BOTÓN HAMBURGUESA (Móvil) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 30px;
  height: 100%;
  padding: 0;
  margin-right: 15px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--usb-yellow);
  border-radius: 2px;
  transition: 0.3s;
}

/* OVERLAY BUSCADOR */
.floating-search-overlay {
  position: absolute;
  top: 130px;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.floating-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.search-container-modern {
  background: var(--white);
  width: 90%;
  max-width: 800px;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-input-modern {
  flex: 1;
  border: none;
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 300;
  color: var(--usb-black);
  padding: 10px;
  outline: none;
  border-bottom: 2px solid #eee;
  transition: border-color 0.3s;
}

.search-input-modern:focus {
  border-bottom-color: var(--usb-yellow);
}

.btn-close-search {
  background: #f0f0f0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-close-search:hover {
  background: #e0e0e0;
  color: #333;
}
