/*
 * Menú de los widgets (.custom-navbar) y recuadro de Facebook.
 * Traído tal cual del CSS adicional del Personalizador (2026-10-23) para tenerlo en el repo.
 * En producción: subir este archivo y functions.php, y recién después vaciar
 * Apariencia > Personalizar > CSS adicional. Se reemplaza con el header unificado (fase 2).
 */

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ff3366;
}

/* HAMBURGER & CLOSE BUTTON */
.nav-toggle, .nav-close {
  display: none;
  font-size: 28px;
  color: #222;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1100;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}

/* MOBILE & TABLET */
@media (max-width: 691px) {
  .nav-container { 
    height: 0px; 
    padding: 0px; 
  }
  
  /* HAMBURGER ICON */
  .nav-toggle { 
    display: block !important;
    position: absolute; 
    top: -50px;
    padding: 15px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  
  /* CLOSE ICON */
  .nav-close {
    display: none !important;
    position: relative;
		font-size: 20px;
		top: -47px;
    padding: 15px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  
  /* When menu is open */
  body.nav-open .nav-toggle {
    display: none !important;
  }
  
  body.nav-open .nav-close {
    display: block !important;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: absolute;
    top: -30px;
    right: -30px;
    width: 220px;
    z-index: 1000;
  }

  body.nav-open .nav-links {
    display: flex !important;
  }

  .nav-links li {
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    color: #222;
    padding: 22px 20px;
    display: block;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .nav-links li a:hover {
    background: #6EC1E4;
    color: #f9f9f9;
  }
}

.fb-page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.fb-page, .fb-page span, .fb-page iframe[style] {
  width: 100% !important;
}

.custom-navbar .nav-links a {
  text-decoration: none !important;
}

/* FORCE hamburger and close to be on top of everything */
.nav-toggle,
.nav-close {
  position: relative;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

.custom-navbar {
  position: relative;
  z-index: 999998 !important;
}


/* TEMPORARY - just for testing */
.nav-toggle {
	background: transparent;
	border: none;
	padding: 15px;
	cursor: pointer;
	min-width: 44px;
	min-height: 44px;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

/* Header custom-navbar: 7 items (se agrego Carrera). En desktop una sola fila;
   si no entra (tablets), bajan items enteros a una segunda fila en vez de partirse o cortarse. */
@media (min-width: 692px) {
  .custom-navbar .nav-links { flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; row-gap: 4px; padding-left: 0; }
  .custom-navbar .nav-links li a { white-space: nowrap; font-size: 15px; }
}


/* Header subasta-nav (Carrera, Calculadoras, subastas): mismo motivo que arriba.
   Con 7 items se cortaba "Contacto" entre 769 y 1150px. */
@media (min-width: 769px) {
  .subasta-nav__links { flex-wrap: wrap; justify-content: flex-end; column-gap: 0.2rem; row-gap: 0.1rem; }
  .subasta-nav__links a { font-size: 0.95rem; padding: 0.5rem 0.45rem; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .subasta-nav__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
