/* =====================================================================
   BUSCADOR DEL SITIO (lupa del header) — assets/css/eg-buscador.css
   Mismo lenguaje del header: rectángulo con esquinas redondeadas.
   ===================================================================== */

/* ---- Botón de la lupa (mismo alto que el selector de idioma) ---- */
.eg-bus-btn,
.eg-bus-btn:hover,
.eg-bus-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: var(--eg-radio, 8px);
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	color: var(--eg-texto, #f3f3f3) !important;
	cursor: pointer;
	transition: box-shadow .2s, background .2s, color .2s;
}

.eg-bus-btn:hover {
	background: rgba(255, 255, 255, 0.09) !important;
	box-shadow: inset 0 0 0 1px rgba(254, 112, 6, 0.55);
	color: #fff !important;
}

.eg-bus-btn:focus-visible {
	outline: 2px solid var(--eg-naranja, #fe7006);
	outline-offset: 2px;
}

/* ---- Panel ---- */
html.eg-bus-abierto,
html.eg-bus-abierto body {
	overflow: hidden;
}

.eg-bus[hidden] {
	display: none !important;
}

.eg-bus {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 72px 16px 16px;
	font-family: var(--eg-f-texto, 'Barlow', system-ui, sans-serif);
}

.eg-bus-fondo {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 10, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.eg-bus-caja {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 100px);
	display: flex;
	flex-direction: column;
	border-radius: var(--eg-radio, 8px);
	background: var(--eg-card, #1e1e24);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
	overflow: hidden;
	animation: eg-bus-entra .18s var(--eg-suave, ease-out);
}

@keyframes eg-bus-entra {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

.eg-bus-form {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 14px 0 18px;
	border-bottom: 1px solid var(--eg-sep, rgba(255, 255, 255, 0.12));
}

.eg-bus-lupa {
	flex: none;
	color: var(--eg-naranja, #fe7006);
}

.eg-bus .eg-bus-campo,
.eg-bus .eg-bus-campo:focus {
	flex: 1;
	min-width: 0;
	height: 60px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
}

.eg-bus .eg-bus-campo::placeholder {
	color: var(--eg-texto-3, #8f8f9b);
	opacity: 1;
}

.eg-bus .eg-bus-campo::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.eg-bus .eg-bus-x,
.eg-bus .eg-bus-x:hover,
.eg-bus .eg-bus-x:focus {
	flex: none;
	height: 28px;
	min-height: 0;
	padding: 0 9px !important;
	margin: 0;
	border: 0 !important;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07) !important;
	color: var(--eg-texto-2, #b4b4bf) !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}

.eg-bus .eg-bus-x:hover {
	color: #fff !important;
}

/* ---- Resultados ---- */
.eg-bus-res {
	overflow-y: auto;
	padding: 8px 0 10px;
	transition: opacity .15s;
}

.eg-bus-res.is-cargando {
	opacity: .55;
}

.eg-bus-nota {
	margin: 0 !important;
	padding: 16px 20px;
	color: var(--eg-texto-2, #b4b4bf);
	font-size: 15px;
	line-height: 1.5;
}

.eg-bus-grupo + .eg-bus-grupo {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--eg-linea, rgba(255, 255, 255, 0.06));
}

.eg-bus-gtit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--eg-texto-3, #8f8f9b);
}

.eg-bus-gtit a,
.eg-bus-gtit a:visited {
	color: var(--eg-naranja, #fe7006) !important;
	font-size: 12px;
	letter-spacing: .04em;
	text-decoration: none !important;
}

.eg-bus-gtit a:hover {
	color: var(--eg-naranja-claro, #ff8a33) !important;
}

.eg-bus-item,
.eg-bus-item:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 20px;
	color: var(--eg-texto, #f3f3f3) !important;
	text-decoration: none !important;
	transition: background .15s;
}

.eg-bus-item:hover,
.eg-bus-item.is-activo {
	background: rgba(255, 255, 255, 0.05);
}

.eg-bus-item:hover b,
.eg-bus-item.is-activo b {
	color: var(--eg-naranja, #fe7006);
}

.eg-bus-img {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--eg-card-in, #18181d);
}

img.eg-bus-img {
	object-fit: contain;
}

.eg-bus-ini {
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	color: var(--eg-texto-2, #b4b4bf);
	font-size: 13px;
	font-weight: 700;
}

.eg-bus-txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.eg-bus-txt b {
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color .15s;
}

.eg-bus-txt small {
	overflow: hidden;
	font-size: 13px;
	color: var(--eg-texto-3, #8f8f9b);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ---- Celular: panel pegado arriba, ocupa toda la pantalla ---- */
@media (max-width: 640px) {
	.eg-bus {
		padding: 0;
	}

	.eg-bus-caja {
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.eg-bus .eg-bus-campo,
	.eg-bus .eg-bus-campo:focus {
		height: 58px;
		font-size: 16px; /* 16px evita el zoom automático de iPhone */
	}
}

/* =====================================================================
   HEADER EN CELULAR: todo en una fila (lupa · idioma · cuenta)
   ===================================================================== */
.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-hdr-acciones {
	flex-wrap: nowrap;
	gap: 6px;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-bus-btn {
	width: 36px;
	height: 36px;
}

/* El nombre del sitio no se corta en dos líneas. */
.ast-header-break-point #masthead .site-title {
	white-space: nowrap;
}

/* Pantallas muy angostas: se esconde el lema chico bajo el nombre. */
@media (max-width: 340px) {
	.ast-header-break-point #masthead .site-description {
		display: none;
	}
}

@media (max-width: 359px) {
	.ast-header-break-point #masthead .site-title {
		font-size: 14px;
	}

	.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-hdr-acciones {
		gap: 4px;
	}
}

/* Dentro del menú hamburguesa no se repite la lupa (está en la barra). */
.ast-mobile-header-content .eg-bus-btn,
.ast-mobile-popup-content .eg-bus-btn {
	display: none !important;
}

/* Escritorio: lupa · idioma | cuenta */
.ast-desktop #masthead .eg-hdr-acciones > .eg-bus-btn {
	margin-right: -6px;
}

/* =====================================================================
   HEADER EN CELULAR — ajuste fino (v9.254)
   · El nombre "ESPACIO GAMER" se achica de verdad (antes el tamaño de
     escritorio del link ganaba y se montaba sobre la lupa).
   · Logo y nombre más juntos.
   · Lupa · idioma · cuenta · hamburguesa más juntos y pegados a la derecha.
   ===================================================================== */
.ast-header-break-point #masthead .site-title,
.ast-header-break-point #masthead .site-title a {
	font-size: min(20px, 5vw) !important;
}

.ast-header-break-point #masthead .site-description {
	font-size: 7.5px;
	letter-spacing: .18em;
}

/* Logo ↔ nombre: Astra le pone 1em de relleno al logo; se saca. */
.ast-header-break-point #masthead .ast-site-identity {
	gap: 7px !important;
}

.ast-header-break-point #masthead .site-logo-img,
.ast-header-break-point #masthead .ast-logo-title-inline .site-logo-img {
	padding-right: 0 !important;
	margin-right: 0 !important;
}

/* Menos margen lateral de la barra: todo más a la orilla. */
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-builder-grid-row-container.ast-container,
.ast-header-break-point #masthead .ast-mobile-header-wrap .site-primary-header-wrap {
	padding-left: 12px !important;
	padding-right: 10px !important;
}

/* Astra separa cada elemento de la derecha con 10px por lado: se junta. */
.ast-header-break-point #masthead .ast-mobile-header-wrap .site-header-section-right > *,
.ast-header-break-point #masthead .ast-mobile-header-wrap .site-header-primary-section-right > * {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .site-header-section-right,
.ast-header-break-point #masthead .ast-mobile-header-wrap .site-header-primary-section-right {
	gap: 6px;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-hdr-acciones {
	gap: 5px !important;
}

/* Botones de la barra: todos de 34px. */
.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-bus-btn {
	width: 34px;
	height: 34px;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-idi-btn {
	height: 34px !important;
	padding: 0 5px 0 7px !important;
	gap: 2px !important;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-hdr-login {
	width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-sesion-activa .eg-avatar-mini-header {
	width: 34px !important;
	height: 34px !important;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .eg-sesion-activa .eg-btn-avatar-sesion {
	padding: 0 !important;
	min-height: 0 !important;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .menu-toggle {
	width: 34px !important;
	height: 34px !important;
	margin-left: 2px !important;
}

/* Teléfonos chicos (360px o menos). */
@media (max-width: 360px) {
	.ast-header-break-point #masthead .site-title,
	.ast-header-break-point #masthead .site-title a {
		font-size: 16px !important;
	}
}
